summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/cam/cam_xpt.h
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sys/cam/cam_xpt.h')
-rw-r--r--freebsd/sys/cam/cam_xpt.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/freebsd/sys/cam/cam_xpt.h b/freebsd/sys/cam/cam_xpt.h
index ba5c924a..8e6027e5 100644
--- a/freebsd/sys/cam/cam_xpt.h
+++ b/freebsd/sys/cam/cam_xpt.h
@@ -32,11 +32,16 @@
#ifndef _CAM_CAM_XPT_H
#define _CAM_CAM_XPT_H 1
+#ifdef _KERNEL
+#include <sys/cdefs.h>
+#endif
+
/* Forward Declarations */
union ccb;
struct cam_periph;
struct cam_ed;
struct cam_sim;
+struct sbuf;
/*
* Definition of a CAM path. Paths are created from bus, target, and lun ids
@@ -102,6 +107,7 @@ void xpt_print_device(struct cam_ed *device);
void xpt_print(struct cam_path *path, const char *fmt, ...);
int xpt_path_string(struct cam_path *path, char *str,
size_t str_len);
+int xpt_path_sbuf(struct cam_path *path, struct sbuf *sb);
path_id_t xpt_path_path_id(struct cam_path *path);
target_id_t xpt_path_target_id(struct cam_path *path);
lun_id_t xpt_path_lun_id(struct cam_path *path);