Author: mav
Date: Thu Dec 10 01:17:30 2015
New Revision: 292041
URL: https://svnweb.freebsd.org/changeset/base/292041

Log:
  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.

Modified:
  head/sys/dev/isp/isp.c

Modified: head/sys/dev/isp/isp.c
==============================================================================
--- head/sys/dev/isp/isp.c      Thu Dec 10 01:16:48 2015        (r292040)
+++ head/sys/dev/isp/isp.c      Thu Dec 10 01:17:30 2015        (r292041)
@@ -7920,7 +7920,9 @@ isp_rd_2400_nvram(ispsoftc_t *isp, uint3
        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);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to