Modestus Moon OS
R4
CS 450 project
|
#include <input.h>
Go to the source code of this file.
Macros | |
#define | COM1 0x3f8 |
#define | COM2 0x2f8 |
#define | COM3 0x3e8 |
#define | COM4 0x2e8 |
Functions | |
int | init_serial (int device) |
int | serial_println (const char *msg) |
int | serial_print (const char *msg) |
int | set_serial_out (int device) |
int | set_serial_in (int device) |
char * | serial_poll (char in_string[MAX_LENGTH]) |
#define COM1 0x3f8 |
Definition at line 6 of file serial.h.
Referenced by kmain(), and serial_poll().
int init_serial | ( | int | device | ) |
char* serial_poll | ( | char | in_string[MAX_LENGTH] | ) |
Definition at line 114 of file serial.c.
References BACKSPACE, clear_buff(), COM1, DELETE, ESC, in_string, inb, NEW_LINE, RETURN, return_cursor(), serial_print(), and strcpy().
Referenced by init_commhand(), and shutdownFunc().
int serial_print | ( | const char * | msg | ) |
Definition at line 59 of file serial.c.
References NO_ERROR, outb, and serial_port_out.
Referenced by clear_buff(), do_isr(), getTime(), init_commhand(), pcbFunc(), return_cursor(), serial_poll(), shutdownFunc(), and version().
int serial_println | ( | const char * | msg | ) |
Definition at line 44 of file serial.c.
References NO_ERROR, outb, and serial_port_out.
Referenced by alloc(), clear_screen(), date(), do_isr(), do_reserved(), exec_comm(), help(), helpBlockPCB(), helpCreatePCB(), helpDate(), helpDeletePCB(), helpFunc(), helpGetDate(), helpGetTime(), helpLoadR3(), helpMCB(), helpMCBAllocate(), helpMCBFreeMem(), helpMCBInitHeap(), helpMCBIsEmpty(), helpMcbPrint(), helpMCBShowAllocated(), helpMCBShowFree(), helpPcb(), helpPcbPrint(), helpResumePCB(), helpSetDate(), helpSetPriority(), helpSetTime(), helpShowAllProcesses(), helpShowBlockedProcesses(), helpShowPCB(), helpShowReadyProcesses(), helpShutdown(), helpSuspendPCB(), helpTime(), helpUnblockPCB(), helpVersion(), idle(), klogv(), loadr3(), pcbFunc(), proc1(), proc2(), proc3(), proc4(), proc5(), setDate(), setTime(), shutdownFunc(), start_up_anim(), time(), and version().
int set_serial_in | ( | int | device | ) |
Definition at line 87 of file serial.c.
References NO_ERROR, and serial_port_in.
Referenced by kmain().
int set_serial_out | ( | int | device | ) |
Definition at line 75 of file serial.c.
References NO_ERROR, and serial_port_out.
Referenced by kmain().