]> git.openfabrics.org - ~tnikolova/compat/.git/commitdiff
compat: add bcma
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 9 Jun 2011 22:04:47 +0000 (00:04 +0200)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 14 Jun 2011 18:10:03 +0000 (11:10 -0700)
include/linux/compat-3.0.h

index 5d0509308897734241c52c77805feff9826b3401..667ea387561b49489653c81a33cf36298f74cfb2 100644 (file)
@@ -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 */