From cfbae0773dbe897d6166048dbafceb4b02afdf9d Mon Sep 17 00:00:00 2001 From: "Federico G. Schwindt" Date: Wed, 28 Mar 2001 07:13:44 +0000 Subject: sigh, forgot another ifdef; use bus_space_xx for cross plataform support. --- sys/dev/pci/bktr/bktr_reg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/pci/bktr/bktr_reg.h') diff --git a/sys/dev/pci/bktr/bktr_reg.h b/sys/dev/pci/bktr/bktr_reg.h index 171294c404f..d29a1559ca3 100644 --- a/sys/dev/pci/bktr/bktr_reg.h +++ b/sys/dev/pci/bktr/bktr_reg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bktr_reg.h,v 1.2 2001/03/28 06:15:36 fgsch Exp $ */ +/* $OpenBSD: bktr_reg.h,v 1.3 2001/03/28 07:13:43 fgsch Exp $ */ /* * $FreeBSD: src/sys/dev/bktr/bktr_reg.h,v 1.42 2000/10/31 13:09:56 roger Exp $ * @@ -475,7 +475,7 @@ struct bktr_i2c_softc { * memory mapped structure method only works on 32 bit processors * with the right type of endianness. */ -#if defined(__NetBSD__) || ( defined(__FreeBSD__) && (__FreeBSD_version >=300000) ) +#if defined(__NetBSD__) || defined(__OpenBSD__) || ( defined(__FreeBSD__) && (__FreeBSD_version >=300000) ) #define INB(bktr,offset) bus_space_read_1((bktr)->memt,(bktr)->memh,(offset)) #define INW(bktr,offset) bus_space_read_2((bktr)->memt,(bktr)->memh,(offset)) #define INL(bktr,offset) bus_space_read_4((bktr)->memt,(bktr)->memh,(offset)) -- cgit v1.2.3