xref: /utopia/UTPA2-700.0.x/projects/tools/lint/mips-linux-gnu_include/linux/virtio_config.h (revision 53ee8cc121a030b8d368113ac3e966b4705770ef)
1*53ee8cc1Swenshuai.xi #ifndef _LINUX_VIRTIO_CONFIG_H
2*53ee8cc1Swenshuai.xi #define _LINUX_VIRTIO_CONFIG_H
3*53ee8cc1Swenshuai.xi /* Virtio devices use a standardized configuration space to define their
4*53ee8cc1Swenshuai.xi  * features and pass configuration information, but each implementation can
5*53ee8cc1Swenshuai.xi  * store and access that space differently. */
6*53ee8cc1Swenshuai.xi #include <linux/types.h>
7*53ee8cc1Swenshuai.xi 
8*53ee8cc1Swenshuai.xi /* Status byte for guest to report progress, and synchronize features. */
9*53ee8cc1Swenshuai.xi /* We have seen device and processed generic fields (VIRTIO_CONFIG_F_VIRTIO) */
10*53ee8cc1Swenshuai.xi #define VIRTIO_CONFIG_S_ACKNOWLEDGE	1
11*53ee8cc1Swenshuai.xi /* We have found a driver for the device. */
12*53ee8cc1Swenshuai.xi #define VIRTIO_CONFIG_S_DRIVER		2
13*53ee8cc1Swenshuai.xi /* Driver has used its parts of the config, and is happy */
14*53ee8cc1Swenshuai.xi #define VIRTIO_CONFIG_S_DRIVER_OK	4
15*53ee8cc1Swenshuai.xi /* We've given up on this device. */
16*53ee8cc1Swenshuai.xi #define VIRTIO_CONFIG_S_FAILED		0x80
17*53ee8cc1Swenshuai.xi 
18*53ee8cc1Swenshuai.xi /* Do we get callbacks when the ring is completely used, even if we've
19*53ee8cc1Swenshuai.xi  * suppressed them? */
20*53ee8cc1Swenshuai.xi #define VIRTIO_F_NOTIFY_ON_EMPTY	24
21*53ee8cc1Swenshuai.xi 
22*53ee8cc1Swenshuai.xi #endif /* _LINUX_VIRTIO_CONFIG_H */
23