• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef _LASAT_H
20 #define _LASAT_H
21 #ifndef _LANGUAGE_ASSEMBLY
22 enum lasat_mtdparts {
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24  LASAT_MTD_BOOTLOADER,
25  LASAT_MTD_SERVICE,
26  LASAT_MTD_NORMAL,
27  LASAT_MTD_CONFIG,
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29  LASAT_MTD_FS,
30  LASAT_MTD_LAST
31 };
32 #include <linux/types.h>
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define LASAT_EEPROM_VERSION 7
35 struct lasat_eeprom_struct {
36  unsigned int version;
37  unsigned int cfg[3];
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39  unsigned char hwaddr[6];
40  unsigned char print_partno[12];
41  unsigned char term0;
42  unsigned char print_serial[14];
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44  unsigned char term1;
45  unsigned char prod_partno[12];
46  unsigned char term2;
47  unsigned char prod_serial[14];
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49  unsigned char term3;
50  unsigned char passwd_hash[16];
51  unsigned char pwdnull;
52  unsigned char vendid;
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54  unsigned char ts_ref;
55  unsigned char ts_signoff;
56  unsigned char reserved[11];
57  unsigned char debugaccess;
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59  unsigned short prid;
60  unsigned int serviceflag;
61  unsigned int ipaddr;
62  unsigned int netmask;
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64  unsigned int crc32;
65 };
66 struct lasat_eeprom_struct_pre7 {
67  unsigned int version;
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69  unsigned int flags[3];
70  unsigned char hwaddr0[6];
71  unsigned char hwaddr1[6];
72  unsigned char print_partno[9];
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74  unsigned char term0;
75  unsigned char print_serial[14];
76  unsigned char term1;
77  unsigned char prod_partno[9];
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79  unsigned char term2;
80  unsigned char prod_serial[14];
81  unsigned char term3;
82  unsigned char passwd_hash[24];
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84  unsigned char pwdnull;
85  unsigned char vendor;
86  unsigned char ts_ref;
87  unsigned char ts_signoff;
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89  unsigned char reserved[6];
90  unsigned int writecount;
91  unsigned int ipaddr;
92  unsigned int netmask;
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94  unsigned int crc32;
95 };
96 #define LASAT_W0_DSCTYPE(v) (((v)) & 0xf)
97 #define LASAT_W0_BMID(v) (((v) >> 0x04) & 0xf)
98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 #define LASAT_W0_CPUTYPE(v) (((v) >> 0x08) & 0xf)
100 #define LASAT_W0_BUSSPEED(v) (((v) >> 0x0c) & 0xf)
101 #define LASAT_W0_CPUCLK(v) (((v) >> 0x10) & 0xf)
102 #define LASAT_W0_SDRAMBANKSZ(v) (((v) >> 0x14) & 0xf)
103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 #define LASAT_W0_SDRAMBANKS(v) (((v) >> 0x18) & 0xf)
105 #define LASAT_W0_L2CACHE(v) (((v) >> 0x1c) & 0xf)
106 #define LASAT_W1_EDHAC(v) (((v)) & 0xf)
107 #define LASAT_W1_HIFN(v) (((v) >> 0x04) & 0x1)
108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109 #define LASAT_W1_ISDN(v) (((v) >> 0x05) & 0x1)
110 #define LASAT_W1_IDE(v) (((v) >> 0x06) & 0x1)
111 #define LASAT_W1_HDLC(v) (((v) >> 0x07) & 0x1)
112 #define LASAT_W1_USVERSION(v) (((v) >> 0x08) & 0x1)
113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114 #define LASAT_W1_4MACS(v) (((v) >> 0x09) & 0x1)
115 #define LASAT_W1_EXTSERIAL(v) (((v) >> 0x0a) & 0x1)
116 #define LASAT_W1_FLASHSIZE(v) (((v) >> 0x0c) & 0xf)
117 #define LASAT_W1_PCISLOTS(v) (((v) >> 0x10) & 0xf)
118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119 #define LASAT_W1_PCI1OPT(v) (((v) >> 0x14) & 0xf)
120 #define LASAT_W1_PCI2OPT(v) (((v) >> 0x18) & 0xf)
121 #define LASAT_W1_PCI3OPT(v) (((v) >> 0x1c) & 0xf)
122 #define LASAT_BMID_MASQUERADE2 0
123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124 #define LASAT_BMID_MASQUERADEPRO 1
125 #define LASAT_BMID_SAFEPIPE25 2
126 #define LASAT_BMID_SAFEPIPE50 3
127 #define LASAT_BMID_SAFEPIPE100 4
128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129 #define LASAT_BMID_SAFEPIPE5000 5
130 #define LASAT_BMID_SAFEPIPE7000 6
131 #define LASAT_BMID_SAFEPIPE1000 7
132 #define LASAT_BMID_UNKNOWN 0xf
133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134 #define LASAT_MAX_BMID_NAMES 9
135 #define LASAT_HAS_EDHAC (1 << 0)
136 #define LASAT_EDHAC_FAST (1 << 1)
137 #define LASAT_HAS_EADI (1 << 2)
138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139 #define LASAT_HAS_HIFN (1 << 3)
140 #define LASAT_HAS_ISDN (1 << 4)
141 #define LASAT_HAS_LEASEDLINE_IF (1 << 5)
142 #define LASAT_HAS_HDC (1 << 6)
143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144 #define LASAT_PRID_MASQUERADE2 0
145 #define LASAT_PRID_MASQUERADEPRO 1
146 #define LASAT_PRID_SAFEPIPE25 2
147 #define LASAT_PRID_SAFEPIPE50 3
148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149 #define LASAT_PRID_SAFEPIPE100 4
150 #define LASAT_PRID_SAFEPIPE5000 5
151 #define LASAT_PRID_SAFEPIPE7000 6
152 #define LASAT_PRID_SAFEPIPE30 7
153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154 #define LASAT_PRID_SAFEPIPE5100 8
155 #define LASAT_PRID_SAFEPIPE7100 9
156 #define LASAT_PRID_SAFEPIPE1110 10
157 #define LASAT_PRID_SAFEPIPE3020 11
158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159 #define LASAT_PRID_SAFEPIPE3030 12
160 #define LASAT_PRID_SAFEPIPE5020 13
161 #define LASAT_PRID_SAFEPIPE5030 14
162 #define LASAT_PRID_SAFEPIPE1120 15
163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164 #define LASAT_PRID_SAFEPIPE1130 16
165 #define LASAT_PRID_SAFEPIPE6010 17
166 #define LASAT_PRID_SAFEPIPE6110 18
167 #define LASAT_PRID_SAFEPIPE6210 19
168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169 #define LASAT_PRID_SAFEPIPE1020 20
170 #define LASAT_PRID_SAFEPIPE1040 21
171 #define LASAT_PRID_SAFEPIPE1060 22
172 struct lasat_info {
173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174  unsigned int li_cpu_hz;
175  unsigned int li_bus_hz;
176  unsigned int li_bmid;
177  unsigned int li_memsize;
178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179  unsigned int li_flash_size;
180  unsigned int li_prid;
181  unsigned char li_bmstr[16];
182  unsigned char li_namestr[32];
183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184  unsigned char li_typestr[16];
185  unsigned int li_flash_base;
186  unsigned long li_flashpart_base[LASAT_MTD_LAST];
187  unsigned long li_flashpart_size[LASAT_MTD_LAST];
188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
189  struct lasat_eeprom_struct li_eeprom_info;
190  unsigned int li_eeprom_upgrade_version;
191  unsigned int li_debugaccess;
192 };
193 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194 #define N_MACHTYPES 2
195 #include <linux/delay.h>
196 #define LASAT_100_DIVIDER 20
197 #define LASAT_200_DIVIDER 8
198 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
199 #define IS_LASAT_200() (current_cpu_data.cputype == CPU_R5000)
200 #endif
201 #define LASAT_SERVICEMODE_MAGIC_1 0xdeadbeef
202 #define LASAT_SERVICEMODE_MAGIC_2 0xfedeabba
203 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
204 #define LASAT_GT_BASE (KSEG1ADDR(0x14000000))
205 #define Vrc5074_PHYS_BASE 0x1fa00000
206 #define Vrc5074_BASE (KSEG1ADDR(Vrc5074_PHYS_BASE))
207 #define PCI_WINDOW1 0x1a000000
208 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
209 #endif
210