Deleted Added
full compact
pci_pir.c (139790) pci_pir.c (141616)
1/*-
2 * Copyright (c) 1997, Stefan Esser <se@freebsd.org>
3 * Copyright (c) 2000, Michael Smith <msmith@freebsd.org>
4 * Copyright (c) 2000, BSDi
5 * Copyright (c) 2004, John Baldwin <jhb@FreeBSD.org>
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 14 unchanged lines hidden (view full) ---

23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1997, Stefan Esser <se@freebsd.org>
3 * Copyright (c) 2000, Michael Smith <msmith@freebsd.org>
4 * Copyright (c) 2000, BSDi
5 * Copyright (c) 2004, John Baldwin <jhb@FreeBSD.org>
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 14 unchanged lines hidden (view full) ---

23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/i386/pci/pci_pir.c 139790 2005-01-06 22:18:23Z imp $");
31__FBSDID("$FreeBSD: head/sys/i386/pci/pci_pir.c 141616 2005-02-10 12:02:37Z phk $");
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/bus.h>
36#include <sys/kernel.h>
37#include <sys/malloc.h>
38#include <sys/module.h>
39#include <sys/sysctl.h>

--- 54 unchanged lines hidden (view full) ---

94static void pci_pir_parse(void);
95static void pci_pir_print_intpin(struct PIR_entry *entry,
96 struct PIR_intpin *intpin, void *arg);
97static void pci_pir_print_table(void);
98static uint8_t pci_pir_search_irq(int bus, int device, int pin);
99static int pci_pir_valid_irq(struct pci_link *pci_link, int irq);
100static void pci_pir_walk_table(pir_entry_handler *handler, void *arg);
101
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/bus.h>
36#include <sys/kernel.h>
37#include <sys/malloc.h>
38#include <sys/module.h>
39#include <sys/sysctl.h>

--- 54 unchanged lines hidden (view full) ---

94static void pci_pir_parse(void);
95static void pci_pir_print_intpin(struct PIR_entry *entry,
96 struct PIR_intpin *intpin, void *arg);
97static void pci_pir_print_table(void);
98static uint8_t pci_pir_search_irq(int bus, int device, int pin);
99static int pci_pir_valid_irq(struct pci_link *pci_link, int irq);
100static void pci_pir_walk_table(pir_entry_handler *handler, void *arg);
101
102MALLOC_DEFINE(M_PIR, "$PIR", "$PIR structures");
102static MALLOC_DEFINE(M_PIR, "$PIR", "$PIR structures");
103
104static struct PIR_table *pci_route_table;
105static device_t pir_device;
106static int pci_route_count, pir_bios_irqs, pir_parsed;
107static TAILQ_HEAD(, pci_link) pci_links;
108static int pir_interrupt_weight[NUM_ISA_INTERRUPTS];
109
110/* sysctl vars */

--- 638 unchanged lines hidden ---
103
104static struct PIR_table *pci_route_table;
105static device_t pir_device;
106static int pci_route_count, pir_bios_irqs, pir_parsed;
107static TAILQ_HEAD(, pci_link) pci_links;
108static int pir_interrupt_weight[NUM_ISA_INTERRUPTS];
109
110/* sysctl vars */

--- 638 unchanged lines hidden ---