summaryrefslogtreecommitdiffstats
path: root/sys/i386/pci
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2003-08-02 05:14:17 +0000
committernyan <nyan@FreeBSD.org>2003-08-02 05:14:17 +0000
commit7ea5a3d1b42668d0a8172d343270ccd769d4616d (patch)
treedfa36fb5fbe80dc146e72eac9eac4a55ca23204a /sys/i386/pci
parent507ad47156bf84b9ea320256ed15d553d02a0911 (diff)
downloadFreeBSD-src-7ea5a3d1b42668d0a8172d343270ccd769d4616d.zip
FreeBSD-src-7ea5a3d1b42668d0a8172d343270ccd769d4616d.tar.gz
PC98 uses different mask of IRQ.
Diffstat (limited to 'sys/i386/pci')
-rw-r--r--sys/i386/pci/pci_cfgreg.c10
-rw-r--r--sys/i386/pci/pci_pir.c10
2 files changed, 16 insertions, 4 deletions
diff --git a/sys/i386/pci/pci_cfgreg.c b/sys/i386/pci/pci_cfgreg.c
index 53d2261..220fbcb 100644
--- a/sys/i386/pci/pci_cfgreg.c
+++ b/sys/i386/pci/pci_cfgreg.c
@@ -82,10 +82,16 @@ static struct mtx pcicfg_mtx;
/* sysctl vars */
SYSCTL_DECL(_hw_pci);
-static uint32_t pci_irq_override_mask = 0xdef4;
+#ifdef PC98
+#define PCI_IRQ_OVERRIDE_MASK 0x3e68
+#else
+#define PCI_IRQ_OVERRIDE_MASK 0xdef4
+#endif
+
+static uint32_t pci_irq_override_mask = PCI_IRQ_OVERRIDE_MASK;
TUNABLE_INT("hw.pci.irq_override_mask", &pci_irq_override_mask);
SYSCTL_INT(_hw_pci, OID_AUTO, irq_override_mask, CTLFLAG_RD,
- &pci_irq_override_mask, 0xdef4,
+ &pci_irq_override_mask, PCI_IRQ_OVERRIDE_MASK,
"Mask of allowed irqs to try to route when it has no good clue about\n"
"which irqs it should use.");
diff --git a/sys/i386/pci/pci_pir.c b/sys/i386/pci/pci_pir.c
index 53d2261..220fbcb 100644
--- a/sys/i386/pci/pci_pir.c
+++ b/sys/i386/pci/pci_pir.c
@@ -82,10 +82,16 @@ static struct mtx pcicfg_mtx;
/* sysctl vars */
SYSCTL_DECL(_hw_pci);
-static uint32_t pci_irq_override_mask = 0xdef4;
+#ifdef PC98
+#define PCI_IRQ_OVERRIDE_MASK 0x3e68
+#else
+#define PCI_IRQ_OVERRIDE_MASK 0xdef4
+#endif
+
+static uint32_t pci_irq_override_mask = PCI_IRQ_OVERRIDE_MASK;
TUNABLE_INT("hw.pci.irq_override_mask", &pci_irq_override_mask);
SYSCTL_INT(_hw_pci, OID_AUTO, irq_override_mask, CTLFLAG_RD,
- &pci_irq_override_mask, 0xdef4,
+ &pci_irq_override_mask, PCI_IRQ_OVERRIDE_MASK,
"Mask of allowed irqs to try to route when it has no good clue about\n"
"which irqs it should use.");
OpenPOWER on IntegriCloud