diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2001-03-28 07:13:44 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2001-03-28 07:13:44 +0000 |
commit | cfbae0773dbe897d6166048dbafceb4b02afdf9d (patch) | |
tree | 803a9a19f20fd2c6e0b46eaa858dd49aafda8b4e /sys/dev/pci/bktr/bktr_reg.h | |
parent | 193a0aa1841b78c5050909cd611f9377499c3d14 (diff) |
sigh, forgot another ifdef; use bus_space_xx for cross plataform support.
Diffstat (limited to 'sys/dev/pci/bktr/bktr_reg.h')
-rw-r--r-- | sys/dev/pci/bktr/bktr_reg.h | 4 |
1 files changed, 2 insertions, 2 deletions
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)) |