source: rtems/bsps/powerpc/mvme5500/start/bootpstuff.c @ 762fa62

5
Last change on this file since 762fa62 was 9964895, checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 08:35:35

bsps: Move startup files to bsps

Adjust build support files to new directory layout.

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1#define FLAG_MAND       1
2#define FLAG_NOUSE      2       /* dont put into the commandline at all */
3#define FLAG_CLRBP  4   /* field needs to be cleared for bootp  */
4
5typedef struct ParmRec_ {
6        char    *name;
7        char    **pval;
8        int             flags;
9} ParmRec, *Parm;
10
11
12static char *boot_filename=0;
13static char *boot_srvname=0;
14static char *boot_use_bootp=0;
15static char     *boot_my_ip=0;
16static char     *boot_my_netmask=0;
17
18#define boot_cmdline BSP_commandline_string
19
20static ParmRec parmList[]={
21        { "BP_FILE=",  &boot_filename,
22                        FLAG_MAND,
23        },
24        { "BP_PARM=",  &boot_cmdline,
25                        0,
26        },
27        { "BP_SRVR=",  &boot_srvname,
28                        FLAG_MAND,
29        },
30        { "BP_GTWY=",  &net_config.gateway,
31                        FLAG_CLRBP,
32        },
33        { "BP_MYIP=",  &boot_my_ip,
34                        FLAG_MAND | FLAG_CLRBP,
35        },
36        { "BP_MYMK=",  &boot_my_netmask,
37                        FLAG_MAND | FLAG_CLRBP,
38        },
39        { "BP_MYNM=",  &net_config.hostname,
40                        FLAG_CLRBP,
41        },
42        { "BP_MYDN=",  &net_config.domainname,
43                        FLAG_CLRBP,
44        },
45        { "BP_LOGH=",  &net_config.log_host,
46                        FLAG_CLRBP,
47        },
48        { "BP_DNS1=",  &net_config.name_server[0],
49                        FLAG_CLRBP,
50        },
51        { "BP_DNS2=",  &net_config.name_server[1],
52                        FLAG_CLRBP,
53        },
54        { "BP_DNS3=",  &net_config.name_server[2],
55                        FLAG_CLRBP,
56        },
57        { "BP_NTP1=",  &net_config.ntp_server[0],
58                        FLAG_CLRBP,
59        },
60        { "BP_NTP2=",  &net_config.ntp_server[1],
61                        FLAG_CLRBP,
62        },
63        { "BP_NTP3=",  &net_config.ntp_server[2],
64                        FLAG_CLRBP,
65        },
66        { "BP_ENBL=",  &boot_use_bootp,
67                        0,
68        },
69        { 0, }
70};
Note: See TracBrowser for help on using the repository browser.