diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00pci.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00pci.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00pci.h b/drivers/net/wireless/rt2x00/rt2x00pci.h index 96a2082a3532..9c0a4d77bc1b 100644 --- a/drivers/net/wireless/rt2x00/rt2x00pci.h +++ b/drivers/net/wireless/rt2x00/rt2x00pci.h | |||
@@ -77,6 +77,24 @@ rt2x00pci_register_multiwrite(struct rt2x00_dev *rt2x00dev, | |||
77 | } | 77 | } |
78 | 78 | ||
79 | /** | 79 | /** |
80 | * rt2x00pci_regbusy_read - Read from register with busy check | ||
81 | * @rt2x00dev: Device pointer, see &struct rt2x00_dev. | ||
82 | * @offset: Register offset | ||
83 | * @field: Field to check if register is busy | ||
84 | * @reg: Pointer to where register contents should be stored | ||
85 | * | ||
86 | * This function will read the given register, and checks if the | ||
87 | * register is busy. If it is, it will sleep for a couple of | ||
88 | * microseconds before reading the register again. If the register | ||
89 | * is not read after a certain timeout, this function will return | ||
90 | * FALSE. | ||
91 | */ | ||
92 | int rt2x00pci_regbusy_read(struct rt2x00_dev *rt2x00dev, | ||
93 | const unsigned int offset, | ||
94 | const struct rt2x00_field32 field, | ||
95 | u32 *reg); | ||
96 | |||
97 | /** | ||
80 | * rt2x00pci_write_tx_data - Initialize data for TX operation | 98 | * rt2x00pci_write_tx_data - Initialize data for TX operation |
81 | * @entry: The entry where the frame is located | 99 | * @entry: The entry where the frame is located |
82 | * | 100 | * |