diff options
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00.h | 9 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00pci.h | 9 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00usb.h | 6 |
3 files changed, 9 insertions, 15 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index 1ddda729a483..c83dbaefd57a 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h | |||
@@ -857,6 +857,15 @@ struct rt2x00_dev { | |||
857 | }; | 857 | }; |
858 | 858 | ||
859 | /* | 859 | /* |
860 | * Register defines. | ||
861 | * Some registers require multiple attempts before success, | ||
862 | * in those cases REGISTER_BUSY_COUNT attempts should be | ||
863 | * taken with a REGISTER_BUSY_DELAY interval. | ||
864 | */ | ||
865 | #define REGISTER_BUSY_COUNT 5 | ||
866 | #define REGISTER_BUSY_DELAY 100 | ||
867 | |||
868 | /* | ||
860 | * Generic RF access. | 869 | * Generic RF access. |
861 | * The RF is being accessed by word index. | 870 | * The RF is being accessed by word index. |
862 | */ | 871 | */ |
diff --git a/drivers/net/wireless/rt2x00/rt2x00pci.h b/drivers/net/wireless/rt2x00/rt2x00pci.h index f5af4b40308d..ae33eebe9a6f 100644 --- a/drivers/net/wireless/rt2x00/rt2x00pci.h +++ b/drivers/net/wireless/rt2x00/rt2x00pci.h | |||
@@ -35,15 +35,6 @@ | |||
35 | #define PCI_DEVICE_DATA(__ops) .driver_data = (kernel_ulong_t)(__ops) | 35 | #define PCI_DEVICE_DATA(__ops) .driver_data = (kernel_ulong_t)(__ops) |
36 | 36 | ||
37 | /* | 37 | /* |
38 | * Register defines. | ||
39 | * Some registers require multiple attempts before success, | ||
40 | * in those cases REGISTER_BUSY_COUNT attempts should be | ||
41 | * taken with a REGISTER_BUSY_DELAY interval. | ||
42 | */ | ||
43 | #define REGISTER_BUSY_COUNT 5 | ||
44 | #define REGISTER_BUSY_DELAY 100 | ||
45 | |||
46 | /* | ||
47 | * Register access. | 38 | * Register access. |
48 | */ | 39 | */ |
49 | static inline void rt2x00pci_register_read(struct rt2x00_dev *rt2x00dev, | 40 | static inline void rt2x00pci_register_read(struct rt2x00_dev *rt2x00dev, |
diff --git a/drivers/net/wireless/rt2x00/rt2x00usb.h b/drivers/net/wireless/rt2x00/rt2x00usb.h index 212dec47119e..9943e428bc21 100644 --- a/drivers/net/wireless/rt2x00/rt2x00usb.h +++ b/drivers/net/wireless/rt2x00/rt2x00usb.h | |||
@@ -39,17 +39,11 @@ | |||
39 | #define USB_DEVICE_DATA(__ops) .driver_info = (kernel_ulong_t)(__ops) | 39 | #define USB_DEVICE_DATA(__ops) .driver_info = (kernel_ulong_t)(__ops) |
40 | 40 | ||
41 | /* | 41 | /* |
42 | * Register defines. | ||
43 | * Some registers require multiple attempts before success, | ||
44 | * in those cases REGISTER_BUSY_COUNT attempts should be | ||
45 | * taken with a REGISTER_BUSY_DELAY interval. | ||
46 | * For USB vendor requests we need to pass a timeout | 42 | * For USB vendor requests we need to pass a timeout |
47 | * time in ms, for this we use the REGISTER_TIMEOUT, | 43 | * time in ms, for this we use the REGISTER_TIMEOUT, |
48 | * however when loading firmware a higher value is | 44 | * however when loading firmware a higher value is |
49 | * required. In that case we use the REGISTER_TIMEOUT_FIRMWARE. | 45 | * required. In that case we use the REGISTER_TIMEOUT_FIRMWARE. |
50 | */ | 46 | */ |
51 | #define REGISTER_BUSY_COUNT 5 | ||
52 | #define REGISTER_BUSY_DELAY 100 | ||
53 | #define REGISTER_TIMEOUT 500 | 47 | #define REGISTER_TIMEOUT 500 |
54 | #define REGISTER_TIMEOUT_FIRMWARE 1000 | 48 | #define REGISTER_TIMEOUT_FIRMWARE 1000 |
55 | 49 | ||