summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/ahci.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/dev/ic/ahci.c b/sys/dev/ic/ahci.c
index 0c45c24..c7ef2cc 100644
--- a/sys/dev/ic/ahci.c
+++ b/sys/dev/ic/ahci.c
@@ -703,6 +703,15 @@ ahci_dev_read(dev_t dev, struct sio_txn *sio, int flags)
}
/*
+ * Device interface write
+ */
+static int
+ahci_dev_write(dev_t dev, struct sio_txn *sio, int flags)
+{
+ return sata_dev_rw(dev, sio, true);
+}
+
+/*
* Initialize a drive on an HBA port
*
* @hba: HBA descriptor
@@ -990,7 +999,7 @@ ahci_init(void)
static struct bdevsw ahci_bdevsw = {
.read = ahci_dev_read,
- .write = nowrite
+ .write = ahci_dev_write,
};
DRIVER_EXPORT(ahci_init);