summaryrefslogtreecommitdiffstats
path: root/sys/pccard/pcic.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-08-21 20:04:42 +0000
committerimp <imp@FreeBSD.org>2001-08-21 20:04:42 +0000
commitb3400f019f7aee5d6acc4ae66d5ca6ab89ad6a5e (patch)
treeca42acb3535144d3c1a892169ba2cc854aebb2b3 /sys/pccard/pcic.c
parent4c62004cf77dc1b9f69be9f84bb3cce6f9d5de8c (diff)
downloadFreeBSD-src-b3400f019f7aee5d6acc4ae66d5ca6ab89ad6a5e.zip
FreeBSD-src-b3400f019f7aee5d6acc4ae66d5ca6ab89ad6a5e.tar.gz
Rearrange how we do interrupt routing tweaking. We now have
hw.pcic.intr_path {1,2} 1 == ISA, 2 == PCI hw.pcic.init_route Force TI chipset initializations in edge case.
Diffstat (limited to 'sys/pccard/pcic.c')
-rw-r--r--sys/pccard/pcic.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/pccard/pcic.c b/sys/pccard/pcic.c
index 6208bd7..78548e2 100644
--- a/sys/pccard/pcic.c
+++ b/sys/pccard/pcic.c
@@ -307,7 +307,7 @@ pcic_do_mgt_irq(struct pcic_slot *sp, int irq)
{
u_int32_t reg;
- if (sp->sc->csc_route == pci_parallel) {
+ if (sp->sc->csc_route == pcic_iw_pci) {
/* Do the PCI side of things: Enable the Card Change int */
reg = CB_SM_CD;
bus_space_write_4(sp->bst, sp->bsh, CB_SOCKET_MASK, reg);
@@ -412,7 +412,7 @@ pcic_sresource(struct slot *slt, caddr_t data)
* return in pr->resource_addr).
*/
if (pr->type == SYS_RES_IRQ) {
- if (sp->sc->func_route >= pci_parallel) {
+ if (sp->sc->func_route >= pcic_iw_pci) {
pr->resource_addr = sp->sc->irq;
return (0);
}
@@ -613,7 +613,7 @@ static void
pcic_mapirq(struct slot *slt, int irq)
{
struct pcic_slot *sp = slt->cdata;
- if (sp->sc->csc_route == pci_parallel)
+ if (sp->sc->csc_route == pcic_iw_pci)
return;
irq = host_irq_to_pcic(irq);
if (irq == 0)
@@ -794,9 +794,9 @@ pcic_setup_intr(device_t dev, device_t child, struct resource *irq,
int err;
#if __FreeBSD_version >= 500000
- if (sc->csc_route == pci_parallel && (flags & INTR_FAST))
+ if (sc->csc_route == pcic_iw_pci && (flags & INTR_FAST))
#else
- if (sc->csc_route == pci_parallel && (flags & INTR_TYPE_FAST))
+ if (sc->csc_route == pcic_iw_pci && (flags & INTR_TYPE_FAST))
#endif
return (EINVAL);
@@ -927,7 +927,7 @@ pcic_alloc_resource(device_t dev, device_t child, int type, int *rid,
/*
* If we're routing via pci, we can share.
*/
- if (sc->func_route == pci_parallel && type == SYS_RES_IRQ) {
+ if (sc->func_route == pcic_iw_pci && type == SYS_RES_IRQ) {
if (bootverbose)
device_printf(child, "Forcing IRQ to %d\n", sc->irq);
start = end = sc->irq;
OpenPOWER on IntegriCloud