summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2013-12-30 05:27:01 +0000
committermiod <miod@openbsd.org>2013-12-30 05:27:01 +0000
commit878844f5c4789d631defe088b5aa814bc8283cb1 (patch)
tree944f7ca1b4e5ab2048248ad755a7ee0d7c7e2421
parentReplace yet another hand-rolled list with a TAILQ. reject_list this (diff)
downloadwireguard-openbsd-878844f5c4789d631defe088b5aa814bc8283cb1.tar.xz
wireguard-openbsd-878844f5c4789d631defe088b5aa814bc8283cb1.zip
Fix IOC4DEV_xxx numbers, so that devices besides the first two serial ports
actually handle their own interrupts. How could this get unnoticed so far?
-rw-r--r--sys/arch/sgi/pci/iofreg.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/arch/sgi/pci/iofreg.h b/sys/arch/sgi/pci/iofreg.h
index bee1efa755b..461f99a13b6 100644
--- a/sys/arch/sgi/pci/iofreg.h
+++ b/sys/arch/sgi/pci/iofreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: iofreg.h,v 1.4 2009/11/18 19:03:27 miod Exp $ */
+/* $OpenBSD: iofreg.h,v 1.5 2013/12/30 05:27:01 miod Exp $ */
/*
* Copyright (c) 2009 Miodrag Vallat.
@@ -20,15 +20,15 @@
* Register definitions for SGI IOC4 ASIC.
*/
-#define IOC4_NDEVS 8
+#define IOC4_NDEVS 7
#define IOC4DEV_SERIAL_A 0
#define IOC4DEV_SERIAL_B 1
-#define IOC4DEV_SERIAL_C 3
-#define IOC4DEV_SERIAL_D 4
-#define IOC4DEV_KBC 5
-#define IOC4DEV_ATAPI 6
-#define IOC4DEV_RTC 7
+#define IOC4DEV_SERIAL_C 2
+#define IOC4DEV_SERIAL_D 3
+#define IOC4DEV_KBC 4
+#define IOC4DEV_ATAPI 5
+#define IOC4DEV_RTC 6
/* Interrupt control registers */
#define IOC4_SIO_IR 0x00000008