Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Dec 2015 01:17:30 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r292041 - head/sys/dev/isp
Message-ID:  <201512100117.tBA1HUoO098190@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512100117.tBA1HUoO098190>