Init IOAPIC nad LAPICs
This commit is contained in:
23
kernel/hal/x86_64/pic.h
Normal file
23
kernel/hal/x86_64/pic.h
Normal file
@ -0,0 +1,23 @@
|
||||
#ifndef HAL_PIC_H_
|
||||
#define HAL_PIC_H_
|
||||
|
||||
#define PIC1_CMD 0x0020
|
||||
#define PIC1_DATA 0x0021
|
||||
#define PIC2_CMD 0x00A0
|
||||
#define PIC2_DATA 0x00A1
|
||||
|
||||
#define ICW1_ICW4 0x01
|
||||
#define ICW1_SINGLE 0x02
|
||||
#define ICW1_ADI 0x04
|
||||
#define ICW1_LTIM 0x08
|
||||
#define ICW1_INIT 0x10
|
||||
|
||||
#define ICW4_8086 0x01
|
||||
#define ICW4_AUTO 0x02
|
||||
#define ICW4_BUFSLAVE 0x04
|
||||
#define ICW4_BUFMASTER 0x0C
|
||||
#define ICW4_SFNM 0x10
|
||||
|
||||
void pic_init(void);
|
||||
|
||||
#endif // HAL_PIC_H_
|
Reference in New Issue
Block a user