xref: /freebsd/sys/dev/virtio/virtio_ids.h (revision e1c4c8dd8d2d10b6104f06856a77bd5b4813a801)
19a732166SBryan Venteicher /*-
29a732166SBryan Venteicher  * This header is BSD licensed so anyone can use the definitions to implement
39a732166SBryan Venteicher  * compatible drivers/servers.
49a732166SBryan Venteicher  *
59a732166SBryan Venteicher  * Redistribution and use in source and binary forms, with or without
69a732166SBryan Venteicher  * modification, are permitted provided that the following conditions
79a732166SBryan Venteicher  * are met:
89a732166SBryan Venteicher  * 1. Redistributions of source code must retain the above copyright
99a732166SBryan Venteicher  *    notice, this list of conditions and the following disclaimer.
109a732166SBryan Venteicher  * 2. Redistributions in binary form must reproduce the above copyright
119a732166SBryan Venteicher  *    notice, this list of conditions and the following disclaimer in the
129a732166SBryan Venteicher  *    documentation and/or other materials provided with the distribution.
139a732166SBryan Venteicher  * 3. Neither the name of IBM nor the names of its contributors
149a732166SBryan Venteicher  *    may be used to endorse or promote products derived from this software
159a732166SBryan Venteicher  *    without specific prior written permission.
169a732166SBryan Venteicher  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
179a732166SBryan Venteicher  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
189a732166SBryan Venteicher  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
199a732166SBryan Venteicher  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL IBM OR CONTRIBUTORS BE LIABLE
209a732166SBryan Venteicher  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
219a732166SBryan Venteicher  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
229a732166SBryan Venteicher  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
239a732166SBryan Venteicher  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
249a732166SBryan Venteicher  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
259a732166SBryan Venteicher  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
269a732166SBryan Venteicher  * SUCH DAMAGE.
279a732166SBryan Venteicher  */
289a732166SBryan Venteicher 
299a732166SBryan Venteicher #ifndef _VIRTIO_IDS_H_
309a732166SBryan Venteicher #define _VIRTIO_IDS_H_
319a732166SBryan Venteicher 
329a732166SBryan Venteicher /* VirtIO device IDs. */
33a12d97c5SBryan Venteicher #define VIRTIO_ID_NETWORK	1
34a12d97c5SBryan Venteicher #define VIRTIO_ID_BLOCK		2
35a12d97c5SBryan Venteicher #define VIRTIO_ID_CONSOLE	3
36a12d97c5SBryan Venteicher #define VIRTIO_ID_ENTROPY	4
37a12d97c5SBryan Venteicher #define VIRTIO_ID_BALLOON	5
38a12d97c5SBryan Venteicher #define VIRTIO_ID_IOMEMORY	6
39a12d97c5SBryan Venteicher #define VIRTIO_ID_RPMSG		7
40a12d97c5SBryan Venteicher #define VIRTIO_ID_SCSI		8
41a12d97c5SBryan Venteicher #define VIRTIO_ID_9P		9
42a12d97c5SBryan Venteicher #define VIRTIO_ID_RPROC_SERIAL	11
43a12d97c5SBryan Venteicher #define VIRTIO_ID_CAIF		12
44a12d97c5SBryan Venteicher #define VIRTIO_ID_GPU		16
45a12d97c5SBryan Venteicher #define VIRTIO_ID_INPUT		18
46a12d97c5SBryan Venteicher #define VIRTIO_ID_VSOCK		19
47a12d97c5SBryan Venteicher #define VIRTIO_ID_CRYPTO	20
48e6b8c1d7SBryan Venteicher #define VIRTIO_ID_IOMMU		23
49e6b8c1d7SBryan Venteicher #define VIRTIO_ID_SOUND		25
50e6b8c1d7SBryan Venteicher #define VIRTIO_ID_FS		26
51e6b8c1d7SBryan Venteicher #define VIRTIO_ID_PMEM		27
52e6b8c1d7SBryan Venteicher #define VIRTIO_ID_RPMB		28
53*e1c4c8ddSCristian Marussi #define VIRTIO_ID_SCMI		32
54e6b8c1d7SBryan Venteicher #define VIRTIO_ID_GPIO		41
559a732166SBryan Venteicher 
569a732166SBryan Venteicher #endif /* _VIRTIO_IDS_H_ */
57