1/****************************************************************************
2 ****************************************************************************
3 ***
4 ***   This header was automatically generated from a Linux kernel header
5 ***   of the same name, to make information necessary for userspace to
6 ***   call into the kernel available to libc.  It contains only constants,
7 ***   structures, and macros generated from the original header, and thus,
8 ***   contains no copyrightable information.
9 ***
10 ***   To edit the content of this header, modify the corresponding
11 ***   source file (e.g. under external/kernel-headers/original/) then
12 ***   run bionic/libc/kernel/tools/update_all.py
13 ***
14 ***   Any manual change here will be lost the next time this script will
15 ***   be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _LINUX_VIRTIO_PCI_H
20#define _LINUX_VIRTIO_PCI_H
21#include <linux/virtio_config.h>
22#define VIRTIO_PCI_HOST_FEATURES 0
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define VIRTIO_PCI_GUEST_FEATURES 4
25#define VIRTIO_PCI_QUEUE_PFN 8
26#define VIRTIO_PCI_QUEUE_NUM 12
27#define VIRTIO_PCI_QUEUE_SEL 14
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define VIRTIO_PCI_QUEUE_NOTIFY 16
30#define VIRTIO_PCI_STATUS 18
31#define VIRTIO_PCI_ISR 19
32#define VIRTIO_PCI_ISR_CONFIG 0x2
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define VIRTIO_MSI_CONFIG_VECTOR 20
35#define VIRTIO_MSI_QUEUE_VECTOR 22
36#define VIRTIO_MSI_NO_VECTOR 0xffff
37#define VIRTIO_PCI_CONFIG_OFF(msix_enabled) ((msix_enabled) ? 24 : 20)
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define VIRTIO_PCI_CONFIG(dev) VIRTIO_PCI_CONFIG_OFF((dev)->msix_enabled)
40#define VIRTIO_PCI_ABI_VERSION 0
41#define VIRTIO_PCI_QUEUE_ADDR_SHIFT 12
42#define VIRTIO_PCI_VRING_ALIGN 4096
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#endif
45