Files
retrobsd/sys/pic32/uart.h
Serge Vakulenko 5cb608d7e1 Rename other disk drivers which needed rdisk.
Delete device names from all the drivers.
Move device inslude files from include/sys to include/machine directory.
Only include files which have something useful for user layer
(like special ioctls codes) should be placed into sys.
2015-09-26 23:00:13 -07:00

25 lines
553 B
C

#ifndef _UART_H
#define _UART_H
#define NUART 6
#ifdef KERNEL
void uartinit(int unit);
int uartopen(dev_t dev, int flag, int mode);
int uartclose(dev_t dev, int flag, int mode);
int uartread(dev_t dev, struct uio * uio, int flag);
int uartwrite(dev_t dev, struct uio *uio, int flag);
int uartselect(dev_t dev, int rw);
int uartioctl(dev_t dev, u_int cmd, caddr_t addr, int flag);
void uartintr(dev_t dev);
void uartstart(struct tty *tp);
void uartputc(dev_t dev, char c);
char uartgetc(dev_t dev);
extern struct tty uartttys[NUART];
#endif
#endif