blob: d31812662fc25d7ca2d7f89698447c7867290719 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef _UAPILINUX_PCI_H
8#define _UAPILINUX_PCI_H
9#include <linux/pci_regs.h>
Tao Baod7db5942015-01-28 10:07:51 -080010#define PCI_DEVFN(slot,func) ((((slot) & 0x1f) << 3) | ((func) & 0x07))
Ben Cheng655a7c02013-10-16 16:09:24 -070011#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)
Ben Cheng655a7c02013-10-16 16:09:24 -070015#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)
Nick Kralevicha67e4de2013-01-14 11:28:26 -080018#endif