git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
renamed and cleaned up export header files to match linux convention
[lunaix-os.git]
/
lunaix-os
/
hal
/
ahci
/
ahci_pci.c
diff --git
a/lunaix-os/hal/ahci/ahci_pci.c
b/lunaix-os/hal/ahci/ahci_pci.c
index 4435da12431ddc6a451f716664a02dcfcbf0c156..2bc0ad979dcdb04a15d3b132b293cb5606053830 100644
(file)
--- a/
lunaix-os/hal/ahci/ahci_pci.c
+++ b/
lunaix-os/hal/ahci/ahci_pci.c
@@
-11,7
+11,7
@@
ahci_pci_create(struct device_def* def, morph_t* morphed)
struct device* dev;
struct pci_base_addr* bar6;
struct ahci_driver* ahci_drv;
struct device* dev;
struct pci_base_addr* bar6;
struct ahci_driver* ahci_drv;
-
msi_vector_t msiv
;
+
irq_t irq
;
probe = changeling_try_reveal(morphed, pci_probe_morpher);
if (!probe) {
probe = changeling_try_reveal(morphed, pci_probe_morpher);
if (!probe) {
@@
-29,12
+29,13
@@
ahci_pci_create(struct device_def* def, morph_t* morphed)
assert(pci_capability_msi(probe));
assert(pci_capability_msi(probe));
- msiv = pci_msi_setup_simple(probe, ahci_hba_isr);
+ irq = pci_declare_msi_irq(ahci_hba_isr, probe);
+ pci_assign_msi(probe, irq, NULL);
struct ahci_driver_param param = {
.mmio_base = bar6->start,
.mmio_size = bar6->size,
struct ahci_driver_param param = {
.mmio_base = bar6->start,
.mmio_size = bar6->size,
- .
ahci_iv = msi_vect(msiv)
,
+ .
irq = irq
,
};
ahci_drv = ahci_driver_init(¶m);
};
ahci_drv = ahci_driver_init(¶m);