Changeset View
Changeset View
Standalone View
Standalone View
stand/libofw/ofw_disk.c
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | struct devsw ofwdisk = { | ||||
.dv_init = ofwd_init, | .dv_init = ofwd_init, | ||||
.dv_strategy = ofwd_strategy, | .dv_strategy = ofwd_strategy, | ||||
.dv_open = ofwd_open, | .dv_open = ofwd_open, | ||||
.dv_close = ofwd_close, | .dv_close = ofwd_close, | ||||
.dv_ioctl = ofwd_ioctl, | .dv_ioctl = ofwd_ioctl, | ||||
.dv_print = ofwd_print, | .dv_print = ofwd_print, | ||||
.dv_cleanup = nullsys, | .dv_cleanup = nullsys, | ||||
.dv_fmtdev = disk_fmtdev, | .dv_fmtdev = disk_fmtdev, | ||||
.dv_parsedev = disk_parsedev, | |||||
}; | }; | ||||
/* | /* | ||||
* We're not guaranteed to be able to open a device more than once and there | * We're not guaranteed to be able to open a device more than once and there | ||||
* is no OFW standard method to determine whether a device is already opened. | * is no OFW standard method to determine whether a device is already opened. | ||||
* Opening a device multiple times simultaneously happens to work with most | * Opening a device multiple times simultaneously happens to work with most | ||||
* OFW block device drivers but triggers a trap with at least the driver for | * OFW block device drivers but triggers a trap with at least the driver for | ||||
* the on-board controllers of Sun Fire V100 and Ultra 1. Upper layers and MI | * the on-board controllers of Sun Fire V100 and Ultra 1. Upper layers and MI | ||||
▲ Show 20 Lines • Show All 115 Lines • Show Last 20 Lines |