Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/ata/ata_xpt.c
Show First 20 Lines • Show All 1,793 Lines • ▼ Show 20 Lines | ata_dev_advinfo(union ccb *start_ccb) | ||||
} | } | ||||
} | } | ||||
static void | static void | ||||
ata_action(union ccb *start_ccb) | ata_action(union ccb *start_ccb) | ||||
{ | { | ||||
if (start_ccb->ccb_h.func_code != XPT_ATA_IO) { | if (start_ccb->ccb_h.func_code != XPT_ATA_IO) { | ||||
#ifdef notyet | |||||
KASSERT((start_ccb->ccb_h.alloc_flags & CAM_CCB_FROM_UMA) == 0, | KASSERT((start_ccb->ccb_h.alloc_flags & CAM_CCB_FROM_UMA) == 0, | ||||
("%s: ccb %p, func_code %#x should not be allocated " | ("%s: ccb %p, func_code %#x should not be allocated " | ||||
"from UMA zone\n", | "from UMA zone\n", | ||||
__func__, start_ccb, start_ccb->ccb_h.func_code)); | __func__, start_ccb, start_ccb->ccb_h.func_code)); | ||||
#else | |||||
if ((start_ccb->ccb_h.alloc_flags & CAM_CCB_FROM_UMA) != 0) { | |||||
printf("%s: ccb %p, func_code %#x should not be allocated " | |||||
"from UMA zone\n", | |||||
__func__, start_ccb, start_ccb->ccb_h.func_code); | |||||
} | |||||
#endif | |||||
} | } | ||||
switch (start_ccb->ccb_h.func_code) { | switch (start_ccb->ccb_h.func_code) { | ||||
case XPT_SET_TRAN_SETTINGS: | case XPT_SET_TRAN_SETTINGS: | ||||
{ | { | ||||
ata_set_transfer_settings(&start_ccb->cts, | ata_set_transfer_settings(&start_ccb->cts, | ||||
start_ccb->ccb_h.path, | start_ccb->ccb_h.path, | ||||
/*async_update*/FALSE); | /*async_update*/FALSE); | ||||
▲ Show 20 Lines • Show All 486 Lines • Show Last 20 Lines |