aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/ibmasm
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/ibmasm')
-rw-r--r--drivers/misc/ibmasm/ibmasm.h64
1 files changed, 32 insertions, 32 deletions
diff --git a/drivers/misc/ibmasm/ibmasm.h b/drivers/misc/ibmasm/ibmasm.h
index ec2d4dbc093b..de860bc6d3f5 100644
--- a/drivers/misc/ibmasm/ibmasm.h
+++ b/drivers/misc/ibmasm/ibmasm.h
@@ -163,55 +163,55 @@ struct service_processor {
163}; 163};
164 164
165/* command processing */ 165/* command processing */
166extern struct command *ibmasm_new_command(struct service_processor *sp, size_t buffer_size); 166struct command *ibmasm_new_command(struct service_processor *sp, size_t buffer_size);
167extern void ibmasm_exec_command(struct service_processor *sp, struct command *cmd); 167void ibmasm_exec_command(struct service_processor *sp, struct command *cmd);
168extern void ibmasm_wait_for_response(struct command *cmd, int timeout); 168void ibmasm_wait_for_response(struct command *cmd, int timeout);
169extern void ibmasm_receive_command_response(struct service_processor *sp, void *response, size_t size); 169void ibmasm_receive_command_response(struct service_processor *sp, void *response, size_t size);
170 170
171/* event processing */ 171/* event processing */
172extern int ibmasm_event_buffer_init(struct service_processor *sp); 172int ibmasm_event_buffer_init(struct service_processor *sp);
173extern void ibmasm_event_buffer_exit(struct service_processor *sp); 173void ibmasm_event_buffer_exit(struct service_processor *sp);
174extern void ibmasm_receive_event(struct service_processor *sp, void *data, unsigned int data_size); 174void ibmasm_receive_event(struct service_processor *sp, void *data, unsigned int data_size);
175extern void ibmasm_event_reader_register(struct service_processor *sp, struct event_reader *reader); 175void ibmasm_event_reader_register(struct service_processor *sp, struct event_reader *reader);
176extern void ibmasm_event_reader_unregister(struct service_processor *sp, struct event_reader *reader); 176void ibmasm_event_reader_unregister(struct service_processor *sp, struct event_reader *reader);
177extern int ibmasm_get_next_event(struct service_processor *sp, struct event_reader *reader); 177int ibmasm_get_next_event(struct service_processor *sp, struct event_reader *reader);
178extern void ibmasm_cancel_next_event(struct event_reader *reader); 178void ibmasm_cancel_next_event(struct event_reader *reader);
179 179
180/* heartbeat - from SP to OS */ 180/* heartbeat - from SP to OS */
181extern void ibmasm_register_panic_notifier(void); 181void ibmasm_register_panic_notifier(void);
182extern void ibmasm_unregister_panic_notifier(void); 182void ibmasm_unregister_panic_notifier(void);
183extern int ibmasm_heartbeat_init(struct service_processor *sp); 183int ibmasm_heartbeat_init(struct service_processor *sp);
184extern void ibmasm_heartbeat_exit(struct service_processor *sp); 184void ibmasm_heartbeat_exit(struct service_processor *sp);
185extern void ibmasm_receive_heartbeat(struct service_processor *sp, void *message, size_t size); 185void ibmasm_receive_heartbeat(struct service_processor *sp, void *message, size_t size);
186 186
187/* reverse heartbeat - from OS to SP */ 187/* reverse heartbeat - from OS to SP */
188extern void ibmasm_init_reverse_heartbeat(struct service_processor *sp, struct reverse_heartbeat *rhb); 188void ibmasm_init_reverse_heartbeat(struct service_processor *sp, struct reverse_heartbeat *rhb);
189extern int ibmasm_start_reverse_heartbeat(struct service_processor *sp, struct reverse_heartbeat *rhb); 189int ibmasm_start_reverse_heartbeat(struct service_processor *sp, struct reverse_heartbeat *rhb);
190extern void ibmasm_stop_reverse_heartbeat(struct reverse_heartbeat *rhb); 190void ibmasm_stop_reverse_heartbeat(struct reverse_heartbeat *rhb);
191 191
192/* dot commands */ 192/* dot commands */
193extern void ibmasm_receive_message(struct service_processor *sp, void *data, int data_size); 193void ibmasm_receive_message(struct service_processor *sp, void *data, int data_size);
194extern int ibmasm_send_driver_vpd(struct service_processor *sp); 194int ibmasm_send_driver_vpd(struct service_processor *sp);
195extern int ibmasm_send_os_state(struct service_processor *sp, int os_state); 195int ibmasm_send_os_state(struct service_processor *sp, int os_state);
196 196
197/* low level message processing */ 197/* low level message processing */
198extern int ibmasm_send_i2o_message(struct service_processor *sp); 198int ibmasm_send_i2o_message(struct service_processor *sp);
199extern irqreturn_t ibmasm_interrupt_handler(int irq, void * dev_id); 199irqreturn_t ibmasm_interrupt_handler(int irq, void * dev_id);
200 200
201/* remote console */ 201/* remote console */
202extern void ibmasm_handle_mouse_interrupt(struct service_processor *sp); 202void ibmasm_handle_mouse_interrupt(struct service_processor *sp);
203extern int ibmasm_init_remote_input_dev(struct service_processor *sp); 203int ibmasm_init_remote_input_dev(struct service_processor *sp);
204extern void ibmasm_free_remote_input_dev(struct service_processor *sp); 204void ibmasm_free_remote_input_dev(struct service_processor *sp);
205 205
206/* file system */ 206/* file system */
207extern int ibmasmfs_register(void); 207int ibmasmfs_register(void);
208extern void ibmasmfs_unregister(void); 208void ibmasmfs_unregister(void);
209extern void ibmasmfs_add_sp(struct service_processor *sp); 209void ibmasmfs_add_sp(struct service_processor *sp);
210 210
211/* uart */ 211/* uart */
212#ifdef CONFIG_SERIAL_8250 212#ifdef CONFIG_SERIAL_8250
213extern void ibmasm_register_uart(struct service_processor *sp); 213void ibmasm_register_uart(struct service_processor *sp);
214extern void ibmasm_unregister_uart(struct service_processor *sp); 214void ibmasm_unregister_uart(struct service_processor *sp);
215#else 215#else
216#define ibmasm_register_uart(sp) do { } while(0) 216#define ibmasm_register_uart(sp) do { } while(0)
217#define ibmasm_unregister_uart(sp) do { } while(0) 217#define ibmasm_unregister_uart(sp) do { } while(0)