refactor: make pci device driver loading passive, pci bus scanner will not load them...
[lunaix-os.git] / lunaix-os / hal / ahci / io_event.c
index c1bd6a5ad2f2cc9465aac2ab52beec962314c99c..2ad988a4239936f1279127daea516f55d5c34c35 100644 (file)
@@ -6,16 +6,16 @@
 
 LOG_MODULE("io_evt")
 
 
 LOG_MODULE("io_evt")
 
-extern struct llist_header ahcis;
-
 void
 void
-__ahci_hba_isr(const isr_param* param)
+ahci_hba_isr(const isr_param* param)
 {
     struct ahci_hba* hba;
     struct ahci_driver *pos, *n;
 {
     struct ahci_hba* hba;
     struct ahci_driver *pos, *n;
-    llist_for_each(pos, n, &ahcis, ahci_drvs)
+    struct llist_header* ahcis = (struct llist_header*)isrm_get_payload(param);
+
+    llist_for_each(pos, n, ahcis, ahci_drvs)
     {
     {
-        if (pos->id == param->execp->vector) {
+        if (pos->id == (int)param->execp->vector) {
             hba = &pos->hba;
             goto proceed;
         }
             hba = &pos->hba;
             goto proceed;
         }