File: sun3xprom.h

package info (click to toggle)
linux-2.6.24 2.6.24-6~etchnhalf.9etch3
  • links: PTS
  • area: main
  • in suites: etch
  • size: 317,768 kB
  • ctags: 974,658
  • sloc: ansic: 5,384,710; asm: 212,187; makefile: 14,202; perl: 7,066; cpp: 3,159; python: 2,833; yacc: 2,629; sh: 2,526; lex: 1,511; lisp: 218; awk: 96; pascal: 41
file content (43 lines) | stat: -rw-r--r-- 1,304 bytes parent folder | download | duplicates (46)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* Useful PROM locations */

#ifndef SUN3X_PROM_H
#define SUN3X_PROM_H

extern void (*sun3x_putchar)(int);
extern int (*sun3x_getchar)(void);
extern int (*sun3x_mayget)(void);
extern int (*sun3x_mayput)(int);

void sun3x_reboot(void);
void sun3x_abort(void);
void sun3x_prom_init(void);
unsigned long sun3x_prom_ptov(unsigned long pa, unsigned long size);

/* interesting hardware locations */
#define SUN3X_IOMMU       0x60000000
#define SUN3X_ENAREG      0x61000000
#define SUN3X_INTREG      0x61001400
#define SUN3X_DIAGREG     0x61001800
#define SUN3X_ZS1         0x62000000
#define SUN3X_ZS2         0x62002000
#define SUN3X_LANCE       0x65002000
#define SUN3X_EEPROM      0x64000000
#define SUN3X_IDPROM      0x640007d8
#define SUN3X_VIDEO_BASE  0x50400000
#define SUN3X_VIDEO_REGS  0x50300000

/* vector table */
#define SUN3X_PROM_BASE   0xfefe0000
#define SUN3X_P_GETCHAR   (SUN3X_PROM_BASE + 20)
#define SUN3X_P_PUTCHAR   (SUN3X_PROM_BASE + 24)
#define SUN3X_P_MAYGET    (SUN3X_PROM_BASE + 28)
#define SUN3X_P_MAYPUT    (SUN3X_PROM_BASE + 32)
#define SUN3X_P_REBOOT    (SUN3X_PROM_BASE + 96)
#define SUN3X_P_SETLEDS   (SUN3X_PROM_BASE + 144)
#define SUN3X_P_ABORT     (SUN3X_PROM_BASE + 152)

/* mapped area */
#define SUN3X_MAP_START   0xfee00000
#define SUN3X_MAP_END     0xff000000

#endif