]> err.no Git - linux-2.6/blobdiff - include/asm-ppc64/vio.h
[PATCH] ppc64: Remove PTRRELOC() from msChunks code
[linux-2.6] / include / asm-ppc64 / vio.h
index 20cd98ee63378c20944c37bceb917ab429d767b6..a82e87c1c5faf87dd781901f9c38016e37e47e1f 100644 (file)
@@ -56,6 +56,9 @@ const void * vio_get_attribute(struct vio_dev *vdev, void* which, int* length);
 int vio_get_irq(struct vio_dev *dev);
 int vio_enable_interrupts(struct vio_dev *dev);
 int vio_disable_interrupts(struct vio_dev *dev);
+extern struct vio_dev * __devinit vio_register_device_common(
+               struct vio_dev *viodev, char *name, char *type,
+               uint32_t unit_address, struct iommu_table *iommu_table);
 
 extern struct dma_mapping_ops vio_dma_ops;
 
@@ -95,9 +98,16 @@ struct vio_dev {
        struct device dev;
 };
 
+extern struct vio_dev vio_bus_device;
+
 static inline struct vio_dev *to_vio_dev(struct device *dev)
 {
        return container_of(dev, struct vio_dev, dev);
 }
 
+extern int vio_bus_init(int (*is_match)(const struct vio_device_id *id,
+                       const struct vio_dev *dev),
+               void (*)(struct vio_dev *),
+               void (*)(struct device *));
+
 #endif /* _ASM_VIO_H */