Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/virtio/mmio/virtio_mmio.h
- This file was copied to sys/dev/virtio/mmio/virtio_mmio_acpi.c.
Show All 27 Lines | |||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _VIRTIO_MMIO_H | #ifndef _VIRTIO_MMIO_H | ||||
#define _VIRTIO_MMIO_H | #define _VIRTIO_MMIO_H | ||||
DECLARE_CLASS(vtmmio_driver); | |||||
struct vtmmio_virtqueue; | |||||
struct vtmmio_softc { | |||||
device_t dev; | |||||
device_t platform; | |||||
struct resource *res[2]; | |||||
uint64_t vtmmio_features; | |||||
uint32_t vtmmio_flags; | |||||
/* This "bus" will only ever have one child. */ | |||||
device_t vtmmio_child_dev; | |||||
struct virtio_feature_desc *vtmmio_child_feat_desc; | |||||
int vtmmio_nvqs; | |||||
struct vtmmio_virtqueue *vtmmio_vqs; | |||||
void *ih; | |||||
}; | |||||
int vtmmio_attach(device_t); | |||||
#define VIRTIO_MMIO_MAGIC_VALUE 0x000 | #define VIRTIO_MMIO_MAGIC_VALUE 0x000 | ||||
#define VIRTIO_MMIO_VERSION 0x004 | #define VIRTIO_MMIO_VERSION 0x004 | ||||
#define VIRTIO_MMIO_DEVICE_ID 0x008 | #define VIRTIO_MMIO_DEVICE_ID 0x008 | ||||
#define VIRTIO_MMIO_VENDOR_ID 0x00c | #define VIRTIO_MMIO_VENDOR_ID 0x00c | ||||
#define VIRTIO_MMIO_HOST_FEATURES 0x010 | #define VIRTIO_MMIO_HOST_FEATURES 0x010 | ||||
#define VIRTIO_MMIO_HOST_FEATURES_SEL 0x014 | #define VIRTIO_MMIO_HOST_FEATURES_SEL 0x014 | ||||
#define VIRTIO_MMIO_GUEST_FEATURES 0x020 | #define VIRTIO_MMIO_GUEST_FEATURES 0x020 | ||||
#define VIRTIO_MMIO_GUEST_FEATURES_SEL 0x024 | #define VIRTIO_MMIO_GUEST_FEATURES_SEL 0x024 | ||||
Show All 16 Lines |