Changeset 279 for trunk/hal/tsar_mips32/drivers/soclib_mmc.c
- Timestamp:
- Jul 27, 2017, 12:23:29 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/drivers/soclib_mmc.c
r257 r279 1 1 /* 2 * soclib_mmc.c - soclib simple block devicedriver implementation.2 * soclib_mmc.c - soclib L2 cache controller driver implementation. 3 3 * 4 4 * Author Alain Greiner (2016) … … 62 62 63 63 // get command type and extended pointer on MMC device 64 type = hal_remote_lw ( XPTR( th_cxy , &th_ptr-> command.mmc.type ) );65 dev_xp = (xptr_t)hal_remote_lwd( XPTR( th_cxy , &th_ptr-> command.mmc.dev_xp ) );64 type = hal_remote_lw ( XPTR( th_cxy , &th_ptr->mmc_cmd.type ) ); 65 dev_xp = (xptr_t)hal_remote_lwd( XPTR( th_cxy , &th_ptr->mmc_cmd.dev_xp ) ); 66 66 67 67 // get MMC device cluster and local pointer … … 79 79 { 80 80 // get buffer paddr 81 buf_paddr = hal_remote_lwd( XPTR( th_cxy , &th_ptr-> command.mmc.buf_paddr ) );81 buf_paddr = hal_remote_lwd( XPTR( th_cxy , &th_ptr->mmc_cmd.buf_paddr ) ); 82 82 83 83 // split buffer paddr in two 32 bits words … … 86 86 87 87 // get buffer size 88 buf_size = hal_remote_lw( XPTR( th_cxy , &th_ptr-> command.mmc.buf_size ) );88 buf_size = hal_remote_lw( XPTR( th_cxy , &th_ptr->mmc_cmd.buf_size ) ); 89 89 90 90 // get command type … … 102 102 { 103 103 // get src/dst buffer local pointer and register index 104 reg_ptr = (uint32_t *)hal_remote_lpt( XPTR( th_cxy , &th_ptr-> command.mmc.reg_ptr ) );105 reg_index = hal_remote_lw( XPTR( th_cxy , &th_ptr-> command.mmc.reg_index ) );104 reg_ptr = (uint32_t *)hal_remote_lpt( XPTR( th_cxy , &th_ptr->mmc_cmd.reg_ptr ) ); 105 reg_index = hal_remote_lw( XPTR( th_cxy , &th_ptr->mmc_cmd.reg_index ) ); 106 106 107 107 // move register to/from local buffer
Note: See TracChangeset
for help on using the changeset viewer.