Changeset 942 for branches/reconfiguration/softs/drivers
- Timestamp:
- Feb 12, 2015, 2:59:20 PM (10 years ago)
- Location:
- branches/reconfiguration/softs/drivers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/reconfiguration/softs/drivers/xcu.c
r887 r942 5 5 */ 6 6 #include <xcu.h> 7 #include <soclib/xicu.h>8 7 #include <io.h> 9 8 #include <hard_config.h> … … 12 11 #define XCUREG(func,idx) (SEG_XCU_BASE + (XICU_REG((func),(idx)) << 2)) 13 12 14 void xcu_set_ config(int x, int y, int idx, uint32_t val)13 void xcu_set_register(int x, int y, int func, int idx, uint32_t val) 15 14 { 16 iowrite32(CLUSTER_BASE(x,y) | XCUREG( XICU_CFG_REG, idx), val);15 iowrite32(CLUSTER_BASE(x,y) | XCUREG(func, idx), val); 17 16 } 18 17 19 uint32_t xcu_get_ config(int x, int y, int idx)18 uint32_t xcu_get_register(int x, int y, int func, int idx) 20 19 { 21 return ioread32(CLUSTER_BASE(x,y) | XCUREG( XICU_CFG_REG, idx));20 return ioread32(CLUSTER_BASE(x,y) | XCUREG(func, idx)); 22 21 } 23 22 -
branches/reconfiguration/softs/drivers/xcu.h
r887 r942 7 7 #define XCU_H 8 8 9 #include <soclib/xicu.h> 9 10 #include <stdint.h> 10 11 11 void xcu_set_ config(int x, int y, int idx, uint32_t val);12 uint32_t xcu_get_ config(int x, int y, int idx);12 void xcu_set_register(int x, int y, int func, int idx, uint32_t val); 13 uint32_t xcu_get_register(int x, int y, int func, int idx); 13 14 14 15 #endif
Note: See TracChangeset
for help on using the changeset viewer.