summaryrefslogtreecommitdiffstats
path: root/sys/dev/xen/console/xencons_ring.h
blob: fc97d95028e29caad21390fde951bca78e7f7138 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * $FreeBSD$
 *
 */
#ifndef _XENCONS_RING_H
#define _XENCONS_RING_H

int xencons_ring_init(void);
int xencons_ring_send(const char *data, unsigned len);
void xencons_rx(char *buf, unsigned len);
void xencons_tx(void);


typedef void (xencons_receiver_func)(char *buf, unsigned len);
void xencons_ring_register_receiver(xencons_receiver_func *f);

void xencons_handle_input(void *unused);
int xencons_has_input(void);

#endif /* _XENCONS_RING_H */
OpenPOWER on IntegriCloud