File: smc-mca.h

package info (click to toggle)
kernel-source-2.2.19 2.2.19.1-4woody1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 92,100 kB
  • ctags: 276,892
  • sloc: ansic: 1,710,384; asm: 58,709; makefile: 10,198; sh: 2,398; perl: 907; tcl: 570; lisp: 218; cpp: 186; awk: 133; sed: 72
file content (61 lines) | stat: -rw-r--r-- 1,137 bytes parent folder | download | duplicates (5)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
 * djweis weisd3458@uni.edu
 * most of this file was taken from ps2esdi.h
 */

struct {
  unsigned int base_addr;
} addr_table[] = {
    { 0x0800 },
    { 0x1800 },
    { 0x2800 },
    { 0x3800 },
    { 0x4800 },
    { 0x5800 },
    { 0x6800 },
    { 0x7800 },
    { 0x8800 },
    { 0x9800 },
    { 0xa800 },
    { 0xb800 },
    { 0xc800 },
    { 0xd800 },
    { 0xe800 },
    { 0xf800 }
};

#define MEM_MASK 64

struct {
  unsigned char mem_index;
  unsigned long mem_start;
  unsigned char num_pages;
} mem_table[] = {
    { 16, 0x0c0000, 0x40 },
    { 18, 0x0c4000, 0x40 },
    { 20, 0x0c8000, 0x40 },
    { 22, 0x0cc000, 0x40 },
    { 24, 0x0d0000, 0x40 },
    { 26, 0x0d4000, 0x40 },
    { 28, 0x0d8000, 0x40 },
    { 30, 0x0dc000, 0x40 },
    {144, 0xfc0000, 0x40 },
    {148, 0xfc8000, 0x40 },
    {154, 0xfd0000, 0x40 },
    {156, 0xfd8000, 0x40 },
    {  0, 0x0c0000, 0x20 },
    {  1, 0x0c2000, 0x20 },
    {  2, 0x0c4000, 0x20 },
    {  3, 0x0c6000, 0x20 }
};

#define IRQ_MASK 243
struct {
   unsigned char new_irq;
   unsigned char old_irq;
} irq_table[] = {
   {  3,  3 },
   {  4,  4 },
   { 10, 10 },
   { 14, 15 }
};