Changeset 320 for soft/giet_vm/giet_drivers/iob_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/iob_driver.c
r298 r320 10 10 // This component can be instanciated in more than one cluster. 11 11 /////////////////////////////////////////////////////////////////////////////////// 12 // The seg_iob_base virtual base addresses must be defined in giet_vsegs.ldfile.13 // The physical base address is supposed to be (cluster_xy << 32) | seg_iob_base.12 // The SEG_IOB_BASE virtual addresses must be defined in hard_config.h file. 13 // The physical base address is supposed to be (cluster_xy << 32) | SEG_IOB_BASE. 14 14 /////////////////////////////////////////////////////////////////////////////////// 15 15 … … 17 17 #include <iob_driver.h> 18 18 #include <utils.h> 19 20 #if !defined(SEG_IOB_BASE) 21 # error: You must define SEG_IOB_BASE in the hard_config.h file 22 #endif 19 23 20 24 #if !defined(GIET_USE_IOMMU) … … 34 38 unsigned int index ) // register index 35 39 { 36 unsigned long long paddr = (unsigned long long) (unsigned int)&seg_iob_base+40 unsigned long long paddr = (unsigned long long)SEG_IOB_BASE + 37 41 ((unsigned long long)cluster_xy << 32) + 38 42 ((unsigned long long)index << 2); … … 48 52 unsigned int value ) // value to be written 49 53 { 50 unsigned long long paddr = (unsigned long long) (unsigned int)&seg_iob_base+54 unsigned long long paddr = (unsigned long long)SEG_IOB_BASE + 51 55 ((unsigned long long)cluster_xy << 32) + 52 56 ((unsigned long long)index << 2); … … 54 58 _physical_write( paddr, value ); 55 59 } 56 57 60 58 61
Note: See TracChangeset
for help on using the changeset viewer.