2 * arch/s390/kernel/s390dyn.h
3 * S/390 data definitions for dynamic device attachment
6 * Copyright (C) 2000 IBM Deutschland Entwicklung GmbH, IBM Corporation
7 * Author(s): Ingo Adlung (adlung@de.ibm.com)
15 typedef int (* oper_handler_func_t
)( int irq
,
16 struct _devreg
*dreg
);
17 typedef void (* io_handler_func_t
) ( int irq
,
19 typedef void ( * not_oper_handler_func_t
)( int irq
,
22 typedef struct _devreg
{
29 } hc
; /* has controller info */
36 } hnc
; /* has no controller info */
40 oper_handler_func_t oper_func
;
45 #define DEVREG_EXACT_MATCH 0x00000001
46 #define DEVREG_MATCH_DEV_TYPE 0x00000002
47 #define DEVREG_MATCH_CU_TYPE 0x00000004
48 #define DEVREG_NO_CU_INFO 0x00000008
51 int s390_device_register ( devreg_t
*drinfo
);
52 int s390_device_deregister ( devreg_t
*dreg
);
53 int s390_request_irq_special( int irq
,
54 io_handler_func_t io_handler
,
55 not_oper_handler_func_t not_oper_handler
,
56 unsigned long irqflags
,
60 #endif /* __s390dyn */