summaryrefslogtreecommitdiff
path: root/sys/cam/cam.c
diff options
context:
space:
mode:
authorMike Smith <msmith@FreeBSD.org>2002-01-09 03:39:04 +0000
committerMike Smith <msmith@FreeBSD.org>2002-01-09 03:39:04 +0000
commit65c382562e0d552e0dbfe1f659e73b3532c92ddc (patch)
tree2bb9be61e9481ca44a7026f0a28670676ba0d78f /sys/cam/cam.c
parent1e050d0ca5906d61c3895c1c2a0f089a5883fc1b (diff)
Notes
Diffstat (limited to 'sys/cam/cam.c')
-rw-r--r--sys/cam/cam.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/cam/cam.c b/sys/cam/cam.c
index 3f410bb27f9c..d575fd6751d7 100644
--- a/sys/cam/cam.c
+++ b/sys/cam/cam.c
@@ -30,7 +30,10 @@
#include <sys/param.h>
#ifdef _KERNEL
+#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/kernel.h>
+#include <sys/sysctl.h>
#else /* _KERNEL */
#include <stdlib.h>
#include <stdio.h>
@@ -95,6 +98,10 @@ const struct cam_status_entry cam_status_table[] = {
const int num_cam_status_entries =
sizeof(cam_status_table)/sizeof(*cam_status_table);
+#ifdef _KERNEL
+SYSCTL_NODE(_kern, OID_AUTO, cam, CTLFLAG_RD, 0, "CAM Subsystem");
+#endif
+
void
cam_strvis(u_int8_t *dst, const u_int8_t *src, int srclen, int dstlen)
{