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 = &pcnet_event; 
static dev_link_t *pcnet_attach(void){    pcnet_dev_t *info;    dev_link_t *link;    struct net_device *dev;    client_reg_t client_reg;    int ret;    DEBUG(0, "pcnet_attach()\n");    /* Create new ethernet device */    dev = __alloc_ei_netdev(sizeof(pcnet_dev_t));    if (!dev) return NULL;    info = PRIV(dev);    link = &info->link;    link->priv = dev;    link->irq.Attributes = IRQ_TYPE_EXCLUSIVE;    link->irq.IRQInfo1 = IRQ_LEVEL_ID;    link->conf.Attributes = CONF_ENABLE_IRQ;    link->conf.IntType = INT_MEMORY_AND_IO;    SET_MODULE_OWNER(dev);    dev->open = &pcnet_open;    dev->stop = &pcnet_close;    dev->set_config = &set_config;    /* 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 = &pcnet_event;    client_reg.Version = 0x0210;    client_reg.event_callback_args.client_data = link;    ret = pcmcia_register_client(&link->handle, &client_reg);    if (ret != CS_SUCCESS) {	cs_error(link->handle, RegisterClient, ret);	pcnet_detach(link);	return NULL;    }    return link;} /* pcnet_attach */
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/1e212f3645a6b355de8c43a23376bc0e2ac49a63/pcnet_cs.c/clean/drivers/net/pcmcia/pcnet_cs.c