Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/isp/isp_freebsd.c
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | |||||
int isp_gone_device_time = 30; /* grace time before reporting device lost */ | int isp_gone_device_time = 30; /* grace time before reporting device lost */ | ||||
static const char prom3[] = "Chan %d [%u] PortID 0x%06x Departed because of %s"; | static const char prom3[] = "Chan %d [%u] PortID 0x%06x Departed because of %s"; | ||||
static void isp_freeze_loopdown(ispsoftc_t *, int); | static void isp_freeze_loopdown(ispsoftc_t *, int); | ||||
static void isp_loop_changed(ispsoftc_t *isp, int chan); | static void isp_loop_changed(ispsoftc_t *isp, int chan); | ||||
static d_ioctl_t ispioctl; | static d_ioctl_t ispioctl; | ||||
static void isp_cam_async(void *, uint32_t, struct cam_path *, void *); | static void isp_cam_async(void *, uint32_t, struct cam_path *, void *); | ||||
static void isp_poll(struct cam_sim *); | static void isp_poll(struct cam_sim *); | ||||
static timeout_t isp_watchdog; | static callout_func_t isp_watchdog; | ||||
static timeout_t isp_gdt; | static callout_func_t isp_gdt; | ||||
static task_fn_t isp_gdt_task; | static task_fn_t isp_gdt_task; | ||||
static void isp_kthread(void *); | static void isp_kthread(void *); | ||||
static void isp_action(struct cam_sim *, union ccb *); | static void isp_action(struct cam_sim *, union ccb *); | ||||
static int isp_timer_count; | static int isp_timer_count; | ||||
static void isp_timer(void *); | static void isp_timer(void *); | ||||
static struct cdevsw isp_cdevsw = { | static struct cdevsw isp_cdevsw = { | ||||
.d_version = D_VERSION, | .d_version = D_VERSION, | ||||
▲ Show 20 Lines • Show All 689 Lines • ▼ Show 20 Lines | |||||
static void isp_put_atpd(ispsoftc_t *, int, atio_private_data_t *); | static void isp_put_atpd(ispsoftc_t *, int, atio_private_data_t *); | ||||
static inot_private_data_t *isp_get_ntpd(ispsoftc_t *, int); | static inot_private_data_t *isp_get_ntpd(ispsoftc_t *, int); | ||||
static inot_private_data_t *isp_find_ntpd(ispsoftc_t *, int, uint32_t, uint32_t); | static inot_private_data_t *isp_find_ntpd(ispsoftc_t *, int, uint32_t, uint32_t); | ||||
static void isp_put_ntpd(ispsoftc_t *, int, inot_private_data_t *); | static void isp_put_ntpd(ispsoftc_t *, int, inot_private_data_t *); | ||||
static cam_status create_lun_state(ispsoftc_t *, int, struct cam_path *, tstate_t **); | static cam_status create_lun_state(ispsoftc_t *, int, struct cam_path *, tstate_t **); | ||||
static void destroy_lun_state(ispsoftc_t *, int, tstate_t *); | static void destroy_lun_state(ispsoftc_t *, int, tstate_t *); | ||||
static void isp_enable_lun(ispsoftc_t *, union ccb *); | static void isp_enable_lun(ispsoftc_t *, union ccb *); | ||||
static void isp_disable_lun(ispsoftc_t *, union ccb *); | static void isp_disable_lun(ispsoftc_t *, union ccb *); | ||||
static timeout_t isp_refire_putback_atio; | static callout_func_t isp_refire_putback_atio; | ||||
static timeout_t isp_refire_notify_ack; | static callout_func_t isp_refire_notify_ack; | ||||
static void isp_complete_ctio(union ccb *); | static void isp_complete_ctio(union ccb *); | ||||
static void isp_target_putback_atio(union ccb *); | static void isp_target_putback_atio(union ccb *); | ||||
enum Start_Ctio_How { FROM_CAM, FROM_TIMER, FROM_SRR, FROM_CTIO_DONE }; | enum Start_Ctio_How { FROM_CAM, FROM_TIMER, FROM_SRR, FROM_CTIO_DONE }; | ||||
static void isp_target_start_ctio(ispsoftc_t *, union ccb *, enum Start_Ctio_How); | static void isp_target_start_ctio(ispsoftc_t *, union ccb *, enum Start_Ctio_How); | ||||
static void isp_handle_platform_atio2(ispsoftc_t *, at2_entry_t *); | static void isp_handle_platform_atio2(ispsoftc_t *, at2_entry_t *); | ||||
static void isp_handle_platform_atio7(ispsoftc_t *, at7_entry_t *); | static void isp_handle_platform_atio7(ispsoftc_t *, at7_entry_t *); | ||||
static void isp_handle_platform_ctio(ispsoftc_t *, void *); | static void isp_handle_platform_ctio(ispsoftc_t *, void *); | ||||
static int isp_handle_platform_target_notify_ack(ispsoftc_t *, isp_notify_t *, uint32_t rsp); | static int isp_handle_platform_target_notify_ack(ispsoftc_t *, isp_notify_t *, uint32_t rsp); | ||||
▲ Show 20 Lines • Show All 3,552 Lines • Show Last 20 Lines |