Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/cam_xpt.h
Show All 31 Lines | |||||
#ifndef _CAM_CAM_XPT_H | #ifndef _CAM_CAM_XPT_H | ||||
#define _CAM_CAM_XPT_H 1 | #define _CAM_CAM_XPT_H 1 | ||||
/* Forward Declarations */ | /* Forward Declarations */ | ||||
union ccb; | union ccb; | ||||
struct cam_periph; | struct cam_periph; | ||||
struct cam_ed; | struct cam_ed; | ||||
struct cam_sim; | struct cam_sim; | ||||
struct sbuf; | |||||
/* | /* | ||||
* Definition of a CAM path. Paths are created from bus, target, and lun ids | * Definition of a CAM path. Paths are created from bus, target, and lun ids | ||||
* via xpt_create_path and allow for reference to devices without recurring | * via xpt_create_path and allow for reference to devices without recurring | ||||
* lookups in the edt. | * lookups in the edt. | ||||
*/ | */ | ||||
struct cam_path; | struct cam_path; | ||||
▲ Show 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | int xpt_path_comp(struct cam_path *path1, | ||||
struct cam_path *path2); | struct cam_path *path2); | ||||
int xpt_path_comp_dev(struct cam_path *path, | int xpt_path_comp_dev(struct cam_path *path, | ||||
struct cam_ed *dev); | struct cam_ed *dev); | ||||
void xpt_print_path(struct cam_path *path); | void xpt_print_path(struct cam_path *path); | ||||
void xpt_print_device(struct cam_ed *device); | void xpt_print_device(struct cam_ed *device); | ||||
void xpt_print(struct cam_path *path, const char *fmt, ...); | void xpt_print(struct cam_path *path, const char *fmt, ...); | ||||
int xpt_path_string(struct cam_path *path, char *str, | int xpt_path_string(struct cam_path *path, char *str, | ||||
size_t str_len); | 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); | path_id_t xpt_path_path_id(struct cam_path *path); | ||||
target_id_t xpt_path_target_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); | lun_id_t xpt_path_lun_id(struct cam_path *path); | ||||
struct cam_sim *xpt_path_sim(struct cam_path *path); | struct cam_sim *xpt_path_sim(struct cam_path *path); | ||||
struct cam_periph *xpt_path_periph(struct cam_path *path); | struct cam_periph *xpt_path_periph(struct cam_path *path); | ||||
void xpt_async(u_int32_t async_code, struct cam_path *path, | void xpt_async(u_int32_t async_code, struct cam_path *path, | ||||
void *async_arg); | void *async_arg); | ||||
void xpt_rescan(union ccb *ccb); | void xpt_rescan(union ccb *ccb); | ||||
Show All 28 Lines |