5 #ifndef _XENCONS_RING_H
6 #define _XENCONS_RING_H
10 if (panicstr == NULL) \
11 mtx_lock_spin(&(l)); \
13 #define CN_UNLOCK(l) \
15 if (panicstr == NULL) \
16 mtx_unlock_spin(&(l)); \
19 int xencons_ring_init(void);
20 int xencons_ring_send(const char *data, unsigned len);
21 void xencons_rx(char *buf, unsigned len);
22 void xencons_tx(void);
25 typedef void (xencons_receiver_func)(char *buf, unsigned len);
26 void xencons_ring_register_receiver(xencons_receiver_func *f);
28 void xencons_handle_input(void *unused);
29 int xencons_has_input(void);
31 #endif /* _XENCONS_RING_H */