diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2006-03-24 06:18:26 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-24 10:33:29 -0500 |
commit | 27c6e526f34760a9c48a90112242b7165064fa85 (patch) | |
tree | 40505dbe2ab69e7f8077c7473984deecff0203f3 /drivers/char/rio/daemon.h | |
parent | b6c6b6021ec735bd105e130ac1ee1606575f74c3 (diff) |
[PATCH] rio driver rework continued #1
More header cleanups, strip out typedefs and remove cruft. There are a lot of
magic macros that can go and also a great deal of abuse of volatile that is
not needed any more as this patch set cleans up the misuse of pointer access
to ISA and PCI space.
It now builds cleanly on 64bit, although there is more work left to do
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/rio/daemon.h')
-rw-r--r-- | drivers/char/rio/daemon.h | 67 |
1 files changed, 31 insertions, 36 deletions
diff --git a/drivers/char/rio/daemon.h b/drivers/char/rio/daemon.h index 28a991bd4fe6..5818a8aa46e0 100644 --- a/drivers/char/rio/daemon.h +++ b/drivers/char/rio/daemon.h | |||
@@ -45,15 +45,15 @@ static char *_daemon_h_sccs_ = "@(#)daemon.h 1.3"; | |||
45 | */ | 45 | */ |
46 | 46 | ||
47 | struct Error { | 47 | struct Error { |
48 | uint Error; | 48 | unsigned int Error; |
49 | uint Entry; | 49 | unsigned int Entry; |
50 | uint Other; | 50 | unsigned int Other; |
51 | }; | 51 | }; |
52 | 52 | ||
53 | struct DownLoad { | 53 | struct DownLoad { |
54 | char *DataP; | 54 | char *DataP; |
55 | uint Count; | 55 | unsigned int Count; |
56 | uint ProductCode; | 56 | unsigned int ProductCode; |
57 | }; | 57 | }; |
58 | 58 | ||
59 | /* | 59 | /* |
@@ -68,69 +68,64 @@ struct DownLoad { | |||
68 | #endif | 68 | #endif |
69 | 69 | ||
70 | struct PortSetup { | 70 | struct PortSetup { |
71 | uint From; /* Set/Clear XP & IXANY Control from this port.... */ | 71 | unsigned int From; /* Set/Clear XP & IXANY Control from this port.... */ |
72 | uint To; /* .... to this port */ | 72 | unsigned int To; /* .... to this port */ |
73 | uint XpCps; /* at this speed */ | 73 | unsigned int XpCps; /* at this speed */ |
74 | char XpOn[MAX_XP_CTRL_LEN]; /* this is the start string */ | 74 | char XpOn[MAX_XP_CTRL_LEN]; /* this is the start string */ |
75 | char XpOff[MAX_XP_CTRL_LEN]; /* this is the stop string */ | 75 | char XpOff[MAX_XP_CTRL_LEN]; /* this is the stop string */ |
76 | uchar IxAny; /* enable/disable IXANY */ | 76 | u8 IxAny; /* enable/disable IXANY */ |
77 | uchar IxOn; /* enable/disable IXON */ | 77 | u8 IxOn; /* enable/disable IXON */ |
78 | uchar Lock; /* lock port params */ | 78 | u8 Lock; /* lock port params */ |
79 | uchar Store; /* store params across closes */ | 79 | u8 Store; /* store params across closes */ |
80 | uchar Drain; /* close only when drained */ | 80 | u8 Drain; /* close only when drained */ |
81 | }; | 81 | }; |
82 | 82 | ||
83 | struct LpbReq { | 83 | struct LpbReq { |
84 | uint Host; | 84 | unsigned int Host; |
85 | uint Link; | 85 | unsigned int Link; |
86 | struct LPB *LpbP; | 86 | struct LPB *LpbP; |
87 | }; | 87 | }; |
88 | 88 | ||
89 | struct RupReq { | 89 | struct RupReq { |
90 | uint HostNum; | 90 | unsigned int HostNum; |
91 | uint RupNum; | 91 | unsigned int RupNum; |
92 | struct RUP *RupP; | 92 | struct RUP *RupP; |
93 | }; | 93 | }; |
94 | 94 | ||
95 | struct PortReq { | 95 | struct PortReq { |
96 | uint SysPort; | 96 | unsigned int SysPort; |
97 | struct Port *PortP; | 97 | struct Port *PortP; |
98 | }; | 98 | }; |
99 | 99 | ||
100 | struct StreamInfo { | 100 | struct StreamInfo { |
101 | uint SysPort; | 101 | unsigned int SysPort; |
102 | #if 0 | ||
103 | queue_t RQueue; | ||
104 | queue_t WQueue; | ||
105 | #else | ||
106 | int RQueue; | 102 | int RQueue; |
107 | int WQueue; | 103 | int WQueue; |
108 | #endif | ||
109 | }; | 104 | }; |
110 | 105 | ||
111 | struct HostReq { | 106 | struct HostReq { |
112 | uint HostNum; | 107 | unsigned int HostNum; |
113 | struct Host *HostP; | 108 | struct Host *HostP; |
114 | }; | 109 | }; |
115 | 110 | ||
116 | struct HostDpRam { | 111 | struct HostDpRam { |
117 | uint HostNum; | 112 | unsigned int HostNum; |
118 | struct DpRam *DpRamP; | 113 | struct DpRam *DpRamP; |
119 | }; | 114 | }; |
120 | 115 | ||
121 | struct DebugCtrl { | 116 | struct DebugCtrl { |
122 | uint SysPort; | 117 | unsigned int SysPort; |
123 | uint Debug; | 118 | unsigned int Debug; |
124 | uint Wait; | 119 | unsigned int Wait; |
125 | }; | 120 | }; |
126 | 121 | ||
127 | struct MapInfo { | 122 | struct MapInfo { |
128 | uint FirstPort; /* 8 ports, starting from this (tty) number */ | 123 | unsigned int FirstPort; /* 8 ports, starting from this (tty) number */ |
129 | uint RtaUnique; /* reside on this RTA (unique number) */ | 124 | unsigned int RtaUnique; /* reside on this RTA (unique number) */ |
130 | }; | 125 | }; |
131 | 126 | ||
132 | struct MapIn { | 127 | struct MapIn { |
133 | uint NumEntries; /* How many port sets are we mapping? */ | 128 | unsigned int NumEntries; /* How many port sets are we mapping? */ |
134 | struct MapInfo *MapInfoP; /* Pointer to (user space) info */ | 129 | struct MapInfo *MapInfoP; /* Pointer to (user space) info */ |
135 | }; | 130 | }; |
136 | 131 | ||
@@ -147,13 +142,13 @@ struct SpecialRupCmd { | |||
147 | }; | 142 | }; |
148 | 143 | ||
149 | struct IdentifyRta { | 144 | struct IdentifyRta { |
150 | ulong RtaUnique; | 145 | unsigned long RtaUnique; |
151 | uchar ID; | 146 | u8 ID; |
152 | }; | 147 | }; |
153 | 148 | ||
154 | struct KillNeighbour { | 149 | struct KillNeighbour { |
155 | ulong UniqueNum; | 150 | unsigned long UniqueNum; |
156 | uchar Link; | 151 | u8 Link; |
157 | }; | 152 | }; |
158 | 153 | ||
159 | struct rioVersion { | 154 | struct rioVersion { |