#include <minix/portio.h>
#include "proto.h"
+#include "../../proc.h"
-FORWARD _PROTOTYPE( void do_ser_debug, (void));
FORWARD _PROTOTYPE( void ser_debug, (int c));
PUBLIC void arch_shutdown(int how)
#define COM1_BASE 0x3F8
#define COM1_THR (COM1_BASE + 0)
-#define LSR_THRE 0x20
+#define COM1_RBR (COM1_BASE + 0)
#define COM1_LSR (COM1_BASE + 5)
-
-#define REG_RBR 0
-#define REG_LSR 5
-#define LSR_DR 0x1
-
-#define COM1_RBR (COM1_BASE + REG_RBR)
-#define COM1_LSR (COM1_BASE + REG_LSR)
-
+#define LSR_DR 0x01
+#define LSR_THRE 0x20
PUBLIC void ser_putc(char c)
{
/*===========================================================================*
* do_ser_debug *
*===========================================================================*/
-PRIVATE void do_ser_debug()
+PUBLIC void do_ser_debug()
{
u8_t c, lsr;
_PROTOTYPE( int arch_init_profile_clock, (u32_t freq) );
_PROTOTYPE( void arch_stop_profile_clock, (void) );
_PROTOTYPE( void arch_ack_profile_clock, (void) );
-
+_PROTOTYPE( void do_ser_debug, (void) );
#endif /* PROTO_H */