Changeset 320 for soft/giet_vm/giet_drivers/hba_driver.c
- Timestamp:
- Jun 10, 2014, 12:33:23 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/hba_driver.c
r295 r320 9 9 // block oriented, external storage contrÃŽler, respecting the AHCI standard. 10 10 // 11 // The seg_ioc_base (standard HBA virtual base address) and seg_ioc_base_bis 12 // (backup HBA virtual base address) must be defined in giet_vsegs.ld file. 11 // The SEG_IOC_BASE virtual address must be defined in the hard_config.h file. 13 12 ////////////////////////////////////////////////////////////////////////////////// 14 13 // Implementation notes: … … 67 66 unsigned int index ) 68 67 { 69 unsigned int* vaddr = (unsigned int*) &seg_ioc_base+ channel*HBA_SPAN + index;68 unsigned int* vaddr = (unsigned int*)SEG_IOC_BASE + channel*HBA_SPAN + index; 70 69 return _io_extended_read( vaddr ); 71 70 } … … 78 77 unsigned int value ) 79 78 { 80 unsigned int* vaddr = (unsigned int*) &seg_ioc_base+ channel*HBA_SPAN + index;79 unsigned int* vaddr = (unsigned int*)SEG_IOC_BASE + channel*HBA_SPAN + index; 81 80 _io_extended_write( vaddr, value ); 82 81 }
Note: See TracChangeset
for help on using the changeset viewer.