2005-04-16 16:20:36 -06:00
|
|
|
#ifndef _S390_EXTINT_H
|
|
|
|
#define _S390_EXTINT_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* include/asm-s390/s390_ext.h
|
|
|
|
*
|
|
|
|
* S390 version
|
2007-10-12 08:11:36 -06:00
|
|
|
* Copyright IBM Corp. 1999,2007
|
2005-04-16 16:20:36 -06:00
|
|
|
* Author(s): Holger Smolinski (Holger.Smolinski@de.ibm.com),
|
|
|
|
* Martin Schwidefsky (schwidefsky@de.ibm.com)
|
|
|
|
*/
|
|
|
|
|
2007-07-27 04:29:15 -06:00
|
|
|
#include <linux/types.h>
|
|
|
|
|
2006-10-06 08:38:35 -06:00
|
|
|
typedef void (*ext_int_handler_t)(__u16 code);
|
2005-04-16 16:20:36 -06:00
|
|
|
|
|
|
|
typedef struct ext_int_info_t {
|
|
|
|
struct ext_int_info_t *next;
|
|
|
|
ext_int_handler_t handler;
|
|
|
|
__u16 code;
|
2007-10-12 08:11:36 -06:00
|
|
|
} ext_int_info_t;
|
2005-04-16 16:20:36 -06:00
|
|
|
|
|
|
|
extern ext_int_info_t *ext_int_hash[];
|
|
|
|
|
|
|
|
int register_external_interrupt(__u16 code, ext_int_handler_t handler);
|
|
|
|
int register_early_external_interrupt(__u16 code, ext_int_handler_t handler,
|
|
|
|
ext_int_info_t *info);
|
|
|
|
int unregister_external_interrupt(__u16 code, ext_int_handler_t handler);
|
|
|
|
int unregister_early_external_interrupt(__u16 code, ext_int_handler_t handler,
|
|
|
|
ext_int_info_t *info);
|
|
|
|
|
|
|
|
#endif
|