|
nckernel
0.1
|
#include <sys/types.h>#include <sys/io.h>#include <stdio.h>#include <assert.h>#include <stdarg.h>#include <pic.h>
Go to the source code of this file.
Macros | |
| #define | CLOCK 1193180 |
Enumerations | |
| enum | port_t { PIC_FIRST_COMMAND = 0x20, PIC_FIRST_INTERRUPT_MASK = 0x21, PIC_SECOND_COMMAND = 0xA0, PIC_SECOND_INTERRUPT_MASK = 0xA1, TIMER_COUNTER_DIVISOR = 0x40, TIMER_MODE_CONTROL = 0x43, CG_6845_INDEX = 0x3D4, CG_6845_DATA = 0x3D5, CG_6845_MODE_CONTROL = 0x3D8, CG_6845_COLOR_SELECT_PALETTE = 0x3D9, CG_6845_STATUS = 0x3DA, CG_6845_CLEAR_LIGHT_PEN_LATCH = 0x3DB, CG_6845_PRESET_LIGHT_PEN_LATCH = 0x3DC, CG_6845_CRT_CPU_PAGE = 0x3DF } |
| Port address. More... | |
Functions | |
| void | pic_init (void) |
| PIC 초기화 More... | |
| void | timer_init (unsigned long frequency) |
| 타이머 초기화 More... | |
| #define CLOCK 1193180 |
Definition at line 9 of file pic.c.
Referenced by timer_init().
| enum port_t |
Port address.
1.8.4