2 * Copyright (C) 2006 OpenWrt.org
4 * This is free software, licensed under the GNU General Public License v2.
5 * See /LICENSE for more information.
14 #define sbh bcm947xx_sbh
15 extern void *bcm947xx_sbh
;
20 extern __u32
sb_gpioin(void *sbh
);
21 extern __u32
sb_gpiointpolarity(void *sbh
, __u32 mask
, __u32 val
, __u8 prio
);
22 extern __u32
sb_gpiointmask(void *sbh
, __u32 mask
, __u32 val
, __u8 prio
);
23 extern __u32
sb_gpioouten(void *sbh
, __u32 mask
, __u32 val
, __u8 prio
);
24 extern __u32
sb_gpioout(void *sbh
, __u32 mask
, __u32 val
, __u8 prio
);
26 #define gpioin() sb_gpioin(sbh)
27 #define gpiointpolarity(mask,val) sb_gpiointpolarity(sbh, mask, val, 0)
28 #define gpiointmask(mask,val) sb_gpiointmask(sbh, mask, val, 0)
29 #define gpioouten(mask,val) sb_gpioouten(sbh, mask, val, 0)
30 #define gpioout(mask,val) sb_gpioout(sbh, mask, val, 0)
32 #elif defined(BCMGPIO)
34 #define sbh bcm947xx_sbh
35 extern void *bcm947xx_sbh
;
36 extern __u32
sb_gpioin(void *sbh
);
37 extern __u32
sb_gpiointpolarity(void *sbh
, __u32 mask
, __u32 val
);
38 extern __u32
sb_gpiointmask(void *sbh
, __u32 mask
, __u32 val
);
39 extern __u32
sb_gpioouten(void *sbh
, __u32 mask
, __u32 val
);
40 extern __u32
sb_gpioout(void *sbh
, __u32 mask
, __u32 val
);
42 #define gpioin() sb_gpioin(sbh)
43 #define gpiointpolarity(mask,val) sb_gpiointpolarity(sbh, mask, val)
44 #define gpiointmask(mask,val) sb_gpiointmask(sbh, mask, val)
45 #define gpioouten(mask,val) sb_gpioouten(sbh, mask, val)
46 #define gpioout(mask,val) sb_gpioout(sbh, mask, val)
49 #error Unsupported/unknown GPIO configuration
This page took 0.04665 seconds and 5 git commands to generate.