aboutsummaryrefslogtreecommitdiff
path: root/dos/cio.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2026-10-26 00:50:06 +0100
committerJavier <dev.git@javispedro.com>2026-10-26 00:50:06 +0100
commit6b8a368c51082fdd010ef5e1b0be4eb9b5059d1a (patch)
treee274d41a8dd5e912e20617a937a1fda5af91f8de /dos/cio.h
parent9b1cf601360fb194047e6dcc2af75c2f38c611ec (diff)
downloadchu-6b8a368c51082fdd010ef5e1b0be4eb9b5059d1a.tar.gz
chu-6b8a368c51082fdd010ef5e1b0be4eb9b5059d1a.zip
refactor common parts into inc/ch375.h and add win9x, linux drivers
Diffstat (limited to 'dos/cio.h')
-rw-r--r--dos/cio.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/dos/cio.h b/dos/cio.h
new file mode 100644
index 0000000..24a67ae
--- /dev/null
+++ b/dos/cio.h
@@ -0,0 +1,31 @@
+/*
+ * CHU - driver for CH375 in disk mode
+ * Copyright (C) 2024 Javier S. Pedro
+ *
+ * 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 CIO_H
+#define CIO_H
+
+void c_utoa(unsigned num, unsigned base);
+void c_itoa(int num, unsigned base);
+unsigned c_strtou(const char * *str);
+
+void c_printf(const char *fmt, ...);
+void c_putc(char c);
+void c_puts(const char *s);
+
+#endif // CIO_H