From ed753e824b44c5a6a83cd5b262887532ba3d4837 Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Mon, 8 Jul 2002 17:34:32 +0000 Subject: Add override so that we can force set our hard loopdid. MFC after: 1 week --- sys/dev/isp/isp_pci.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'sys/dev/isp') diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c index 8f64f0788044..c37ea96a404b 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); -- cgit v1.3