Lines Matching +full:hba +full:- +full:cap

21  * lspci dump of a ICH-9 real device
23 …2801IR/IO/IH (ICH9R/DO/DH) 6 port SATA AHCI Controller [8086:2922] (rev 02) (prog-if 01 [AHCI 1.0])
25 …* Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- Fast…
26 …* Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR
34 * Region 5: Memory at febf9000 (32-bit, non-prefetchable) [size=2K]
35 * Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Count=1/16 Enable+
38 * Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot+,D3cold-)
39 * Status: D0 PME-Enable- DSel=0 DScale=0 PME-
40 * Capabilities: [a8] SATA HBA <?>
72 #include "hw/ide/ahci-pci.h"
73 #include "ahci-internal.h"
98 ahci_reset(&d->ahci); in pci_ich9_reset()
105 ahci_init(&d->ahci, DEVICE(obj)); in pci_ich9_ahci_init()
116 d->ahci.ports = 6; in pci_ich9_ahci_realize()
117 ahci_realize(&d->ahci, DEVICE(dev), pci_get_address_space(dev)); in pci_ich9_ahci_realize()
119 pci_config_set_prog_interface(dev->config, AHCI_PROGMODE_MAJOR_REV_1); in pci_ich9_ahci_realize()
121 dev->config[PCI_CACHE_LINE_SIZE] = 0x08; /* Cache line size */ in pci_ich9_ahci_realize()
122 dev->config[PCI_LATENCY_TIMER] = 0x00; /* Latency timer */ in pci_ich9_ahci_realize()
123 pci_config_set_interrupt_pin(dev->config, 1); in pci_ich9_ahci_realize()
126 dev->config[0x90] = 1 << 6; /* Address Map Register - AHCI mode */ in pci_ich9_ahci_realize()
128 d->ahci.irq = pci_allocate_irq(dev); in pci_ich9_ahci_realize()
131 &d->ahci.idp); in pci_ich9_ahci_realize()
133 &d->ahci.mem); in pci_ich9_ahci_realize()
142 sata_cap = dev->config + sata_cap_offset; in pci_ich9_ahci_realize()
146 d->ahci.idp_offset = ICH9_IDP_INDEX; in pci_ich9_ahci_realize()
152 /* Any error other than -ENOTSUP(board's MSI support is broken) in pci_ich9_ahci_realize()
153 * is a programming error. Fall back to INTx silently on -ENOTSUP */ in pci_ich9_ahci_realize()
154 assert(!ret || ret == -ENOTSUP); in pci_ich9_ahci_realize()
163 ahci_uninit(&d->ahci); in pci_ich9_uninit()
164 qemu_free_irq(d->ahci.irq); in pci_ich9_uninit()
172 k->realize = pci_ich9_ahci_realize; in ich_ahci_class_init()
173 k->exit = pci_ich9_uninit; in ich_ahci_class_init()
174 k->vendor_id = PCI_VENDOR_ID_INTEL; in ich_ahci_class_init()
175 k->device_id = PCI_DEVICE_ID_INTEL_82801IR; in ich_ahci_class_init()
176 k->revision = 0x02; in ich_ahci_class_init()
177 k->class_id = PCI_CLASS_STORAGE_SATA; in ich_ahci_class_init()
178 dc->vmsd = &vmstate_ich9_ahci; in ich_ahci_class_init()
180 set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); in ich_ahci_class_init()