Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
ccb.callback = hpt_async; | ccb.callback = hpt_async; | ||||
ccb.callback_arg = vbus_ext; | ccb.callback_arg = vbus_ext; | ||||
xpt_action((union ccb *)&ccb); | xpt_action((union ccb *)&ccb); | ||||
hpt_unlock_vbus(vbus_ext); | hpt_unlock_vbus(vbus_ext); | ||||
for (hba = vbus_ext->hba_list; hba; hba = hba->next) { | for (hba = vbus_ext->hba_list; hba; hba = hba->next) { | ||||
int rid = 0; | int rid = 0; | ||||
if ((hba->irq_res = bus_alloc_resource(hba->pcidev, | if ((hba->irq_res = bus_alloc_resource(hba->pcidev, | ||||
SYS_RES_IRQ, &rid, 0, ~0ul, 1, RF_SHAREABLE | RF_ACTIVE)) == NULL) | SYS_RES_IRQ, &rid, 0, ~0, 1, RF_SHAREABLE | RF_ACTIVE)) == NULL) | ||||
{ | { | ||||
os_printk("can't allocate interrupt"); | os_printk("can't allocate interrupt"); | ||||
return ; | return ; | ||||
} | } | ||||
#if (__FreeBSD_version >= 1000510) | #if (__FreeBSD_version >= 1000510) | ||||
if (bus_setup_intr(hba->pcidev, hba->irq_res, INTR_TYPE_CAM | INTR_MPSAFE, | if (bus_setup_intr(hba->pcidev, hba->irq_res, INTR_TYPE_CAM | INTR_MPSAFE, | ||||
#else | #else | ||||
if (bus_setup_intr(hba->pcidev, hba->irq_res, INTR_TYPE_CAM, | if (bus_setup_intr(hba->pcidev, hba->irq_res, INTR_TYPE_CAM, | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |