via686.h 593 B

1234567891011121314151617181920212223242526272829
  1. #ifndef VIA686_H_
  2. #define VIA686_H_
  3. #define CMOS_ADDR 0x70
  4. #define CMOS_DATA 0x71
  5. #define I8259_MASTER_CONTROL 0x20
  6. #define I8259_MASTER_MASK 0x21
  7. #define I8259_SLAVE_CONTROL 0xA0
  8. #define I8259_SLAVE_MASK 0xA1
  9. #define SIO_CONFIG_ADDR 0x3F0
  10. #define SIO_CONFIG_DATA 0x3F1
  11. #define SIO_WRITE_CONFIG(addr, byte) \
  12. out_byte(SIO_CONFIG_ADDR, addr); \
  13. out_byte(SIO_CONFIG_DATA, byte);
  14. #define SIO_READ_CONFIG(addr, byte) \
  15. out_byte(SIO_CONFIG_ADDR, addr); \
  16. byte = in_byte(SIO_CONFIG_DATA);
  17. void via_init(void);
  18. void via_calibrate_bus_freq(void);
  19. #endif