Files
kvmtool/include/kvm/term.h
T
Asias He b4405289e6 kvm tools: Move terminal related code to a new file term.c
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>
2015-06-01 16:39:41 +01:00

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 */