1 #ifndef _ROMPARSE_H
2 #define _ROMPARSE_H
3 /*************************************************************************************
4 * FILE PURPOSE: Define boot data structures
5 *************************************************************************************
6 * FILE NAME: romparse.h
7 *
8 * DESCRIPTION: Defines the structures used to create the boot parameter
9 * table
10 *
11 *************************************************************************************/
13 /* tiboot.h defines the boot parameters structure that will be created */
14 #if defined(c6472)
15 #include "tiboot_c6472.h"
16 #elif defined(c6474) || defined(c6474l)
17 #include "tiboot_c6474.h"
18 #elif defined(c6455)
19 #include "tiboot_c6455.h"
20 #elif defined(c6457)
21 #include "tiboot_c6457.h"
22 #else
23 #error invalid or missing device specification
24 #endif
26 /* Define the number of boot parameter tables that will be put on the rom */
27 #define NUM_BOOT_PARAM_TABLES 8
29 /* Define the size reserved for the PCI configuration table */
30 #define PCI_EEAI_PARAM_SIZE 0x20
32 /* Define a structure mapping the boot parameter table number to a program file
33 * to an eeprom byte address */
34 #define MAX_FNAME_LEN 132
35 #define MAX_DATA_LEN_32bit 32768
36 typedef struct {
37 char fname[MAX_FNAME_LEN];
38 int sizeBytes;
39 int addressBytes;
40 unsigned int data[MAX_DATA_LEN_32bit];
41 } progFile_t;
43 /* Define the PCI parameter structure */
44 #define PCI_DATA_LEN_32bit 8
45 typedef struct {
46 char fname[MAX_FNAME_LEN];
47 int sizeBytes;
48 int addressBytes;
49 unsigned int data[PCI_DATA_LEN_32bit];
50 } pciFile_t;
55 #endif /* ROMPARSE_H */