From: miod Date: Mon, 30 Dec 2013 05:27:01 +0000 (+0000) Subject: Fix IOC4DEV_xxx numbers, so that devices besides the first two serial ports X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=878844f5c4789d631defe088b5aa814bc8283cb1;p=openbsd 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? --- 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