mirror of
https://github.com/yourtion/30dayMakeOS.git
synced 2026-07-17 03:51:24 +08:00
源文件整理
This commit is contained in:
@@ -85,9 +85,7 @@ void set_gatedesc(struct GATE_DESCRIPTOR *gd, int offset, int selector, int ar);
|
||||
|
||||
/* int.c */
|
||||
void init_pic(void);
|
||||
void inthandler21(int *esp);
|
||||
void inthandler27(int *esp);
|
||||
void inthandler2c(int *esp);
|
||||
#define PIC0_ICW1 0x0020
|
||||
#define PIC0_OCW2 0x0020
|
||||
#define PIC0_IMR 0x0021
|
||||
@@ -100,3 +98,21 @@ void inthandler2c(int *esp);
|
||||
#define PIC1_ICW2 0x00a1
|
||||
#define PIC1_ICW3 0x00a1
|
||||
#define PIC1_ICW4 0x00a1
|
||||
|
||||
/* keyboard.c */
|
||||
void inthandler21(int *esp);
|
||||
void wait_KBC_sendready(void);
|
||||
void init_keyboard(void);
|
||||
extern struct FIFO8 keyfifo;
|
||||
#define PORT_KEYDAT 0x0060
|
||||
#define PORT_KEYCMD 0x0064
|
||||
|
||||
/* mouse.c */
|
||||
struct MOUSE_DEC {
|
||||
unsigned char buf[3], phase;
|
||||
int x, y, btn;
|
||||
};
|
||||
void inthandler2c(int *esp);
|
||||
void enable_mouse(struct MOUSE_DEC *mdec);
|
||||
int mouse_decode(struct MOUSE_DEC *mdec, unsigned char dat);
|
||||
extern struct FIFO8 mousefifo;
|
||||
|
||||
Reference in New Issue
Block a user