1 /* Author: Domen Puncer <domen@cba.si>. License: WTFPL, see file LICENSE */
5 static int uart_probe(struct device
*dev
, int data
)
9 static int uart_open(struct device
*dev
, int flags
)
11 // implement O_NONBLOCK
14 static void uart_close(struct device
*dev
)
17 static int uart_read(struct device
*dev
, void *buf
, size_t count
)
19 return read(0, buf
, count
);
21 static int uart_write(struct device
*dev
, const void *buf
, size_t count
)
23 return write(1, buf
, count
);
26 struct driver uart_driver
= {