Merge git://www.linux-watchdog.org/linux-watchdog
[deliverable/linux.git] / drivers / iommu / amd_iommu_types.h
index 9d32b20a5e9af35c9ab80d432529a51225031a00..590956ac704e66aaea6cf706ef72f44d4eaa33f1 100644 (file)
@@ -527,6 +527,19 @@ struct amd_iommu {
 #endif
 };
 
+#define ACPIHID_UID_LEN 256
+#define ACPIHID_HID_LEN 9
+
+struct acpihid_map_entry {
+       struct list_head list;
+       u8 uid[ACPIHID_UID_LEN];
+       u8 hid[ACPIHID_HID_LEN];
+       u16 devid;
+       u16 root_devid;
+       bool cmd_line;
+       struct iommu_group *group;
+};
+
 struct devid_map {
        struct list_head list;
        u8 id;
@@ -537,6 +550,7 @@ struct devid_map {
 /* Map HPET and IOAPIC ids to the devid used by the IOMMU */
 extern struct list_head ioapic_map;
 extern struct list_head hpet_map;
+extern struct list_head acpihid_map;
 
 /*
  * List with all IOMMUs in the system. This list is not locked because it is
@@ -668,30 +682,4 @@ static inline int get_hpet_devid(int id)
        return -EINVAL;
 }
 
-#ifdef CONFIG_AMD_IOMMU_STATS
-
-struct __iommu_counter {
-       char *name;
-       struct dentry *dent;
-       u64 value;
-};
-
-#define DECLARE_STATS_COUNTER(nm) \
-       static struct __iommu_counter nm = {    \
-               .name = #nm,                    \
-       }
-
-#define INC_STATS_COUNTER(name)                name.value += 1
-#define ADD_STATS_COUNTER(name, x)     name.value += (x)
-#define SUB_STATS_COUNTER(name, x)     name.value -= (x)
-
-#else /* CONFIG_AMD_IOMMU_STATS */
-
-#define DECLARE_STATS_COUNTER(name)
-#define INC_STATS_COUNTER(name)
-#define ADD_STATS_COUNTER(name, x)
-#define SUB_STATS_COUNTER(name, x)
-
-#endif /* CONFIG_AMD_IOMMU_STATS */
-
 #endif /* _ASM_X86_AMD_IOMMU_TYPES_H */
This page took 0.025094 seconds and 5 git commands to generate.