taglinefilesource code
cfg_cmd456drivers/net/ni52.cvolatile struct configure_cmd_struct  *cfg_cmd;
cfg_cmd463drivers/net/ni52.ccfg_cmd = (struct configure_cmd_struct *)ptr; /* configure-command */
cfg_cmd464drivers/net/ni52.ccfg_cmd->cmd_status = 0;
cfg_cmd465drivers/net/ni52.ccfg_cmd->cmd_cmd    = CMD_CONFIGURE | CMD_LAST;
cfg_cmd466drivers/net/ni52.ccfg_cmd->cmd_link   = 0xffff;
cfg_cmd468drivers/net/ni52.ccfg_cmd->byte_cnt   = 0x0a; /* number of cfg bytes */
cfg_cmd469drivers/net/ni52.ccfg_cmd->fifo       = 0x08; /* fifo-limit (8=tx:32/rx:64) */
cfg_cmd470drivers/net/ni52.ccfg_cmd->sav_bf     = 0x40; /* hold or discard bad recv frames (bit 7) */
cfg_cmd471drivers/net/ni52.ccfg_cmd->adr_len    = 0x2e; /* addr_len |!src_insert |pre-len |loopback */
cfg_cmd472drivers/net/ni52.ccfg_cmd->priority   = 0x00;
cfg_cmd473drivers/net/ni52.ccfg_cmd->ifs        = 0x60;
cfg_cmd474drivers/net/ni52.ccfg_cmd->time_low   = 0x00;
cfg_cmd475drivers/net/ni52.ccfg_cmd->time_high  = 0xf2;
cfg_cmd476drivers/net/ni52.ccfg_cmd->promisc    = (num_addrs < 0) ? 1 : 0;  /* promisc on/off */
cfg_cmd477drivers/net/ni52.ccfg_cmd->carr_coll  = 0x00;
cfg_cmd479drivers/net/ni52.cp->scb->cbl_offset = make16(cfg_cmd);
cfg_cmd485drivers/net/ni52.cwhile(!(cfg_cmd->cmd_status & STAT_COMPL)) 
cfg_cmd488drivers/net/ni52.cif((cfg_cmd->cmd_status & (STAT_OK|STAT_COMPL)) != (STAT_COMPL|STAT_OK))
cfg_cmd490drivers/net/ni52.cprintk("%s (ni52): configure command failed: %x\n",dev->name,cfg_cmd->cmd_status);