Changeset 320 for soft/giet_vm/giet_drivers/nic_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/nic_driver.c
r295 r320 24 24 // One NIC channel and two CMA channels must be allocated to the task 25 25 // in the mapping_info data structure. 26 // 27 // The SEG_NIC_BASE address must be defined in the hard_config.h file. 26 28 ////////////////////////////////////////////////////////////////////////////////// 27 29 … … 32 34 #if !defined(GIET_USE_IOMMU) 33 35 # error: You must define GIET_USE_IOMMU in the giet_config.h file 36 #endif 37 38 #if !defined(SEG_NIC_BASE) 39 # error: You must define SEG_NIC_BASE in the hard_config.h file 34 40 #endif 35 41 … … 62 68 unsigned int index ) 63 69 { 64 unsigned int* vaddr = (unsigned int*) &seg_nic_base+65 NIC_CHANNEL_SPAN *channel + index;70 unsigned int* vaddr = (unsigned int*)SEG_NIC_BASE + 71 NIC_CHANNEL_SPAN * channel + index; 66 72 return _io_extended_read( vaddr ); 67 73 } … … 74 80 unsigned int value ) 75 81 { 76 unsigned int* vaddr = (unsigned int*) &seg_nic_base+77 NIC_CHANNEL_SPAN *channel + index;82 unsigned int* vaddr = (unsigned int*)SEG_NIC_BASE + 83 NIC_CHANNEL_SPAN * channel + index; 78 84 _io_extended_write( vaddr, value ); 79 85 }
Note: See TracChangeset
for help on using the changeset viewer.