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.
This commit is contained in:
Alexander Motin 2015-12-10 01:17:30 +00:00
parent 1ef7db0f31
commit c7a771a0b5

View File

@ -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);