// SPDX-License-Identifier: GPL-2.01/*2* Exceptions for specific devices,3*4* Copyright IBM Corp. 20255*6* Author(s):7* Niklas Schnelle <[email protected]>8*/9#include <linux/pci.h>1011static void zpci_ism_bar_no_mmap(struct pci_dev *pdev)12{13/*14* ISM's BAR is special. Drivers written for ISM know15* how to handle this but others need to be aware of their16* special nature e.g. to prevent attempts to mmap() it.17*/18pdev->non_mappable_bars = 1;19}20DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_IBM,21PCI_DEVICE_ID_IBM_ISM,22zpci_ism_bar_no_mmap);232425