io_ports.h 649 B

12345678910111213141516171819202122232425
  1. /*
  2. * arch/i386/mach-generic/io_ports.h
  3. *
  4. * Machine specific IO port address definition for generic.
  5. * Written by Osamu Tomita <tomita@cinet.co.jp>
  6. */
  7. #ifndef _MACH_IO_PORTS_H
  8. #define _MACH_IO_PORTS_H
  9. /* i8259A PIC registers */
  10. #define PIC_MASTER_CMD 0x20
  11. #define PIC_MASTER_IMR 0x21
  12. #define PIC_MASTER_ISR PIC_MASTER_CMD
  13. #define PIC_MASTER_POLL PIC_MASTER_ISR
  14. #define PIC_MASTER_OCW3 PIC_MASTER_ISR
  15. #define PIC_SLAVE_CMD 0xa0
  16. #define PIC_SLAVE_IMR 0xa1
  17. /* i8259A PIC related value */
  18. #define PIC_CASCADE_IR 2
  19. #define MASTER_ICW4_DEFAULT 0x01
  20. #define SLAVE_ICW4_DEFAULT 0x01
  21. #define PIC_ICW4_AEOI 2
  22. #endif /* !_MACH_IO_PORTS_H */