summaryrefslogtreecommitdiffstats
path: root/sys/dev/isp
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2002-07-08 17:34:32 +0000
committermjacob <mjacob@FreeBSD.org>2002-07-08 17:34:32 +0000
commit6954940847de3168b91c30c3123e6ae01ab2f5f7 (patch)
tree636355c0be7ea3bd9c74de0dd75c88f96de27450 /sys/dev/isp
parent8eccb6dabfa373fc80ebf6536d5a009fff5c806a (diff)
downloadFreeBSD-src-6954940847de3168b91c30c3123e6ae01ab2f5f7.zip
FreeBSD-src-6954940847de3168b91c30c3123e6ae01ab2f5f7.tar.gz
Add override so that we can force set our hard loopdid.
MFC after: 1 week
Diffstat (limited to 'sys/dev/isp')
-rw-r--r--sys/dev/isp/isp_pci.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c
index 8f64f07..c37ea96 100644
--- a/sys/dev/isp/isp_pci.c
+++ b/sys/dev/isp/isp_pci.c
@@ -675,6 +675,20 @@ isp_pci_attach(device_t dev)
isp->isp_osinfo.default_node_wwn = 0x400000007F000009ull;
}
+ if (resource_int_value(device_get_name(dev), device_get_unit(dev),
+ "iid", &tval) == 0) {
+ isp->isp_osinfo.default_id = tval;
+ isp->isp_confopts |= ISP_CFG_OWNLOOPID;
+ }
+ if (isp->isp_osinfo.default_id == 0) {
+ if (IS_FC(isp)) {
+ isp->isp_osinfo.default_id = 109;
+ } else {
+ isp->isp_osinfo.default_id = 7;
+ }
+ }
+
+ isp_debug = 0;
isp_debug = 0;
(void) resource_int_value(device_get_name(dev), device_get_unit(dev),
"debug", &isp_debug);
OpenPOWER on IntegriCloud