Lines Matching refs:dev
26 * $FreeBSD: releng/11.0/sys/dev/virtio/virtio.h 267522 2014-06-16 04:25:04Z bryanv $
32 #include <dev/virtio/virtio_ids.h>
33 #include <dev/virtio/virtio_config.h>
65 void virtio_describe(device_t dev, const char *msg,
71 void virtio_read_ivar(device_t dev, int ivar, uintptr_t *val);
72 void virtio_write_ivar(device_t dev, int ivar, uintptr_t val);
73 uint64_t virtio_negotiate_features(device_t dev, uint64_t child_features);
74 int virtio_alloc_virtqueues(device_t dev, int flags, int nvqs,
76 int virtio_setup_intr(device_t dev, enum intr_type type);
77 int virtio_with_feature(device_t dev, uint64_t feature);
78 void virtio_stop(device_t dev);
79 int virtio_reinit(device_t dev, uint64_t features);
80 void virtio_reinit_complete(device_t dev);
87 void virtio_read_device_config(device_t dev, bus_size_t offset,
89 void virtio_write_device_config(device_t dev, bus_size_t offset,
95 __CONCAT(virtio_read_dev_config_,size)(device_t dev, \
99 virtio_read_device_config(dev, offset, &val, sizeof(type)); \
104 __CONCAT(virtio_write_dev_config_,size)(device_t dev, \
107 virtio_write_device_config(dev, offset, &val, sizeof(type)); \
118 __CONCAT(virtio_get_,name)(device_t dev) \
121 virtio_read_ivar(dev, ivar, &val); \
135 __CONCAT(virtio_set_,name)(device_t dev, void *val) \
137 virtio_write_ivar(dev, ivar, (uintptr_t) val); \