machintr: Add intr_config interface
[dragonfly.git] / sys / platform / pc32 / icu / icu_abi.c
index f063dd1..67b4f00 100644 (file)
@@ -89,6 +89,7 @@ static struct icu_irqmap {
 #define ICU_IMT_UNUSED         0       /* KEEP THIS */
 #define ICU_IMT_RESERVED       1
 #define ICU_IMT_LINE           2
+#define ICU_IMT_SYSCALL                3
 
 extern void    ICU_INTREN(int);
 extern void    ICU_INTRDIS(int);
@@ -101,6 +102,7 @@ static void icu_cleanup(void);
 static void    icu_setdefault(void);
 static void    icu_stabilize(void);
 static void    icu_initmap(void);
+static void    icu_intr_config(int, enum intr_trigger, enum intr_polarity);
 
 struct machintr_abi MachIntrABI_ICU = {
        MACHINTR_ICU,
@@ -113,7 +115,8 @@ struct machintr_abi MachIntrABI_ICU = {
        .cleanup        = icu_cleanup,
        .setdefault     = icu_setdefault,
        .stabilize      = icu_stabilize,
-       .initmap        = icu_initmap
+       .initmap        = icu_initmap,
+       .intr_config    = icu_intr_config
 };
 
 static int     icu_imcr_present;
@@ -305,4 +308,11 @@ icu_initmap(void)
                        }
                }
        }
+       icu_irqmaps[IDT_OFFSET_SYSCALL - IDT_OFFSET].im_type = ICU_IMT_SYSCALL;
+}
+
+static void
+icu_intr_config(int irq __unused, enum intr_trigger trig __unused,
+    enum intr_polarity pola __unused)
+{
 }