7 #define sbh bcm947xx_sbh
8 extern void *bcm947xx_sbh
;
13 extern __u32
sb_gpioin(void *sbh
);
14 extern __u32
sb_gpiointpolarity(void *sbh
, __u32 mask
, __u32 val
, __u8 prio
);
15 extern __u32
sb_gpiointmask(void *sbh
, __u32 mask
, __u32 val
, __u8 prio
);
16 extern __u32
sb_gpioouten(void *sbh
, __u32 mask
, __u32 val
, __u8 prio
);
17 extern __u32
sb_gpioout(void *sbh
, __u32 mask
, __u32 val
, __u8 prio
);
19 #define gpioin() sb_gpioin(sbh)
20 #define gpiointpolarity(mask,val) sb_gpiointpolarity(sbh, mask, val, 0)
21 #define gpiointmask(mask,val) sb_gpiointmask(sbh, mask, val, 0)
22 #define gpioouten(mask,val) sb_gpioouten(sbh, mask, val, 0)
23 #define gpioout(mask,val) sb_gpioout(sbh, mask, val, 0)
25 #elif defined(BCMGPIO)
27 #define sbh bcm947xx_sbh
28 extern void *bcm947xx_sbh
;
29 extern __u32
sb_gpioin(void *sbh
);
30 extern __u32
sb_gpiointpolarity(void *sbh
, __u32 mask
, __u32 val
);
31 extern __u32
sb_gpiointmask(void *sbh
, __u32 mask
, __u32 val
);
32 extern __u32
sb_gpioouten(void *sbh
, __u32 mask
, __u32 val
);
33 extern __u32
sb_gpioout(void *sbh
, __u32 mask
, __u32 val
);
35 #define gpioin() sb_gpioin(sbh)
36 #define gpiointpolarity(mask,val) sb_gpiointpolarity(sbh, mask, val)
37 #define gpiointmask(mask,val) sb_gpiointmask(sbh, mask, val)
38 #define gpioouten(mask,val) sb_gpioouten(sbh, mask, val)
39 #define gpioout(mask,val) sb_gpioout(sbh, mask, val)
42 #error Unsupported/unknown GPIO configuration
This page took 0.042353 seconds and 5 git commands to generate.