diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index 84bd6f19acb0..e03d69975ea4 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h | |||
@@ -672,6 +672,12 @@ struct rt2x00_dev { | |||
672 | unsigned long flags; | 672 | unsigned long flags; |
673 | 673 | ||
674 | /* | 674 | /* |
675 | * Device information, Bus IRQ and name (PCI, SoC) | ||
676 | */ | ||
677 | int irq; | ||
678 | const char *name; | ||
679 | |||
680 | /* | ||
675 | * Chipset identification. | 681 | * Chipset identification. |
676 | */ | 682 | */ |
677 | struct rt2x00_chip chip; | 683 | struct rt2x00_chip chip; |
@@ -860,6 +866,18 @@ static inline void rt2x00_set_chip(struct rt2x00_dev *rt2x00dev, | |||
860 | rt2x00dev->chip.rev = rev; | 866 | rt2x00dev->chip.rev = rev; |
861 | } | 867 | } |
862 | 868 | ||
869 | static inline void rt2x00_set_chip_rt(struct rt2x00_dev *rt2x00dev, | ||
870 | const u16 rt) | ||
871 | { | ||
872 | rt2x00dev->chip.rt = rt; | ||
873 | } | ||
874 | |||
875 | static inline void rt2x00_set_chip_rf(struct rt2x00_dev *rt2x00dev, | ||
876 | const u16 rf, const u32 rev) | ||
877 | { | ||
878 | rt2x00_set_chip(rt2x00dev, rt2x00dev->chip.rt, rf, rev); | ||
879 | } | ||
880 | |||
863 | static inline char rt2x00_rt(const struct rt2x00_chip *chipset, const u16 chip) | 881 | static inline char rt2x00_rt(const struct rt2x00_chip *chipset, const u16 chip) |
864 | { | 882 | { |
865 | return (chipset->rt == chip); | 883 | return (chipset->rt == chip); |