Back to home page

OSCL-LXR

 
 

    


0001 #ifndef _LINUX_VIRTIO_IDS_H
0002 #define _LINUX_VIRTIO_IDS_H
0003 /*
0004  * Virtio IDs
0005  *
0006  * This header is BSD licensed so anyone can use the definitions to implement
0007  * compatible drivers/servers.
0008  *
0009  * Redistribution and use in source and binary forms, with or without
0010  * modification, are permitted provided that the following conditions
0011  * are met:
0012  * 1. Redistributions of source code must retain the above copyright
0013  *    notice, this list of conditions and the following disclaimer.
0014  * 2. Redistributions in binary form must reproduce the above copyright
0015  *    notice, this list of conditions and the following disclaimer in the
0016  *    documentation and/or other materials provided with the distribution.
0017  * 3. Neither the name of IBM nor the names of its contributors
0018  *    may be used to endorse or promote products derived from this software
0019  *    without specific prior written permission.
0020  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND
0021  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
0022  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
0023  * ARE DISCLAIMED.  IN NO EVENT SHALL IBM OR CONTRIBUTORS BE LIABLE
0024  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
0025  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
0026  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
0027  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
0028  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
0029  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
0030  * SUCH DAMAGE. */
0031 
0032 #define VIRTIO_ID_NET           1 /* virtio net */
0033 #define VIRTIO_ID_BLOCK         2 /* virtio block */
0034 #define VIRTIO_ID_CONSOLE       3 /* virtio console */
0035 #define VIRTIO_ID_RNG           4 /* virtio rng */
0036 #define VIRTIO_ID_BALLOON       5 /* virtio balloon */
0037 #define VIRTIO_ID_IOMEM         6 /* virtio ioMemory */
0038 #define VIRTIO_ID_RPMSG         7 /* virtio remote processor messaging */
0039 #define VIRTIO_ID_SCSI          8 /* virtio scsi */
0040 #define VIRTIO_ID_9P            9 /* 9p virtio console */
0041 #define VIRTIO_ID_MAC80211_WLAN     10 /* virtio WLAN MAC */
0042 #define VIRTIO_ID_RPROC_SERIAL      11 /* virtio remoteproc serial link */
0043 #define VIRTIO_ID_CAIF          12 /* Virtio caif */
0044 #define VIRTIO_ID_MEMORY_BALLOON    13 /* virtio memory balloon */
0045 #define VIRTIO_ID_GPU           16 /* virtio GPU */
0046 #define VIRTIO_ID_CLOCK         17 /* virtio clock/timer */
0047 #define VIRTIO_ID_INPUT         18 /* virtio input */
0048 #define VIRTIO_ID_VSOCK         19 /* virtio vsock transport */
0049 #define VIRTIO_ID_CRYPTO        20 /* virtio crypto */
0050 #define VIRTIO_ID_SIGNAL_DIST       21 /* virtio signal distribution device */
0051 #define VIRTIO_ID_PSTORE        22 /* virtio pstore device */
0052 #define VIRTIO_ID_IOMMU         23 /* virtio IOMMU */
0053 #define VIRTIO_ID_MEM           24 /* virtio mem */
0054 #define VIRTIO_ID_SOUND         25 /* virtio sound */
0055 #define VIRTIO_ID_FS            26 /* virtio filesystem */
0056 #define VIRTIO_ID_PMEM          27 /* virtio pmem */
0057 #define VIRTIO_ID_RPMB          28 /* virtio rpmb */
0058 #define VIRTIO_ID_MAC80211_HWSIM    29 /* virtio mac80211-hwsim */
0059 #define VIRTIO_ID_VIDEO_ENCODER     30 /* virtio video encoder */
0060 #define VIRTIO_ID_VIDEO_DECODER     31 /* virtio video decoder */
0061 #define VIRTIO_ID_SCMI          32 /* virtio SCMI */
0062 #define VIRTIO_ID_NITRO_SEC_MOD     33 /* virtio nitro secure module*/
0063 #define VIRTIO_ID_I2C_ADAPTER       34 /* virtio i2c adapter */
0064 #define VIRTIO_ID_WATCHDOG      35 /* virtio watchdog */
0065 #define VIRTIO_ID_CAN           36 /* virtio can */
0066 #define VIRTIO_ID_DMABUF        37 /* virtio dmabuf */
0067 #define VIRTIO_ID_PARAM_SERV        38 /* virtio parameter server */
0068 #define VIRTIO_ID_AUDIO_POLICY      39 /* virtio audio policy */
0069 #define VIRTIO_ID_BT            40 /* virtio bluetooth */
0070 #define VIRTIO_ID_GPIO          41 /* virtio gpio */
0071 
0072 /*
0073  * Virtio Transitional IDs
0074  */
0075 
0076 #define VIRTIO_TRANS_ID_NET     0x1000 /* transitional virtio net */
0077 #define VIRTIO_TRANS_ID_BLOCK       0x1001 /* transitional virtio block */
0078 #define VIRTIO_TRANS_ID_BALLOON     0x1002 /* transitional virtio balloon */
0079 #define VIRTIO_TRANS_ID_CONSOLE     0x1003 /* transitional virtio console */
0080 #define VIRTIO_TRANS_ID_SCSI        0x1004 /* transitional virtio SCSI */
0081 #define VIRTIO_TRANS_ID_RNG     0x1005 /* transitional virtio rng */
0082 #define VIRTIO_TRANS_ID_9P      0x1009 /* transitional virtio 9p console */
0083 
0084 #endif /* _LINUX_VIRTIO_IDS_H */