.. | .. |
---|
12 | 12 | * Date: May 21, 1996 |
---|
13 | 13 | * |
---|
14 | 14 | * Functions: |
---|
15 | | - * MACbIsRegBitsOn - Test if All test Bits On |
---|
16 | 15 | * MACbIsRegBitsOff - Test if All test Bits Off |
---|
17 | 16 | * MACbIsIntDisable - Test if MAC interrupt disable |
---|
18 | 17 | * MACvSetShortRetryLimit - Set 802.11 Short Retry limit |
---|
.. | .. |
---|
41 | 40 | |
---|
42 | 41 | #include "tmacro.h" |
---|
43 | 42 | #include "mac.h" |
---|
44 | | - |
---|
45 | | -/* |
---|
46 | | - * Description: |
---|
47 | | - * Test if all test bits on |
---|
48 | | - * |
---|
49 | | - * Parameters: |
---|
50 | | - * In: |
---|
51 | | - * io_base - Base Address for MAC |
---|
52 | | - * byRegOfs - Offset of MAC Register |
---|
53 | | - * byTestBits - Test bits |
---|
54 | | - * Out: |
---|
55 | | - * none |
---|
56 | | - * |
---|
57 | | - * Return Value: true if all test bits On; otherwise false |
---|
58 | | - * |
---|
59 | | - */ |
---|
60 | | -bool MACbIsRegBitsOn(struct vnt_private *priv, unsigned char byRegOfs, |
---|
61 | | - unsigned char byTestBits) |
---|
62 | | -{ |
---|
63 | | - void __iomem *io_base = priv->PortOffset; |
---|
64 | | - |
---|
65 | | - return (ioread8(io_base + byRegOfs) & byTestBits) == byTestBits; |
---|
66 | | -} |
---|
67 | 43 | |
---|
68 | 44 | /* |
---|
69 | 45 | * Description: |
---|
.. | .. |
---|
593 | 569 | iowrite32(curr_desc_addr, io_base + MAC_REG_RXDMAPTR1); |
---|
594 | 570 | if (org_dma_ctl & DMACTL_RUN) |
---|
595 | 571 | iowrite8(DMACTL_RUN, io_base + MAC_REG_RXDMACTL1); |
---|
596 | | - |
---|
597 | 572 | } |
---|
598 | 573 | |
---|
599 | 574 | /* |
---|