Changeset 657 for trunk/kernel/devices/dev_mmc.c
- Timestamp:
- Mar 18, 2020, 11:16:59 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_mmc.c
r647 r657 2 2 * dev_mmc.c - MMC (Memory Cache Controler) generic device API implementation. 3 3 * 4 * Author Alain Greiner (2016,2017,2018 )4 * Author Alain Greiner (2016,2017,2018,2019,2020) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 176 176 177 177 ///////////////////////////////////////// 178 error_t dev_mmc_ set_error( cxy_t cxy,178 error_t dev_mmc_error_set( cxy_t cxy, 179 179 uint32_t index, 180 180 uint32_t wdata ) … … 185 185 // store command arguments in thread descriptor 186 186 this->mmc_cmd.dev_xp = chdev_dir.mmc[cxy]; 187 this->mmc_cmd.type = MMC_ SET_ERROR;187 this->mmc_cmd.type = MMC_ERROR_SET; 188 188 this->mmc_cmd.reg_index = index; 189 189 this->mmc_cmd.reg_ptr = &wdata; … … 194 194 195 195 ////////////////////////////////////////// 196 error_t dev_mmc_ get_error( cxy_t cxy,196 error_t dev_mmc_error_get( cxy_t cxy, 197 197 uint32_t index, 198 198 uint32_t * rdata ) … … 203 203 // store command arguments in thread descriptor 204 204 this->mmc_cmd.dev_xp = chdev_dir.mmc[cxy]; 205 this->mmc_cmd.type = MMC_ GET_ERROR;205 this->mmc_cmd.type = MMC_ERROR_GET; 206 206 this->mmc_cmd.reg_index = index; 207 207 this->mmc_cmd.reg_ptr = rdata; … … 210 210 return dev_mmc_access( this ); 211 211 } 212 213 ////////////////////////////////////////// //////////214 error_t dev_mmc_ get_instrumentation( cxy_t cxy,215 216 212 213 ////////////////////////////////////////// 214 error_t dev_mmc_instr_get( cxy_t cxy, 215 uint32_t index, 216 uint32_t * rdata ) 217 217 { 218 218 // get calling thread local pointer … … 221 221 // store command arguments in thread descriptor 222 222 this->mmc_cmd.dev_xp = chdev_dir.mmc[cxy]; 223 this->mmc_cmd.type = MMC_ GET_INSTRU;223 this->mmc_cmd.type = MMC_INSTR_GET; 224 224 this->mmc_cmd.reg_index = index; 225 225 this->mmc_cmd.reg_ptr = rdata; … … 228 228 return dev_mmc_access( this ); 229 229 } 230
Note: See TracChangeset
for help on using the changeset viewer.