@@ -25,7 +25,7 @@ MODULE_DESCRIPTION("GPIB driver for CEC PCI and PCMCIA boards");
2525
2626static irqreturn_t cec_interrupt (int irq , void * arg )
2727{
28- gpib_board_t * board = arg ;
28+ struct gpib_board * board = arg ;
2929 struct cec_priv * priv = board -> private_data ;
3030 unsigned long flags ;
3131 irqreturn_t retval ;
@@ -40,147 +40,148 @@ static irqreturn_t cec_interrupt(int irq, void *arg)
4040#define CEC_DEV_ID 0x5cec
4141#define CEC_SUBID 0x9050
4242
43- static int cec_pci_attach (gpib_board_t * board , const gpib_board_config_t * config );
43+ static int cec_pci_attach (struct gpib_board * board , const gpib_board_config_t * config );
4444
45- static void cec_pci_detach (gpib_board_t * board );
45+ static void cec_pci_detach (struct gpib_board * board );
4646
4747// wrappers for interface functions
48- static int cec_read (gpib_board_t * board , uint8_t * buffer , size_t length , int * end ,
48+ static int cec_read (struct gpib_board * board , uint8_t * buffer , size_t length , int * end ,
4949 size_t * bytes_read )
5050{
5151 struct cec_priv * priv = board -> private_data ;
5252
5353 return nec7210_read (board , & priv -> nec7210_priv , buffer , length , end , bytes_read );
5454}
5555
56- static int cec_write (gpib_board_t * board , uint8_t * buffer , size_t length , int send_eoi ,
56+ static int cec_write (struct gpib_board * board , uint8_t * buffer , size_t length , int send_eoi ,
5757 size_t * bytes_written )
5858{
5959 struct cec_priv * priv = board -> private_data ;
6060
6161 return nec7210_write (board , & priv -> nec7210_priv , buffer , length , send_eoi , bytes_written );
6262}
6363
64- static int cec_command (gpib_board_t * board , uint8_t * buffer , size_t length , size_t * bytes_written )
64+ static int cec_command (struct gpib_board * board , uint8_t * buffer ,
65+ size_t length , size_t * bytes_written )
6566{
6667 struct cec_priv * priv = board -> private_data ;
6768
6869 return nec7210_command (board , & priv -> nec7210_priv , buffer , length , bytes_written );
6970}
7071
71- static int cec_take_control (gpib_board_t * board , int synchronous )
72+ static int cec_take_control (struct gpib_board * board , int synchronous )
7273{
7374 struct cec_priv * priv = board -> private_data ;
7475
7576 return nec7210_take_control (board , & priv -> nec7210_priv , synchronous );
7677}
7778
78- static int cec_go_to_standby (gpib_board_t * board )
79+ static int cec_go_to_standby (struct gpib_board * board )
7980{
8081 struct cec_priv * priv = board -> private_data ;
8182
8283 return nec7210_go_to_standby (board , & priv -> nec7210_priv );
8384}
8485
85- static void cec_request_system_control (gpib_board_t * board , int request_control )
86+ static void cec_request_system_control (struct gpib_board * board , int request_control )
8687{
8788 struct cec_priv * priv = board -> private_data ;
8889
8990 nec7210_request_system_control (board , & priv -> nec7210_priv , request_control );
9091}
9192
92- static void cec_interface_clear (gpib_board_t * board , int assert )
93+ static void cec_interface_clear (struct gpib_board * board , int assert )
9394{
9495 struct cec_priv * priv = board -> private_data ;
9596
9697 nec7210_interface_clear (board , & priv -> nec7210_priv , assert );
9798}
9899
99- static void cec_remote_enable (gpib_board_t * board , int enable )
100+ static void cec_remote_enable (struct gpib_board * board , int enable )
100101{
101102 struct cec_priv * priv = board -> private_data ;
102103
103104 nec7210_remote_enable (board , & priv -> nec7210_priv , enable );
104105}
105106
106- static int cec_enable_eos (gpib_board_t * board , uint8_t eos_byte , int compare_8_bits )
107+ static int cec_enable_eos (struct gpib_board * board , uint8_t eos_byte , int compare_8_bits )
107108{
108109 struct cec_priv * priv = board -> private_data ;
109110
110111 return nec7210_enable_eos (board , & priv -> nec7210_priv , eos_byte , compare_8_bits );
111112}
112113
113- static void cec_disable_eos (gpib_board_t * board )
114+ static void cec_disable_eos (struct gpib_board * board )
114115{
115116 struct cec_priv * priv = board -> private_data ;
116117
117118 nec7210_disable_eos (board , & priv -> nec7210_priv );
118119}
119120
120- static unsigned int cec_update_status (gpib_board_t * board , unsigned int clear_mask )
121+ static unsigned int cec_update_status (struct gpib_board * board , unsigned int clear_mask )
121122{
122123 struct cec_priv * priv = board -> private_data ;
123124
124125 return nec7210_update_status (board , & priv -> nec7210_priv , clear_mask );
125126}
126127
127- static int cec_primary_address (gpib_board_t * board , unsigned int address )
128+ static int cec_primary_address (struct gpib_board * board , unsigned int address )
128129{
129130 struct cec_priv * priv = board -> private_data ;
130131
131132 return nec7210_primary_address (board , & priv -> nec7210_priv , address );
132133}
133134
134- static int cec_secondary_address (gpib_board_t * board , unsigned int address , int enable )
135+ static int cec_secondary_address (struct gpib_board * board , unsigned int address , int enable )
135136{
136137 struct cec_priv * priv = board -> private_data ;
137138
138139 return nec7210_secondary_address (board , & priv -> nec7210_priv , address , enable );
139140}
140141
141- static int cec_parallel_poll (gpib_board_t * board , uint8_t * result )
142+ static int cec_parallel_poll (struct gpib_board * board , uint8_t * result )
142143{
143144 struct cec_priv * priv = board -> private_data ;
144145
145146 return nec7210_parallel_poll (board , & priv -> nec7210_priv , result );
146147}
147148
148- static void cec_parallel_poll_configure (gpib_board_t * board , uint8_t config )
149+ static void cec_parallel_poll_configure (struct gpib_board * board , uint8_t config )
149150{
150151 struct cec_priv * priv = board -> private_data ;
151152
152153 nec7210_parallel_poll_configure (board , & priv -> nec7210_priv , config );
153154}
154155
155- static void cec_parallel_poll_response (gpib_board_t * board , int ist )
156+ static void cec_parallel_poll_response (struct gpib_board * board , int ist )
156157{
157158 struct cec_priv * priv = board -> private_data ;
158159
159160 nec7210_parallel_poll_response (board , & priv -> nec7210_priv , ist );
160161}
161162
162- static void cec_serial_poll_response (gpib_board_t * board , uint8_t status )
163+ static void cec_serial_poll_response (struct gpib_board * board , uint8_t status )
163164{
164165 struct cec_priv * priv = board -> private_data ;
165166
166167 nec7210_serial_poll_response (board , & priv -> nec7210_priv , status );
167168}
168169
169- static uint8_t cec_serial_poll_status (gpib_board_t * board )
170+ static uint8_t cec_serial_poll_status (struct gpib_board * board )
170171{
171172 struct cec_priv * priv = board -> private_data ;
172173
173174 return nec7210_serial_poll_status (board , & priv -> nec7210_priv );
174175}
175176
176- static unsigned int cec_t1_delay (gpib_board_t * board , unsigned int nano_sec )
177+ static unsigned int cec_t1_delay (struct gpib_board * board , unsigned int nano_sec )
177178{
178179 struct cec_priv * priv = board -> private_data ;
179180
180181 return nec7210_t1_delay (board , & priv -> nec7210_priv , nano_sec );
181182}
182183
183- static void cec_return_to_local (gpib_board_t * board )
184+ static void cec_return_to_local (struct gpib_board * board )
184185{
185186 struct cec_priv * priv = board -> private_data ;
186187
@@ -215,7 +216,7 @@ static gpib_interface_t cec_pci_interface = {
215216 .return_to_local = cec_return_to_local ,
216217};
217218
218- static int cec_allocate_private (gpib_board_t * board )
219+ static int cec_allocate_private (struct gpib_board * board )
219220{
220221 struct cec_priv * priv ;
221222
@@ -228,13 +229,13 @@ static int cec_allocate_private(gpib_board_t *board)
228229 return 0 ;
229230}
230231
231- static void cec_free_private (gpib_board_t * board )
232+ static void cec_free_private (struct gpib_board * board )
232233{
233234 kfree (board -> private_data );
234235 board -> private_data = NULL ;
235236}
236237
237- static int cec_generic_attach (gpib_board_t * board )
238+ static int cec_generic_attach (struct gpib_board * board )
238239{
239240 struct cec_priv * cec_priv ;
240241 struct nec7210_priv * nec_priv ;
@@ -252,7 +253,7 @@ static int cec_generic_attach(gpib_board_t *board)
252253 return 0 ;
253254}
254255
255- static void cec_init (struct cec_priv * cec_priv , const gpib_board_t * board )
256+ static void cec_init (struct cec_priv * cec_priv , const struct gpib_board * board )
256257{
257258 struct nec7210_priv * nec_priv = & cec_priv -> nec7210_priv ;
258259
@@ -264,7 +265,7 @@ static void cec_init(struct cec_priv *cec_priv, const gpib_board_t *board)
264265 nec7210_board_online (nec_priv , board );
265266}
266267
267- static int cec_pci_attach (gpib_board_t * board , const gpib_board_config_t * config )
268+ static int cec_pci_attach (struct gpib_board * board , const gpib_board_config_t * config )
268269{
269270 struct cec_priv * cec_priv ;
270271 struct nec7210_priv * nec_priv ;
@@ -322,7 +323,7 @@ static int cec_pci_attach(gpib_board_t *board, const gpib_board_config_t *config
322323 return 0 ;
323324}
324325
325- static void cec_pci_detach (gpib_board_t * board )
326+ static void cec_pci_detach (struct gpib_board * board )
326327{
327328 struct cec_priv * cec_priv = board -> private_data ;
328329 struct nec7210_priv * nec_priv ;
0 commit comments