Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/cam_sim.h
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | struct cam_sim { | ||||
TAILQ_ENTRY(cam_sim) links; | TAILQ_ENTRY(cam_sim) links; | ||||
u_int32_t path_id;/* The Boot device may set this to 0? */ | u_int32_t path_id;/* The Boot device may set this to 0? */ | ||||
u_int32_t unit_number; | u_int32_t unit_number; | ||||
u_int32_t bus_id; | u_int32_t bus_id; | ||||
int max_tagged_dev_openings; | int max_tagged_dev_openings; | ||||
int max_dev_openings; | int max_dev_openings; | ||||
u_int32_t flags; | u_int32_t flags; | ||||
#define CAM_SIM_REL_TIMEOUT_PENDING 0x01 | #define CAM_SIM_REL_TIMEOUT_PENDING 0x01 | ||||
#define CAM_SIM_MPSAFE 0x02 | |||||
struct callout callout; | struct callout callout; | ||||
struct cam_devq *devq; /* Device Queue to use for this SIM */ | struct cam_devq *devq; /* Device Queue to use for this SIM */ | ||||
int refcount; /* References to the SIM. */ | int refcount; /* References to the SIM. */ | ||||
device_t sim_dev; /* For attached peripherals. */ | device_t sim_dev; /* For attached peripherals. */ | ||||
}; | }; | ||||
#define CAM_SIM_LOCK(sim) mtx_lock((sim)->mtx) | #define CAM_SIM_LOCK(sim) mtx_lock((sim)->mtx) | ||||
#define CAM_SIM_UNLOCK(sim) mtx_unlock((sim)->mtx) | #define CAM_SIM_UNLOCK(sim) mtx_unlock((sim)->mtx) | ||||
Show All 33 Lines |