Date: Fri, 10 Nov 2006 02:44:04 GMT From: Matt Jacob <mjacob@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 109662 for review Message-ID: <200611100244.kAA2i4Vi094087@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=109662 Change 109662 by mjacob@newisp on 2006/11/10 02:43:10 Initialize Gone Device Timer handle and parameter. Affected files ... .. //depot/projects/newisp/dev/isp/isp_pci.c#18 edit Differences ... ==== //depot/projects/newisp/dev/isp/isp_pci.c#18 (text+ko) ==== @@ -433,6 +433,7 @@ int bitmap, unit; callout_handle_init(&isp->isp_osinfo.ldt); + callout_handle_init(&isp->isp_osinfo.gdt); unit = device_get_unit(dev); if (getenv_int("isp_disable", &bitmap)) { @@ -522,6 +523,14 @@ isp->isp_osinfo.loop_down_limit = isp_loop_down_limit; } + bitmap = 0; + (void) getenv_int("isp_gone_device_time", &bitmap); + if (bitmap >= 0 && bitmap < 0xffff) { + isp->isp_osinfo.gone_device_time = bitmap; + } else { + isp->isp_osinfo.gone_device_time = isp_gone_device_time; + } + #ifdef ISP_FW_CRASH_DUMP bitmap = 0; @@ -582,6 +591,7 @@ const char *sptr; callout_handle_init(&isp->isp_osinfo.ldt); + callout_handle_init(&isp->isp_osinfo.gdt); /* * Figure out if we're supposed to skip this one. @@ -747,6 +757,14 @@ isp->isp_osinfo.loop_down_limit = isp_loop_down_limit; } + tval = -1; + (void) resource_int_value(device_get_name(dev), device_get_unit(dev), + "gone_device_time", &tval); + if (tval >= 0 && tval < 0xffff) { + isp->isp_osinfo.gone_device_time = tval; + } else { + isp->isp_osinfo.gone_device_time = isp_gone_device_time; + } } static void
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611100244.kAA2i4Vi094087>