Skip to content

Commit 2889705

Browse files
Philipp Hortmanngregkh
authored andcommitted
staging: rtl8723bs: Remove unused macros in rtw_io.h
Remove unused macros. Signed-off-by: Philipp Hortmann <[email protected]> Link: https://lore.kernel.org/r/91e79b32292ba567c2ec624e130350a40a7866b5.1719155208.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 3c6d3e6 commit 2889705

File tree

1 file changed

+0
-57
lines changed
  • drivers/staging/rtl8723bs/include

1 file changed

+0
-57
lines changed

drivers/staging/rtl8723bs/include/rtw_io.h

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -8,70 +8,13 @@
88
#ifndef _RTW_IO_H_
99
#define _RTW_IO_H_
1010

11-
#define NUM_IOREQ 8
12-
13-
#define MAX_PROT_SZ (64-16)
14-
15-
#define _IOREADY 0
16-
#define _IO_WAIT_COMPLETE 1
17-
#define _IO_WAIT_RSP 2
18-
19-
/* IO COMMAND TYPE */
20-
#define _IOSZ_MASK_ (0x7F)
21-
#define _IO_WRITE_ BIT(7)
22-
#define _IO_FIXED_ BIT(8)
23-
#define _IO_BURST_ BIT(9)
24-
#define _IO_BYTE_ BIT(10)
25-
#define _IO_HW_ BIT(11)
26-
#define _IO_WORD_ BIT(12)
27-
#define _IO_SYNC_ BIT(13)
28-
#define _IO_CMDMASK_ (0x1F80)
29-
30-
3111
/*
3212
For prompt mode accessing, caller shall free io_req
3313
Otherwise, io_handler will free io_req
3414
*/
3515

36-
37-
38-
/* IO STATUS TYPE */
39-
#define _IO_ERR_ BIT(2)
40-
#define _IO_SUCCESS_ BIT(1)
41-
#define _IO_DONE_ BIT(0)
42-
43-
44-
#define IO_RD32 (_IO_SYNC_ | _IO_WORD_)
45-
#define IO_RD16 (_IO_SYNC_ | _IO_HW_)
46-
#define IO_RD8 (_IO_SYNC_ | _IO_BYTE_)
47-
48-
#define IO_RD32_ASYNC (_IO_WORD_)
49-
#define IO_RD16_ASYNC (_IO_HW_)
50-
#define IO_RD8_ASYNC (_IO_BYTE_)
51-
52-
#define IO_WR32 (_IO_WRITE_ | _IO_SYNC_ | _IO_WORD_)
53-
#define IO_WR16 (_IO_WRITE_ | _IO_SYNC_ | _IO_HW_)
54-
#define IO_WR8 (_IO_WRITE_ | _IO_SYNC_ | _IO_BYTE_)
55-
56-
#define IO_WR32_ASYNC (_IO_WRITE_ | _IO_WORD_)
57-
#define IO_WR16_ASYNC (_IO_WRITE_ | _IO_HW_)
58-
#define IO_WR8_ASYNC (_IO_WRITE_ | _IO_BYTE_)
59-
60-
/*
61-
62-
Only Sync. burst accessing is provided.
63-
64-
*/
65-
66-
#define IO_WR_BURST(x) (_IO_WRITE_ | _IO_SYNC_ | _IO_BURST_ | ((x) & _IOSZ_MASK_))
67-
#define IO_RD_BURST(x) (_IO_SYNC_ | _IO_BURST_ | ((x) & _IOSZ_MASK_))
68-
69-
70-
7116
/* below is for the intf_option bit defition... */
7217

73-
#define _INTF_ASYNC_ BIT(0) /* support async io */
74-
7518
struct intf_priv;
7619
struct intf_hdl;
7720
struct io_queue;

0 commit comments

Comments
 (0)