kernels/linux-2.4.0/drivers/block/cciss.c
/*
 * Map (physical) PCI mem into (virtual) kernel space
 */
Map (physical) PCI mem into (virtual) kernel space
Map ( physical ) PCI mem into ( virtual ) kernel space
static ulong remap_pci_mem(ulong base, ulong size)
{
        ulong page_base        = ((ulong) base) & PAGE_MASK;
        ulong page_offs        = ((ulong) base) - page_base;
        ulong page_remapped    = (ulong) ioremap(page_base, page_offs+size);
        return (ulong) (page_remapped ? (page_remapped + page_offs) : 0UL);
}
static ulong remap_pci_mem ( ulong base , ulong size ) { ulong page_base = ( ( ulong ) base ) & PAGE_MASK ; ulong page_offs = ( ( ulong ) base ) - page_base ; ulong page_remapped = ( ulong ) ioremap ( page_base , page_offs + size ) ; return ( ulong ) ( page_remapped ? ( page_remapped + page_offs ) : 0UL ) ; }
Map (physical) PCI mem into (virtual) kernel space
Map ( physical ) PCI mem into ( virtual ) kernel space