mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
m68k: amiga - Zorro bus modalias support
Add Amiga Zorro bus modalias and uevent support Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:
parent
0b7f1a7efb
commit
bf54a2b3c0
12 changed files with 66 additions and 12 deletions
|
|
@ -474,4 +474,13 @@ struct platform_device_id {
|
|||
__attribute__((aligned(sizeof(kernel_ulong_t))));
|
||||
};
|
||||
|
||||
struct zorro_device_id {
|
||||
__u32 id; /* Device ID or ZORRO_WILDCARD */
|
||||
kernel_ulong_t driver_data; /* Data private to the driver */
|
||||
};
|
||||
|
||||
#define ZORRO_WILDCARD (0xffffffff) /* not official */
|
||||
|
||||
#define ZORRO_DEVICE_MODALIAS_FMT "zorro:i%08X"
|
||||
|
||||
#endif /* LINUX_MOD_DEVICETABLE_H */
|
||||
|
|
|
|||
|
|
@ -38,8 +38,6 @@
|
|||
typedef __u32 zorro_id;
|
||||
|
||||
|
||||
#define ZORRO_WILDCARD (0xffffffff) /* not official */
|
||||
|
||||
/* Include the ID list */
|
||||
#include <linux/zorro_ids.h>
|
||||
|
||||
|
|
@ -116,6 +114,7 @@ struct ConfigDev {
|
|||
|
||||
#include <linux/init.h>
|
||||
#include <linux/ioport.h>
|
||||
#include <linux/mod_devicetable.h>
|
||||
|
||||
#include <asm/zorro.h>
|
||||
|
||||
|
|
@ -154,16 +153,6 @@ extern struct zorro_bus zorro_bus; /* single Zorro bus */
|
|||
extern struct bus_type zorro_bus_type;
|
||||
|
||||
|
||||
/*
|
||||
* Zorro device IDs
|
||||
*/
|
||||
|
||||
struct zorro_device_id {
|
||||
zorro_id id; /* Device ID or ZORRO_WILDCARD */
|
||||
unsigned long driver_data; /* Data private to the driver */
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
* Zorro device drivers
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue