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 = &xirc2ps_event; 
xirc2ps_attach(void){    client_reg_t client_reg;    dev_link_t *link;    struct net_device *dev;    local_info_t *local;    int err;    DEBUG(0, "attach()\n");    /* Allocate the device structure */    dev = alloc_etherdev(sizeof(local_info_t));    if (!dev)	    return NULL;    local = netdev_priv(dev);    link = &local->link;    link->priv = dev;    /* General socket configuration */    link->conf.Attributes = CONF_ENABLE_IRQ;    link->conf.Vcc = 50;    link->conf.IntType = INT_MEMORY_AND_IO;    link->conf.ConfigIndex = 1;    link->conf.Present = PRESENT_OPTION;    link->irq.Handler = xirc2ps_interrupt;    link->irq.Instance = dev;    /* Fill in card specific entries */    SET_MODULE_OWNER(dev);    dev->hard_start_xmit = &do_start_xmit;    dev->set_config = &do_config;    dev->get_stats = &do_get_stats;    dev->do_ioctl = &do_ioctl;    SET_ETHTOOL_OPS(dev, &netdev_ethtool_ops);    dev->set_multicast_list = &set_multicast_list;    dev->open = &do_open;    dev->stop = &do_stop;#ifdef HAVE_TX_TIMEOUT    dev->tx_timeout = do_tx_timeout;    dev->watchdog_timeo = TX_TIMEOUT;#endif    /* 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 = &xirc2ps_event;    client_reg.Version = 0x0210;    client_reg.event_callback_args.client_data = link;    if ((err = pcmcia_register_client(&link->handle, &client_reg))) {	cs_error(link->handle, RegisterClient, err);	xirc2ps_detach(link);	return NULL;    }    return link;} /* xirc2ps_attach */
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/1e212f3645a6b355de8c43a23376bc0e2ac49a63/xirc2ps_cs.c/buggy/drivers/net/pcmcia/xirc2ps_cs.c