diff options
Diffstat (limited to 'arch/x86_64/hal/serial_com.h')
| -rw-r--r-- | arch/x86_64/hal/serial_com.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/x86_64/hal/serial_com.h b/arch/x86_64/hal/serial_com.h index 2dbb0cd..cf0badc 100644 --- a/arch/x86_64/hal/serial_com.h +++ b/arch/x86_64/hal/serial_com.h @@ -2,7 +2,7 @@ #define _JOVE_SERIAL_COM_H 1 #include <stdint.h> -#include "obj.h" +#include <stddef.h> #define SERIAL_COM1 0x3F8 @@ -19,8 +19,12 @@ #define SERIAL_COM_DLAB_BAUD_LO(com) (com) #define SERIAL_COM_DLAB_BAUD_HI(com) (com + 1) +#ifdef DEBUG_SERIAL + void serial_com_init(void); -int serial_com_write(jove_owned_obj_t *obj, const char *s, size_t len); +int serial_com_write(uint16_t port, const char *s, size_t len); + +#endif #endif |
