X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/fa8fb4e7c3be746703fee0dd34285f462ba104ec..14f9d231396ae074995a3675ecf07bb66ab9017c:/openwrt/target/linux/package/switch/src/gpio.h diff --git a/openwrt/target/linux/package/switch/src/gpio.h b/openwrt/target/linux/package/switch/src/gpio.h index 95cf670f9..825760033 100644 --- a/openwrt/target/linux/package/switch/src/gpio.h +++ b/openwrt/target/linux/package/switch/src/gpio.h @@ -3,7 +3,13 @@ #if defined(BCMGPIO2) +#ifdef LINUX_2_4 +#define sbh bcm947xx_sbh +extern void *bcm947xx_sbh; +#else extern void *sbh; +#endif + extern __u32 sb_gpioin(void *sbh); extern __u32 sb_gpiointpolarity(void *sbh, __u32 mask, __u32 val, __u8 prio); extern __u32 sb_gpiointmask(void *sbh, __u32 mask, __u32 val, __u8 prio);