
This brings our tree to NetBSD 7.0, as found on -current on the 10-10-2015. This updates: - LLVM to 3.6.1 - GCC to GCC 5.1 - Replace minix/commands/zdump with usr.bin/zdump - external/bsd/libelf has moved to /external/bsd/elftoolchain/ - Import ctwm - Drop sprintf from libminc Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
42 lines
1010 B
C
42 lines
1010 B
C
/* $NetBSD: pic.h,v 1.8 2015/04/27 07:03:58 knakahara Exp $ */
|
|
|
|
#ifndef _X86_PIC_H
|
|
#define _X86_PIC_H
|
|
|
|
struct cpu_info;
|
|
|
|
/*
|
|
* Structure common to all PIC softcs
|
|
*/
|
|
struct pic {
|
|
const char *pic_name;
|
|
int pic_type;
|
|
int pic_vecbase;
|
|
int pic_apicid;
|
|
__cpu_simple_lock_t pic_lock;
|
|
void (*pic_hwmask)(struct pic *, int);
|
|
void (*pic_hwunmask)(struct pic *, int);
|
|
void (*pic_addroute)(struct pic *, struct cpu_info *, int, int, int);
|
|
void (*pic_delroute)(struct pic *, struct cpu_info *, int, int, int);
|
|
bool (*pic_trymask)(struct pic *, int);
|
|
struct intrstub *pic_level_stubs;
|
|
struct intrstub *pic_edge_stubs;
|
|
struct ioapic_softc *pic_ioapic; /* if pic_type == PIC_IOAPIC */
|
|
struct msipic *pic_msipic; /* if (pic_type == PIC_MSI) || (pic_type == PIC_MSIX) */
|
|
};
|
|
|
|
/*
|
|
* PIC types.
|
|
*/
|
|
#define PIC_I8259 0
|
|
#define PIC_IOAPIC 1
|
|
#define PIC_LAPIC 2
|
|
#define PIC_MSI 3
|
|
#define PIC_MSIX 4
|
|
#define PIC_SOFT 5
|
|
|
|
extern struct pic i8259_pic;
|
|
extern struct pic local_pic;
|
|
extern struct pic softintr_pic;
|
|
#endif
|