diff options
author | sos <sos@FreeBSD.org> | 2006-09-25 11:26:29 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2006-09-25 11:26:29 +0000 |
commit | b30d1cd42fbe4923b35b83698a4ff58c837d6a55 (patch) | |
tree | 341ab9653149342a977637706022edc4fb2017ca /sys/dev/ata | |
parent | 7336dcc19433583d59c726950c43ff9fdf10bbb0 (diff) | |
download | FreeBSD-src-b30d1cd42fbe4923b35b83698a4ff58c837d6a55.zip FreeBSD-src-b30d1cd42fbe4923b35b83698a4ff58c837d6a55.tar.gz |
add support for the ALI/ULI M5288 AHCI part.
patch by: Sven Petai
Diffstat (limited to 'sys/dev/ata')
-rw-r--r-- | sys/dev/ata/ata-chipset.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/ata/ata-chipset.c b/sys/dev/ata/ata-chipset.c index feaa0fc..fe6a70d 100644 --- a/sys/dev/ata/ata-chipset.c +++ b/sys/dev/ata/ata-chipset.c @@ -985,6 +985,13 @@ ata_ali_chipinit(device_t dev) ctlr->allocate = ata_ali_sata_allocate; ctlr->setmode = ata_sata_setmode; + /* if we have a memory resource we can likely do AHCI */ + ctlr->r_type2 = SYS_RES_MEMORY; + ctlr->r_rid2 = PCIR_BAR(5); + if ((ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2, + &ctlr->r_rid2, RF_ACTIVE))) + return ata_ahci_chipinit(dev); + /* enable PCI interrupt */ pci_write_config(dev, PCIR_COMMAND, pci_read_config(dev, PCIR_COMMAND, 2) & ~0x0400, 2); |