ioapic_abi: More consistent function name w/ legacy interrupt
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 12 Jan 2012 10:48:29 +0000 (18:48 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 12 Jan 2012 10:48:29 +0000 (18:48 +0800)
No functional changes

sys/platform/pc32/apic/ioapic.c
sys/platform/pc32/apic/ioapic_abi.c
sys/platform/pc32/apic/ioapic_abi.h
sys/platform/pc32/i386/mptable.c
sys/platform/pc32/isa/clock.c
sys/platform/pc64/apic/ioapic.c
sys/platform/pc64/apic/ioapic_abi.c
sys/platform/pc64/apic/ioapic_abi.h
sys/platform/pc64/isa/clock.c
sys/platform/pc64/x86_64/mptable.c

index 45f6f01..55db0e1 100644 (file)
@@ -199,7 +199,7 @@ ioapic_config(void)
         */
        TAILQ_FOREACH(info, &ioapic_conf.ioc_list, io_link)
                ioapic_setup(info);
-       ioapic_abi_fixup_irqmap();
+       ioapic_fixup_legacy_irqmaps();
 
        write_eflags(ef);
 
@@ -392,7 +392,7 @@ ioapic_gsi_setup(int gsi)
                }
        }
 
-       ioapic_abi_set_irqmap(irq, gsi, trig, pola);
+       ioapic_set_legacy_irqmap(irq, gsi, trig, pola);
 }
 
 void *
index 344ed7a..cb3166b 100644 (file)
@@ -752,7 +752,7 @@ ioapic_abi_initmap(void)
 }
 
 void
-ioapic_abi_set_irqmap(int irq, int gsi, enum intr_trigger trig,
+ioapic_set_legacy_irqmap(int irq, int gsi, enum intr_trigger trig,
     enum intr_polarity pola)
 {
        struct ioapic_irqinfo *info;
@@ -805,7 +805,7 @@ ioapic_abi_set_irqmap(int irq, int gsi, enum intr_trigger trig,
 }
 
 void
-ioapic_abi_fixup_irqmap(void)
+ioapic_fixup_legacy_irqmaps(void)
 {
        int cpu;
 
@@ -833,7 +833,8 @@ ioapic_abi_fixup_irqmap(void)
 }
 
 int
-ioapic_abi_find_gsi(int gsi, enum intr_trigger trig, enum intr_polarity pola)
+ioapic_find_legacy_by_gsi(int gsi, enum intr_trigger trig,
+    enum intr_polarity pola)
 {
        int cpu;
 
@@ -863,7 +864,8 @@ ioapic_abi_find_gsi(int gsi, enum intr_trigger trig, enum intr_polarity pola)
 }
 
 int
-ioapic_abi_find_irq(int irq, enum intr_trigger trig, enum intr_polarity pola)
+ioapic_find_legacy_by_irq(int irq, enum intr_trigger trig,
+    enum intr_polarity pola)
 {
        int cpu;
 
@@ -956,7 +958,7 @@ ioapic_abi_intr_config(int irq, enum intr_trigger trig, enum intr_polarity pola)
 }
 
 int
-ioapic_abi_extint_irqmap(int irq)
+ioapic_conf_legacy_extint(int irq)
 {
        struct ioapic_irqinfo *info;
        struct ioapic_irqmap *map;
index d77c611..3fd3d4e 100644 (file)
@@ -65,11 +65,12 @@ extern struct ioapic_irqinfo        ioapic_irqs[];
 
 extern struct machintr_abi MachIntrABI_IOAPIC;
 
-int    ioapic_abi_extint_irqmap(int);
-void   ioapic_abi_set_irqmap(int, int, enum intr_trigger, enum intr_polarity);
-void   ioapic_abi_fixup_irqmap(void);
+int    ioapic_conf_legacy_extint(int);
+void   ioapic_set_legacy_irqmap(int, int, enum intr_trigger,
+           enum intr_polarity);
+void   ioapic_fixup_legacy_irqmaps(void);
 
-int    ioapic_abi_find_gsi(int, enum intr_trigger, enum intr_polarity);
-int    ioapic_abi_find_irq(int, enum intr_trigger, enum intr_polarity);
+int    ioapic_find_legacy_by_gsi(int, enum intr_trigger, enum intr_polarity);
+int    ioapic_find_legacy_by_irq(int, enum intr_trigger, enum intr_polarity);
 
 #endif /* !_ARCH_APIC_IOAPIC_ABI_H_ */
index 63f9935..36c15ac 100644 (file)
@@ -1424,7 +1424,7 @@ mptable_pci_int_route(int bus, int dev, int pin, int intline)
                gsi = ioapic_gsi(pci_int->mpci_ioapic_idx,
                        pci_int->mpci_ioapic_pin);
                if (gsi >= 0) {
-                       irq = ioapic_abi_find_gsi(gsi,
+                       irq = ioapic_find_legacy_by_gsi(gsi,
                                INTR_TRIGGER_LEVEL, INTR_POLARITY_LOW);
                }
        }
@@ -1435,7 +1435,7 @@ mptable_pci_int_route(int bus, int dev, int pin, int intline)
                                "for %d:%d INT%c\n", bus, dev, pin + 'A');
                }
 
-               irq = ioapic_abi_find_irq(intline,
+               irq = ioapic_find_legacy_by_irq(intline,
                        INTR_TRIGGER_LEVEL, INTR_POLARITY_LOW);
        }
 
index 6cfed11..4af55a2 100644 (file)
@@ -1057,14 +1057,14 @@ i8254_intr_initclock(struct cputimer_intr *cti, boolean_t selected)
 
        /* Finish initializing 8253 timer 0. */
        if (ioapic_enable) {
-               irq = ioapic_abi_find_irq(0, INTR_TRIGGER_EDGE,
+               irq = ioapic_find_legacy_by_irq(0, INTR_TRIGGER_EDGE,
                        INTR_POLARITY_HIGH);
                if (irq < 0) {
 mixed_mode_setup:
-                       error = ioapic_abi_extint_irqmap(0);
+                       error = ioapic_conf_legacy_extint(0);
                        if (!error) {
-                               irq = ioapic_abi_find_irq(0, INTR_TRIGGER_EDGE,
-                                       INTR_POLARITY_HIGH);
+                               irq = ioapic_find_legacy_by_irq(0,
+                                   INTR_TRIGGER_EDGE, INTR_POLARITY_HIGH);
                                if (irq < 0)
                                        error = ENOENT;
                        }
index 5e03788..a1e6709 100644 (file)
@@ -199,7 +199,7 @@ ioapic_config(void)
         */
        TAILQ_FOREACH(info, &ioapic_conf.ioc_list, io_link)
                ioapic_setup(info);
-       ioapic_abi_fixup_irqmap();
+       ioapic_fixup_legacy_irqmaps();
 
        write_rflags(ef);
 
@@ -392,7 +392,7 @@ ioapic_gsi_setup(int gsi)
                }
        }
 
-       ioapic_abi_set_irqmap(irq, gsi, trig, pola);
+       ioapic_set_legacy_irqmap(irq, gsi, trig, pola);
 }
 
 void *
index b91b89f..681b3ad 100644 (file)
@@ -749,7 +749,7 @@ ioapic_abi_initmap(void)
 }
 
 void
-ioapic_abi_set_irqmap(int irq, int gsi, enum intr_trigger trig,
+ioapic_set_legacy_irqmap(int irq, int gsi, enum intr_trigger trig,
     enum intr_polarity pola)
 {
        struct ioapic_irqinfo *info;
@@ -802,7 +802,7 @@ ioapic_abi_set_irqmap(int irq, int gsi, enum intr_trigger trig,
 }
 
 void
-ioapic_abi_fixup_irqmap(void)
+ioapic_fixup_legacy_irqmaps(void)
 {
        int cpu;
 
@@ -830,7 +830,8 @@ ioapic_abi_fixup_irqmap(void)
 }
 
 int
-ioapic_abi_find_gsi(int gsi, enum intr_trigger trig, enum intr_polarity pola)
+ioapic_find_legacy_by_gsi(int gsi, enum intr_trigger trig,
+    enum intr_polarity pola)
 {
        int cpu;
 
@@ -860,7 +861,8 @@ ioapic_abi_find_gsi(int gsi, enum intr_trigger trig, enum intr_polarity pola)
 }
 
 int
-ioapic_abi_find_irq(int irq, enum intr_trigger trig, enum intr_polarity pola)
+ioapic_find_legacy_by_irq(int irq, enum intr_trigger trig,
+    enum intr_polarity pola)
 {
        int cpu;
 
@@ -953,7 +955,7 @@ ioapic_abi_intr_config(int irq, enum intr_trigger trig, enum intr_polarity pola)
 }
 
 int
-ioapic_abi_extint_irqmap(int irq)
+ioapic_conf_legacy_extint(int irq)
 {
        struct ioapic_irqinfo *info;
        struct ioapic_irqmap *map;
index 343d66b..ff0be4d 100644 (file)
@@ -64,11 +64,12 @@ extern struct ioapic_irqinfo        ioapic_irqs[];
 
 extern struct machintr_abi MachIntrABI_IOAPIC;
 
-int    ioapic_abi_extint_irqmap(int);
-void   ioapic_abi_set_irqmap(int, int, enum intr_trigger, enum intr_polarity);
-void   ioapic_abi_fixup_irqmap(void);
+int    ioapic_conf_legacy_extint(int);
+void   ioapic_set_legacy_irqmap(int, int, enum intr_trigger,
+           enum intr_polarity);
+void   ioapic_fixup_legacy_irqmaps(void);
 
-int    ioapic_abi_find_gsi(int, enum intr_trigger, enum intr_polarity);
-int    ioapic_abi_find_irq(int, enum intr_trigger, enum intr_polarity);
+int    ioapic_find_legacy_by_gsi(int, enum intr_trigger, enum intr_polarity);
+int    ioapic_find_legacy_by_irq(int, enum intr_trigger, enum intr_polarity);
 
 #endif /* !_ARCH_APIC_IOAPIC_ABI_H_ */
index d408b16..13c5589 100644 (file)
@@ -1064,14 +1064,14 @@ i8254_intr_initclock(struct cputimer_intr *cti, boolean_t selected)
 
        /* Finish initializing 8254 timer 0. */
        if (ioapic_enable) {
-               irq = ioapic_abi_find_irq(0, INTR_TRIGGER_EDGE,
+               irq = ioapic_find_legacy_by_irq(0, INTR_TRIGGER_EDGE,
                        INTR_POLARITY_HIGH);
                if (irq < 0) {
 mixed_mode_setup:
-                       error = ioapic_abi_extint_irqmap(0);
+                       error = ioapic_conf_legacy_extint(0);
                        if (!error) {
-                               irq = ioapic_abi_find_irq(0, INTR_TRIGGER_EDGE,
-                                       INTR_POLARITY_HIGH);
+                               irq = ioapic_find_legacy_by_irq(0,
+                                   INTR_TRIGGER_EDGE, INTR_POLARITY_HIGH);
                                if (irq < 0)
                                        error = ENOENT;
                        }
index b81e51b..3b92d74 100644 (file)
@@ -1424,7 +1424,7 @@ mptable_pci_int_route(int bus, int dev, int pin, int intline)
                gsi = ioapic_gsi(pci_int->mpci_ioapic_idx,
                        pci_int->mpci_ioapic_pin);
                if (gsi >= 0) {
-                       irq = ioapic_abi_find_gsi(gsi,
+                       irq = ioapic_find_legacy_by_gsi(gsi,
                                INTR_TRIGGER_LEVEL, INTR_POLARITY_LOW);
                }
        }
@@ -1435,7 +1435,7 @@ mptable_pci_int_route(int bus, int dev, int pin, int intline)
                                "for %d:%d INT%c\n", bus, dev, pin + 'A');
                }
 
-               irq = ioapic_abi_find_irq(intline,
+               irq = ioapic_find_legacy_by_irq(intline,
                        INTR_TRIGGER_LEVEL, INTR_POLARITY_LOW);
        }