ioremap.c (9063974cdbc5463528cb6aa60c91bc0267af7bbb) ioremap.c (28b2ee20c7cba812b6f2ccf6d722cf86d00a84dc)
1/*
2 * Re-map IO memory to kernel address space so that we can access it.
3 * This is needed for high PCI addresses that aren't mapped in the
4 * 640k-1MB IO memory area on PC's
5 *
6 * (C) Copyright 1995 1996 Linus Torvalds
7 */
8

--- 316 unchanged lines hidden (view full) ---

325
326 ret = (void *) __ioremap_caller(phys_addr, size, flags,
327 __builtin_return_address(0));
328
329 free_memtype(phys_addr, phys_addr + size);
330 return (void __iomem *)ret;
331}
332
1/*
2 * Re-map IO memory to kernel address space so that we can access it.
3 * This is needed for high PCI addresses that aren't mapped in the
4 * 640k-1MB IO memory area on PC's
5 *
6 * (C) Copyright 1995 1996 Linus Torvalds
7 */
8

--- 316 unchanged lines hidden (view full) ---

325
326 ret = (void *) __ioremap_caller(phys_addr, size, flags,
327 __builtin_return_address(0));
328
329 free_memtype(phys_addr, phys_addr + size);
330 return (void __iomem *)ret;
331}
332
333void __iomem *ioremap_prot(resource_size_t phys_addr, unsigned long size,
334 unsigned long prot_val)
335{
336 return __ioremap_caller(phys_addr, size, (prot_val & _PAGE_CACHE_MASK),
337 __builtin_return_address(0));
338}
339EXPORT_SYMBOL(ioremap_prot);
340
333/**
334 * iounmap - Free a IO remapping
335 * @addr: virtual address from ioremap_*
336 *
337 * Caller must ensure there is only one unmapping for the same pointer.
338 */
339void iounmap(volatile void __iomem *addr)
340{

--- 317 unchanged lines hidden ---
341/**
342 * iounmap - Free a IO remapping
343 * @addr: virtual address from ioremap_*
344 *
345 * Caller must ensure there is only one unmapping for the same pointer.
346 */
347void iounmap(volatile void __iomem *addr)
348{

--- 317 unchanged lines hidden ---