aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mod_devicetable.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mod_devicetable.h')
-rw-r--r--include/linux/mod_devicetable.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h
index 83ac0713ed0a..501da4cb8a6d 100644
--- a/include/linux/mod_devicetable.h
+++ b/include/linux/mod_devicetable.h
@@ -414,6 +414,15 @@ struct hv_vmbus_device_id {
414 __attribute__((aligned(sizeof(kernel_ulong_t)))); 414 __attribute__((aligned(sizeof(kernel_ulong_t))));
415}; 415};
416 416
417/* rpmsg */
418
419#define RPMSG_NAME_SIZE 32
420#define RPMSG_DEVICE_MODALIAS_FMT "rpmsg:%s"
421
422struct rpmsg_device_id {
423 char name[RPMSG_NAME_SIZE];
424};
425
417/* i2c */ 426/* i2c */
418 427
419#define I2C_NAME_SIZE 20 428#define I2C_NAME_SIZE 20
@@ -560,4 +569,25 @@ struct amba_id {
560#endif 569#endif
561}; 570};
562 571
572/*
573 * Match x86 CPUs for CPU specific drivers.
574 * See documentation of "x86_match_cpu" for details.
575 */
576
577struct x86_cpu_id {
578 __u16 vendor;
579 __u16 family;
580 __u16 model;
581 __u16 feature; /* bit index */
582 kernel_ulong_t driver_data;
583};
584
585#define X86_FEATURE_MATCH(x) \
586 { X86_VENDOR_ANY, X86_FAMILY_ANY, X86_MODEL_ANY, x }
587
588#define X86_VENDOR_ANY 0xffff
589#define X86_FAMILY_ANY 0
590#define X86_MODEL_ANY 0
591#define X86_FEATURE_ANY 0 /* Same as FPU, you can't test for that */
592
563#endif /* LINUX_MOD_DEVICETABLE_H */ 593#endif /* LINUX_MOD_DEVICETABLE_H */