~ubuntu-branches/ubuntu/maverick/u-boot-omap3/maverick

« back to all changes in this revision

Viewing changes to board/MAI/AmigaOneG3SE/via686.h

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2010-03-22 15:06:23 UTC
  • Revision ID: james.westby@ubuntu.com-20100322150623-i21g8rgiyl5dohag
Tags: upstream-2010.3git20100315
ImportĀ upstreamĀ versionĀ 2010.3git20100315

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
25
void via_init(void);
 
26
 
 
27
void via_calibrate_bus_freq(void);
 
28
 
 
29
#endif