| | 193 | /* |
|---|
| | 194 | * Reject new MAC revisions if HAL doesn't support AR2425. Ideally, it could |
|---|
| | 195 | * be done in the PCI ID table, but AR2424 and AR2425 share the same vendor ID |
|---|
| | 196 | * 168c:001c. |
|---|
| | 197 | */ |
|---|
| | 198 | #ifndef AH_SUPPORT_2425 |
|---|
| | 199 | #define AR5K_SREV 0x4020 /* MAC revision */ |
|---|
| | 200 | #define AR5K_SREV_CUTOFF 0xE0 /* Cutoff revision */ |
|---|
| | 201 | { |
|---|
| | 202 | u_int32_t mac_rev = readl(mem + AR5K_SREV); |
|---|
| | 203 | if (mac_rev > AR5K_SREV_CUTOFF) |
|---|
| | 204 | { |
|---|
| | 205 | printk(KERN_ERR "%s: HAL doesn't support MAC revision " |
|---|
| | 206 | "0x%02x\n", dev_info, mac_rev); |
|---|
| | 207 | goto bad2; |
|---|
| | 208 | } |
|---|
| | 209 | } |
|---|
| | 210 | #endif |
|---|
| | 211 | |
|---|