PERFORCE change 109662 for review

Matt Jacob mjacob at FreeBSD.org
Fri Nov 10 02:44:05 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=109662

Change 109662 by mjacob at 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


More information about the p4-projects mailing list