6b13f685e
김민수
BSP 최초 추가
|
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
#define ERG_DPRAM_PAGE_SIZE 0x2000 /* DPRAM occupies a 8K page */
#define BOOT_IMG_SIZE 4096
#define ERG_DPRAM_FILL_SIZE (ERG_DPRAM_PAGE_SIZE - BOOT_IMG_SIZE)
#define ERG_TO_HY_BUF_SIZE 0x0E00 /* 3072 bytes buffer size to card */
#define ERG_TO_PC_BUF_SIZE 0x0E00 /* 3072 bytes to PC, too */
typedef struct ErgDpram_tag {
unsigned char ToHyBuf[ERG_TO_HY_BUF_SIZE];
unsigned char ToPcBuf[ERG_TO_PC_BUF_SIZE];
unsigned char bSoftUart[SIZE_RSV_SOFT_UART];
unsigned char volatile ErrLogMsg[64];
unsigned short volatile ToHyChannel;
unsigned short volatile ToHySize;
unsigned char volatile ToHyFlag;
unsigned char volatile ToPcFlag;
unsigned short volatile ToPcChannel;
unsigned short volatile ToPcSize;
unsigned char bRes1DBA[0x1E00 - 0x1DFA];
unsigned char bRestOfEntryTbl[0x1F00 - 0x1E00];
unsigned long TrapTable[62];
unsigned char bRes1FF8[0x1FFB - 0x1FF8];
unsigned char ToPcIntMetro;
unsigned char volatile ToHyNoDpramErrLog;
unsigned char bRes1FFD;
unsigned char ToPcInt;
unsigned char ToHyInt;
} tErgDpram;
#define PCI9050_INTR_REG 0x4C /* Interrupt register */
#define PCI9050_USER_IO 0x51 /* User I/O register */
#define PCI9050_INTR_REG_EN1 0x01 /* 1= enable (def.), 0= disable */
#define PCI9050_INTR_REG_POL1 0x02 /* 1= active high (def.), 0= active low */
#define PCI9050_INTR_REG_STAT1 0x04 /* 1= intr. active, 0= intr. not active (def.) */
#define PCI9050_INTR_REG_ENPCI 0x40 /* 1= PCI interrupts enable (def.) */
#define PCI9050_USER_IO_EN3 0x02 /* 1= disable , 0= enable (def.) */
#define PCI9050_USER_IO_DIR3 0x04 /* 1= output (def.), 0= input */
#define PCI9050_USER_IO_DAT3 0x08 /* 1= high (def.) , 0= low */
#define PCI9050_E1_RESET (PCI9050_USER_IO_DIR3) /* 0x04 */
#define PCI9050_E1_RUN (PCI9050_USER_IO_DAT3 | PCI9050_USER_IO_DIR3) /* 0x0C */
|