/*===========================================================================* * sef_cb_init_fresh * *===========================================================================*/ PRIVATE int sef_cb_init_fresh(int type, sef_init_info_t *UNUSED(info)) { /* Initialize the dpeth driver. */ int fkeys, sfkeys; long v; /* Request function key for debug dumps */ fkeys = sfkeys = 0; bit_set(sfkeys, 8); if ((fkey_map(&fkeys, &sfkeys)) != OK) printf("%s: couldn't program Shift+F8 key (%d)\n", DevName, errno); v = 0; (void) env_parse("instance", "d", 0, &v, 0, 255); de_instance = (int) v; /* Announce we are up! */ netdriver_announce(); return(OK); }
/*===========================================================================* * sef_cb_init_fresh * *===========================================================================*/ static int sef_cb_init_fresh(int type, sef_init_info_t *UNUSED(info)) { /* Initialize the DEC 21140A driver. */ int fkeys, sfkeys; long v; v = 0; (void) env_parse("instance", "d", 0, &v, 0, 255); de_instance = (int) v; /* Request function key for debug dumps */ fkeys = sfkeys = 0; bit_set(sfkeys, DE_FKEY); if ((fkey_map(&fkeys, &sfkeys)) != OK) printf("%s: error using Shift+F%d key(%d)\n", str_DevName, DE_FKEY, errno); /* Announce we are up! */ netdriver_announce(); return OK; }
/*===========================================================================* * sef_cb_init_fresh * *===========================================================================*/ static int sef_cb_init_fresh(int UNUSED(type), sef_init_info_t *UNUSED(info)) { /* Initialize the atl2 driver. */ int r, devind; long v; #if ATL2_FKEY int fkeys, sfkeys; #endif /* How many matching devices should we skip? */ v = 0; (void) env_parse("instance", "d", 0, &v, 0, 255); instance = (int) v; /* Try to find a recognized device. */ devind = atl2_probe(instance); if (devind < 0) panic("no matching device found"); /* Initialize the device. */ atl2_init(devind); /* Announce we are up! */ netdriver_announce(); #if ATL2_FKEY /* Register debug dump function key. */ fkeys = sfkeys = 0; bit_set(sfkeys, 11); if ((r = fkey_map(&fkeys, &sfkeys)) != OK) printf("ATL2: warning, could not map Shift+F11 key (%d)\n", r); #endif return(OK); }
/*===========================================================================* * sef_cb_init_fresh * *===========================================================================*/ static int sef_cb_init_fresh(int type, sef_init_info_t *UNUSED(info)) { /* Initialize the lance driver. */ long v; #if LANCE_FKEY int r, fkeys, sfkeys; #endif #if LANCE_FKEY fkeys = sfkeys = 0; bit_set( sfkeys, 7 ); if ( (r = fkey_map(&fkeys, &sfkeys)) != OK ) printf("Warning: lance couldn't observe Shift+F7 key: %d\n",r); #endif v = 0; (void) env_parse("instance", "d", 0, &v, 0, 255); ec_instance = (int) v; /* Announce we are up! */ netdriver_announce(); return OK; }