diff options
| author | Alexander Motin <mav@FreeBSD.org> | 2021-12-14 18:20:14 +0000 |
|---|---|---|
| committer | Alexander Motin <mav@FreeBSD.org> | 2021-12-14 18:26:44 +0000 |
| commit | 483e464ed4325a0710485925ecfbe0e1c8d6bb02 (patch) | |
| tree | e1e782cce8f885f3751c78036ae070d199b04d91 /sys/dev/isp/ispreg.h | |
| parent | 27bb8830d555621d4292da8a83f3bc09176fd00d (diff) | |
Diffstat (limited to 'sys/dev/isp/ispreg.h')
| -rw-r--r-- | sys/dev/isp/ispreg.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/isp/ispreg.h b/sys/dev/isp/ispreg.h index 5d04ad2b4400..98b9a6c0bf0d 100644 --- a/sys/dev/isp/ispreg.h +++ b/sys/dev/isp/ispreg.h @@ -213,8 +213,7 @@ typedef struct { /* * Qlogic 2400 NVRAM is an array of 512 bytes with a 32 bit checksum. */ -#define ISP2400_NVRAM_PORT0_ADDR 0x80 -#define ISP2400_NVRAM_PORT1_ADDR 0x180 +#define ISP2400_NVRAM_PORT_ADDR(c) (0x100 * (c) + 0x80) #define ISP2400_NVRAM_SIZE 512 #define ISP2400_NVRAM_VERSION(c) ((c)[4] | ((c)[5] << 8)) |
