• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _UAPILINUX_PCI_H
8 #define _UAPILINUX_PCI_H
9 #include <linux/pci_regs.h>
10 #define PCI_DEVFN(slot,func) ((((slot) & 0x1f) << 3) | ((func) & 0x07))
11 #define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f)
12 #define PCI_FUNC(devfn) ((devfn) & 0x07)
13 #define PCIIOC_BASE ('P' << 24 | 'C' << 16 | 'I' << 8)
14 #define PCIIOC_CONTROLLER (PCIIOC_BASE | 0x00)
15 #define PCIIOC_MMAP_IS_IO (PCIIOC_BASE | 0x01)
16 #define PCIIOC_MMAP_IS_MEM (PCIIOC_BASE | 0x02)
17 #define PCIIOC_WRITE_COMBINE (PCIIOC_BASE | 0x03)
18 #endif
19