1 /* $NetBSD: pic.h,v 1.8 2015/04/27 07:03:58 knakahara Exp $ */
9 * Structure common to all PIC softcs
16 __cpu_simple_lock_t pic_lock
;
17 void (*pic_hwmask
)(struct pic
*, int);
18 void (*pic_hwunmask
)(struct pic
*, int);
19 void (*pic_addroute
)(struct pic
*, struct cpu_info
*, int, int, int);
20 void (*pic_delroute
)(struct pic
*, struct cpu_info
*, int, int, int);
21 bool (*pic_trymask
)(struct pic
*, int);
22 struct intrstub
*pic_level_stubs
;
23 struct intrstub
*pic_edge_stubs
;
24 struct ioapic_softc
*pic_ioapic
; /* if pic_type == PIC_IOAPIC */
25 struct msipic
*pic_msipic
; /* if (pic_type == PIC_MSI) || (pic_type == PIC_MSIX) */
38 extern struct pic i8259_pic
;
39 extern struct pic local_pic
;
40 extern struct pic softintr_pic
;