Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: pci.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* pci.h
[2] Fix | Delete
*
[3] Fix | Delete
* PCI defines and function prototypes
[4] Fix | Delete
* Copyright 1994, Drew Eckhardt
[5] Fix | Delete
* Copyright 1997--1999 Martin Mares <mj@ucw.cz>
[6] Fix | Delete
*
[7] Fix | Delete
* For more information, please consult the following manuals (look at
[8] Fix | Delete
* http://www.pcisig.com/ for how to get them):
[9] Fix | Delete
*
[10] Fix | Delete
* PCI BIOS Specification
[11] Fix | Delete
* PCI Local Bus Specification
[12] Fix | Delete
* PCI to PCI Bridge Specification
[13] Fix | Delete
* PCI System Design Guide
[14] Fix | Delete
*/
[15] Fix | Delete
[16] Fix | Delete
#ifndef LINUX_PCI_H
[17] Fix | Delete
#define LINUX_PCI_H
[18] Fix | Delete
[19] Fix | Delete
#include <linux/pci_regs.h> /* The pci register defines */
[20] Fix | Delete
[21] Fix | Delete
/*
[22] Fix | Delete
* The PCI interface treats multi-function devices as independent
[23] Fix | Delete
* devices. The slot/function address of each device is encoded
[24] Fix | Delete
* in a single byte as follows:
[25] Fix | Delete
*
[26] Fix | Delete
* 7:3 = slot
[27] Fix | Delete
* 2:0 = function
[28] Fix | Delete
*/
[29] Fix | Delete
#define PCI_DEVFN(slot, func) ((((slot) & 0x1f) << 3) | ((func) & 0x07))
[30] Fix | Delete
#define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f)
[31] Fix | Delete
#define PCI_FUNC(devfn) ((devfn) & 0x07)
[32] Fix | Delete
[33] Fix | Delete
/* Ioctls for /proc/bus/pci/X/Y nodes. */
[34] Fix | Delete
#define PCIIOC_BASE ('P' << 24 | 'C' << 16 | 'I' << 8)
[35] Fix | Delete
#define PCIIOC_CONTROLLER (PCIIOC_BASE | 0x00) /* Get controller for PCI device. */
[36] Fix | Delete
#define PCIIOC_MMAP_IS_IO (PCIIOC_BASE | 0x01) /* Set mmap state to I/O space. */
[37] Fix | Delete
#define PCIIOC_MMAP_IS_MEM (PCIIOC_BASE | 0x02) /* Set mmap state to MEM space. */
[38] Fix | Delete
#define PCIIOC_WRITE_COMBINE (PCIIOC_BASE | 0x03) /* Enable/disable write-combining. */
[39] Fix | Delete
[40] Fix | Delete
#endif /* LINUX_PCI_H */
[41] Fix | Delete
[42] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function