uboot/board/MAI/AmigaOneG3SE/via686.h
<<
>>
Prefs
   1#ifndef VIA686_H_
   2#define VIA686_H_
   3
   4
   5#define CMOS_ADDR         0x70
   6#define CMOS_DATA         0x71
   7
   8#define I8259_MASTER_CONTROL 0x20
   9#define I8259_MASTER_MASK    0x21
  10
  11#define I8259_SLAVE_CONTROL  0xA0
  12#define I8259_SLAVE_MASK     0xA1
  13
  14#define SIO_CONFIG_ADDR 0x3F0
  15#define SIO_CONFIG_DATA 0x3F1
  16
  17#define SIO_WRITE_CONFIG(addr, byte) \
  18   out_byte(SIO_CONFIG_ADDR, addr);  \
  19   out_byte(SIO_CONFIG_DATA, byte);
  20
  21#define SIO_READ_CONFIG(addr, byte) \
  22   out_byte(SIO_CONFIG_ADDR, addr); \
  23   byte = in_byte(SIO_CONFIG_DATA);
  24
  25void via_init(void);
  26
  27void via_calibrate_bus_freq(void);
  28
  29#endif
  30