From 9de7664bb91d936388a377236c7b5db790b2fd76 Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Wed, 15 Jul 2026 14:36:32 -0400 Subject: [PATCH] ahci: remove unused functions Signed-off-by: Michael Shaw --- drivers/ahci.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/ahci.c b/drivers/ahci.c index fd89e5c..4e157c9 100644 --- a/drivers/ahci.c +++ b/drivers/ahci.c @@ -23,9 +23,6 @@ static uint8_t sata_device_count = 0; static uint8_t cd_device_count = 0; static struct sata_device sata_devices[512] = {0}; -static paddr_t ahci_pbase = 0; -static vaddr_t ahci_vbase = 0; - static int ahci_port_type(hbaport_t *port) { uint32_t ssts = port->ssts; @@ -205,13 +202,6 @@ static int ahci_rw_sg(struct sata_device *dev, paddr_t lba, uint16_t count, stru return ahci_issue_wait(port, slot); } -static int ahci_rw(struct sata_device *dev, paddr_t lba, uint16_t count, paddr_t buf, bool write) -{ - SG_STATIC(sg, 1); - sg_append(&sg, buf, count * dev->sector_size); - return ahci_rw_sg(dev, lba, count, &sg, write); -} - static int ahci_identify(hbaport_t *port, struct ahci_identify *ident, bool packet) { void *buf = kalloc(4096, ALLOC_KERN);