PCMCIA driver design