summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-05-26 02:02:07 -0400
committerIan Moffett <ian@osmora.org>2025-05-26 02:02:07 -0400
commit4861ca5f7db6ae19e59537edfa3574e64a7db1e7 (patch)
tree6db87e077b840d16189cc0be29d9a29666670fdf /sys/dev/ic
parentee6241cbb6fd948d1cc5d0b176427db88e4aee06 (diff)
kernel: ahci: Add ahci_dev_write()
Signed-off-by: Ian Moffett <ian@osmora.org>
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);