io_apic.c (140452) | io_apic.c (141616) |
---|---|
1/*- 2 * Copyright (c) 2003 John Baldwin <jhb@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2003 John Baldwin <jhb@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/i386/i386/io_apic.c 140452 2005-01-18 20:27:24Z jhb $"); | 31__FBSDID("$FreeBSD: head/sys/i386/i386/io_apic.c 141616 2005-02-10 12:02:37Z phk $"); |
32 33#include "opt_isa.h" 34#include "opt_no_mixed_mode.h" 35 36#include <sys/param.h> 37#include <sys/systm.h> 38#include <sys/bus.h> 39#include <sys/kernel.h> --- 20 unchanged lines hidden (view full) --- 60#define VECTOR_SMI 254 61#define VECTOR_DISABLED 255 62 63#define DEST_NONE -1 64#define DEST_EXTINT -2 65 66#define TODO printf("%s: not implemented!\n", __func__) 67 | 32 33#include "opt_isa.h" 34#include "opt_no_mixed_mode.h" 35 36#include <sys/param.h> 37#include <sys/systm.h> 38#include <sys/bus.h> 39#include <sys/kernel.h> --- 20 unchanged lines hidden (view full) --- 60#define VECTOR_SMI 254 61#define VECTOR_DISABLED 255 62 63#define DEST_NONE -1 64#define DEST_EXTINT -2 65 66#define TODO printf("%s: not implemented!\n", __func__) 67 |
68MALLOC_DEFINE(M_IOAPIC, "I/O APIC", "I/O APIC structures"); | 68static MALLOC_DEFINE(M_IOAPIC, "I/O APIC", "I/O APIC structures"); |
69 70/* 71 * New interrupt support code.. 72 * 73 * XXX: we really should have the interrupt cookie passed up from new-bus 74 * just be a int pin, and not map 1:1 to interrupt vector number but should 75 * use INTR_TYPE_FOO to set priority bands for device classes and do all the 76 * magic remapping of intpin to vector in here. For now we just cheat as on --- 774 unchanged lines hidden --- | 69 70/* 71 * New interrupt support code.. 72 * 73 * XXX: we really should have the interrupt cookie passed up from new-bus 74 * just be a int pin, and not map 1:1 to interrupt vector number but should 75 * use INTR_TYPE_FOO to set priority bands for device classes and do all the 76 * magic remapping of intpin to vector in here. For now we just cheat as on --- 774 unchanged lines hidden --- |