Last change
on this file since 612 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
1.0 KB
|
Rev | Line | |
---|
[444] | 1 | /* Copyright (c) 1995 Cygnus Support |
---|
| 2 | * |
---|
| 3 | * The authors hereby grant permission to use, copy, modify, distribute, |
---|
| 4 | * and license this software and its documentation for any purpose, provided |
---|
| 5 | * that existing copyright notices are retained in all copies and that this |
---|
| 6 | * notice is included verbatim in any distributions. No written agreement, |
---|
| 7 | * license, or royalty fee is required for any of the authorized uses. |
---|
| 8 | * Modifications to this software may be copyrighted by their authors |
---|
| 9 | * and need not follow the licensing terms described here, provided that |
---|
| 10 | * the new terms are clearly indicated on the first page of each file where |
---|
| 11 | * they apply. |
---|
| 12 | * |
---|
| 13 | * The w89k uses a memory mapped I/O scheme as well as a PC style ISA bus. |
---|
| 14 | * All I/O accesses are via a port. |
---|
| 15 | */ |
---|
| 16 | #define IOSPACE 0xf0000000 |
---|
| 17 | #define outp(port,val) *((volatile unsigned char*)(IOSPACE+port))=val |
---|
| 18 | #define inp(port) *((volatile unsigned char*)(IOSPACE+port)) |
---|
| 19 | #define RS232PORT 0x3f8 |
---|
| 20 | #define COM1_LSR (0x3f8 + 5) |
---|
| 21 | #define COM1_DATA (0x3f8 + 0) |
---|
| 22 | |
---|
| 23 | #define RS232REG 0x3fd |
---|
| 24 | #define TRANSMIT 0x20 |
---|
| 25 | #define RECEIVE 0x01 |
---|
Note: See
TracBrowser
for help on using the repository browser.