aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/firewire/firewirereg.h
diff options
context:
space:
mode:
authorHidetoshi Shimokawa <simokawa@FreeBSD.org>2003-02-27 12:51:24 +0000
committerHidetoshi Shimokawa <simokawa@FreeBSD.org>2003-02-27 12:51:24 +0000
commit455454994f5f90c4b8da443410b2b0974c0471a3 (patch)
tree9dc6d0572414885de0d9b6a17ee7854130b3e2e9 /sys/dev/firewire/firewirereg.h
parent8fc4d0f9a748929cb4ca817da97b02f72c557301 (diff)
downloadsrc-455454994f5f90c4b8da443410b2b0974c0471a3.tar.gz
src-455454994f5f90c4b8da443410b2b0974c0471a3.zip
MFp4(simokawa_sbp branch)
Improve SBP device probeing: - Wait 2 sec before issuing LOGIN ORB expecting the reconnection hold timer expires. - Serialize management ORB and scanning LUN by CAM on each target. This should fix the problem for devices which have multiple LUNs. Test device is donated by: Jaye Mathisen <mrcpu@internetcds.com> - Freeze SIM queue for 2 sec after BUS RESET. - Retry with LOGIN rather than RECONNECT after LOGIN is not completed for BUS RESET. - Use appropriate CAM status for BUS RESET and DEVICE RESET. - Let CAM to scan targets after BUS REST. - Implement CAM scan target function. - Keep our own devq freeze count. - Let CAM to know that SBP does tagged queuing. These should be merged to RELENG_4 before 4.8-RELEASE.
Notes
Notes: svn path=/head/; revision=111615
Diffstat (limited to 'sys/dev/firewire/firewirereg.h')
-rw-r--r--sys/dev/firewire/firewirereg.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/firewire/firewirereg.h b/sys/dev/firewire/firewirereg.h
index 0998575a3de5..9cbcadf97434 100644
--- a/sys/dev/firewire/firewirereg.h
+++ b/sys/dev/firewire/firewirereg.h
@@ -368,5 +368,11 @@ extern devclass_t firewire_devclass;
#define vtophys(va) alpha_XXX_dmamap((vm_offset_t)(va))
#endif /* __alpha__ */
+#if __FreeBSD_version >= 500000
+#define CALLOUT_INIT(x) callout_init(x, 0 /* mpsafe */)
+#else
+#define CALLOUT_INIT(x) callout_init(x)
+#endif
+
MALLOC_DECLARE(M_FW);
MALLOC_DECLARE(M_FWXFER);