DM: virtio-gpio: virtio framework implementation.

virtio framework implementation for virtio-based gpio virtualization.
virtio-based gpio uses one virtqueue to implement gpio operaions and
frontend gpio chip base and number are provided by virtio config.

Tracked-On: #2512
Signed-off-by: Yuan Liu <yuan1.liu@intel.com>
Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
Yuan Liu
2019-01-10 09:51:48 +08:00
committed by wenlingz
parent 5300e91188
commit 57029315d7
3 changed files with 293 additions and 0 deletions

View File

@@ -206,6 +206,7 @@ enum {
#define VIRTIO_TYPE_HYPERDMABUF 0xFFFA
#define VIRTIO_TYPE_HDCP 0xFFF9
#define VIRTIO_TYPE_COREU 0xFFF8
#define VIRTIO_TYPE_GPIO 0xFFF7
/*
* PCI vendor/device IDs
@@ -228,6 +229,7 @@ enum {
#define VIRTIO_DEV_HYPERDMABUF 0x8606
#define VIRTIO_DEV_HDCP 0x8607
#define VIRTIO_DEV_COREU 0x8608
#define VIRTIO_DEV_GPIO 0x8609
/*
* VIRTIO_CONFIG_S_NEEDS_RESET is not defined