/* The attach() and detach() entry points are used to create and destroy "instances" of the driver, where each instance represents everything needed to manage one actual PCMCIA card.  */
static int dio700_cs_attach(struct pcmcia_device *)
/* The attach() and detach() entry points are used to create and destroy "instances" of the driver, where each instance represents everything needed to manage one actual PCMCIA card.  */
static int dio700_cs_attach(struct pcmcia_device *)
{
	struct local_info_t *local;
	printk(KERN_INFO "ni_daq_700:  cs-attach\n");
	dev_dbg(&link->dev, "dio700_cs_attach()\n");
	local = kzalloc(sizeof(struct local_info_t), GFP_KERNEL);
	if (!local)
		return -ENOMEM;
	local->link = link;
	link->priv = local;
	link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING;
	link->irq.Handler = NULL;
	link->conf.Attributes = 0;
	link->conf.IntType = INT_MEMORY_AND_IO;
	pcmcia_cur_dev = link;
	dio700_config(link);
	return 0;
}