mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-08-29 12:43:56 +00:00
b4405289e6
This patch is a preparational step for virtio console and 8250 serial console code consolidation. Signed-off-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
18 lines
377 B
C
18 lines
377 B
C
#ifndef KVM__TERM_H
|
|
#define KVM__TERM_H
|
|
|
|
#include <sys/uio.h>
|
|
|
|
#define CONSOLE_8250 1
|
|
#define CONSOLE_VIRTIO 2
|
|
|
|
int term_putc_iov(int who, struct iovec *iov, int iovcnt);
|
|
int term_getc_iov(int who, struct iovec *iov, int iovcnt);
|
|
int term_putc(int who, char *addr, int cnt);
|
|
int term_getc(int who);
|
|
|
|
bool term_readable(int who);
|
|
void term_init(void);
|
|
|
|
#endif /* KVM__TERM_H */
|