Go to the documentation of this file.
34 #define SBI_CID 0x02800000
35 #define SBI_CTL 0x02800004
36 #define SBI_STATUS 0x02800008
37 #define SBI_CFG0 0x02800010
38 #define SBI_CFG1 0x02800014
39 #define SBI_CFG2 0x02800018
40 #define SBI_CFG3 0x0280001c
41 #define SBI_STB0 0x02800020
42 #define SBI_STB1 0x02800024
43 #define SBI_STB2 0x02800028
44 #define SBI_STB3 0x0280002c
45 #define SBI_INTR_STATE 0x02800030
46 #define SBI_INTR_TID 0x02800034
47 #define SBI_INTR_DIAG 0x02800038
50 #define SBI_CFG_BURST_MASK 0x0000001e
53 #define SBI2DEVID(sbino) ((sbino<<4)|2)
68 static inline int acquire_sbi(
int devid,
int mask)
70 __asm__ __volatile__ (
"swapa [%2] %3, %0" :
78 static inline void release_sbi(
int devid,
int mask)
80 __asm__ __volatile__ (
"sta %0, [%1] %2" : :
86 static inline void set_sbi_tid(
int devid,
int targetid)
88 __asm__ __volatile__ (
"sta %0, [%1] %2" : :
94 static inline int get_sbi_ctl(
int devid,
int cfgno)
98 __asm__ __volatile__ (
"lda [%1] %2, %0" :
105 static inline void set_sbi_ctl(
int devid,
int cfgno,
int cfg)
107 __asm__ __volatile__ (
"sta %0, [%1] %2" : :