cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

iomap.c (466B)


      1// SPDX-License-Identifier: GPL-2.0
      2/*
      3 * ppc64 "iomap" interface implementation.
      4 *
      5 * (C) Copyright 2004 Linus Torvalds
      6 */
      7#include <linux/init.h>
      8#include <linux/pci.h>
      9#include <linux/mm.h>
     10#include <linux/export.h>
     11#include <linux/io.h>
     12#include <asm/pci-bridge.h>
     13
     14void pci_iounmap(struct pci_dev *dev, void __iomem *addr)
     15{
     16	if (isa_vaddr_is_ioport(addr))
     17		return;
     18	if (pcibios_vaddr_is_ioport(addr))
     19		return;
     20	iounmap(addr);
     21}
     22EXPORT_SYMBOL(pci_iounmap);