diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2008-06-14 15:56:16 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2008-06-14 15:56:16 -0400 |
commit | f54c150090ff38a73ef64a5d20fdfa0d9c403972 (patch) | |
tree | c9c4325ee9d88897c25452eaf08fcc22440499b4 /src/ioport.h | |
parent | 15c1f2207f4d406bb56032cef5920f474f32de88 (diff) | |
download | seabios-f54c150090ff38a73ef64a5d20fdfa0d9c403972.tar.gz |
Cleanup handling of interrupt controller (PIC).
Add new file (pic.h) with helpers for accessing the PIC.
Move irq enabling code to the files that use those interrupts.
Also, don't setup for floppy if floppy support not enabled.
Diffstat (limited to 'src/ioport.h')
-rw-r--r-- | src/ioport.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/ioport.h b/src/ioport.h index a51d7135..2ac8602d 100644 --- a/src/ioport.h +++ b/src/ioport.h @@ -14,7 +14,7 @@ #define PORT_DMA1_MODE_REG 0x000b #define PORT_DMA1_CLEAR_FF_REG 0x000c #define PORT_DMA1_MASTER_CLEAR 0x000d -#define PORT_PIC1 0x0020 +#define PORT_PIC1_CMD 0x0020 #define PORT_PIC1_DATA 0x0021 #define PORT_PIT_COUNTER0 0x0040 #define PORT_PIT_COUNTER1 0x0041 @@ -28,7 +28,7 @@ #define PORT_DIAG 0x0080 #define PORT_DMA_PAGE_2 0x0081 #define PORT_A20 0x0092 -#define PORT_PIC2 0x00a0 +#define PORT_PIC2_CMD 0x00a0 #define PORT_PIC2_DATA 0x00a1 #define PORT_DMA2_MASK_REG 0x00d4 #define PORT_DMA2_MODE_REG 0x00d6 @@ -44,12 +44,6 @@ #define PORT_BIOS_DEBUG 0x0403 #define PORT_BIOS_APM 0x8900 -// PORT_PIC1 bitdefs -#define PIC1_IRQ5 (1<<5) -// PORT_PIC2 bitdefs -#define PIC2_IRQ8 (1<<0) -#define PIC2_IRQ13 (1<<5) - // PORT_KBD_CTRLB bitdefs #define KBD_REFRESH (1<<4) |