46#define CAM_XPT_PATH_ID ((path_id_t)~0)
47#define CAM_BUS_WILDCARD ((path_id_t)~0)
48#define CAM_TARGET_WILDCARD ((target_id_t)~0)
49#define CAM_LUN_WILDCARD (~(u_int)0)
51#define CAM_EXTLUN_BYTE_SWIZZLE(lun) ( \
52 ((((u_int64_t)lun) & 0xffff000000000000L) >> 48) | \
53 ((((u_int64_t)lun) & 0x0000ffff00000000L) >> 16) | \
54 ((((u_int64_t)lun) & 0x00000000ffff0000L) << 16) | \
55 ((((u_int64_t)lun) & 0x000000000000ffffL) << 48))
60#define CAM_MAX_CDBLEN 16
87#define CAM_PRIORITY_HOST ((CAM_RL_HOST << 8) + 0x80)
88#define CAM_PRIORITY_BUS ((CAM_RL_BUS << 8) + 0x80)
89#define CAM_PRIORITY_XPT ((CAM_RL_XPT << 8) + 0x80)
90#define CAM_PRIORITY_DEV ((CAM_RL_DEV << 8) + 0x80)
91#define CAM_PRIORITY_OOB (CAM_RL_DEV << 8)
92#define CAM_PRIORITY_NORMAL ((CAM_RL_NORMAL << 8) + 0x80)
93#define CAM_PRIORITY_NONE (u_int32_t)-1
96#define CAM_UNQUEUED_INDEX -1
97#define CAM_ACTIVE_INDEX -2
98#define CAM_DONEQ_INDEX -3
99#define CAM_ASYNC_INDEX -4
100#define CAM_EXTRAQ_INDEX INT_MAX
112#define GENERATIONCMP(x, op, y) ((int32_t)((x) - (y)) op 0)
377caddr_t
cam_quirkmatch(caddr_t target, caddr_t quirk_table,
int num_entries,
380void cam_strvis(u_int8_t *dst,
const u_int8_t *src,
int srclen,
int dstlen);
382 int dstlen, uint32_t flags);
386int cam_strmatch(
const u_int8_t *str,
const u_int8_t *pattern,
int str_len);
@ CAM_STRVIS_FLAG_NONASCII_MASK
@ CAM_STRVIS_FLAG_NONASCII_ESC
@ CAM_STRVIS_FLAG_NONASCII_SPC
@ CAM_STRVIS_FLAG_NONASCII_RAW
@ CAM_STRVIS_FLAG_NONASCII_TRIM
const struct cam_status_entry cam_status_table[]
#define CAM_PRIORITY_NONE
char * cam_error_string(union ccb *ccb, char *str, int str_len, cam_error_string_flags flags, cam_error_proto_flags proto_flags)
caddr_t cam_quirkmatch(caddr_t target, caddr_t quirk_table, int num_entries, int entry_size, cam_quirkmatch_t *comp_func)
#define CAM_UNQUEUED_INDEX
int cam_strmatch(const u_int8_t *str, const u_int8_t *pattern, int str_len)
void cam_strvis_sbuf(struct sbuf *sb, const u_int8_t *src, int srclen, uint32_t flags)
const struct cam_status_entry * cam_fetch_status_entry(cam_status status)
static __END_DECLS __inline void cam_init_pinfo(cam_pinfo *pinfo)
const int num_cam_status_entries
void cam_strvis(u_int8_t *dst, const u_int8_t *src, int srclen, int dstlen)
void cam_strvis_flag(u_int8_t *dst, const u_int8_t *src, int srclen, int dstlen, uint32_t flags)
__BEGIN_DECLS typedef int() cam_quirkmatch_t(caddr_t, caddr_t)
@ CAM_ESMF_PRINT_FULL_CMD
void cam_error_print(union ccb *ccb, cam_error_string_flags flags, cam_error_proto_flags proto_flags)
SYSCTL_DECL(_kern_cam_enc)