source: rtems/c/src/lib/libbsp/powerpc/mvme5500/startup/bootpstuff.c @ 46a6fa91

4.104.114.84.95
Last change on this file since 46a6fa91 was 7be6ad9, checked in by Eric Norum <WENorum@…>, on 10/20/04 at 15:21:05

Add MVME550 BSP

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