client_reg.EventMask = CS_EVENT_CARD_INSERTION | CS_EVENT_CARD_REMOVAL | CS_EVENT_RESET_PHYSICAL | CS_EVENT_CARD_RESET | CS_EVENT_PM_SUSPEND | CS_EVENT_PM_RESUME; client_reg.event_handler = &com20020_event; 
static dev_link_t *com20020_attach(void){    client_reg_t client_reg;    dev_link_t *link;    com20020_dev_t *info;    struct net_device *dev;    int ret;    struct arcnet_local *lp;        DEBUG(0, "com20020_attach()\n");    /* Create new network device */    link = kmalloc(sizeof(struct dev_link_t), GFP_KERNEL);    if (!link)	return NULL;    info = kmalloc(sizeof(struct com20020_dev_t), GFP_KERNEL);    if (!info)	goto fail_alloc_info;    dev = alloc_arcdev("");    if (!dev)	goto fail_alloc_dev;    memset(info, 0, sizeof(struct com20020_dev_t));    memset(link, 0, sizeof(struct dev_link_t));    lp = dev->priv;    lp->timeout = timeout;    lp->backplane = backplane;    lp->clockp = clockp;    lp->clockm = clockm & 3;    lp->hw.owner = THIS_MODULE;    /* fill in our module parameters as defaults */    dev->dev_addr[0] = node;    link->io.Attributes1 = IO_DATA_PATH_WIDTH_8;    link->io.NumPorts1 = 16;    link->io.IOAddrLines = 16;    link->irq.Attributes = IRQ_TYPE_EXCLUSIVE;    link->irq.IRQInfo1 = IRQ_LEVEL_ID;    link->conf.Attributes = CONF_ENABLE_IRQ;    link->conf.Vcc = 50;    link->conf.IntType = INT_MEMORY_AND_IO;    link->conf.Present = PRESENT_OPTION;    link->irq.Instance = info->dev = dev;    link->priv = info;    /* Register with Card Services */    link->next = dev_list;    dev_list = link;    client_reg.dev_info = &dev_info;    client_reg.EventMask =        CS_EVENT_CARD_INSERTION | CS_EVENT_CARD_REMOVAL |        CS_EVENT_RESET_PHYSICAL | CS_EVENT_CARD_RESET |        CS_EVENT_PM_SUSPEND | CS_EVENT_PM_RESUME;    client_reg.event_handler = &com20020_event;    client_reg.Version = 0x0210;    client_reg.event_callback_args.client_data = link;    ret = pcmcia_register_client(&link->handle, &client_reg);    if (ret != 0) {        cs_error(link->handle, RegisterClient, ret);        com20020_detach(link);        return NULL;    }    return link;fail_alloc_dev:    kfree(info);fail_alloc_info:    kfree(link);    return NULL;} /* com20020_attach */
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/1e212f3645a6b355de8c43a23376bc0e2ac49a63/com20020_cs.c/clean/drivers/net/pcmcia/com20020_cs.c