From 1099a7e30b01c9055a970cfa8c289458f1eada0a Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Fri, 10 Jun 2011 00:04:47 +0200 Subject: [PATCH] compat: add bcma --- include/linux/compat-3.0.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/include/linux/compat-3.0.h b/include/linux/compat-3.0.h index 5d0509308897..667ea387561b 100644 --- a/include/linux/compat-3.0.h +++ b/include/linux/compat-3.0.h @@ -26,6 +26,26 @@ static inline int register_netdevice_name(struct net_device *dev) #define register_netdevice(dev) register_netdevice_name(dev) +/* BCMA core, see drivers/bcma/ */ +#ifndef BCMA_CORE +/* Broadcom's specific AMBA core, see drivers/bcma/ */ +struct bcma_device_id { + __u16 manuf; + __u16 id; + __u8 rev; + __u8 class; +}; +#define BCMA_CORE(_manuf, _id, _rev, _class) \ + { .manuf = _manuf, .id = _id, .rev = _rev, .class = _class, } +#define BCMA_CORETABLE_END \ + { 0, }, + +#define BCMA_ANY_MANUF 0xFFFF +#define BCMA_ANY_ID 0xFFFF +#define BCMA_ANY_REV 0xFF +#define BCMA_ANY_CLASS 0xFF +#endif /* BCMA_CORE */ + #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0)) */ #endif /* LINUX_3_0_COMPAT_H */ -- 2.30.2