diff options
author | mav <mav@FreeBSD.org> | 2015-12-10 01:17:30 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2015-12-10 01:17:30 +0000 |
commit | 888d655aa48e61122f4e497cc4bb2ed27d52f716 (patch) | |
tree | 33304441d198ac74af123375662e214f3a2af248 | |
parent | 4d28543d66e402e891604721f47c7ec429cc91f0 (diff) | |
download | FreeBSD-src-888d655aa48e61122f4e497cc4bb2ed27d52f716.zip FreeBSD-src-888d655aa48e61122f4e497cc4bb2ed27d52f716.tar.gz |
Guess NVRAM address for 16Gbps Qlogic cards.
I have feeling this approach is wrong, but it works for me so far and
it is better then nothing.
-rw-r--r-- | sys/dev/isp/isp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/isp/isp.c b/sys/dev/isp/isp.c index a140ddb..d394011 100644 --- a/sys/dev/isp/isp.c +++ b/sys/dev/isp/isp.c @@ -7920,7 +7920,9 @@ isp_rd_2400_nvram(ispsoftc_t *isp, uint32_t addr, uint32_t *rp) uint32_t base = 0x7ffe0000; uint32_t tmp = 0; - if (IS_25XX(isp)) { + if (IS_26XX(isp)) { + base = 0x7fe7c000; /* XXX: Observation, may be wrong. */ + } else if (IS_25XX(isp)) { base = 0x7ff00000 | 0x48000; } ISP_WRITE(isp, BIU2400_FLASH_ADDR, base | addr); |