tag | line | file | source code |
cfg_cmd | 456 | drivers/net/ni52.c | volatile struct configure_cmd_struct *cfg_cmd; |
cfg_cmd | 463 | drivers/net/ni52.c | cfg_cmd = (struct configure_cmd_struct *)ptr; /* configure-command */ |
cfg_cmd | 464 | drivers/net/ni52.c | cfg_cmd->cmd_status = 0; |
cfg_cmd | 465 | drivers/net/ni52.c | cfg_cmd->cmd_cmd = CMD_CONFIGURE | CMD_LAST; |
cfg_cmd | 466 | drivers/net/ni52.c | cfg_cmd->cmd_link = 0xffff; |
cfg_cmd | 468 | drivers/net/ni52.c | cfg_cmd->byte_cnt = 0x0a; /* number of cfg bytes */ |
cfg_cmd | 469 | drivers/net/ni52.c | cfg_cmd->fifo = 0x08; /* fifo-limit (8=tx:32/rx:64) */ |
cfg_cmd | 470 | drivers/net/ni52.c | cfg_cmd->sav_bf = 0x40; /* hold or discard bad recv frames (bit 7) */ |
cfg_cmd | 471 | drivers/net/ni52.c | cfg_cmd->adr_len = 0x2e; /* addr_len |!src_insert |pre-len |loopback */ |
cfg_cmd | 472 | drivers/net/ni52.c | cfg_cmd->priority = 0x00; |
cfg_cmd | 473 | drivers/net/ni52.c | cfg_cmd->ifs = 0x60; |
cfg_cmd | 474 | drivers/net/ni52.c | cfg_cmd->time_low = 0x00; |
cfg_cmd | 475 | drivers/net/ni52.c | cfg_cmd->time_high = 0xf2; |
cfg_cmd | 476 | drivers/net/ni52.c | cfg_cmd->promisc = (num_addrs < 0) ? 1 : 0; /* promisc on/off */ |
cfg_cmd | 477 | drivers/net/ni52.c | cfg_cmd->carr_coll = 0x00; |
cfg_cmd | 479 | drivers/net/ni52.c | p->scb->cbl_offset = make16(cfg_cmd); |
cfg_cmd | 485 | drivers/net/ni52.c | while(!(cfg_cmd->cmd_status & STAT_COMPL)) |
cfg_cmd | 488 | drivers/net/ni52.c | if((cfg_cmd->cmd_status & (STAT_OK|STAT_COMPL)) != (STAT_COMPL|STAT_OK)) |
cfg_cmd | 490 | drivers/net/ni52.c | printk("%s (ni52): configure command failed: %x\n",dev->name,cfg_cmd->cmd_status); |