~ubuntu-branches/ubuntu/quantal/gputils/quantal

« back to all changes in this revision

Viewing changes to libgputils/gpprocessor.h

  • Committer: Bazaar Package Importer
  • Author(s): Taisuke Yamada
  • Date: 2009-03-16 08:39:23 UTC
  • mfrom: (1.1.8 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090316083923-jr9k3f8bchev19s0
Tags: 0.13.7-1
* New upstream release.
* New maintainer (Closes: #504473)
* Bumped Standards-Version to 3.8.1.
* General updates in debian/* to make it lintian clean.
* Removed PS/PDF files from gputils due to duplicate with gputils-doc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
enum proc_class {
26
26
  PROC_CLASS_UNKNOWN,   /* Unknown device */
27
27
  PROC_CLASS_EEPROM8,   /* 8 bit EEPROM */
 
28
  PROC_CLASS_EEPROM16,  /* 16 bit EEPROM */
28
29
  PROC_CLASS_GENERIC,   /* 12 bit device */
29
30
  PROC_CLASS_PIC12,     /* 12 bit devices */
30
31
  PROC_CLASS_SX,        /* 12 bit devices */
33
34
  PROC_CLASS_PIC16E     /* enhanced 16 bit devices */
34
35
};
35
36
 
36
 
/* XXXPRO: Need to add an entry for any extra processors.  Please keep
37
 
   this list sorted! */
38
 
 
39
 
enum pic_processor {
40
 
  no_processor,
41
 
  eeprom8,
42
 
  generic,
43
 
  pic10f200,
44
 
  pic10f202,
45
 
  pic10f204,
46
 
  pic10f206,
47
 
  pic10f220,
48
 
  pic10f222,
49
 
  pic12c508,
50
 
  pic12c508a,
51
 
  pic12c509,
52
 
  pic12c509a,
53
 
  pic12c671,
54
 
  pic12c672,
55
 
  pic12ce518,
56
 
  pic12ce519,
57
 
  pic12ce673,
58
 
  pic12ce674,
59
 
  pic12cr509a,
60
 
  pic12f508,
61
 
  pic12f509,
62
 
  pic12f510,
63
 
  pic12f629,
64
 
  pic12f635,
65
 
  pic12f675,
66
 
  pic12f683,
67
 
  pic14000,
68
 
  pic16c5x,
69
 
  pic16cxx,
70
 
  pic16c432,
71
 
  pic16c433,
72
 
  pic16c505,
73
 
  pic16c54,
74
 
  pic16c52,
75
 
  pic16c54a,
76
 
  pic16c54b,
77
 
  pic16c54c,
78
 
  pic16c55,
79
 
  pic16c55a,
80
 
  pic16c554,
81
 
  pic16c557,
82
 
  pic16c558,
83
 
  pic16c56,
84
 
  pic16c56a,
85
 
  pic16c57,
86
 
  pic16c57c,
87
 
  pic16c58a,
88
 
  pic16c58b, 
89
 
  pic16c61,
90
 
  pic16c62,
91
 
  pic16c62a,
92
 
  pic16c62b,
93
 
  pic16c620,
94
 
  pic16c620a,
95
 
  pic16c621,
96
 
  pic16c621a,
97
 
  pic16c622,
98
 
  pic16c622a,
99
 
  pic16c63,
100
 
  pic16c63a,
101
 
  pic16c64,
102
 
  pic16c64a,
103
 
  pic16c642,
104
 
  pic16c65,
105
 
  pic16c65a,   
106
 
  pic16c65b,
107
 
  pic16c66,
108
 
  pic16c662,
109
 
  pic16c67,
110
 
  pic16c71,
111
 
  pic16c710,
112
 
  pic16c711,
113
 
  pic16c712,
114
 
  pic16c715,
115
 
  pic16c716,
116
 
  pic16c717,
117
 
  pic16c72,
118
 
  pic16c72a,
119
 
  pic16c73,
120
 
  pic16c73a,
121
 
  pic16c73b,
122
 
  pic16c74,
123
 
  pic16c745,
124
 
  pic16c74a,
125
 
  pic16c74b,
126
 
  pic16c76,
127
 
  pic16c765,
128
 
  pic16c77,
129
 
  pic16c770,
130
 
  pic16c771,
131
 
  pic16c773,
132
 
  pic16c774,
133
 
  pic16c781,
134
 
  pic16c782,
135
 
  pic16c84,
136
 
  pic16c923,
137
 
  pic16c924,
138
 
  pic16c925,
139
 
  pic16c926,
140
 
  pic16ce623,
141
 
  pic16ce624,
142
 
  pic16ce625,
143
 
  pic16cr54,
144
 
  pic16cr54a,
145
 
  pic16cr54b,
146
 
  pic16cr54c,
147
 
  pic16cr56a,
148
 
  pic16cr57a,
149
 
  pic16cr57b,
150
 
  pic16cr57c,
151
 
  pic16cr58a,
152
 
  pic16cr58b,
153
 
  pic16cr62,
154
 
  pic16cr620a,
155
 
  pic16cr63,
156
 
  pic16cr64,  
157
 
  pic16cr65,
158
 
  pic16cr72,
159
 
  pic16cr83,
160
 
  pic16cr84,
161
 
  pic16f505,
162
 
  pic16f54,
163
 
  pic16f57,
164
 
  pic16f59,
165
 
  pic16f610,
166
 
  pic16f627,
167
 
  pic16f627a,
168
 
  pic16f628,
169
 
  pic16f628a,
170
 
  pic16f630,
171
 
  pic16f636,
172
 
  pic16f639,
173
 
  pic16f648a,
174
 
  pic16f676,
175
 
  pic16f684,
176
 
  pic16f685,
177
 
  pic16f687,
178
 
  pic16f688,
179
 
  pic16f689,
180
 
  pic16f690,
181
 
  pic16f716,
182
 
  pic16f72,
183
 
  pic16f73,
184
 
  pic16f737,
185
 
  pic16f74,
186
 
  pic16f747,
187
 
  pic16f76,
188
 
  pic16f767,
189
 
  pic16f77,
190
 
  pic16f777,
191
 
  pic16f785,
192
 
  pic16f818,
193
 
  pic16f819,
194
 
  pic16f83,
195
 
  pic16f84,
196
 
  pic16f87,
197
 
  pic16f84a,
198
 
  pic16f870,
199
 
  pic16f871,
200
 
  pic16f872,
201
 
  pic16f873,
202
 
  pic16f873a,
203
 
  pic16f874,
204
 
  pic16f874a,
205
 
  pic16f876,
206
 
  pic16f876a,
207
 
  pic16f877,
208
 
  pic16f877a,
209
 
  pic16f88,
210
 
  pic16f882,
211
 
  pic16f883,
212
 
  pic16f884,
213
 
  pic16f886,
214
 
  pic16f887,
215
 
  pic16f913,
216
 
  pic16f914,
217
 
  pic16f916,
218
 
  pic16f917,
219
 
  pic16hv540,
220
 
  pic17cxx,
221
 
  pic17c42,
222
 
  pic17c42a,
223
 
  pic17c43,
224
 
  pic17c44,
225
 
  pic17c752,
226
 
  pic17c756,
227
 
  pic17c756a,
228
 
  pic17c762,
229
 
  pic17c766,
230
 
  pic17cr42,
231
 
  pic17cr43,
232
 
  pic18cxx,
233
 
  pic18c242,
234
 
  pic18c252,
235
 
  pic18c442,
236
 
  pic18c452,
237
 
  pic18c601,
238
 
  pic18c658,
239
 
  pic18c801,
240
 
  pic18c858,
241
 
  pic18f1220,
242
 
  pic18f1230,
243
 
  pic18f1320,
244
 
  pic18f1330,
245
 
  pic18f2220,
246
 
  pic18f2320,
247
 
  pic18f2321,
248
 
  pic18f2331,
249
 
  pic18f2410,
250
 
  pic18f242,
251
 
  pic18f2420,
252
 
  pic18f2431,
253
 
  pic18f2439,
254
 
  pic18f2450,
255
 
  pic18f2455,
256
 
  pic18f248,
257
 
  pic18f2480,
258
 
  pic18f24j10,
259
 
  pic18f2510,
260
 
  pic18f2515,
261
 
  pic18f252,
262
 
  pic18f2523,
263
 
  pic18f2525,
264
 
  pic18f2539,
265
 
  pic18f2550,
266
 
  pic18f2520,
267
 
  pic18f258,
268
 
  pic18f2580,
269
 
  pic18f2585,
270
 
  pic18f25j10,
271
 
  pic18f2610,
272
 
  pic18f2620,
273
 
  pic18f2680,
274
 
  pic18f2681,
275
 
  pic18f2682,
276
 
  pic18f2685,
277
 
  pic18f4220,
278
 
  pic18f4320,
279
 
  pic18f4321,
280
 
  pic18f4331,
281
 
  pic18f4410,
282
 
  pic18f442,
283
 
  pic18f4420,
284
 
  pic18f4431,
285
 
  pic18f4439,
286
 
  pic18f4450,
287
 
  pic18f4455,
288
 
  pic18f448,
289
 
  pic18f4480,
290
 
  pic18f44j10,
291
 
  pic18f4510,
292
 
  pic18f4515,
293
 
  pic18f452,
294
 
  pic18f4520,
295
 
  pic18f45k20,
296
 
  pic18f4525,
297
 
  pic18f4539,
298
 
  pic18f4550,
299
 
  pic18f458,
300
 
  pic18f4580,
301
 
  pic18f4585,
302
 
  pic18f45j10,
303
 
  pic18f4610,
304
 
  pic18f4620,
305
 
  pic18f4680,
306
 
  pic18f4681,
307
 
  pic18f4682,
308
 
  pic18f4685,
309
 
  pic18f6310,
310
 
  pic18f6390,
311
 
  pic18f6410,
312
 
  pic18f6490,
313
 
  pic18f64j15,
314
 
  pic18f6520,
315
 
  pic18f6525,
316
 
  pic18f65j10,
317
 
  pic18f65j15,
318
 
  pic18f65j50,
319
 
  pic18f6585,
320
 
  pic18f6620,
321
 
  pic18f6621,
322
 
  pic18f6627,
323
 
  pic18f6680,
324
 
  pic18f66j10,
325
 
  pic18f66j15,
326
 
  pic18f66j60,
327
 
  pic18f66j65,
328
 
  pic18f6720,
329
 
  pic18f6722,
330
 
  pic18f67j10,
331
 
  pic18f67j60,
332
 
  pic18f8310,
333
 
  pic18f8390,
334
 
  pic18f8410,
335
 
  pic18f8490,
336
 
  pic18f84j15,
337
 
  pic18f8520,
338
 
  pic18f8525,
339
 
  pic18f8585,
340
 
  pic18f85j10,
341
 
  pic18f85j15,
342
 
  pic18f8620,
343
 
  pic18f8621,
344
 
  pic18f8627,
345
 
  pic18f8680,
346
 
  pic18f86j10,
347
 
  pic18f86j15,
348
 
  pic18f86j60,
349
 
  pic18f86j65,
350
 
  pic18f8720,
351
 
  pic18f8722,
352
 
  pic18f87j10,
353
 
  pic18f87j60,
354
 
  pic18f96j60,
355
 
  pic18f96j65,
356
 
  pic18f97j60,
357
 
  rf509af,      
358
 
  rf509ag,      
359
 
  rf675f,
360
 
  rf675h,
361
 
  rf675k,
362
 
  sx18,
363
 
  sx20,
364
 
  sx28,
365
 
  sx48,
366
 
  sx52
367
 
};
 
37
typedef struct px *pic_processor_t;
 
38
#define no_processor ((struct px *)0)
368
39
 
369
40
#define MAX_NAMES 3 /* Maximum number of names a processor can have */
370
41
#define MAX_BADROM 1*2 /* Maximum number of BADROM ranges a processor can be */
371
42
                       /* initialized with */
372
43
 
373
44
struct px {
374
 
  enum pic_processor tag;
375
45
  enum proc_class class;
376
46
  char *defined_as;
377
47
  char *names[MAX_NAMES];
423
93
 
424
94
void gp_dump_processor_list(gp_boolean list_all, enum proc_class class);
425
95
struct px *gp_find_processor(char *name);
426
 
enum proc_class gp_processor_class(enum pic_processor);
427
 
int gp_processor_bsr_boundary(enum pic_processor processor);
428
 
unsigned long gp_processor_coff_type(enum pic_processor processor);
429
 
int gp_processor_num_pages(enum pic_processor processor);
430
 
int gp_processor_num_banks(enum pic_processor processor);
431
 
enum pic_processor gp_processor_coff_proc(unsigned long coff_type);
432
 
char *gp_processor_name(enum pic_processor processor, unsigned int choice);
 
96
enum proc_class gp_processor_class(pic_processor_t);
 
97
int gp_processor_bsr_boundary(pic_processor_t processor);
 
98
unsigned long gp_processor_coff_type(pic_processor_t processor);
 
99
int gp_processor_num_pages(pic_processor_t processor);
 
100
int gp_processor_num_banks(pic_processor_t processor);
 
101
pic_processor_t gp_processor_coff_proc(unsigned long coff_type);
 
102
char *gp_processor_name(pic_processor_t processor, unsigned int choice);
433
103
char *gp_processor_coff_name(unsigned long coff_type, unsigned int choice);
434
 
char *gp_processor_script(enum pic_processor processor);
 
104
char *gp_processor_script(pic_processor_t processor);
435
105
int gp_processor_rom_width(enum proc_class class);
436
106
int gp_processor_check_page(enum proc_class class, int address);
437
107
int gp_processor_check_bank(enum proc_class class, int address);