root / lab4 / .minix-src / include / i386 / ports.h @ 14
History | View | Annotate | Download (520 Bytes)
1 |
/* Addresses and magic numbers for miscellaneous ports. */
|
---|---|
2 |
|
3 |
#ifndef _PORTS_H
|
4 |
#define _PORTS_H
|
5 |
|
6 |
#if defined(__i386__)
|
7 |
|
8 |
/* Miscellaneous ports. */
|
9 |
#define PCR 0x65 /* Planar Control Register */ |
10 |
#define PORT_B 0x61 /* I/O port for 8255 port B (kbd, beeper...) */ |
11 |
#define TIMER0 0x40 /* I/O port for timer channel 0 */ |
12 |
#define TIMER2 0x42 /* I/O port for timer channel 2 */ |
13 |
#define TIMER_MODE 0x43 /* I/O port for timer mode control */ |
14 |
|
15 |
#endif /* defined(__i386__) */ |
16 |
|
17 |
#endif /* _PORTS_H */ |