From 878844f5c4789d631defe088b5aa814bc8283cb1 Mon Sep 17 00:00:00 2001 From: miod Date: Mon, 30 Dec 2013 05:27:01 +0000 Subject: [PATCH] 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? --- sys/arch/sgi/pci/iofreg.h | 14 +++++++------- 1 file 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 -- 2.20.1