ahci: remove unused functions
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
f0337ee0fd
commit
9de7664bb9
1 changed files with 0 additions and 10 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue