Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/ata/ata_da.c
Show First 20 Lines • Show All 1,874 Lines • ▼ Show 20 Lines | softc->disk->d_devstat = devstat_new_entry(periph->periph_name, | ||||
DEVSTAT_ALL_SUPPORTED, | DEVSTAT_ALL_SUPPORTED, | ||||
DEVSTAT_TYPE_DIRECT | | DEVSTAT_TYPE_DIRECT | | ||||
XPORT_DEVSTAT_TYPE(softc->cpi.transport), | XPORT_DEVSTAT_TYPE(softc->cpi.transport), | ||||
DEVSTAT_PRIORITY_DISK); | DEVSTAT_PRIORITY_DISK); | ||||
softc->disk->d_open = adaopen; | softc->disk->d_open = adaopen; | ||||
softc->disk->d_close = adaclose; | softc->disk->d_close = adaclose; | ||||
softc->disk->d_strategy = adastrategy; | softc->disk->d_strategy = adastrategy; | ||||
softc->disk->d_getattr = adagetattr; | softc->disk->d_getattr = adagetattr; | ||||
if (cam_sim_pollable(periph->sim)) | |||||
softc->disk->d_dump = adadump; | softc->disk->d_dump = adadump; | ||||
softc->disk->d_gone = adadiskgonecb; | softc->disk->d_gone = adadiskgonecb; | ||||
softc->disk->d_name = "ada"; | softc->disk->d_name = "ada"; | ||||
softc->disk->d_drv1 = periph; | softc->disk->d_drv1 = periph; | ||||
softc->disk->d_unit = periph->unit_number; | softc->disk->d_unit = periph->unit_number; | ||||
/* | /* | ||||
* Acquire a reference to the periph before we register with GEOM. | * Acquire a reference to the periph before we register with GEOM. | ||||
* We'll release this reference once GEOM calls us back (via | * We'll release this reference once GEOM calls us back (via | ||||
▲ Show 20 Lines • Show All 1,804 Lines • Show Last 20 Lines |