serial.h File Reference

Include dependency graph for serial.h:

Go to the source code of this file.

Data Structures

struct  serial_t

Defines

#define SERIAL_MAX   4
#define SERIAL_COM1   0x3f8
#define SERIAL_COM1_IRQ   4
#define SERIAL_COM2   0x2f8
#define SERIAL_COM2_IRQ   3
#define P_WRITEB(where, what)   (*((volatile char *) (0xB8000000+where))=what)
#define P_READB(where)   (*((volatile char *)(0xB8000000+where)))
#define SERIAL_READ(x)   P_READB(x)
#define SERIAL_WRITE(x, c)   P_WRITEB(x,c)
#define SERIAL_READ_IER(x)   (P_READB((x) + 1))
#define SERIAL_WRITE_IER(x, c)   (P_WRITEB((x)+1,c))
#define SERIAL_READ_IIR(x)   (P_READB((x) + 2))
#define SERIAL_READ_LSR(x)   (P_READB((x) + 5))
#define TRANSMIT_EMPTY_BIT   5

Functions

void serial_console (void)
int serial_init (void)


Detailed Description

Definition in file serial.h.


Generated on Sun Jun 18 17:02:06 2006 for HelenOS Kernel (mips32) by  doxygen 1.4.6