blob: eb908e15477c1e1b1c8f35c8529f2b2ba18b21a7 [file] [log] [blame]
Nick Kralevicha67e4de2013-01-14 11:28:26 -08001/****************************************************************************
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 ****************************************************************************/
Ben Cheng655a7c02013-10-16 16:09:24 -070019#ifndef _LINUX_VIRTIO_PCI_H
20#define _LINUX_VIRTIO_PCI_H
21#include <linux/virtio_config.h>
22#define VIRTIO_PCI_HOST_FEATURES 0
Nick Kralevicha67e4de2013-01-14 11:28:26 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070024#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
Nick Kralevicha67e4de2013-01-14 11:28:26 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070029#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
Nick Kralevicha67e4de2013-01-14 11:28:26 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070034#define VIRTIO_MSI_CONFIG_VECTOR 20
35#define VIRTIO_MSI_QUEUE_VECTOR 22
36#define VIRTIO_MSI_NO_VECTOR 0xffff
Elliott Hughes8cb52b02013-11-21 13:43:23 -080037#define VIRTIO_PCI_CONFIG(dev) ((dev)->msix_enabled ? 24 : 20)
Nick Kralevicha67e4de2013-01-14 11:28:26 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070039#define VIRTIO_PCI_ABI_VERSION 0
40#define VIRTIO_PCI_QUEUE_ADDR_SHIFT 12
41#define VIRTIO_PCI_VRING_ALIGN 4096
Nick Kralevicha67e4de2013-01-14 11:28:26 -080042#endif
Elliott Hughes8cb52b02013-11-21 13:43:23 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */