Changeset 350 for soft/giet_vm/giet_drivers/ioc_driver.c
- Timestamp:
- Jun 29, 2014, 12:53:25 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/ioc_driver.c
r343 r350 183 183 unsigned int flags; // page protection flags 184 184 unsigned int ix2; // page index in IOMMU PT1 page table 185 unsigned int ppn_first ;// first physical page number for user buffer185 unsigned int ppn_first = 0; // first physical page number for user buffer 186 186 unsigned int buf_xaddr = 0; // user buffer virtual address in IO space (if IOMMU) 187 187 paddr_t buf_paddr = 0; // user buffer physical address (if no IOMMU), … … 308 308 309 309 #if ( USE_IOC_BDV ) 310 311 #if GIET_DEBUG_IOC_DRIVER312 _printf("\n[IOC DEBUG] Calling BDV driver\n");313 #endif314 310 if (to_mem) error = _bdv_read ( mode, lba, buf_paddr, count); 315 311 else error = _bdv_write( mode, lba, buf_paddr, count); 316 317 312 #elif ( USE_IOC_SPI ) 318 319 #if GIET_DEBUG_IOC_DRIVER320 _printf("\n[IOC DEBUG] Calling SPI driver\n");321 #endif322 313 if (to_mem) error = _sdc_read (mode, lba, buf_paddr, count); 323 314 else error = _sdc_write(mode, lba, buf_paddr, count); 324 325 315 #elif ( USE_IOC_HBA ) 326 327 #if GIET_DEBUG_IOC_DRIVER328 _printf("\n[IOC DEBUG] Calling HBA driver\n");329 #endif330 316 if (to_mem) error = _hba_read (channel, mode, lba, buf_paddr, count); 331 317 else error = _hba_write(channel, mode, lba, buf_paddr, count); 332 333 318 #elif ( USE_IOC_RDK ) 334 335 #if GIET_DEBUG_IOC_DRIVER336 _printf("\n[IOC DEBUG] Calling RDK driver\n");337 #endif338 319 if (to_mem) error = _rdk_read (lba, buf_vaddr, count); 339 320 else error = _rdk_write(lba, buf_vaddr, count); 340 341 321 #endif 342 322
Note: See TracChangeset
for help on using the changeset viewer.