mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 17:12:06 +00:00
ca08de05ed
ext_int_info_t is no longer used in entry(64).S Instead do_extint is a C function that handles the hash search. As the structure is handled in C code, we can also remove the packed attribute to avoid alignment issues. (Currently there is no alignment problem in ext_int_info_t, even if packet) Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
33 lines
876 B
C
33 lines
876 B
C
#ifndef _S390_EXTINT_H
|
|
#define _S390_EXTINT_H
|
|
|
|
/*
|
|
* include/asm-s390/s390_ext.h
|
|
*
|
|
* S390 version
|
|
* Copyright IBM Corp. 1999,2007
|
|
* Author(s): Holger Smolinski (Holger.Smolinski@de.ibm.com),
|
|
* Martin Schwidefsky (schwidefsky@de.ibm.com)
|
|
*/
|
|
|
|
#include <linux/types.h>
|
|
|
|
typedef void (*ext_int_handler_t)(__u16 code);
|
|
|
|
typedef struct ext_int_info_t {
|
|
struct ext_int_info_t *next;
|
|
ext_int_handler_t handler;
|
|
__u16 code;
|
|
} ext_int_info_t;
|
|
|
|
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
|