mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
isp(4): Fix reading NVRAM contents for 28xx based devices
Use correct NVRAM address for ISP28xx based HBAs to read NVRAM contents. WWPN/WWNN and framesize are correctly read from NVRAM now. PR: 271062 Reviewed by: imp, mav Sponsored by: Technical University of Munich Pull Request: https://github.com/freebsd/freebsd-src/pull/726
This commit is contained in:
parent
0c5f23d2f7
commit
f76f7fefa1
1 changed files with 3 additions and 1 deletions
|
|
@ -4380,7 +4380,9 @@ isp_rd_2400_nvram(ispsoftc_t *isp, uint32_t addr, uint32_t *rp)
|
|||
uint32_t base = 0x7ffe0000;
|
||||
uint32_t tmp = 0;
|
||||
|
||||
if (IS_26XX(isp)) {
|
||||
if (IS_28XX(isp)) {
|
||||
base = 0x7fad0000; /* 0x7f7d0000 + 0x300000 */
|
||||
} else if (IS_26XX(isp)) {
|
||||
base = 0x7fe7c000; /* XXX: Observation, may be wrong. */
|
||||
} else if (IS_25XX(isp)) {
|
||||
base = 0x7ff00000 | 0x48000;
|
||||
|
|
|
|||
Loading…
Reference in a new issue