tag | line | file | source code |
thiscard | 3189 | drivers/net/arcnet.c | static struct device thiscard = { |
thiscard | 3207 | drivers/net/arcnet.c | strcpy(thiscard.name,device); |
thiscard | 3209 | drivers/net/arcnet.c | else if (!thiscard.name[0]) strcpy(thiscard.name,"arc0"); |
thiscard | 3212 | drivers/net/arcnet.c | thiscard.base_addr=io; |
thiscard | 3216 | drivers/net/arcnet.c | thiscard.irq=irqnum; |
thiscard | 3217 | drivers/net/arcnet.c | if (thiscard.irq==2) thiscard.irq=9; |
thiscard | 3221 | drivers/net/arcnet.c | thiscard.mem_start=shmem; |
thiscard | 3222 | drivers/net/arcnet.c | thiscard.mem_end=thiscard.mem_start+512*4-1; |
thiscard | 3223 | drivers/net/arcnet.c | thiscard.rmem_start=thiscard.mem_start+512*0; |
thiscard | 3224 | drivers/net/arcnet.c | thiscard.rmem_end=thiscard.mem_start+512*2-1; |
thiscard | 3227 | drivers/net/arcnet.c | if (register_netdev(&thiscard) != 0) |
thiscard | 3235 | drivers/net/arcnet.c | int ioaddr=thiscard.base_addr; |
thiscard | 3237 | drivers/net/arcnet.c | if (thiscard.start) arcnet_close(&thiscard); |
thiscard | 3247 | drivers/net/arcnet.c | if (thiscard.irq) |
thiscard | 3249 | drivers/net/arcnet.c | irq2dev_map[thiscard.irq] = NULL; |
thiscard | 3250 | drivers/net/arcnet.c | free_irq(thiscard.irq,NULL); |
thiscard | 3253 | drivers/net/arcnet.c | if (thiscard.base_addr) release_region(thiscard.base_addr, |
thiscard | 3255 | drivers/net/arcnet.c | unregister_netdev(&thiscard); |
thiscard | 3256 | drivers/net/arcnet.c | kfree(thiscard.priv); |
thiscard | 3257 | drivers/net/arcnet.c | thiscard.priv = NULL; |