freebsd-dev/sys/dev/virtio
Warner Losh ddfc9c4c59 newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf
Now that the upper layers all go through a layer to tie into these
information functions that translates an sbuf into char * and len. The
current interface suffers issues of what to do in cases of truncation,
etc. Instead, migrate all these functions to using struct sbuf and these
issues go away. The caller is also in charge of any memory allocation
and/or expansion that's needed during this process.

Create a bus_generic_child_{pnpinfo,location} and make it default. It
just returns success. This is for those busses that have no information
for these items. Migrate the now-empty routines to using this as
appropriate.

Document these new interfaces with man pages, and oversight from before.

Reviewed by:		jhb, bcr
Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D29937
2021-06-22 20:52:06 -06:00
..
balloon virtio: Reduce boilerplate for device driver module definitions 2021-01-21 01:07:23 +00:00
block virtio_blk: Fix issuing T_GET_ID before DRIVER_OK status 2021-05-05 23:22:16 +08:00
console virtio: Reduce boilerplate for device driver module definitions 2021-01-21 01:07:23 +00:00
mmio newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
network Fix vtnet TCP lro panic 2021-04-19 17:06:34 +01:00
pci newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
random virtio: Reduce boilerplate for device driver module definitions 2021-01-21 01:07:23 +00:00
scsi virtio_scsi: Zero stack-allocated CCBs 2021-05-16 22:20:39 -04:00
virtio_bus_if.m virtio: Add VirtIO PCI modern (V1) support 2021-01-19 04:55:23 +00:00
virtio_config.h
virtio_endian.h bhyve: virtio shares definitions between sys/dev/virtio 2021-03-16 19:29:39 +08:00
virtio_ids.h
virtio_if.m
virtio_ring.h
virtio.c newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
virtio.h newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
virtqueue.c virtio: Add modern (v1) virtqueue support 2021-01-19 04:55:23 +00:00
virtqueue.h virtio: Add modern (v1) virtqueue support 2021-01-19 04:55:23 +00:00