Skip to content

Commit a3d0d4d

Browse files
author
Dominik Brodowski
committed
pcmcia: move local definitions out of include/pcmcia/cs.h
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
1 parent 90abdc3 commit a3d0d4d

3 files changed

Lines changed: 6 additions & 19 deletions

File tree

‎drivers/pcmcia/cistpl.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ static const u_int exponent[] = {
5353
/* Upper limit on reasonable # of tuples */
5454
#define MAX_TUPLES 200
5555

56+
/* Bits in IRQInfo1 field */
57+
#define IRQ_INFO2_VALID 0x10
58+
5659
/* 16-bit CIS? */
5760
static int cis_width;
5861
module_param(cis_width, int, 0444);

‎drivers/pcmcia/cs_internal.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
/* Flags in client state */
2727
#define CLIENT_WIN_REQ(i) (0x1<<(i))
2828

29+
/* Flag to access all functions */
30+
#define BIND_FN_ALL 0xff
31+
2932
/* Each card function gets one of these guys */
3033
typedef struct config_t {
3134
struct kref ref;

‎include/pcmcia/cs.h‎

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,6 @@ typedef struct config_req_t {
5656
#define INT_CARDBUS 0x04
5757
#define INT_ZOOMED_VIDEO 0x08
5858

59-
/* Bits in IRQInfo1 field */
60-
#define IRQ_NMI_ID 0x01
61-
#define IRQ_IOCK_ID 0x02
62-
#define IRQ_BERR_ID 0x04
63-
#define IRQ_VEND_ID 0x08
64-
#define IRQ_INFO2_VALID 0x10
65-
#define IRQ_LEVEL_ID 0x20
66-
#define IRQ_PULSE_ID 0x40
67-
#define IRQ_SHARE_ID 0x80
68-
6959
/* Configuration registers present */
7060
#define PRESENT_OPTION 0x001
7161
#define PRESENT_STATUS 0x002
@@ -84,12 +74,6 @@ typedef struct memreq_t {
8474
u_short Page;
8575
} memreq_t;
8676

87-
/* For ModifyWindow */
88-
typedef struct modwin_t {
89-
u_int Attributes;
90-
u_int AccessSpeed;
91-
} modwin_t;
92-
9377
/* For RequestWindow */
9478
typedef struct win_req_t {
9579
u_int Attributes;
@@ -121,7 +105,4 @@ typedef struct win_req_t {
121105
#define WIN_BAR_MASK 0xe000
122106
#define WIN_BAR_SHIFT 13
123107

124-
/* Flag to bind to all functions */
125-
#define BIND_FN_ALL 0xff
126-
127108
#endif /* _LINUX_CS_H */

0 commit comments

Comments
 (0)