diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 12:05:55 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 12:05:55 -0400 |
commit | c548f08a4f7b89b93c805e0c4024b8302afa7121 (patch) | |
tree | 5cf791db4912831469b70390aa58376f1c724386 /include/asm-powerpc | |
parent | 347c53dca73fca317d57781f510f5ff4f6c0d0d7 (diff) | |
parent | 4acadb965c4aa587aac29a0a91203c4745d6fb4e (diff) |
Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: (24 commits)
[POWERPC] Fix vmemmap warning in init_64.c
[POWERPC] Fix 64 bits vDSO DWARF info for CR register
[POWERPC] Add 1TB workaround for PA6T
[POWERPC] Enable NO_HZ and high res timers for pseries and ppc64 configs
[POWERPC] Quieten cache information at boot
[POWERPC] Quieten clockevent printk
[POWERPC] Enable SLUB in *_defconfig
[POWERPC] Fix 1TB segment detection
[POWERPC] Fix iSeries_hpte_insert prototype
[POWERPC] Fix copyright symbol
[POWERPC] ibmebus: Move to of_device and of_platform_driver, match eHCA and eHEA drivers
[POWERPC] ibmebus: Add device creation and bus probing based on of_device
[POWERPC] ibmebus: Remove bus match/probe/remove functions
[POWERPC] Move of_device allocation into of_device.[ch]
[POWERPC] mpc52xx: device tree changes for FEC and MDIO
[POWERPC] bestcomm: GenBD task support
[POWERPC] bestcomm: FEC task support
[POWERPC] bestcomm: ATA task support
[POWERPC] bestcomm: core bestcomm support for Freescale MPC5200
[POWERPC] mpc52xx: Update mpc52xx_psc structure with B revision changes
...
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/cputable.h | 3 | ||||
-rw-r--r-- | include/asm-powerpc/ibmebus.h | 38 | ||||
-rw-r--r-- | include/asm-powerpc/of_device.h | 4 |
3 files changed, 13 insertions, 32 deletions
diff --git a/include/asm-powerpc/cputable.h b/include/asm-powerpc/cputable.h index ae093ef68363..9d74338e3dec 100644 --- a/include/asm-powerpc/cputable.h +++ b/include/asm-powerpc/cputable.h | |||
@@ -165,6 +165,7 @@ extern void do_feature_fixups(unsigned long value, void *fixup_start, | |||
165 | #define CPU_FTR_SPURR LONG_ASM_CONST(0x0001000000000000) | 165 | #define CPU_FTR_SPURR LONG_ASM_CONST(0x0001000000000000) |
166 | #define CPU_FTR_DSCR LONG_ASM_CONST(0x0002000000000000) | 166 | #define CPU_FTR_DSCR LONG_ASM_CONST(0x0002000000000000) |
167 | #define CPU_FTR_1T_SEGMENT LONG_ASM_CONST(0x0004000000000000) | 167 | #define CPU_FTR_1T_SEGMENT LONG_ASM_CONST(0x0004000000000000) |
168 | #define CPU_FTR_NO_SLBIE_B LONG_ASM_CONST(0x0008000000000000) | ||
168 | 169 | ||
169 | #ifndef __ASSEMBLY__ | 170 | #ifndef __ASSEMBLY__ |
170 | 171 | ||
@@ -367,7 +368,7 @@ extern void do_feature_fixups(unsigned long value, void *fixup_start, | |||
367 | #define CPU_FTRS_PA6T (CPU_FTR_USE_TB | \ | 368 | #define CPU_FTRS_PA6T (CPU_FTR_USE_TB | \ |
368 | CPU_FTR_HPTE_TABLE | CPU_FTR_PPCAS_ARCH_V2 | \ | 369 | CPU_FTR_HPTE_TABLE | CPU_FTR_PPCAS_ARCH_V2 | \ |
369 | CPU_FTR_ALTIVEC_COMP | CPU_FTR_CI_LARGE_PAGE | \ | 370 | CPU_FTR_ALTIVEC_COMP | CPU_FTR_CI_LARGE_PAGE | \ |
370 | CPU_FTR_PURR | CPU_FTR_REAL_LE) | 371 | CPU_FTR_PURR | CPU_FTR_REAL_LE | CPU_FTR_NO_SLBIE_B) |
371 | #define CPU_FTRS_COMPATIBLE (CPU_FTR_USE_TB | \ | 372 | #define CPU_FTRS_COMPATIBLE (CPU_FTR_USE_TB | \ |
372 | CPU_FTR_HPTE_TABLE | CPU_FTR_PPCAS_ARCH_V2) | 373 | CPU_FTR_HPTE_TABLE | CPU_FTR_PPCAS_ARCH_V2) |
373 | 374 | ||
diff --git a/include/asm-powerpc/ibmebus.h b/include/asm-powerpc/ibmebus.h index 87d396e28db2..1a9d9aea21fa 100644 --- a/include/asm-powerpc/ibmebus.h +++ b/include/asm-powerpc/ibmebus.h | |||
@@ -43,42 +43,18 @@ | |||
43 | #include <linux/device.h> | 43 | #include <linux/device.h> |
44 | #include <linux/interrupt.h> | 44 | #include <linux/interrupt.h> |
45 | #include <linux/mod_devicetable.h> | 45 | #include <linux/mod_devicetable.h> |
46 | #include <asm/of_device.h> | 46 | #include <linux/of_device.h> |
47 | #include <linux/of_platform.h> | ||
47 | 48 | ||
48 | extern struct bus_type ibmebus_bus_type; | 49 | extern struct bus_type ibmebus_bus_type; |
49 | 50 | ||
50 | struct ibmebus_dev { | 51 | int ibmebus_register_driver(struct of_platform_driver *drv); |
51 | struct of_device ofdev; | 52 | void ibmebus_unregister_driver(struct of_platform_driver *drv); |
52 | }; | ||
53 | 53 | ||
54 | struct ibmebus_driver { | 54 | int ibmebus_request_irq(u32 ist, irq_handler_t handler, |
55 | char *name; | 55 | unsigned long irq_flags, const char *devname, |
56 | struct of_device_id *id_table; | ||
57 | int (*probe) (struct ibmebus_dev *dev, const struct of_device_id *id); | ||
58 | int (*remove) (struct ibmebus_dev *dev); | ||
59 | struct device_driver driver; | ||
60 | }; | ||
61 | |||
62 | int ibmebus_register_driver(struct ibmebus_driver *drv); | ||
63 | void ibmebus_unregister_driver(struct ibmebus_driver *drv); | ||
64 | |||
65 | int ibmebus_request_irq(struct ibmebus_dev *dev, | ||
66 | u32 ist, | ||
67 | irq_handler_t handler, | ||
68 | unsigned long irq_flags, const char * devname, | ||
69 | void *dev_id); | 56 | void *dev_id); |
70 | void ibmebus_free_irq(struct ibmebus_dev *dev, u32 ist, void *dev_id); | 57 | void ibmebus_free_irq(u32 ist, void *dev_id); |
71 | |||
72 | static inline struct ibmebus_driver *to_ibmebus_driver(struct device_driver *drv) | ||
73 | { | ||
74 | return container_of(drv, struct ibmebus_driver, driver); | ||
75 | } | ||
76 | |||
77 | static inline struct ibmebus_dev *to_ibmebus_dev(struct device *dev) | ||
78 | { | ||
79 | return container_of(dev, struct ibmebus_dev, ofdev.dev); | ||
80 | } | ||
81 | |||
82 | 58 | ||
83 | #endif /* __KERNEL__ */ | 59 | #endif /* __KERNEL__ */ |
84 | #endif /* _ASM_IBMEBUS_H */ | 60 | #endif /* _ASM_IBMEBUS_H */ |
diff --git a/include/asm-powerpc/of_device.h b/include/asm-powerpc/of_device.h index 93262f2546ad..6526e139a463 100644 --- a/include/asm-powerpc/of_device.h +++ b/include/asm-powerpc/of_device.h | |||
@@ -17,6 +17,10 @@ struct of_device | |||
17 | struct device dev; /* Generic device interface */ | 17 | struct device dev; /* Generic device interface */ |
18 | }; | 18 | }; |
19 | 19 | ||
20 | extern struct of_device *of_device_alloc(struct device_node *np, | ||
21 | const char *bus_id, | ||
22 | struct device *parent); | ||
23 | |||
20 | extern ssize_t of_device_get_modalias(struct of_device *ofdev, | 24 | extern ssize_t of_device_get_modalias(struct of_device *ofdev, |
21 | char *str, ssize_t len); | 25 | char *str, ssize_t len); |
22 | extern int of_device_uevent(struct device *dev, | 26 | extern int of_device_uevent(struct device *dev, |