1- /* SPDX-License-Identifier: GPL-2.0 */
1+ // * SPDX-License-Identifier: GPL-2.0 */
22
33/***************************************************************************
44 * copyright : (C) 2002 by Frank Mori Hess
@@ -78,48 +78,48 @@ enum {
7878};
7979
8080// interface functions
81- int nec7210_read (gpib_board_t * board , struct nec7210_priv * priv , uint8_t * buffer ,
81+ int nec7210_read (struct gpib_board * board , struct nec7210_priv * priv , uint8_t * buffer ,
8282 size_t length , int * end , size_t * bytes_read );
83- int nec7210_write (gpib_board_t * board , struct nec7210_priv * priv , uint8_t * buffer ,
83+ int nec7210_write (struct gpib_board * board , struct nec7210_priv * priv , uint8_t * buffer ,
8484 size_t length , int send_eoi , size_t * bytes_written );
85- int nec7210_command (gpib_board_t * board , struct nec7210_priv * priv , uint8_t * buffer ,
85+ int nec7210_command (struct gpib_board * board , struct nec7210_priv * priv , uint8_t * buffer ,
8686 size_t length , size_t * bytes_written );
87- int nec7210_take_control (gpib_board_t * board , struct nec7210_priv * priv , int syncronous );
88- int nec7210_go_to_standby (gpib_board_t * board , struct nec7210_priv * priv );
89- void nec7210_request_system_control (gpib_board_t * board ,
87+ int nec7210_take_control (struct gpib_board * board , struct nec7210_priv * priv , int syncronous );
88+ int nec7210_go_to_standby (struct gpib_board * board , struct nec7210_priv * priv );
89+ void nec7210_request_system_control (struct gpib_board * board ,
9090 struct nec7210_priv * priv , int request_control );
91- void nec7210_interface_clear (gpib_board_t * board , struct nec7210_priv * priv , int assert );
92- void nec7210_remote_enable (gpib_board_t * board , struct nec7210_priv * priv , int enable );
93- int nec7210_enable_eos (gpib_board_t * board , struct nec7210_priv * priv , uint8_t eos_bytes ,
91+ void nec7210_interface_clear (struct gpib_board * board , struct nec7210_priv * priv , int assert );
92+ void nec7210_remote_enable (struct gpib_board * board , struct nec7210_priv * priv , int enable );
93+ int nec7210_enable_eos (struct gpib_board * board , struct nec7210_priv * priv , uint8_t eos_bytes ,
9494 int compare_8_bits );
95- void nec7210_disable_eos (gpib_board_t * board , struct nec7210_priv * priv );
96- unsigned int nec7210_update_status (gpib_board_t * board , struct nec7210_priv * priv ,
95+ void nec7210_disable_eos (struct gpib_board * board , struct nec7210_priv * priv );
96+ unsigned int nec7210_update_status (struct gpib_board * board , struct nec7210_priv * priv ,
9797 unsigned int clear_mask );
98- unsigned int nec7210_update_status_nolock (gpib_board_t * board , struct nec7210_priv * priv );
99- int nec7210_primary_address (const gpib_board_t * board ,
98+ unsigned int nec7210_update_status_nolock (struct gpib_board * board , struct nec7210_priv * priv );
99+ int nec7210_primary_address (const struct gpib_board * board ,
100100 struct nec7210_priv * priv , unsigned int address );
101- int nec7210_secondary_address (const gpib_board_t * board , struct nec7210_priv * priv ,
101+ int nec7210_secondary_address (const struct gpib_board * board , struct nec7210_priv * priv ,
102102 unsigned int address , int enable );
103- int nec7210_parallel_poll (gpib_board_t * board , struct nec7210_priv * priv , uint8_t * result );
104- void nec7210_serial_poll_response (gpib_board_t * board , struct nec7210_priv * priv , uint8_t status );
105- void nec7210_parallel_poll_configure (gpib_board_t * board ,
103+ int nec7210_parallel_poll (struct gpib_board * board , struct nec7210_priv * priv , uint8_t * result );
104+ void nec7210_serial_poll_response (struct gpib_board * board , struct nec7210_priv * priv , uint8_t status );
105+ void nec7210_parallel_poll_configure (struct gpib_board * board ,
106106 struct nec7210_priv * priv , unsigned int configuration );
107- void nec7210_parallel_poll_response (gpib_board_t * board ,
107+ void nec7210_parallel_poll_response (struct gpib_board * board ,
108108 struct nec7210_priv * priv , int ist );
109- uint8_t nec7210_serial_poll_status (gpib_board_t * board ,
109+ uint8_t nec7210_serial_poll_status (struct gpib_board * board ,
110110 struct nec7210_priv * priv );
111- unsigned int nec7210_t1_delay (gpib_board_t * board ,
111+ unsigned int nec7210_t1_delay (struct gpib_board * board ,
112112 struct nec7210_priv * priv , unsigned int nano_sec );
113- void nec7210_return_to_local (const gpib_board_t * board , struct nec7210_priv * priv );
113+ void nec7210_return_to_local (const struct gpib_board * board , struct nec7210_priv * priv );
114114
115115// utility functions
116- void nec7210_board_reset (struct nec7210_priv * priv , const gpib_board_t * board );
117- void nec7210_board_online (struct nec7210_priv * priv , const gpib_board_t * board );
116+ void nec7210_board_reset (struct nec7210_priv * priv , const struct gpib_board * board );
117+ void nec7210_board_online (struct nec7210_priv * priv , const struct gpib_board * board );
118118unsigned int nec7210_set_reg_bits (struct nec7210_priv * priv , unsigned int reg ,
119119 unsigned int mask , unsigned int bits );
120- void nec7210_set_handshake_mode (gpib_board_t * board , struct nec7210_priv * priv , int mode );
121- void nec7210_release_rfd_holdoff (gpib_board_t * board , struct nec7210_priv * priv );
122- uint8_t nec7210_read_data_in (gpib_board_t * board , struct nec7210_priv * priv , int * end );
120+ void nec7210_set_handshake_mode (struct gpib_board * board , struct nec7210_priv * priv , int mode );
121+ void nec7210_release_rfd_holdoff (struct gpib_board * board , struct nec7210_priv * priv );
122+ uint8_t nec7210_read_data_in (struct gpib_board * board , struct nec7210_priv * priv , int * end );
123123
124124// wrappers for io functions
125125uint8_t nec7210_ioport_read_byte (struct nec7210_priv * priv , unsigned int register_num );
@@ -134,8 +134,8 @@ void nec7210_locking_iomem_write_byte(struct nec7210_priv *priv, uint8_t data,
134134 unsigned int register_num );
135135
136136// interrupt service routine
137- irqreturn_t nec7210_interrupt (gpib_board_t * board , struct nec7210_priv * priv );
138- irqreturn_t nec7210_interrupt_have_status (gpib_board_t * board ,
137+ irqreturn_t nec7210_interrupt (struct gpib_board * board , struct nec7210_priv * priv );
138+ irqreturn_t nec7210_interrupt_have_status (struct gpib_board * board ,
139139 struct nec7210_priv * priv , int status1 , int status2 );
140140
141141#endif //_NEC7210_H
0 commit comments