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);