reorganize source
[com32] / src / serial.h
diff --git a/src/serial.h b/src/serial.h
deleted file mode 100644 (file)
index fb2c17e..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
-pcboot - bootable PC demo/game kernel
-Copyright (C) 2018  John Tsiombikas <nuclear@member.fsf.org>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY, without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <https://www.gnu.org/licenses/>.
-*/
-#ifndef SERIAL_H_
-#define SERIAL_H_
-
-#define SER_8N1                0
-#define SER_8N2                1
-#define SER_HWFLOW     2
-
-int ser_open(int pidx, int baud, unsigned int mode);
-void ser_close(int fd);
-
-int ser_block(int fd);
-int ser_nonblock(int fd);
-
-int ser_pending(int fd);
-/* if msec < 0: wait for ever */
-int ser_wait(int fd, long msec);
-
-void ser_putc(int fd, char c);
-int ser_getc(int fd);
-
-int ser_write(int fd, const char *buf, int count);
-int ser_read(int fd, char *buf, int count);
-
-#define ser_putchar(c) ser_putc(0, c)
-
-char *ser_getline(int fd, char *buf, int bsz);
-
-
-#endif /* SERIAL_H_ */