Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ahci/ahci.c
Show All 12 Lines | |||||
(ch->pm_level == 4) ? hz / 1000 : hz / 8, | (ch->pm_level == 4) ? hz / 1000 : hz / 8, | ||||
ahci_ch_pm, ch); | ahci_ch_pm, ch); | ||||
} | } | ||||
mtx_unlock(&ch->mtx); | mtx_unlock(&ch->mtx); | ||||
ahci_attached(device_get_parent(dev), ch); | ahci_attached(device_get_parent(dev), ch); | ||||
ctx = device_get_sysctl_ctx(dev); | ctx = device_get_sysctl_ctx(dev); | ||||
tree = device_get_sysctl_tree(dev); | tree = device_get_sysctl_tree(dev); | ||||
SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, "disable_phy", | SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, "disable_phy", | ||||
CTLFLAG_RW | CTLTYPE_UINT, ch, 0, ahci_ch_disablephy_proc, "IU", | CTLFLAG_RW | CTLTYPE_UINT | CTLFLAG_NEEDGIANT, ch, 0, | ||||
ahci_ch_disablephy_proc, "IU", | |||||
"Disable PHY"); | "Disable PHY"); | ||||
return (0); | return (0); | ||||
err3: | err3: | ||||
xpt_bus_deregister(cam_sim_path(ch->sim)); | xpt_bus_deregister(cam_sim_path(ch->sim)); | ||||
err2: | err2: | ||||
cam_sim_free(ch->sim, /*free_devq*/TRUE); | cam_sim_free(ch->sim, /*free_devq*/TRUE); | ||||
err1: | err1: | ||||
Show All 12 Lines |