aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/virtio_ids.h
diff options
context:
space:
mode:
authorFernando Luis Vazquez Cao <fernando@oss.ntt.co.jp>2009-07-31 02:25:56 -0400
committerRusty Russell <rusty@rustcorp.com.au>2009-09-23 08:56:32 -0400
commit3ca4f5ca73057a617f9444a91022d7127041970a (patch)
tree382659da29ad0a2e9878df6c7c4204913ab642e7 /include/linux/virtio_ids.h
parent3a20210dc26bbfff3bbb48bb22d2846240b71d8f (diff)
virtio: add virtio IDs file
Virtio IDs are spread all over the tree which makes assigning new IDs bothersome. Putting them together should make the process less error-prone. Signed-off-by: Fernando Luis Vazquez Cao <fernando@oss.ntt.co.jp> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux/virtio_ids.h')
-rw-r--r--include/linux/virtio_ids.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/virtio_ids.h b/include/linux/virtio_ids.h
new file mode 100644
index 000000000000..06660c0a78d7
--- /dev/null
+++ b/include/linux/virtio_ids.h
@@ -0,0 +1,17 @@
1#ifndef _LINUX_VIRTIO_IDS_H
2#define _LINUX_VIRTIO_IDS_H
3/*
4 * Virtio IDs
5 *
6 * This header is BSD licensed so anyone can use the definitions to implement
7 * compatible drivers/servers.
8 */
9
10#define VIRTIO_ID_NET 1 /* virtio net */
11#define VIRTIO_ID_BLOCK 2 /* virtio block */
12#define VIRTIO_ID_CONSOLE 3 /* virtio console */
13#define VIRTIO_ID_RNG 4 /* virtio ring */
14#define VIRTIO_ID_BALLOON 5 /* virtio balloon */
15#define VIRTIO_ID_9P 9 /* 9p virtio console */
16
17#endif /* _LINUX_VIRTIO_IDS_H */