summaryrefslogtreecommitdiff
path: root/include/linux/mod_devicetable.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2012-02-13 06:30:04 +0000
committerArnd Bergmann <arnd@arndb.de>2012-02-13 06:30:04 +0000
commiteaa5699e3bff8e8335757cf401451ffbd4a88109 (patch)
treea5a23148d26f9d083080d94991e8ceed12c0857b /include/linux/mod_devicetable.h
parentd65b4e98d7ea3038b767b70fe8be959b2913f16d (diff)
parentda5a70f3519fd6f73ece3eea261a861c9a4d6bbd (diff)
Merge branch 'depends/driver-core' into next/soc2
* depends/driver-core: (55 commits) Documentation: add information for new sysfs soc bus functionality drivers/base: add bus for System-on-Chip devices DWC3: use module_pci_driver PCI: Add helper macro for pci_register_driver boilerplate w1: Use linux/gpio.h rather than asm/gpio.h drivers: hv: Increase the number of VCPUs supported in the guest drivers: hv: kvp: Cleanup the kernel/user protocol tools: hv: Use hyperv.h to get the KVP definitions drivers: hv: Cleanup the kvp related state in hyperv.h ACPI: remove duplicated lines of merging problems with acpi_processor_start cpufreq/gx: Fix the compile error drivers: hv: kvp: Move the contents of hv_kvp.h to hyperv.h drivers: hv: kvp: Add/cleanup connector defines sysfs: Update the name hash when renaming sysfs entries PCI/XEN: Fix bug introduced by a recent change USB/PCI/PCMCIA: Clean up new_id and remove_id sysfs attribute routines CPU: Introduce ARCH_HAS_CPU_AUTOPROBE and X86 parts x86: autoload microcode driver on Intel and AMD systems v2 cpufreq: Add support for x86 cpuinfo auto loading v4 X86: Introduce HW-Pstate scattered cpuid feature ...
Diffstat (limited to 'include/linux/mod_devicetable.h')
-rw-r--r--include/linux/mod_devicetable.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h
index 83ac0713ed0a..fb69ad191ad7 100644
--- a/include/linux/mod_devicetable.h
+++ b/include/linux/mod_devicetable.h
@@ -560,4 +560,25 @@ struct amba_id {
#endif
};
+/*
+ * Match x86 CPUs for CPU specific drivers.
+ * See documentation of "x86_match_cpu" for details.
+ */
+
+struct x86_cpu_id {
+ __u16 vendor;
+ __u16 family;
+ __u16 model;
+ __u16 feature; /* bit index */
+ kernel_ulong_t driver_data;
+};
+
+#define X86_FEATURE_MATCH(x) \
+ { X86_VENDOR_ANY, X86_FAMILY_ANY, X86_MODEL_ANY, x }
+
+#define X86_VENDOR_ANY 0xffff
+#define X86_FAMILY_ANY 0
+#define X86_MODEL_ANY 0
+#define X86_FEATURE_ANY 0 /* Same as FPU, you can't test for that */
+
#endif /* LINUX_MOD_DEVICETABLE_H */