1
- /* SPDX-License-Identifier: GPL-2.0 */
1
+ // * SPDX-License-Identifier: GPL-2.0 */
2
2
3
3
/***************************************************************************
4
4
* copyright : (C) 2002 by Frank Mori Hess
@@ -78,48 +78,48 @@ enum {
78
78
};
79
79
80
80
// 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 ,
82
82
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 ,
84
84
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 ,
86
86
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 ,
90
90
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 ,
94
94
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 ,
97
97
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 ,
100
100
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 ,
102
102
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 ,
106
106
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 ,
108
108
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 ,
110
110
struct nec7210_priv * priv );
111
- unsigned int nec7210_t1_delay (gpib_board_t * board ,
111
+ unsigned int nec7210_t1_delay (struct gpib_board * board ,
112
112
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 );
114
114
115
115
// 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 );
118
118
unsigned int nec7210_set_reg_bits (struct nec7210_priv * priv , unsigned int reg ,
119
119
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 );
123
123
124
124
// wrappers for io functions
125
125
uint8_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,
134
134
unsigned int register_num );
135
135
136
136
// 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 ,
139
139
struct nec7210_priv * priv , int status1 , int status2 );
140
140
141
141
#endif //_NEC7210_H
0 commit comments