i8253.h 741 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Machine specific IO port address definition for generic.
  3. * Written by Osamu Tomita <tomita@cinet.co.jp>
  4. */
  5. #ifndef _MACH_IO_PORTS_H
  6. #define _MACH_IO_PORTS_H
  7. /* i8253A PIT registers */
  8. #define PIT_MODE 0x43
  9. #define PIT_CH0 0x40
  10. #define PIT_CH2 0x42
  11. /* i8259A PIC registers */
  12. #define PIC_MASTER_CMD 0x20
  13. #define PIC_MASTER_IMR 0x21
  14. #define PIC_MASTER_ISR PIC_MASTER_CMD
  15. #define PIC_MASTER_POLL PIC_MASTER_ISR
  16. #define PIC_MASTER_OCW3 PIC_MASTER_ISR
  17. #define PIC_SLAVE_CMD 0xa0
  18. #define PIC_SLAVE_IMR 0xa1
  19. /* i8259A PIC related value */
  20. #define PIC_CASCADE_IR 2
  21. #define MASTER_ICW4_DEFAULT 0x01
  22. #define SLAVE_ICW4_DEFAULT 0x01
  23. #define PIC_ICW4_AEOI 2
  24. extern void setup_pit_timer(void);
  25. #endif /* !_MACH_IO_PORTS_H */