diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2006-04-27 03:18:21 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-04-29 04:02:00 -0400 |
commit | e10fa77368dff31140451fac04d78d9f51f0f3ac (patch) | |
tree | 20f3645859dbd995ded831f5a40b78e823e4fc6e /include/asm-powerpc/vio.h | |
parent | 95a1ca6cd8e702a19ee56efae522a5816a56a205 (diff) |
[PATCH] powerpc: use the device tree for the iSeries vio bus probe
As an added bonus, since every vio_dev now has a device_node
associated with it, hotplug now works.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/vio.h')
-rw-r--r-- | include/asm-powerpc/vio.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/asm-powerpc/vio.h b/include/asm-powerpc/vio.h index 0544ece51761..0055d8e6102d 100644 --- a/include/asm-powerpc/vio.h +++ b/include/asm-powerpc/vio.h | |||
@@ -66,8 +66,7 @@ struct vio_driver { | |||
66 | 66 | ||
67 | struct vio_bus_ops { | 67 | struct vio_bus_ops { |
68 | int (*match)(const struct vio_device_id *id, const struct vio_dev *dev); | 68 | int (*match)(const struct vio_device_id *id, const struct vio_dev *dev); |
69 | void (*unregister_device)(struct vio_dev *); | 69 | struct iommu_table *(*build_iommu_table)(struct vio_dev *dev); |
70 | void (*release_device)(struct device *); | ||
71 | }; | 70 | }; |
72 | 71 | ||
73 | extern struct dma_mapping_ops vio_dma_ops; | 72 | extern struct dma_mapping_ops vio_dma_ops; |
@@ -82,14 +81,14 @@ extern void __devinit vio_unregister_device(struct vio_dev *dev); | |||
82 | 81 | ||
83 | extern int vio_bus_init(struct vio_bus_ops *); | 82 | extern int vio_bus_init(struct vio_bus_ops *); |
84 | 83 | ||
85 | #ifdef CONFIG_PPC_PSERIES | ||
86 | struct device_node; | 84 | struct device_node; |
87 | 85 | ||
88 | extern struct vio_dev * __devinit vio_register_device_node( | 86 | extern struct vio_dev * __devinit vio_register_device_node( |
89 | struct device_node *node_vdev); | 87 | struct device_node *node_vdev); |
90 | extern struct vio_dev *vio_find_node(struct device_node *vnode); | 88 | extern const void *vio_get_attribute(struct vio_dev *vdev, char *which, |
91 | extern const void *vio_get_attribute(struct vio_dev *vdev, void *which, | ||
92 | int *length); | 89 | int *length); |
90 | #ifdef CONFIG_PPC_PSERIES | ||
91 | extern struct vio_dev *vio_find_node(struct device_node *vnode); | ||
93 | extern int vio_enable_interrupts(struct vio_dev *dev); | 92 | extern int vio_enable_interrupts(struct vio_dev *dev); |
94 | extern int vio_disable_interrupts(struct vio_dev *dev); | 93 | extern int vio_disable_interrupts(struct vio_dev *dev); |
95 | #endif | 94 | #endif |