X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fparisc%2Fccio-dma.c;h=589ed1ee5ea5f1f5a9e2a4d8099e92418b50ddf4;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=e853f342a62d1901601408cfbb95d306723e28e1;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/drivers/parisc/ccio-dma.c b/drivers/parisc/ccio-dma.c index e853f342a..589ed1ee5 100644 --- a/drivers/parisc/ccio-dma.c +++ b/drivers/parisc/ccio-dma.c @@ -1198,9 +1198,10 @@ void * ccio_get_iommu(const struct parisc_device *dev) * to/from certain pages. To avoid this happening, we mark these pages * as `used', and ensure that nothing will try to allocate from them. */ -void ccio_cujo20_fixup(struct parisc_device *dev, u32 iovp) +void ccio_cujo20_fixup(struct parisc_device *cujo, u32 iovp) { unsigned int idx; + struct parisc_device *dev = parisc_parent(cujo); struct ioc *ioc = ccio_get_iommu(dev); u8 *res_ptr; @@ -1556,9 +1557,12 @@ static int ccio_probe(struct parisc_device *dev) create_proc_read_entry(MODULE_NAME"-bitmap", S_IRWXU, proc_runway_root, ccio_resource_map, NULL); } + + ioc_count++; + parisc_vmerge_boundary = IOVP_SIZE; parisc_vmerge_max_size = BITS_PER_LONG * IOVP_SIZE; - ioc_count++; + parisc_has_iommu(); return 0; }