blob: 2dbb0cd13e5950a2549f02cae3b95268bedfe159 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef _JOVE_SERIAL_COM_H
#define _JOVE_SERIAL_COM_H 1
#include <stdint.h>
#include "obj.h"
#define SERIAL_COM1 0x3F8
#define SERIAL_COM_TR(com) (com)
#define SERIAL_COM_IER(com) (com + 1)
#define SERIAL_COM_II(com) (com + 2)
#define SERIAL_COM_FIFO(com) (com + 2)
#define SERIAL_COM_LCR(com) (com + 3)
#define SERIAL_COM_MCR(com) (com + 4)
#define SERIAL_COM_LSR(com) (com + 5)
#define SERIAL_COM_MSR(com) (com + 6)
#define SERIAL_COM_SR(com) (com + 7)
#define SERIAL_COM_DLAB_BAUD_LO(com) (com)
#define SERIAL_COM_DLAB_BAUD_HI(com) (com + 1)
void serial_com_init(void);
int serial_com_write(jove_owned_obj_t *obj, const char *s, size_t len);
#endif
|