Neither pci_dma64_available(), pci_probe_device(), pci_mapreg_map(9),
pci_find_rom(), pci_intr_map(9), pci_enumerate_bus(), nor the match predicate passed to pciide_compat_intr_establish() should ever modify their pci_attach_args argument, so make their pci_attach_args arguments const and deal with the fallout throughout the kernel. For the most part, these changes add a 'const' where there was no 'const' before, however, some drivers and MD code used to modify pci_attach_args. Now those drivers either copy their pci_attach_args and modify the copy, or refrain from modifying pci_attach_args: Xen: according to Manuel Bouyer, writing to pci_attach_args in pci_intr_map() was a leftover from Xen 2. Probably a bug. I stopped writing it. I have not tested this change. siside(4): sis_hostbr_match() needlessly wrote to pci_attach_args. Probably a bug. I use a temporary variable. I have not tested this change. slide(4): sl82c105_chip_map() overwrote the caller's pci_attach_args. Probably a bug. Use a local pci_attach_args. I have not tested this change. viaide(4): via_sata_chip_map() and via_sata_chip_map_new() overwrote the caller's pci_attach_args. Probably a bug. Make a local copy of the caller's pci_attach_args and modify the copy. I have not tested this change. While I'm here, make pci_mapreg_submap() static. With these changes in place, I have tested the compilation of these kernels: alpha GENERIC amd64 GENERIC XEN3_DOM0 arc GENERIC atari HADES MILAN-PCIIDE bebox GENERIC cats GENERIC cobalt GENERIC evbarm-eb NSLU2 evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE GUMSTIX HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321 IXDP425 IXM1200 KUROBOX_PRO LUBBOCK MARVELL_NAS NAPPI SHEEVAPLUG SMDK2800 TEAMASA_NPWR TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425 evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3 evbmips64-el XLSATX evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266 OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT hp700 GENERIC i386 ALL XEN3_DOM0 XEN3_DOMU ibmnws GENERIC macppc GENERIC mvmeppc GENERIC netwinder GENERIC ofppc GENERIC prep GENERIC sandpoint GENERIC sgimips GENERIC32_IP2x sparc GENERIC_SUN4U KRUPS sparc64 GENERIC As of Sun Apr 3 15:26:26 CDT 2011, I could not compile these kernels with or without my patches in place: ### evbmips-el GDIUM nbmake: nbmake: don't know how to make /home/dyoung/pristine-nbsd/src/sys/arch/mips/mips/softintr.c. Stop ### evbarm-el MPCSA_GENERIC src/sys/arch/evbarm/conf/MPCSA_GENERIC:318: ds1672rtc*: unknown device `ds1672rtc' ### ia64 GENERIC /tmp/genassym.28085/assym.c: In function 'f111': /tmp/genassym.28085/assym.c:67: error: invalid application of 'sizeof' to incomplete type 'struct pcb' /tmp/genassym.28085/assym.c:76: error: dereferencing pointer to incomplete type ### sgimips GENERIC32_IP3x crmfb.o: In function `crmfb_attach': crmfb.c:(.text+0x2304): undefined reference to `ddc_read_edid' crmfb.c:(.text+0x2304): relocation truncated to fit: R_MIPS_26 against `ddc_read_edid' crmfb.c:(.text+0x234c): undefined reference to `edid_parse' crmfb.c:(.text+0x234c): relocation truncated to fit: R_MIPS_26 against `edid_parse' crmfb.c:(.text+0x2354): undefined reference to `edid_print' crmfb.c:(.text+0x2354): relocation truncated to fit: R_MIPS_26 against `edid_print'
This commit is contained in:
parent
73ac15efaf
commit
a184f1f486
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_machdep.h,v 1.12 2005/12/11 12:16:16 christos Exp $ */
|
||||
/* $NetBSD: pci_machdep.h,v 1.13 2011/04/04 20:37:44 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Carnegie-Mellon University.
|
||||
|
@ -60,7 +60,7 @@ struct alpha_pci_chipset {
|
|||
void (*pc_conf_write)(void *, pcitag_t, int, pcireg_t);
|
||||
|
||||
void *pc_intr_v;
|
||||
int (*pc_intr_map)(struct pci_attach_args *,
|
||||
int (*pc_intr_map)(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
const char *(*pc_intr_string)(void *, pci_intr_handle_t);
|
||||
const struct evcnt *(*pc_intr_evcnt)(void *, pci_intr_handle_t);
|
||||
|
@ -69,8 +69,8 @@ struct alpha_pci_chipset {
|
|||
void (*pc_intr_disestablish)(void *, void *);
|
||||
|
||||
void *(*pc_pciide_compat_intr_establish)(void *,
|
||||
struct device *, struct pci_attach_args *, int,
|
||||
int (*)(void *), void *);
|
||||
struct device *, const struct pci_attach_args *,
|
||||
int, int (*)(void *), void *);
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_1000.c,v 1.22 2010/12/15 01:27:19 matt Exp $ */
|
||||
/* $NetBSD: pci_1000.c,v 1.23 2011/04/04 20:37:44 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -60,7 +60,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_1000.c,v 1.22 2010/12/15 01:27:19 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_1000.c,v 1.23 2011/04/04 20:37:44 dyoung Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -86,7 +86,7 @@ __KERNEL_RCSID(0, "$NetBSD: pci_1000.c,v 1.22 2010/12/15 01:27:19 matt Exp $");
|
|||
static bus_space_tag_t another_mystery_icu_iot;
|
||||
static bus_space_handle_t another_mystery_icu_ioh;
|
||||
|
||||
int dec_1000_intr_map(struct pci_attach_args *, pci_intr_handle_t *);
|
||||
int dec_1000_intr_map(const struct pci_attach_args *, pci_intr_handle_t *);
|
||||
const char *dec_1000_intr_string(void *, pci_intr_handle_t);
|
||||
const struct evcnt *dec_1000_intr_evcnt(void *, pci_intr_handle_t);
|
||||
void *dec_1000_intr_establish(void *, pci_intr_handle_t,
|
||||
|
@ -144,7 +144,7 @@ pci_1000_pickintr(void *core, bus_space_tag_t iot, bus_space_tag_t memt, pci_chi
|
|||
}
|
||||
|
||||
int
|
||||
dec_1000_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
dec_1000_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_1000a.c,v 1.24 2010/12/15 01:27:19 matt Exp $ */
|
||||
/* $NetBSD: pci_1000a.c,v 1.25 2011/04/04 20:37:44 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -60,7 +60,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_1000a.c,v 1.24 2010/12/15 01:27:19 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_1000a.c,v 1.25 2011/04/04 20:37:44 dyoung Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -92,7 +92,7 @@ __KERNEL_RCSID(0, "$NetBSD: pci_1000a.c,v 1.24 2010/12/15 01:27:19 matt Exp $");
|
|||
static bus_space_tag_t mystery_icu_iot;
|
||||
static bus_space_handle_t mystery_icu_ioh[2];
|
||||
|
||||
int dec_1000a_intr_map(struct pci_attach_args *,
|
||||
int dec_1000a_intr_map(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
const char *dec_1000a_intr_string(void *, pci_intr_handle_t);
|
||||
const struct evcnt *dec_1000a_intr_evcnt(void *, pci_intr_handle_t);
|
||||
|
@ -148,7 +148,7 @@ pci_1000a_pickintr(void *core, bus_space_tag_t iot, bus_space_tag_t memt, pci_ch
|
|||
}
|
||||
|
||||
int
|
||||
dec_1000a_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
dec_1000a_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_2100_a50.c,v 1.37 2010/12/15 01:27:19 matt Exp $ */
|
||||
/* $NetBSD: pci_2100_a50.c,v 1.38 2011/04/04 20:37:44 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
|
||||
|
@ -29,7 +29,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_2100_a50.c,v 1.37 2010/12/15 01:27:19 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_2100_a50.c,v 1.38 2011/04/04 20:37:44 dyoung Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -54,7 +54,8 @@ __KERNEL_RCSID(0, "$NetBSD: pci_2100_a50.c,v 1.37 2010/12/15 01:27:19 matt Exp $
|
|||
|
||||
#include "sio.h"
|
||||
|
||||
int dec_2100_a50_intr_map(struct pci_attach_args *, pci_intr_handle_t *);
|
||||
int dec_2100_a50_intr_map(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
const char *dec_2100_a50_intr_string(void *, pci_intr_handle_t);
|
||||
const struct evcnt *dec_2100_a50_intr_evcnt(void *, pci_intr_handle_t);
|
||||
void *dec_2100_a50_intr_establish(void *, pci_intr_handle_t,
|
||||
|
@ -96,7 +97,7 @@ pci_2100_a50_pickintr(struct apecs_config *acp)
|
|||
}
|
||||
|
||||
int
|
||||
dec_2100_a50_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
dec_2100_a50_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_2100_a500.c,v 1.9 2008/04/28 20:23:11 martin Exp $ */
|
||||
/* $NetBSD: pci_2100_a500.c,v 1.10 2011/04/04 20:37:44 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
|
@ -31,7 +31,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_2100_a500.c,v 1.9 2008/04/28 20:23:11 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_2100_a500.c,v 1.10 2011/04/04 20:37:44 dyoung Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -60,10 +60,10 @@ static bus_space_handle_t pic_elcr_ioh;
|
|||
|
||||
static const int pic_slave_to_master[4] = { 1, 3, 4, 5 };
|
||||
|
||||
int dec_2100_a500_pic_intr_map(struct pci_attach_args *,
|
||||
int dec_2100_a500_pic_intr_map(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
|
||||
int dec_2100_a500_icic_intr_map(struct pci_attach_args *,
|
||||
int dec_2100_a500_icic_intr_map(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
|
||||
const char *dec_2100_a500_intr_string(void *, pci_intr_handle_t);
|
||||
|
@ -267,7 +267,7 @@ pci_2100_a500_isa_pickintr(pci_chipset_tag_t pc, isa_chipset_tag_t ic)
|
|||
*****************************************************************************/
|
||||
|
||||
int
|
||||
dec_2100_a500_pic_intr_map(struct pci_attach_args *pa,
|
||||
dec_2100_a500_pic_intr_map(const struct pci_attach_args *pa,
|
||||
pci_intr_handle_t *ihp)
|
||||
{
|
||||
/*
|
||||
|
@ -368,7 +368,8 @@ dec_2100_a500_pic_intr_map(struct pci_attach_args *pa,
|
|||
}
|
||||
|
||||
int
|
||||
dec_2100_a500_icic_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
dec_2100_a500_icic_intr_map(const struct pci_attach_args *pa,
|
||||
pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_550.c,v 1.33 2010/12/15 01:27:19 matt Exp $ */
|
||||
/* $NetBSD: pci_550.c,v 1.34 2011/04/04 20:37:44 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -59,7 +59,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_550.c,v 1.33 2010/12/15 01:27:19 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_550.c,v 1.34 2011/04/04 20:37:44 dyoung Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -88,7 +88,7 @@ __KERNEL_RCSID(0, "$NetBSD: pci_550.c,v 1.33 2010/12/15 01:27:19 matt Exp $");
|
|||
#include <alpha/pci/siovar.h>
|
||||
#endif
|
||||
|
||||
int dec_550_intr_map(struct pci_attach_args *,
|
||||
int dec_550_intr_map(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
const char *dec_550_intr_string(void *, pci_intr_handle_t);
|
||||
const struct evcnt *dec_550_intr_evcnt(void *, pci_intr_handle_t);
|
||||
|
@ -97,7 +97,7 @@ void *dec_550_intr_establish(void *, pci_intr_handle_t,
|
|||
void dec_550_intr_disestablish(void *, void *);
|
||||
|
||||
void *dec_550_pciide_compat_intr_establish(void *, struct device *,
|
||||
struct pci_attach_args *, int, int (*)(void *), void *);
|
||||
const struct pci_attach_args *, int, int (*)(void *), void *);
|
||||
|
||||
#define DEC_550_PCI_IRQ_BEGIN 8
|
||||
#define DEC_550_MAX_IRQ (64 - DEC_550_PCI_IRQ_BEGIN)
|
||||
|
@ -168,7 +168,7 @@ pci_550_pickintr(struct cia_config *ccp)
|
|||
}
|
||||
|
||||
int
|
||||
dec_550_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
dec_550_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin, line = pa->pa_intrline;
|
||||
|
@ -350,7 +350,8 @@ dec_550_intr_disestablish(void *ccv, void *cookie)
|
|||
}
|
||||
|
||||
void *
|
||||
dec_550_pciide_compat_intr_establish(void *v, struct device *dev, struct pci_attach_args *pa, int chan, int (*func)(void *), void *arg)
|
||||
dec_550_pciide_compat_intr_establish(void *v, struct device *dev,
|
||||
const struct pci_attach_args *pa, int chan, int (*func)(void *), void *arg)
|
||||
{
|
||||
pci_chipset_tag_t pc = pa->pa_pc;
|
||||
void *cookie = NULL;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_6600.c,v 1.20 2010/12/15 01:27:19 matt Exp $ */
|
||||
/* $NetBSD: pci_6600.c,v 1.21 2011/04/04 20:37:44 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 by Ross Harvey. All rights reserved.
|
||||
|
@ -33,7 +33,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_6600.c,v 1.20 2010/12/15 01:27:19 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_6600.c,v 1.21 2011/04/04 20:37:44 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -83,9 +83,9 @@ void *dec_6600_intr_establish(
|
|||
void *, pci_intr_handle_t, int, int (*func)(void *), void *);
|
||||
const char *dec_6600_intr_string(void *, pci_intr_handle_t);
|
||||
const struct evcnt *dec_6600_intr_evcnt(void *, pci_intr_handle_t);
|
||||
int dec_6600_intr_map(struct pci_attach_args *, pci_intr_handle_t *);
|
||||
int dec_6600_intr_map(const struct pci_attach_args *, pci_intr_handle_t *);
|
||||
void *dec_6600_pciide_compat_intr_establish(void *, struct device *,
|
||||
struct pci_attach_args *, int, int (*)(void *), void *);
|
||||
const struct pci_attach_args *, int, int (*)(void *), void *);
|
||||
|
||||
struct alpha_shared_intr *dec_6600_pci_intr;
|
||||
|
||||
|
@ -137,7 +137,7 @@ pci_6600_pickintr(struct tsp_config *pcp)
|
|||
}
|
||||
|
||||
int
|
||||
dec_6600_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
dec_6600_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin, line = pa->pa_intrline;
|
||||
|
@ -307,7 +307,8 @@ dec_6600_intr_disable(int irq)
|
|||
}
|
||||
|
||||
void *
|
||||
dec_6600_pciide_compat_intr_establish(void *v, struct device *dev, struct pci_attach_args *pa, int chan, int (*func)(void *), void *arg)
|
||||
dec_6600_pciide_compat_intr_establish(void *v, struct device *dev,
|
||||
const struct pci_attach_args *pa, int chan, int (*func)(void *), void *arg)
|
||||
{
|
||||
pci_chipset_tag_t pc = pa->pa_pc;
|
||||
void *cookie = NULL;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_alphabook1.c,v 1.14 2010/12/15 01:27:19 matt Exp $ */
|
||||
/* $NetBSD: pci_alphabook1.c,v 1.15 2011/04/04 20:37:44 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -59,7 +59,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_alphabook1.c,v 1.14 2010/12/15 01:27:19 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_alphabook1.c,v 1.15 2011/04/04 20:37:44 dyoung Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -82,7 +82,8 @@ __KERNEL_RCSID(0, "$NetBSD: pci_alphabook1.c,v 1.14 2010/12/15 01:27:19 matt Exp
|
|||
|
||||
#include "sio.h"
|
||||
|
||||
int dec_alphabook1_intr_map(struct pci_attach_args *, pci_intr_handle_t *);
|
||||
int dec_alphabook1_intr_map(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
const char *dec_alphabook1_intr_string(void *, pci_intr_handle_t);
|
||||
const struct evcnt *dec_alphabook1_intr_evcnt(void *, pci_intr_handle_t);
|
||||
void *dec_alphabook1_intr_establish(void *, pci_intr_handle_t,
|
||||
|
@ -125,7 +126,8 @@ pci_alphabook1_pickintr(struct lca_config *lcp)
|
|||
}
|
||||
|
||||
int
|
||||
dec_alphabook1_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
dec_alphabook1_intr_map(const struct pci_attach_args *pa,
|
||||
pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_axppci_33.c,v 1.34 2010/12/15 01:27:19 matt Exp $ */
|
||||
/* $NetBSD: pci_axppci_33.c,v 1.35 2011/04/04 20:37:44 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
|
||||
|
@ -29,7 +29,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_axppci_33.c,v 1.34 2010/12/15 01:27:19 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_axppci_33.c,v 1.35 2011/04/04 20:37:44 dyoung Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -54,7 +54,8 @@ __KERNEL_RCSID(0, "$NetBSD: pci_axppci_33.c,v 1.34 2010/12/15 01:27:19 matt Exp
|
|||
|
||||
#include "sio.h"
|
||||
|
||||
int dec_axppci_33_intr_map(struct pci_attach_args *, pci_intr_handle_t *);
|
||||
int dec_axppci_33_intr_map(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
const char *dec_axppci_33_intr_string(void *, pci_intr_handle_t);
|
||||
const struct evcnt *dec_axppci_33_intr_evcnt(void *, pci_intr_handle_t);
|
||||
void *dec_axppci_33_intr_establish(void *, pci_intr_handle_t,
|
||||
|
@ -97,7 +98,7 @@ pci_axppci_33_pickintr(struct lca_config *lcp)
|
|||
}
|
||||
|
||||
int
|
||||
dec_axppci_33_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
dec_axppci_33_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_eb164.c,v 1.41 2010/12/15 01:27:19 matt Exp $ */
|
||||
/* $NetBSD: pci_eb164.c,v 1.42 2011/04/04 20:37:44 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -59,7 +59,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_eb164.c,v 1.41 2010/12/15 01:27:19 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_eb164.c,v 1.42 2011/04/04 20:37:44 dyoung Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -88,15 +88,15 @@ __KERNEL_RCSID(0, "$NetBSD: pci_eb164.c,v 1.41 2010/12/15 01:27:19 matt Exp $");
|
|||
#include <alpha/pci/siovar.h>
|
||||
#endif
|
||||
|
||||
int dec_eb164_intr_map(struct pci_attach_args *, pci_intr_handle_t *);
|
||||
int dec_eb164_intr_map(const struct pci_attach_args *, pci_intr_handle_t *);
|
||||
const char *dec_eb164_intr_string(void *, pci_intr_handle_t);
|
||||
const struct evcnt *dec_eb164_intr_evcnt(void *, pci_intr_handle_t);
|
||||
void *dec_eb164_intr_establish(void *, pci_intr_handle_t,
|
||||
int, int (*func)(void *), void *);
|
||||
void dec_eb164_intr_disestablish(void *, void *);
|
||||
|
||||
void *dec_eb164_pciide_compat_intr_establish(void *, struct device *,
|
||||
struct pci_attach_args *, int, int (*)(void *), void *);
|
||||
void *dec_eb164_pciide_compat_intr_establish(void *, device_t,
|
||||
const struct pci_attach_args *, int, int (*)(void *), void *);
|
||||
|
||||
#define EB164_SIO_IRQ 4
|
||||
#define EB164_MAX_IRQ 24
|
||||
|
@ -160,7 +160,7 @@ pci_eb164_pickintr(struct cia_config *ccp)
|
|||
}
|
||||
|
||||
int
|
||||
dec_eb164_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
dec_eb164_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin, line = pa->pa_intrline;
|
||||
|
@ -305,7 +305,8 @@ dec_eb164_intr_disestablish(void *ccv, void *cookie)
|
|||
}
|
||||
|
||||
void *
|
||||
dec_eb164_pciide_compat_intr_establish(void *v, struct device *dev, struct pci_attach_args *pa, int chan, int (*func)(void *), void *arg)
|
||||
dec_eb164_pciide_compat_intr_establish(void *v, device_t dev,
|
||||
const struct pci_attach_args *pa, int chan, int (*func)(void *), void *arg)
|
||||
{
|
||||
pci_chipset_tag_t pc = pa->pa_pc;
|
||||
void *cookie = NULL;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_eb64plus.c,v 1.21 2010/12/15 01:27:19 matt Exp $ */
|
||||
/* $NetBSD: pci_eb64plus.c,v 1.22 2011/04/04 20:37:44 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -59,7 +59,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_eb64plus.c,v 1.21 2010/12/15 01:27:19 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_eb64plus.c,v 1.22 2011/04/04 20:37:44 dyoung Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -85,7 +85,7 @@ __KERNEL_RCSID(0, "$NetBSD: pci_eb64plus.c,v 1.21 2010/12/15 01:27:19 matt Exp $
|
|||
#include <alpha/pci/siovar.h>
|
||||
#endif
|
||||
|
||||
int dec_eb64plus_intr_map(struct pci_attach_args *,
|
||||
int dec_eb64plus_intr_map(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
const char *dec_eb64plus_intr_string(void *, pci_intr_handle_t);
|
||||
const struct evcnt *dec_eb64plus_intr_evcnt(void *, pci_intr_handle_t);
|
||||
|
@ -148,7 +148,7 @@ pci_eb64plus_pickintr(struct apecs_config *acp)
|
|||
}
|
||||
|
||||
int
|
||||
dec_eb64plus_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
dec_eb64plus_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin, line = pa->pa_intrline;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_eb66.c,v 1.21 2010/12/15 01:27:19 matt Exp $ */
|
||||
/* $NetBSD: pci_eb66.c,v 1.22 2011/04/04 20:37:44 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -59,7 +59,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_eb66.c,v 1.21 2010/12/15 01:27:19 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_eb66.c,v 1.22 2011/04/04 20:37:44 dyoung Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -85,7 +85,7 @@ __KERNEL_RCSID(0, "$NetBSD: pci_eb66.c,v 1.21 2010/12/15 01:27:19 matt Exp $");
|
|||
#include <alpha/pci/siovar.h>
|
||||
#endif
|
||||
|
||||
int dec_eb66_intr_map(struct pci_attach_args *,
|
||||
int dec_eb66_intr_map(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
const char *dec_eb66_intr_string(void *, pci_intr_handle_t);
|
||||
const struct evcnt *dec_eb66_intr_evcnt(void *, pci_intr_handle_t);
|
||||
|
@ -148,7 +148,7 @@ pci_eb66_pickintr(struct lca_config *lcp)
|
|||
}
|
||||
|
||||
int
|
||||
dec_eb66_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
dec_eb66_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin, line = pa->pa_intrline;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_kn20aa.c,v 1.51 2010/12/15 01:27:19 matt Exp $ */
|
||||
/* $NetBSD: pci_kn20aa.c,v 1.52 2011/04/04 20:37:44 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
|
||||
|
@ -29,7 +29,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_kn20aa.c,v 1.51 2010/12/15 01:27:19 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_kn20aa.c,v 1.52 2011/04/04 20:37:44 dyoung Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -55,7 +55,7 @@ __KERNEL_RCSID(0, "$NetBSD: pci_kn20aa.c,v 1.51 2010/12/15 01:27:19 matt Exp $")
|
|||
#include <alpha/pci/siovar.h>
|
||||
#endif
|
||||
|
||||
int dec_kn20aa_intr_map(struct pci_attach_args *,
|
||||
int dec_kn20aa_intr_map(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
const char *dec_kn20aa_intr_string(void *, pci_intr_handle_t);
|
||||
const struct evcnt *dec_kn20aa_intr_evcnt(void *, pci_intr_handle_t);
|
||||
|
@ -112,7 +112,7 @@ pci_kn20aa_pickintr(struct cia_config *ccp)
|
|||
}
|
||||
|
||||
int
|
||||
dec_kn20aa_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
dec_kn20aa_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_kn300.c,v 1.33 2010/12/15 01:27:19 matt Exp $ */
|
||||
/* $NetBSD: pci_kn300.c,v 1.34 2011/04/04 20:37:45 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 by Matthew Jacob
|
||||
|
@ -32,7 +32,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_kn300.c,v 1.33 2010/12/15 01:27:19 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_kn300.c,v 1.34 2011/04/04 20:37:45 dyoung Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -59,7 +59,7 @@ __KERNEL_RCSID(0, "$NetBSD: pci_kn300.c,v 1.33 2010/12/15 01:27:19 matt Exp $");
|
|||
#include <alpha/pci/siovar.h>
|
||||
#endif
|
||||
|
||||
int dec_kn300_intr_map(struct pci_attach_args *,
|
||||
int dec_kn300_intr_map(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
const char *dec_kn300_intr_string(void *, pci_intr_handle_t);
|
||||
const struct evcnt *dec_kn300_intr_evcnt(void *, pci_intr_handle_t);
|
||||
|
@ -122,7 +122,7 @@ pci_kn300_pickintr(struct mcpcia_config *ccp, int first)
|
|||
}
|
||||
|
||||
int
|
||||
dec_kn300_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
dec_kn300_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_kn8ae.c,v 1.25 2010/12/15 01:27:19 matt Exp $ */
|
||||
/* $NetBSD: pci_kn8ae.c,v 1.26 2011/04/04 20:37:45 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 by Matthew Jacob
|
||||
|
@ -32,7 +32,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_kn8ae.c,v 1.25 2010/12/15 01:27:19 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_kn8ae.c,v 1.26 2011/04/04 20:37:45 dyoung Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -52,7 +52,7 @@ __KERNEL_RCSID(0, "$NetBSD: pci_kn8ae.c,v 1.25 2010/12/15 01:27:19 matt Exp $");
|
|||
#include <alpha/pci/dwlpxvar.h>
|
||||
#include <alpha/pci/pci_kn8ae.h>
|
||||
|
||||
int dec_kn8ae_intr_map(struct pci_attach_args *,
|
||||
int dec_kn8ae_intr_map(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
const char *dec_kn8ae_intr_string(void *, pci_intr_handle_t);
|
||||
const struct evcnt *dec_kn8ae_intr_evcnt(void *, pci_intr_handle_t);
|
||||
|
@ -102,7 +102,7 @@ pci_kn8ae_pickintr(struct dwlpx_config *ccp, int first)
|
|||
#define IH_PIN(ih) (((ih) >> 24) & 0xff)
|
||||
|
||||
int
|
||||
dec_kn8ae_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
dec_kn8ae_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_up1000.c,v 1.11 2010/12/15 01:27:19 matt Exp $ */
|
||||
/* $NetBSD: pci_up1000.c,v 1.12 2011/04/04 20:37:45 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -31,7 +31,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_up1000.c,v 1.11 2010/12/15 01:27:19 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_up1000.c,v 1.12 2011/04/04 20:37:45 dyoung Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -59,15 +59,16 @@ __KERNEL_RCSID(0, "$NetBSD: pci_up1000.c,v 1.11 2010/12/15 01:27:19 matt Exp $")
|
|||
|
||||
#include "sio.h"
|
||||
|
||||
int api_up1000_intr_map(struct pci_attach_args *, pci_intr_handle_t *);
|
||||
int api_up1000_intr_map(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
const char *api_up1000_intr_string(void *, pci_intr_handle_t);
|
||||
const struct evcnt *api_up1000_intr_evcnt(void *, pci_intr_handle_t);
|
||||
void *api_up1000_intr_establish(void *, pci_intr_handle_t,
|
||||
int, int (*func)(void *), void *);
|
||||
void api_up1000_intr_disestablish(void *, void *);
|
||||
|
||||
void *api_up1000_pciide_compat_intr_establish(void *, struct device *,
|
||||
struct pci_attach_args *, int, int (*)(void *), void *);
|
||||
void *api_up1000_pciide_compat_intr_establish(void *, device_t,
|
||||
const struct pci_attach_args *, int, int (*)(void *), void *);
|
||||
|
||||
void
|
||||
pci_up1000_pickintr(struct irongate_config *icp)
|
||||
|
@ -93,7 +94,7 @@ pci_up1000_pickintr(struct irongate_config *icp)
|
|||
}
|
||||
|
||||
int
|
||||
api_up1000_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
api_up1000_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pci_chipset_tag_t pc = pa->pa_pc;
|
||||
int buspin = pa->pa_intrpin;
|
||||
|
@ -181,8 +182,8 @@ api_up1000_intr_disestablish(void *icv, void *cookie)
|
|||
}
|
||||
|
||||
void *
|
||||
api_up1000_pciide_compat_intr_establish(void *icv, struct device *dev,
|
||||
struct pci_attach_args *pa, int chan, int (*func)(void *), void *arg)
|
||||
api_up1000_pciide_compat_intr_establish(void *icv, device_t dev,
|
||||
const struct pci_attach_args *pa, int chan, int (*func)(void *), void *arg)
|
||||
{
|
||||
pci_chipset_tag_t pc = pa->pa_pc;
|
||||
void *cookie = NULL;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pciide_machdep.c,v 1.4 2009/03/16 23:11:09 dsl Exp $ */
|
||||
/* $NetBSD: pciide_machdep.c,v 1.5 2011/04/04 20:37:45 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Christopher G. Demetriou. All rights reserved.
|
||||
|
@ -42,7 +42,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pciide_machdep.c,v 1.4 2009/03/16 23:11:09 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pciide_machdep.c,v 1.5 2011/04/04 20:37:45 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -56,7 +56,8 @@ __KERNEL_RCSID(0, "$NetBSD: pciide_machdep.c,v 1.4 2009/03/16 23:11:09 dsl Exp $
|
|||
#include <dev/isa/isavar.h>
|
||||
|
||||
void *
|
||||
pciide_machdep_compat_intr_establish(struct device *dev, struct pci_attach_args *pa, int chan, int (*func)(void *), void *arg)
|
||||
pciide_machdep_compat_intr_establish(device_t dev,
|
||||
const struct pci_attach_args *pa, int chan, int (*func)(void *), void *arg)
|
||||
{
|
||||
pci_chipset_tag_t pc = pa->pa_pc;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_machdep.h,v 1.8 2006/04/15 12:53:09 tsutsui Exp $ */
|
||||
/* $NetBSD: pci_machdep.h,v 1.9 2011/04/04 20:37:45 dyoung Exp $ */
|
||||
/* NetBSD: pci_machdep.h,v 1.3 1999/03/19 03:40:46 cgd Exp */
|
||||
|
||||
/*
|
||||
|
@ -59,7 +59,7 @@ struct arc_pci_chipset {
|
|||
pcireg_t (*pc_conf_read)(pci_chipset_tag_t, pcitag_t, int);
|
||||
void (*pc_conf_write)(pci_chipset_tag_t, pcitag_t, int,
|
||||
pcireg_t);
|
||||
int (*pc_intr_map)(struct pci_attach_args *,
|
||||
int (*pc_intr_map)(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
const char *(*pc_intr_string)(pci_chipset_tag_t,
|
||||
pci_intr_handle_t);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: necpb.c,v 1.34 2011/02/20 07:52:43 matt Exp $ */
|
||||
/* $NetBSD: necpb.c,v 1.35 2011/04/04 20:37:45 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -61,7 +61,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: necpb.c,v 1.34 2011/02/20 07:52:43 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: necpb.c,v 1.35 2011/04/04 20:37:45 dyoung Exp $");
|
||||
|
||||
#include "opt_pci.h"
|
||||
|
||||
|
@ -110,7 +110,8 @@ static void necpb_decompose_tag(pci_chipset_tag_t, pcitag_t, int *,
|
|||
int *, int *);
|
||||
static pcireg_t necpb_conf_read(pci_chipset_tag_t, pcitag_t, int);
|
||||
static void necpb_conf_write(pci_chipset_tag_t, pcitag_t, int, pcireg_t);
|
||||
static int necpb_intr_map(struct pci_attach_args *, pci_intr_handle_t *);
|
||||
static int necpb_intr_map(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
static const char *necpb_intr_string(pci_chipset_tag_t, pci_intr_handle_t);
|
||||
static void *necpb_intr_establish(pci_chipset_tag_t, pci_intr_handle_t,
|
||||
int, int (*func)(void *), void *);
|
||||
|
@ -334,7 +335,7 @@ necpb_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t data)
|
|||
}
|
||||
|
||||
static int
|
||||
necpb_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
necpb_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pci_chipset_tag_t pc = pa->pa_pc;
|
||||
pcitag_t intrtag = pa->pa_intrtag;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: footbridge_pci.c,v 1.18 2009/03/14 21:04:05 dsl Exp $ */
|
||||
/* $NetBSD: footbridge_pci.c,v 1.19 2011/04/04 20:37:45 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997,1998 Mark Brinicombe.
|
||||
|
@ -35,7 +35,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: footbridge_pci.c,v 1.18 2009/03/14 21:04:05 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: footbridge_pci.c,v 1.19 2011/04/04 20:37:45 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -67,7 +67,7 @@ void footbridge_pci_decompose_tag(void *, pcitag_t, int *,
|
|||
pcireg_t footbridge_pci_conf_read(void *, pcitag_t, int);
|
||||
void footbridge_pci_conf_write(void *, pcitag_t, int,
|
||||
pcireg_t);
|
||||
int footbridge_pci_intr_map(struct pci_attach_args *,
|
||||
int footbridge_pci_intr_map(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
const char *footbridge_pci_intr_string(void *, pci_intr_handle_t);
|
||||
void *footbridge_pci_intr_establish(void *, pci_intr_handle_t,
|
||||
|
@ -233,7 +233,8 @@ footbridge_pci_conf_write(void *pcv, pcitag_t tag, int reg, pcireg_t data)
|
|||
}
|
||||
|
||||
int
|
||||
footbridge_pci_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
footbridge_pci_intr_map(const struct pci_attach_args *pa,
|
||||
pci_intr_handle_t *ihp)
|
||||
{
|
||||
int pin = pa->pa_intrpin, line = pa->pa_intrline;
|
||||
int intr = -1;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: gemini_pci.c,v 1.8 2010/01/05 13:14:56 mbalmer Exp $ */
|
||||
/* $NetBSD: gemini_pci.c,v 1.9 2011/04/04 20:37:45 dyoung Exp $ */
|
||||
|
||||
/* adapted from:
|
||||
* NetBSD: i80312_pci.c,v 1.9 2005/12/11 12:16:51 christos Exp
|
||||
|
@ -44,7 +44,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: gemini_pci.c,v 1.8 2010/01/05 13:14:56 mbalmer Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: gemini_pci.c,v 1.9 2011/04/04 20:37:45 dyoung Exp $");
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
|
@ -86,7 +86,7 @@ void gemini_pci_conf_write(void *, pcitag_t, int, pcireg_t);
|
|||
int gemini_pci_conf_hook(pci_chipset_tag_t, int, int, int,
|
||||
pcireg_t);
|
||||
|
||||
int gemini_pci_intr_map(struct pci_attach_args *,
|
||||
int gemini_pci_intr_map(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
const char *gemini_pci_intr_string(void *, pci_intr_handle_t);
|
||||
const struct evcnt *gemini_pci_intr_evcnt(void *, pci_intr_handle_t);
|
||||
|
@ -360,7 +360,7 @@ gemini_pci_conf_write(void *v, pcitag_t tag, int offset, pcireg_t val)
|
|||
}
|
||||
|
||||
int
|
||||
gemini_pci_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
gemini_pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
int irq;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_machdep.h,v 1.6 2008/10/24 04:08:48 matt Exp $ */
|
||||
/* $NetBSD: pci_machdep.h,v 1.7 2011/04/04 20:37:45 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Modified for arm32 by Mark Brinicombe
|
||||
|
@ -65,7 +65,7 @@ struct arm32_pci_chipset {
|
|||
void (*pc_conf_write)(void *, pcitag_t, int, pcireg_t);
|
||||
|
||||
void *pc_intr_v;
|
||||
int (*pc_intr_map)(struct pci_attach_args *,
|
||||
int (*pc_intr_map)(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
const char *(*pc_intr_string)(void *, pci_intr_handle_t);
|
||||
const struct evcnt *(*pc_intr_evcnt)(void *, pci_intr_handle_t);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_machdep.c,v 1.1 2010/10/03 05:49:24 kiyohara Exp $ */
|
||||
/* $NetBSD: pci_machdep.c,v 1.2 2011/04/04 20:37:46 dyoung Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2008 KIYOHARA Takashi
|
||||
* All rights reserved.
|
||||
|
@ -26,7 +26,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.1 2010/10/03 05:49:24 kiyohara Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.2 2011/04/04 20:37:46 dyoung Exp $");
|
||||
|
||||
#include "opt_mvsoc.h"
|
||||
#include "gtpci.h"
|
||||
|
@ -68,7 +68,8 @@ __KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.1 2010/10/03 05:49:24 kiyohara Exp
|
|||
static pcireg_t gtpci_mbus_conf_read(void *, pcitag_t, int);
|
||||
static void gtpci_mbus_conf_write(void *, pcitag_t, int, pcireg_t);
|
||||
#endif
|
||||
static int gtpci_gpp_intr_map(struct pci_attach_args *, pci_intr_handle_t *);
|
||||
static int gtpci_gpp_intr_map(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
static const char *gtpci_gpp_intr_string(void *, pci_intr_handle_t);
|
||||
static const struct evcnt *gtpci_gpp_intr_evcnt(void *, pci_intr_handle_t);
|
||||
static void *gtpci_gpp_intr_establish(void *, pci_intr_handle_t, int, int (*)(void *), void *);
|
||||
|
@ -209,7 +210,7 @@ gtpci_mbus_conf_write(void *v, pcitag_t tag, int reg, pcireg_t data)
|
|||
|
||||
/* ARGSUSED */
|
||||
static int
|
||||
gtpci_gpp_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
gtpci_gpp_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
|
||||
*ihp = pa->pa_intrpin;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: s3c2800_pci.c,v 1.13 2008/01/06 01:37:56 matt Exp $ */
|
||||
/* $NetBSD: s3c2800_pci.c,v 1.14 2011/04/04 20:37:46 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002 Fujitsu Component Limited
|
||||
|
@ -100,7 +100,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: s3c2800_pci.c,v 1.13 2008/01/06 01:37:56 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: s3c2800_pci.c,v 1.14 2011/04/04 20:37:46 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -144,7 +144,8 @@ pcitag_t s3c2800_pci_make_tag(void *, int, int, int);
|
|||
void s3c2800_pci_decompose_tag(void *, pcitag_t, int *, int *, int *);
|
||||
pcireg_t s3c2800_pci_conf_read(void *, pcitag_t, int);
|
||||
void s3c2800_pci_conf_write(void *, pcitag_t, int, pcireg_t);
|
||||
int s3c2800_pci_intr_map(struct pci_attach_args *, pci_intr_handle_t *);
|
||||
int s3c2800_pci_intr_map(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
const char *s3c2800_pci_intr_string(void *, pci_intr_handle_t);
|
||||
const struct evcnt *s3c2800_pci_intr_evcnt(void *, pci_intr_handle_t);
|
||||
void *s3c2800_pci_intr_establish(void *, pci_intr_handle_t, int,
|
||||
|
@ -545,7 +546,7 @@ s3c2800_pci_intr_disestablish(void *pcv, void *cookie)
|
|||
}
|
||||
|
||||
int
|
||||
s3c2800_pci_intr_map(struct pci_attach_args * pa, pci_intr_handle_t * ihp)
|
||||
s3c2800_pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
#ifdef PCI_DEBUG
|
||||
int pin = pa->pa_intrpin;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: becc_pci.c,v 1.8 2005/12/24 20:06:52 perry Exp $ */
|
||||
/* $NetBSD: becc_pci.c,v 1.9 2011/04/04 20:37:46 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001, 2002 Wasabi Systems, Inc.
|
||||
|
@ -41,7 +41,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: becc_pci.c,v 1.8 2005/12/24 20:06:52 perry Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: becc_pci.c,v 1.9 2011/04/04 20:37:46 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -71,7 +71,7 @@ void becc_pci_decompose_tag(void *, pcitag_t, int *, int *,
|
|||
pcireg_t becc_pci_conf_read(void *, pcitag_t, int);
|
||||
void becc_pci_conf_write(void *, pcitag_t, int, pcireg_t);
|
||||
|
||||
int becc_pci_intr_map(struct pci_attach_args *,
|
||||
int becc_pci_intr_map(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
const char *becc_pci_intr_string(void *, pci_intr_handle_t);
|
||||
const struct evcnt *becc_pci_intr_evcnt(void *, pci_intr_handle_t);
|
||||
|
@ -326,7 +326,7 @@ becc_pci_conf_write(void *v, pcitag_t tag, int offset, pcireg_t val)
|
|||
}
|
||||
|
||||
int
|
||||
becc_pci_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
becc_pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
int irq;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_machdep.h,v 1.13 2009/07/08 12:23:10 tsutsui Exp $ */
|
||||
/* $NetBSD: pci_machdep.h,v 1.14 2011/04/04 20:37:46 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Leo Weppelman. All rights reserved.
|
||||
|
@ -73,7 +73,8 @@ void pci_decompose_tag(pci_chipset_tag_t, pcitag_t, int *, int *,
|
|||
int *);
|
||||
pcireg_t pci_conf_read(pci_chipset_tag_t, pcitag_t, int);
|
||||
void pci_conf_write(pci_chipset_tag_t, pcitag_t, int, pcireg_t);
|
||||
int pci_intr_map(struct pci_attach_args *, pci_intr_handle_t *);
|
||||
int pci_intr_map(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
const char *pci_intr_string(pci_chipset_tag_t, pci_intr_handle_t);
|
||||
const struct evcnt *pci_intr_evcnt(pci_chipset_tag_t, pci_intr_handle_t);
|
||||
void *pci_intr_establish(pci_chipset_tag_t, pci_intr_handle_t,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_machdep.c,v 1.48 2010/04/13 11:31:11 tsutsui Exp $ */
|
||||
/* $NetBSD: pci_machdep.c,v 1.49 2011/04/04 20:37:46 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Leo Weppelman. All rights reserved.
|
||||
|
@ -32,7 +32,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.48 2010/04/13 11:31:11 tsutsui Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.49 2011/04/04 20:37:46 dyoung Exp $");
|
||||
|
||||
#include "opt_mbtype.h"
|
||||
|
||||
|
@ -616,7 +616,7 @@ pci_decompose_tag(pci_chipset_tag_t pc, pcitag_t tag, int *bp, int *dp, int *fp)
|
|||
}
|
||||
|
||||
int
|
||||
pci_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
int line = pa->pa_intrline;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pciide_machdep.c,v 1.5 2009/03/16 23:11:10 dsl Exp $ */
|
||||
/* $NetBSD: pciide_machdep.c,v 1.6 2011/04/04 20:37:46 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Christopher G. Demetriou. All rights reserved.
|
||||
|
@ -41,7 +41,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: pciide_machdep.c,v 1.5 2009/03/16 23:11:10 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pciide_machdep.c,v 1.6 2011/04/04 20:37:46 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -55,7 +55,8 @@ __KERNEL_RCSID(0, "$NetBSD: pciide_machdep.c,v 1.5 2009/03/16 23:11:10 dsl Exp $
|
|||
#include <dev/isa/isavar.h>
|
||||
|
||||
void *
|
||||
pciide_machdep_compat_intr_establish(struct device *dev, struct pci_attach_args *pa, int chan, int (*func)(void *), void *arg)
|
||||
pciide_machdep_compat_intr_establish(struct device *dev,
|
||||
const struct pci_attach_args *pa, int chan, int (*func)(void *), void *arg)
|
||||
{
|
||||
int irq;
|
||||
void *cookie;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pciide_machdep.c,v 1.6 2009/03/16 23:11:11 dsl Exp $ */
|
||||
/* $NetBSD: pciide_machdep.c,v 1.7 2011/04/04 20:37:47 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Christopher G. Demetriou. All rights reserved.
|
||||
|
@ -41,7 +41,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: pciide_machdep.c,v 1.6 2009/03/16 23:11:11 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pciide_machdep.c,v 1.7 2011/04/04 20:37:47 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -57,7 +57,8 @@ __KERNEL_RCSID(0, "$NetBSD: pciide_machdep.c,v 1.6 2009/03/16 23:11:11 dsl Exp $
|
|||
#include "isa.h"
|
||||
|
||||
void *
|
||||
pciide_machdep_compat_intr_establish(struct device *dev, struct pci_attach_args *pa, int chan, int (*func)(void *), void *arg)
|
||||
pciide_machdep_compat_intr_establish(struct device *dev,
|
||||
const struct pci_attach_args *pa, int chan, int (*func)(void *), void *arg)
|
||||
{
|
||||
#if NISA > 0
|
||||
int irq;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_machdep.h,v 1.10 2006/04/15 11:33:33 tsutsui Exp $ */
|
||||
/* $NetBSD: pci_machdep.h,v 1.11 2011/04/04 20:37:47 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
|
||||
|
@ -75,7 +75,8 @@ void pci_decompose_tag(pci_chipset_tag_t, pcitag_t,
|
|||
pcireg_t pci_conf_read(pci_chipset_tag_t, pcitag_t, int);
|
||||
void pci_conf_write(pci_chipset_tag_t, pcitag_t, int,
|
||||
pcireg_t);
|
||||
int pci_intr_map(struct pci_attach_args *, pci_intr_handle_t *);
|
||||
int pci_intr_map(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
const char *pci_intr_string(pci_chipset_tag_t, pci_intr_handle_t);
|
||||
const struct evcnt *pci_intr_evcnt(pci_chipset_tag_t, pci_intr_handle_t);
|
||||
void *pci_intr_establish(pci_chipset_tag_t, pci_intr_handle_t,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_machdep.c,v 1.28 2011/02/20 07:54:11 matt Exp $ */
|
||||
/* $NetBSD: pci_machdep.c,v 1.29 2011/04/04 20:37:47 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Soren S. Jorvang. All rights reserved.
|
||||
|
@ -26,7 +26,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.28 2011/02/20 07:54:11 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.29 2011/04/04 20:37:47 dyoung Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -143,7 +143,7 @@ pci_conf_write(pci_chipset_tag_t pc, pcitag_t tag, int reg, pcireg_t data)
|
|||
}
|
||||
|
||||
int
|
||||
pci_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pci_chipset_tag_t pc = pa->pa_pc;
|
||||
pcitag_t intrtag = pa->pa_intrtag;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pciide_machdep.c,v 1.7 2006/04/05 15:50:48 tsutsui Exp $ */
|
||||
/* $NetBSD: pciide_machdep.c,v 1.8 2011/04/04 20:37:47 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Soren S. Jorvang. All rights reserved.
|
||||
|
@ -26,7 +26,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: pciide_machdep.c,v 1.7 2006/04/05 15:50:48 tsutsui Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pciide_machdep.c,v 1.8 2011/04/04 20:37:47 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -41,7 +41,7 @@ __KERNEL_RCSID(0, "$NetBSD: pciide_machdep.c,v 1.7 2006/04/05 15:50:48 tsutsui E
|
|||
|
||||
void *
|
||||
pciide_machdep_compat_intr_establish(struct device *dev,
|
||||
struct pci_attach_args *pa, int chan, int (*func)(void *), void *arg)
|
||||
const struct pci_attach_args *pa, int chan, int (*func)(void *), void *arg)
|
||||
{
|
||||
int irq;
|
||||
void *cookie;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cp3100_pci.c,v 1.1 2006/11/08 23:49:02 scw Exp $ */
|
||||
/* $NetBSD: cp3100_pci.c,v 1.2 2011/04/04 20:37:47 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 2006 Wasabi Systems, Inc.
|
||||
|
@ -40,7 +40,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: cp3100_pci.c,v 1.1 2006/11/08 23:49:02 scw Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cp3100_pci.c,v 1.2 2011/04/04 20:37:47 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -58,7 +58,8 @@ __KERNEL_RCSID(0, "$NetBSD: cp3100_pci.c,v 1.1 2006/11/08 23:49:02 scw Exp $");
|
|||
#include <dev/pci/pcidevs.h>
|
||||
#include <dev/pci/ppbreg.h>
|
||||
|
||||
int iq80321_pci_intr_map(struct pci_attach_args *, pci_intr_handle_t *);
|
||||
int iq80321_pci_intr_map(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
const char *iq80321_pci_intr_string(void *, pci_intr_handle_t);
|
||||
const struct evcnt *iq80321_pci_intr_evcnt(void *, pci_intr_handle_t);
|
||||
void *iq80321_pci_intr_establish(void *, pci_intr_handle_t,
|
||||
|
@ -78,7 +79,7 @@ iq80321_pci_init(pci_chipset_tag_t pc, void *cookie)
|
|||
}
|
||||
|
||||
int
|
||||
iq80321_pci_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
iq80321_pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
struct i80321_softc *sc = pa->pa_pc->pc_intr_v;
|
||||
int b, d, f;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: hdlg_pci.c,v 1.1 2006/04/16 02:22:33 nonaka Exp $ */
|
||||
/* $NetBSD: hdlg_pci.c,v 1.2 2011/04/04 20:37:47 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001, 2002 Wasabi Systems, Inc.
|
||||
|
@ -36,7 +36,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: hdlg_pci.c,v 1.1 2006/04/16 02:22:33 nonaka Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: hdlg_pci.c,v 1.2 2011/04/04 20:37:47 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -54,7 +54,7 @@ __KERNEL_RCSID(0, "$NetBSD: hdlg_pci.c,v 1.1 2006/04/16 02:22:33 nonaka Exp $");
|
|||
#include <dev/pci/pcidevs.h>
|
||||
#include <dev/pci/ppbreg.h>
|
||||
|
||||
int hdlg_pci_intr_map(struct pci_attach_args *, pci_intr_handle_t *);
|
||||
int hdlg_pci_intr_map(const struct pci_attach_args *, pci_intr_handle_t *);
|
||||
const char *hdlg_pci_intr_string(void *, pci_intr_handle_t);
|
||||
const struct evcnt *hdlg_pci_intr_evcnt(void *, pci_intr_handle_t);
|
||||
void *hdlg_pci_intr_establish(void *, pci_intr_handle_t,
|
||||
|
@ -74,7 +74,7 @@ hdlg_pci_init(pci_chipset_tag_t pc, void *cookie)
|
|||
}
|
||||
|
||||
int
|
||||
hdlg_pci_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
hdlg_pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
struct i80321_softc *sc = pa->pa_pc->pc_intr_v;
|
||||
uint32_t busno;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ifpga_pci.c,v 1.13 2009/07/21 16:04:16 dyoung Exp $ */
|
||||
/* $NetBSD: ifpga_pci.c,v 1.14 2011/04/04 20:37:48 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001 ARM Ltd
|
||||
|
@ -64,7 +64,7 @@
|
|||
#define _ARM32_BUS_DMA_PRIVATE
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ifpga_pci.c,v 1.13 2009/07/21 16:04:16 dyoung Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ifpga_pci.c,v 1.14 2011/04/04 20:37:48 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -93,7 +93,7 @@ void ifpga_pci_decompose_tag (void *, pcitag_t, int *, int *,
|
|||
int *);
|
||||
pcireg_t ifpga_pci_conf_read (void *, pcitag_t, int);
|
||||
void ifpga_pci_conf_write (void *, pcitag_t, int, pcireg_t);
|
||||
int ifpga_pci_intr_map (struct pci_attach_args *,
|
||||
int ifpga_pci_intr_map (const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
const char *ifpga_pci_intr_string (void *, pci_intr_handle_t);
|
||||
const struct evcnt *ifpga_pci_intr_evcnt (void *, pci_intr_handle_t);
|
||||
|
@ -296,7 +296,7 @@ ifpga_pci_conf_write(void *pcv, pcitag_t tag, int reg, pcireg_t data)
|
|||
}
|
||||
|
||||
int
|
||||
ifpga_pci_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
ifpga_pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
int line = pa->pa_intrline;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: iq31244_pci.c,v 1.3 2005/12/11 12:17:09 christos Exp $ */
|
||||
/* $NetBSD: iq31244_pci.c,v 1.4 2011/04/04 20:37:48 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
|
||||
|
@ -40,7 +40,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: iq31244_pci.c,v 1.3 2005/12/11 12:17:09 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: iq31244_pci.c,v 1.4 2011/04/04 20:37:48 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -58,7 +58,8 @@ __KERNEL_RCSID(0, "$NetBSD: iq31244_pci.c,v 1.3 2005/12/11 12:17:09 christos Exp
|
|||
#include <dev/pci/pcidevs.h>
|
||||
#include <dev/pci/ppbreg.h>
|
||||
|
||||
int iq80321_pci_intr_map(struct pci_attach_args *, pci_intr_handle_t *);
|
||||
int iq80321_pci_intr_map(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
const char *iq80321_pci_intr_string(void *, pci_intr_handle_t);
|
||||
const struct evcnt *iq80321_pci_intr_evcnt(void *, pci_intr_handle_t);
|
||||
void *iq80321_pci_intr_establish(void *, pci_intr_handle_t,
|
||||
|
@ -78,7 +79,7 @@ iq80321_pci_init(pci_chipset_tag_t pc, void *cookie)
|
|||
}
|
||||
|
||||
int
|
||||
iq80321_pci_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
iq80321_pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
struct i80321_softc *sc = pa->pa_pc->pc_intr_v;
|
||||
int b, d, f;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: iq80310_pci.c,v 1.9 2005/12/11 12:17:09 christos Exp $ */
|
||||
/* $NetBSD: iq80310_pci.c,v 1.10 2011/04/04 20:37:48 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001, 2002 Wasabi Systems, Inc.
|
||||
|
@ -40,7 +40,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: iq80310_pci.c,v 1.9 2005/12/11 12:17:09 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: iq80310_pci.c,v 1.10 2011/04/04 20:37:48 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -58,7 +58,8 @@ __KERNEL_RCSID(0, "$NetBSD: iq80310_pci.c,v 1.9 2005/12/11 12:17:09 christos Exp
|
|||
#include <dev/pci/pcidevs.h>
|
||||
#include <dev/pci/ppbreg.h>
|
||||
|
||||
int iq80310_pci_intr_map(struct pci_attach_args *, pci_intr_handle_t *);
|
||||
int iq80310_pci_intr_map(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
const char *iq80310_pci_intr_string(void *, pci_intr_handle_t);
|
||||
const struct evcnt *iq80310_pci_intr_evcnt(void *, pci_intr_handle_t);
|
||||
void *iq80310_pci_intr_establish(void *, pci_intr_handle_t,
|
||||
|
@ -79,7 +80,7 @@ iq80310_pci_init(pci_chipset_tag_t pc, void *cookie)
|
|||
|
||||
#if defined(IOP310_TEAMASA_NPWR)
|
||||
int
|
||||
iq80310_pci_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
iq80310_pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
struct i80312_softc *sc = pa->pa_pc->pc_intr_v;
|
||||
pcireg_t reg;
|
||||
|
@ -123,7 +124,7 @@ iq80310_pci_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
|||
}
|
||||
#else /* Default to stock IQ80310 */
|
||||
int
|
||||
iq80310_pci_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
iq80310_pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
struct i80312_softc *sc = pa->pa_pc->pc_intr_v;
|
||||
pcitag_t tag;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: iq80321_pci.c,v 1.5 2005/12/11 12:17:09 christos Exp $ */
|
||||
/* $NetBSD: iq80321_pci.c,v 1.6 2011/04/04 20:37:48 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001, 2002 Wasabi Systems, Inc.
|
||||
|
@ -40,7 +40,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: iq80321_pci.c,v 1.5 2005/12/11 12:17:09 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: iq80321_pci.c,v 1.6 2011/04/04 20:37:48 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -58,7 +58,8 @@ __KERNEL_RCSID(0, "$NetBSD: iq80321_pci.c,v 1.5 2005/12/11 12:17:09 christos Exp
|
|||
#include <dev/pci/pcidevs.h>
|
||||
#include <dev/pci/ppbreg.h>
|
||||
|
||||
int iq80321_pci_intr_map(struct pci_attach_args *, pci_intr_handle_t *);
|
||||
int iq80321_pci_intr_map(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
const char *iq80321_pci_intr_string(void *, pci_intr_handle_t);
|
||||
const struct evcnt *iq80321_pci_intr_evcnt(void *, pci_intr_handle_t);
|
||||
void *iq80321_pci_intr_establish(void *, pci_intr_handle_t,
|
||||
|
@ -78,7 +79,7 @@ iq80321_pci_init(pci_chipset_tag_t pc, void *cookie)
|
|||
}
|
||||
|
||||
int
|
||||
iq80321_pci_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
iq80321_pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
struct i80321_softc *sc = pa->pa_pc->pc_intr_v;
|
||||
int b, d, f;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ixdp425_pci.c,v 1.6 2009/10/21 14:15:51 rmind Exp $ */
|
||||
/* $NetBSD: ixdp425_pci.c,v 1.7 2011/04/04 20:37:48 dyoung Exp $ */
|
||||
#define PCI_DEBUG
|
||||
/*
|
||||
* Copyright (c) 2003
|
||||
|
@ -28,7 +28,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ixdp425_pci.c,v 1.6 2009/10/21 14:15:51 rmind Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ixdp425_pci.c,v 1.7 2011/04/04 20:37:48 dyoung Exp $");
|
||||
|
||||
/*
|
||||
* IXDP425 PCI interrupt support.
|
||||
|
@ -50,7 +50,8 @@ __KERNEL_RCSID(0, "$NetBSD: ixdp425_pci.c,v 1.6 2009/10/21 14:15:51 rmind Exp $"
|
|||
#include <dev/pci/pcidevs.h>
|
||||
#include <dev/pci/ppbreg.h>
|
||||
|
||||
static int ixdp425_pci_intr_map(struct pci_attach_args *, pci_intr_handle_t *);
|
||||
static int ixdp425_pci_intr_map(const struct pci_attach_args *,
|
||||
pci_intr_handle_t *);
|
||||
static const char *ixdp425_pci_intr_string(void *, pci_intr_handle_t);
|
||||
static const struct evcnt *ixdp425_pci_intr_evcnt(void *, pci_intr_handle_t);
|
||||
static void *ixdp425_pci_intr_establish(void *, pci_intr_handle_t, int,
|
||||
|
@ -180,7 +181,7 @@ ixp425_md_pci_conf_interrupt(pci_chipset_tag_t pc, int bus, int dev, int pin,
|
|||
#define IXP425_MAX_DEV 4
|
||||
#define IXP425_MAX_LINE 4
|
||||
static int
|
||||
ixdp425_pci_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
ixdp425_pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
static int ixp425_pci_table[IXP425_MAX_DEV][IXP425_MAX_LINE] =
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ixm1200_pci.c,v 1.7 2009/10/21 14:15:51 rmind Exp $ */
|
||||
/* $NetBSD: ixm1200_pci.c,v 1.8 2011/04/04 20:37:48 dyoung Exp $ */
|
||||
#define PCI_DEBUG
|
||||
/*
|
||||
* Copyright (c) 2002, 2003
|
||||
|
@ -28,7 +28,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ixm1200_pci.c,v 1.7 2009/10/21 14:15:51 rmind Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ixm1200_pci.c,v 1.8 2011/04/04 20:37:48 dyoung Exp $");
|
||||
|
||||
/*
|
||||
* IXM1200 PCI interrupt support.
|
||||
|
@ -52,7 +52,7 @@ __KERNEL_RCSID(0, "$NetBSD: ixm1200_pci.c,v 1.7 2009/10/21 14:15:51 rmind Exp $"
|
|||
#include <dev/pci/pcidevs.h>
|
||||
#include <dev/pci/ppbreg.h>
|
||||
|
||||
int ixm1200_pci_intr_map(struct pci_attach_args *, pci_intr_handle_t *);
|
||||
int ixm1200_pci_intr_map(const struct pci_attach_args *, pci_intr_handle_t *);
|
||||
const char *ixm1200_pci_intr_string(void *, pci_intr_handle_t);
|
||||
const struct evcnt *ixm1200_pci_intr_evcnt(void *, pci_intr_handle_t);
|
||||
void *ixm1200_pci_intr_establish(void *, pci_intr_handle_t, int,
|
||||
|
@ -71,7 +71,7 @@ ixm1200_pci_init(pci_chipset_tag_t pc, void *cookie)
|
|||
}
|
||||
|
||||
int
|
||||
ixm1200_pci_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
ixm1200_pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
#ifdef PCI_DEBUG
|
||||
void *v = pa->pa_pc;
|
||||
|
|
Loading…
Reference in New Issue