/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * pci.h * * PCI defines and function prototypes * Copyright 1994, Drew Eckhardt * Copyright 1997--1999 Martin Mares <[email protected]> * * For more information, please consult the following manuals (look at * http://www.pcisig.com/ for how to get them): * * PCI BIOS Specification * PCI Local Bus Specification * PCI to PCI Bridge Specification * PCI System Design Guide */ #ifndef _UAPILINUX_PCI_H #define _UAPILINUX_PCI_H #include <linux/pci_regs.h> /* The pci register defines */ /* * The PCI interface treats multi-function devices as independent * devices. The slot/function address of each device is encoded * in a single byte as follows: * * 7:3 = slot * 2:0 = function */ #define PCI_DEVFN(slot, func) … #define PCI_SLOT(devfn) … #define PCI_FUNC(devfn) … /* Ioctls for /proc/bus/pci/X/Y nodes. */ #define PCIIOC_BASE … #define PCIIOC_CONTROLLER … #define PCIIOC_MMAP_IS_IO … #define PCIIOC_MMAP_IS_MEM … #define PCIIOC_WRITE_COMBINE … #endif /* _UAPILINUX_PCI_H */