static re_t re_table[RE_PORT_NR];
-static int rl_tasknr;
static u16_t eth_ign_proto;
static tmra_ut rl_watchdog;
extern int errno;
/*===========================================================================*
- * rtl8139_task *
+ * main *
*===========================================================================*/
-void main(void)
+int main(int argc, char *argv[])
{
int fkeys, sfkeys;
int i, r;
re_t *rep;
long v;
- if ((rl_tasknr = getprocnr()) < 0)
- panic("RTL8139", "getprocnr failed", errno);
+ env_setargs(argc, argv);
v= 0;
(void) env_parse("ETH_IGN_PROTO", "x", 0, &v, 0x0000L, 0xFFFFL);
rep->re_name[8] += i;
rep->re_seen= FALSE;
envvar[sizeof(RL_ENVVAR)-1]= '0'+i;
- if (0 == get_mon_param(envvar, val, sizeof(val)) &&
+ if (0 == env_get_param(envvar, val, sizeof(val)) &&
! env_prefix(envvar, "pci")) {
env_panic(envvar);
}
int i,s;
/* Get settings of 'controller' and 'driver' at the boot monitor. */
- if ((s = get_mon_param("label", driver, sizeof(driver))) != OK)
+ if ((s = env_get_param("label", driver, sizeof(driver))) != OK)
panic(__FILE__,"couldn't get boot monitor parameter 'driver'", s);
- if ((s = get_mon_param("controller", controller, sizeof(controller))) != OK)
+ if ((s = env_get_param("controller", controller, sizeof(controller))) != OK)
panic(__FILE__,"couldn't get boot monitor parameter 'controller'", s);
/* Determine major number to map driver onto. */
char value[64];
int i;
- if ((i = get_mon_param(key, value, sizeof(value))) != OK) {
+ if ((i = env_get_param(key, value, sizeof(value))) != OK) {
if(!optional)
printf("FS: Warning, couldn't get monitor param: %d\n", i);
return 0;