Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/cam_sim.c
Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | cam_sim_alloc(sim_action_func sim_action, sim_poll_func sim_poll, | ||||
sim->unit_number = unit; | sim->unit_number = unit; | ||||
sim->bus_id = 0; /* set in xpt_bus_register */ | sim->bus_id = 0; /* set in xpt_bus_register */ | ||||
sim->max_tagged_dev_openings = max_tagged_dev_transactions; | sim->max_tagged_dev_openings = max_tagged_dev_transactions; | ||||
sim->max_dev_openings = max_dev_transactions; | sim->max_dev_openings = max_dev_transactions; | ||||
sim->flags = 0; | sim->flags = 0; | ||||
sim->refcount = 1; | sim->refcount = 1; | ||||
sim->devq = queue; | sim->devq = queue; | ||||
sim->mtx = mtx; | sim->mtx = mtx; | ||||
callout_init(&sim->callout, 1); | |||||
return (sim); | return (sim); | ||||
} | } | ||||
/** | /** | ||||
* @brief allocate a new sim and fill in the details with a device_t | * @brief allocate a new sim and fill in the details with a device_t | ||||
* | * | ||||
* Just like @c cam_sim_alloc, but with an additional paramter. | * Just like @c cam_sim_alloc, but with an additional paramter. | ||||
* | * | ||||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |