2222MODULE_LICENSE ("GPL" );
2323MODULE_DESCRIPTION ("GPIB driver for hp 82341a/b/c/d boards" );
2424
25- static unsigned short read_and_clear_event_status (gpib_board_t * board );
25+ static unsigned short read_and_clear_event_status (struct gpib_board * board );
2626static void set_transfer_counter (struct hp_82341_priv * hp_priv , int count );
2727static int read_transfer_counter (struct hp_82341_priv * hp_priv );
28- static int hp_82341_write (gpib_board_t * board , uint8_t * buffer , size_t length , int send_eoi ,
28+ static int hp_82341_write (struct gpib_board * board , uint8_t * buffer , size_t length , int send_eoi ,
2929 size_t * bytes_written );
3030static irqreturn_t hp_82341_interrupt (int irq , void * arg );
3131
32- static int hp_82341_accel_read (gpib_board_t * board , uint8_t * buffer , size_t length , int * end ,
32+ static int hp_82341_accel_read (struct gpib_board * board , uint8_t * buffer , size_t length , int * end ,
3333 size_t * bytes_read )
3434{
3535 struct hp_82341_priv * hp_priv = board -> private_data ;
@@ -147,7 +147,7 @@ static int hp_82341_accel_read(gpib_board_t *board, uint8_t *buffer, size_t leng
147147 return 0 ;
148148}
149149
150- static int restart_write_fifo (gpib_board_t * board , struct hp_82341_priv * hp_priv )
150+ static int restart_write_fifo (struct gpib_board * board , struct hp_82341_priv * hp_priv )
151151{
152152 struct tms9914_priv * tms_priv = & hp_priv -> tms9914_priv ;
153153
@@ -172,7 +172,7 @@ static int restart_write_fifo(gpib_board_t *board, struct hp_82341_priv *hp_priv
172172 return 0 ;
173173}
174174
175- static int hp_82341_accel_write (gpib_board_t * board , uint8_t * buffer , size_t length ,
175+ static int hp_82341_accel_write (struct gpib_board * board , uint8_t * buffer , size_t length ,
176176 int send_eoi , size_t * bytes_written )
177177{
178178 struct hp_82341_priv * hp_priv = board -> private_data ;
@@ -250,50 +250,50 @@ static int hp_82341_accel_write(gpib_board_t *board, uint8_t *buffer, size_t len
250250 return 0 ;
251251}
252252
253- static int hp_82341_attach (gpib_board_t * board , const gpib_board_config_t * config );
253+ static int hp_82341_attach (struct gpib_board * board , const gpib_board_config_t * config );
254254
255- static void hp_82341_detach (gpib_board_t * board );
255+ static void hp_82341_detach (struct gpib_board * board );
256256
257257// wrappers for interface functions
258- static int hp_82341_read (gpib_board_t * board , uint8_t * buffer , size_t length , int * end ,
258+ static int hp_82341_read (struct gpib_board * board , uint8_t * buffer , size_t length , int * end ,
259259 size_t * bytes_read )
260260{
261261 struct hp_82341_priv * priv = board -> private_data ;
262262
263263 return tms9914_read (board , & priv -> tms9914_priv , buffer , length , end , bytes_read );
264264}
265265
266- static int hp_82341_write (gpib_board_t * board , uint8_t * buffer , size_t length , int send_eoi ,
266+ static int hp_82341_write (struct gpib_board * board , uint8_t * buffer , size_t length , int send_eoi ,
267267 size_t * bytes_written )
268268{
269269 struct hp_82341_priv * priv = board -> private_data ;
270270
271271 return tms9914_write (board , & priv -> tms9914_priv , buffer , length , send_eoi , bytes_written );
272272}
273273
274- static int hp_82341_command (gpib_board_t * board , uint8_t * buffer , size_t length ,
274+ static int hp_82341_command (struct gpib_board * board , uint8_t * buffer , size_t length ,
275275 size_t * bytes_written )
276276{
277277 struct hp_82341_priv * priv = board -> private_data ;
278278
279279 return tms9914_command (board , & priv -> tms9914_priv , buffer , length , bytes_written );
280280}
281281
282- static int hp_82341_take_control (gpib_board_t * board , int synchronous )
282+ static int hp_82341_take_control (struct gpib_board * board , int synchronous )
283283{
284284 struct hp_82341_priv * priv = board -> private_data ;
285285
286286 return tms9914_take_control (board , & priv -> tms9914_priv , synchronous );
287287}
288288
289- static int hp_82341_go_to_standby (gpib_board_t * board )
289+ static int hp_82341_go_to_standby (struct gpib_board * board )
290290{
291291 struct hp_82341_priv * priv = board -> private_data ;
292292
293293 return tms9914_go_to_standby (board , & priv -> tms9914_priv );
294294}
295295
296- static void hp_82341_request_system_control (gpib_board_t * board , int request_control )
296+ static void hp_82341_request_system_control (struct gpib_board * board , int request_control )
297297{
298298 struct hp_82341_priv * priv = board -> private_data ;
299299
@@ -305,105 +305,105 @@ static void hp_82341_request_system_control(gpib_board_t *board, int request_con
305305 tms9914_request_system_control (board , & priv -> tms9914_priv , request_control );
306306}
307307
308- static void hp_82341_interface_clear (gpib_board_t * board , int assert )
308+ static void hp_82341_interface_clear (struct gpib_board * board , int assert )
309309{
310310 struct hp_82341_priv * priv = board -> private_data ;
311311
312312 tms9914_interface_clear (board , & priv -> tms9914_priv , assert );
313313}
314314
315- static void hp_82341_remote_enable (gpib_board_t * board , int enable )
315+ static void hp_82341_remote_enable (struct gpib_board * board , int enable )
316316{
317317 struct hp_82341_priv * priv = board -> private_data ;
318318
319319 tms9914_remote_enable (board , & priv -> tms9914_priv , enable );
320320}
321321
322- static int hp_82341_enable_eos (gpib_board_t * board , uint8_t eos_byte , int compare_8_bits )
322+ static int hp_82341_enable_eos (struct gpib_board * board , uint8_t eos_byte , int compare_8_bits )
323323{
324324 struct hp_82341_priv * priv = board -> private_data ;
325325
326326 return tms9914_enable_eos (board , & priv -> tms9914_priv , eos_byte , compare_8_bits );
327327}
328328
329- static void hp_82341_disable_eos (gpib_board_t * board )
329+ static void hp_82341_disable_eos (struct gpib_board * board )
330330{
331331 struct hp_82341_priv * priv = board -> private_data ;
332332
333333 tms9914_disable_eos (board , & priv -> tms9914_priv );
334334}
335335
336- static unsigned int hp_82341_update_status (gpib_board_t * board , unsigned int clear_mask )
336+ static unsigned int hp_82341_update_status (struct gpib_board * board , unsigned int clear_mask )
337337{
338338 struct hp_82341_priv * priv = board -> private_data ;
339339
340340 return tms9914_update_status (board , & priv -> tms9914_priv , clear_mask );
341341}
342342
343- static int hp_82341_primary_address (gpib_board_t * board , unsigned int address )
343+ static int hp_82341_primary_address (struct gpib_board * board , unsigned int address )
344344{
345345 struct hp_82341_priv * priv = board -> private_data ;
346346
347347 return tms9914_primary_address (board , & priv -> tms9914_priv , address );
348348}
349349
350- static int hp_82341_secondary_address (gpib_board_t * board , unsigned int address , int enable )
350+ static int hp_82341_secondary_address (struct gpib_board * board , unsigned int address , int enable )
351351{
352352 struct hp_82341_priv * priv = board -> private_data ;
353353
354354 return tms9914_secondary_address (board , & priv -> tms9914_priv , address , enable );
355355}
356356
357- static int hp_82341_parallel_poll (gpib_board_t * board , uint8_t * result )
357+ static int hp_82341_parallel_poll (struct gpib_board * board , uint8_t * result )
358358{
359359 struct hp_82341_priv * priv = board -> private_data ;
360360
361361 return tms9914_parallel_poll (board , & priv -> tms9914_priv , result );
362362}
363363
364- static void hp_82341_parallel_poll_configure (gpib_board_t * board , uint8_t config )
364+ static void hp_82341_parallel_poll_configure (struct gpib_board * board , uint8_t config )
365365{
366366 struct hp_82341_priv * priv = board -> private_data ;
367367
368368 tms9914_parallel_poll_configure (board , & priv -> tms9914_priv , config );
369369}
370370
371- static void hp_82341_parallel_poll_response (gpib_board_t * board , int ist )
371+ static void hp_82341_parallel_poll_response (struct gpib_board * board , int ist )
372372{
373373 struct hp_82341_priv * priv = board -> private_data ;
374374
375375 tms9914_parallel_poll_response (board , & priv -> tms9914_priv , ist );
376376}
377377
378- static void hp_82341_serial_poll_response (gpib_board_t * board , uint8_t status )
378+ static void hp_82341_serial_poll_response (struct gpib_board * board , uint8_t status )
379379{
380380 struct hp_82341_priv * priv = board -> private_data ;
381381
382382 tms9914_serial_poll_response (board , & priv -> tms9914_priv , status );
383383}
384384
385- static uint8_t hp_82341_serial_poll_status (gpib_board_t * board )
385+ static uint8_t hp_82341_serial_poll_status (struct gpib_board * board )
386386{
387387 struct hp_82341_priv * priv = board -> private_data ;
388388
389389 return tms9914_serial_poll_status (board , & priv -> tms9914_priv );
390390}
391391
392- static int hp_82341_line_status (const gpib_board_t * board )
392+ static int hp_82341_line_status (const struct gpib_board * board )
393393{
394394 struct hp_82341_priv * priv = board -> private_data ;
395395
396396 return tms9914_line_status (board , & priv -> tms9914_priv );
397397}
398398
399- static unsigned int hp_82341_t1_delay (gpib_board_t * board , unsigned int nano_sec )
399+ static unsigned int hp_82341_t1_delay (struct gpib_board * board , unsigned int nano_sec )
400400{
401401 struct hp_82341_priv * priv = board -> private_data ;
402402
403403 return tms9914_t1_delay (board , & priv -> tms9914_priv , nano_sec );
404404}
405405
406- static void hp_82341_return_to_local (gpib_board_t * board )
406+ static void hp_82341_return_to_local (struct gpib_board * board )
407407{
408408 struct hp_82341_priv * priv = board -> private_data ;
409409
@@ -465,15 +465,15 @@ static gpib_interface_t hp_82341_interface = {
465465 .return_to_local = hp_82341_return_to_local ,
466466};
467467
468- static int hp_82341_allocate_private (gpib_board_t * board )
468+ static int hp_82341_allocate_private (struct gpib_board * board )
469469{
470470 board -> private_data = kzalloc (sizeof (struct hp_82341_priv ), GFP_KERNEL );
471471 if (!board -> private_data )
472472 return - ENOMEM ;
473473 return 0 ;
474474}
475475
476- static void hp_82341_free_private (gpib_board_t * board )
476+ static void hp_82341_free_private (struct gpib_board * board )
477477{
478478 kfree (board -> private_data );
479479 board -> private_data = NULL ;
@@ -686,7 +686,7 @@ static int clear_xilinx(struct hp_82341_priv *hp_priv)
686686 return 0 ;
687687}
688688
689- static int hp_82341_attach (gpib_board_t * board , const gpib_board_config_t * config )
689+ static int hp_82341_attach (struct gpib_board * board , const gpib_board_config_t * config )
690690{
691691 struct hp_82341_priv * hp_priv ;
692692 struct tms9914_priv * tms_priv ;
@@ -778,7 +778,7 @@ static int hp_82341_attach(gpib_board_t *board, const gpib_board_config_t *confi
778778 return 0 ;
779779}
780780
781- static void hp_82341_detach (gpib_board_t * board )
781+ static void hp_82341_detach (struct gpib_board * board )
782782{
783783 struct hp_82341_priv * hp_priv = board -> private_data ;
784784 struct tms9914_priv * tms_priv ;
@@ -844,7 +844,7 @@ module_exit(hp_82341_exit_module);
844844/*
845845 * GPIB interrupt service routines
846846 */
847- static unsigned short read_and_clear_event_status (gpib_board_t * board )
847+ static unsigned short read_and_clear_event_status (struct gpib_board * board )
848848{
849849 struct hp_82341_priv * hp_priv = board -> private_data ;
850850 unsigned long flags ;
@@ -860,7 +860,7 @@ static unsigned short read_and_clear_event_status(gpib_board_t *board)
860860static irqreturn_t hp_82341_interrupt (int irq , void * arg )
861861{
862862 int status1 , status2 ;
863- gpib_board_t * board = arg ;
863+ struct gpib_board * board = arg ;
864864 struct hp_82341_priv * hp_priv = board -> private_data ;
865865 struct tms9914_priv * tms_priv = & hp_priv -> tms9914_priv ;
866866 unsigned long flags ;
0 commit comments