From f5ad059401369b1886ff9c2a962effdad1affbda Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Mon, 19 Jan 2004 00:44:34 +0000 Subject: Rename a few defines to avoid namespace pollution. The only one used was 'READ' which is now 'NVREAD'. Potential conflict with SCSI 'READ' spotted by tdeval@. --- sys/dev/ic/iha.c | 4 ++-- sys/dev/ic/iha.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'sys') diff --git a/sys/dev/ic/iha.c b/sys/dev/ic/iha.c index 041b4152ed2..b1625a4c9b1 100644 --- a/sys/dev/ic/iha.c +++ b/sys/dev/ic/iha.c @@ -1,4 +1,4 @@ -/* $OpenBSD: iha.c,v 1.22 2003/10/21 18:58:49 jmc Exp $ */ +/* $OpenBSD: iha.c,v 1.23 2004/01/19 00:44:32 krw Exp $ */ /*------------------------------------------------------------------------- * * Device driver for the INI-9XXXU/UW or INIC-940/950 PCI SCSI Controller. @@ -2769,7 +2769,7 @@ iha_se2_rd(iot, ioh, addr) int i; /* Send 'READ' instruction == address | READ bit */ - iha_se2_instr(iot, ioh, (addr | READ)); + iha_se2_instr(iot, ioh, (addr | NVREAD)); readWord = 0; for (i = 15; i >= 0; i--) { diff --git a/sys/dev/ic/iha.h b/sys/dev/ic/iha.h index e44c962663f..455471d7759 100644 --- a/sys/dev/ic/iha.h +++ b/sys/dev/ic/iha.h @@ -1,4 +1,4 @@ -/* $OpenBSD: iha.h,v 1.14 2003/10/21 18:58:49 jmc Exp $ */ +/* $OpenBSD: iha.h,v 1.15 2004/01/19 00:44:33 krw Exp $ */ /*------------------------------------------------------------------------- * * Device driver for the INI-9XXXU/UW or INIC-940/950 PCI SCSI Controller. @@ -249,9 +249,9 @@ struct iha_nvram { #define TUL_PNVPG 0x5A /* R/W Data port to external BIOS */ #define TUL_EPDATA 0x5C /* R/W EEPROM Data port */ #define TUL_NVRAM 0x5D /* R/W Non-volatile RAM port */ -#define READ 0x80 /* Read from given NVRAM addr */ -#define WRITE 0x40 /* Write to given NVRAM addr */ -#define ENABLE_ERASE 0x30 /* Enable NVRAM Erase/Write */ +#define NVREAD 0x80 /* Read from given NVRAM addr */ +#define NVWRITE 0x40 /* Write to given NVRAM addr */ +#define NVENABLE_ERASE 0x30 /* Enable NVRAM Erase/Write */ #define NVRCS 0x08 /* Select external NVRAM */ #define NVRCK 0x04 /* NVRAM Clock */ #define NVRDO 0x02 /* NVRAM Write Data */ -- cgit v1.2.3