summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2009-09-16 22:52:20 +0000
committerscottl <scottl@FreeBSD.org>2009-09-16 22:52:20 +0000
commited3e2dff4b8015f6b024c7e85202510ca35c93cd (patch)
tree32ecd84f83ed27c89a7d8ac40ce5b7caed7181b5 /sys
parent14cc0cbfb36e79d131ce85f669f6b7ca17363d1d (diff)
downloadFreeBSD-src-ed3e2dff4b8015f6b024c7e85202510ca35c93cd.zip
FreeBSD-src-ed3e2dff4b8015f6b024c7e85202510ca35c93cd.tar.gz
Increase CISS_MAX_PHYSTGT to 256 so that it matches what the controller might
give us. Without this, certain data structures get sized incorrectly, leading to a panic on certain cards that want to use high-value target numbers.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ciss/cissvar.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ciss/cissvar.h b/sys/dev/ciss/cissvar.h
index f9f5c6f..98e875f 100644
--- a/sys/dev/ciss/cissvar.h
+++ b/sys/dev/ciss/cissvar.h
@@ -176,7 +176,7 @@ struct ciss_pdrive
#define CISS_PHYSICAL_SHIFT 5
#define CISS_PHYSICAL_BASE (1 << CISS_PHYSICAL_SHIFT)
-#define CISS_MAX_PHYSTGT 15
+#define CISS_MAX_PHYSTGT 256
#define CISS_IS_PHYSICAL(bus) (bus >= CISS_PHYSICAL_BASE)
#define CISS_CAM_TO_PBUS(bus) (bus - CISS_PHYSICAL_BASE)
OpenPOWER on IntegriCloud