virtio_console.h 663 字节
Newer Older
R
Rusty Russell 已提交
1 2
#ifndef _LINUX_VIRTIO_CONSOLE_H
#define _LINUX_VIRTIO_CONSOLE_H
3
#include <linux/types.h>
R
Rusty Russell 已提交
4
#include <linux/virtio_config.h>
5 6
/* This header, excluding the #ifdef __KERNEL__ part, is BSD licensed so
 * anyone can use the definitions to implement compatible drivers/servers. */
R
Rusty Russell 已提交
7

8 9 10 11 12 13 14 15 16 17 18
/* Feature bits */
#define VIRTIO_CONSOLE_F_SIZE	0	/* Does host provide console size? */

struct virtio_console_config {
	/* colums of the screens */
	__u16 cols;
	/* rows of the screens */
	__u16 rows;
} __attribute__((packed));


R
Rusty Russell 已提交
19 20 21 22 23
#ifdef __KERNEL__
int __init virtio_cons_early_init(int (*put_chars)(u32, const char *, int));
#endif /* __KERNEL__ */

#endif /* _LINUX_VIRTIO_CONSOLE_H */