aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2010-07-24 11:43:10 -0400
committerDominik Brodowski <linux@dominikbrodowski.net>2010-08-03 03:04:13 -0400
commita3d0d4d8dd45779b6e174a8567ffb9b485e472af (patch)
tree0b826ed221d8ce2f2c00a758e336470791f9386e
parent90abdc3b973229bae98dd96649d9f7106cc177a4 (diff)
pcmcia: move local definitions out of include/pcmcia/cs.h
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
-rw-r--r--drivers/pcmcia/cistpl.c3
-rw-r--r--drivers/pcmcia/cs_internal.h3
-rw-r--r--include/pcmcia/cs.h19
3 files changed, 6 insertions, 19 deletions
diff --git a/drivers/pcmcia/cistpl.c b/drivers/pcmcia/cistpl.c
index 1733fab469a1..91414a0ddc44 100644
--- a/drivers/pcmcia/cistpl.c
+++ b/drivers/pcmcia/cistpl.c
@@ -53,6 +53,9 @@ static const u_int exponent[] = {
53/* Upper limit on reasonable # of tuples */ 53/* Upper limit on reasonable # of tuples */
54#define MAX_TUPLES 200 54#define MAX_TUPLES 200
55 55
56/* Bits in IRQInfo1 field */
57#define IRQ_INFO2_VALID 0x10
58
56/* 16-bit CIS? */ 59/* 16-bit CIS? */
57static int cis_width; 60static int cis_width;
58module_param(cis_width, int, 0444); 61module_param(cis_width, int, 0444);
diff --git a/drivers/pcmcia/cs_internal.h b/drivers/pcmcia/cs_internal.h
index a85558fc71f3..511ac753b9d9 100644
--- a/drivers/pcmcia/cs_internal.h
+++ b/drivers/pcmcia/cs_internal.h
@@ -26,6 +26,9 @@
26/* Flags in client state */ 26/* Flags in client state */
27#define CLIENT_WIN_REQ(i) (0x1<<(i)) 27#define CLIENT_WIN_REQ(i) (0x1<<(i))
28 28
29/* Flag to access all functions */
30#define BIND_FN_ALL 0xff
31
29/* Each card function gets one of these guys */ 32/* Each card function gets one of these guys */
30typedef struct config_t { 33typedef struct config_t {
31 struct kref ref; 34 struct kref ref;
diff --git a/include/pcmcia/cs.h b/include/pcmcia/cs.h
index ad71bb5a8658..583a4e33039a 100644
--- a/include/pcmcia/cs.h
+++ b/include/pcmcia/cs.h
@@ -56,16 +56,6 @@ typedef struct config_req_t {
56#define INT_CARDBUS 0x04 56#define INT_CARDBUS 0x04
57#define INT_ZOOMED_VIDEO 0x08 57#define INT_ZOOMED_VIDEO 0x08
58 58
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
69/* Configuration registers present */ 59/* Configuration registers present */
70#define PRESENT_OPTION 0x001 60#define PRESENT_OPTION 0x001
71#define PRESENT_STATUS 0x002 61#define PRESENT_STATUS 0x002
@@ -84,12 +74,6 @@ typedef struct memreq_t {
84 u_short Page; 74 u_short Page;
85} memreq_t; 75} memreq_t;
86 76
87/* For ModifyWindow */
88typedef struct modwin_t {
89 u_int Attributes;
90 u_int AccessSpeed;
91} modwin_t;
92
93/* For RequestWindow */ 77/* For RequestWindow */
94typedef struct win_req_t { 78typedef struct win_req_t {
95 u_int Attributes; 79 u_int Attributes;
@@ -121,7 +105,4 @@ typedef struct win_req_t {
121#define WIN_BAR_MASK 0xe000 105#define WIN_BAR_MASK 0xe000
122#define WIN_BAR_SHIFT 13 106#define WIN_BAR_SHIFT 13
123 107
124/* Flag to bind to all functions */
125#define BIND_FN_ALL 0xff
126
127#endif /* _LINUX_CS_H */ 108#endif /* _LINUX_CS_H */