diff options
| author | Matt Jacob <mjacob@FreeBSD.org> | 2002-07-08 17:34:32 +0000 |
|---|---|---|
| committer | Matt Jacob <mjacob@FreeBSD.org> | 2002-07-08 17:34:32 +0000 |
| commit | ed753e824b44c5a6a83cd5b262887532ba3d4837 (patch) | |
| tree | 636355c0be7ea3bd9c74de0dd75c88f96de27450 /sys/dev | |
| parent | af2d254da984d1c56e4a3dc790b0aedd8ef4ddb5 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/isp/isp_pci.c | 14 |
1 files changed, 14 insertions, 0 deletions
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); |
