diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-07-12 03:40:17 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-08-28 20:53:32 -0400 |
commit | 3e494c80481653bbc810b4e67651097595ea0294 (patch) | |
tree | 013625b5fb925d7ddd59067e6ce27f69dda8f4d3 /include/asm-ppc64/vio.h | |
parent | 6020164499ff3a61cd8bebceb9e294a155079f71 (diff) |
[PATCH] ppc64: split iSeries specific parts out of vio.c
This patch splits the iSeries specific parts out of vio.c.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-ppc64/vio.h')
-rw-r--r-- | include/asm-ppc64/vio.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-ppc64/vio.h b/include/asm-ppc64/vio.h index 20cd98ee6337..1e6d4c4b83a0 100644 --- a/include/asm-ppc64/vio.h +++ b/include/asm-ppc64/vio.h | |||
@@ -56,6 +56,9 @@ const void * vio_get_attribute(struct vio_dev *vdev, void* which, int* length); | |||
56 | int vio_get_irq(struct vio_dev *dev); | 56 | int vio_get_irq(struct vio_dev *dev); |
57 | int vio_enable_interrupts(struct vio_dev *dev); | 57 | int vio_enable_interrupts(struct vio_dev *dev); |
58 | int vio_disable_interrupts(struct vio_dev *dev); | 58 | int vio_disable_interrupts(struct vio_dev *dev); |
59 | extern struct vio_dev * __devinit vio_register_device_common( | ||
60 | struct vio_dev *viodev, char *name, char *type, | ||
61 | uint32_t unit_address, struct iommu_table *iommu_table); | ||
59 | 62 | ||
60 | extern struct dma_mapping_ops vio_dma_ops; | 63 | extern struct dma_mapping_ops vio_dma_ops; |
61 | 64 | ||
@@ -95,9 +98,13 @@ struct vio_dev { | |||
95 | struct device dev; | 98 | struct device dev; |
96 | }; | 99 | }; |
97 | 100 | ||
101 | extern struct vio_dev vio_bus_device; | ||
102 | |||
98 | static inline struct vio_dev *to_vio_dev(struct device *dev) | 103 | static inline struct vio_dev *to_vio_dev(struct device *dev) |
99 | { | 104 | { |
100 | return container_of(dev, struct vio_dev, dev); | 105 | return container_of(dev, struct vio_dev, dev); |
101 | } | 106 | } |
102 | 107 | ||
108 | extern int vio_bus_init(void); | ||
109 | |||
103 | #endif /* _ASM_VIO_H */ | 110 | #endif /* _ASM_VIO_H */ |