!!!help--pcmcia driver how to start

Dear Friends,

I had worked on PCI BASED DEVICE DRIVERS, but I am a newbie to PCMCIA DEVICE DRIVERS on wdm…I learnt that pcmcia driver has 2 software modules

socket services
card services

I would like to know

  1. more about the Card insertion and automatic card detection part (socket service in more details)…in wdm for win 2000.How exactly the thing is happening.

  2. As far as the card services is concerned I would like to know about the configuration space ,whether is it identical to pci configuration space or different…

3)I am not sure about the concept that i found, from windows 95 onwards, all windows OS has got functions for Card Service and Socket Service,is that meaning that, by any chance, can I access pc-card straight from an application at user mode???

Can any of your goodselves would kindly give me more information on the same,I would be very much grateful…

thanx in advance

*********************************************************************************************************************
Shiva Prasad T.S.
Project Engineer,
EMBEDDED SYSTEMS GROUP,
RASS IT SOLUTIONS (P) LIMITED,
Bangalore-560041.
www.rassit.com
Email: xxxxx@yahoo.com
*********************************************************************************************************************


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

There is a PCMCIA smartcard sample in the DDK:

BASEDIR\src\smartcrd\pscr

Alun Carp
Driver Development Team Leader
Data Encryption Systems Limited

-----Original Message-----
From: Shiva Prasad [mailto:xxxxx@yahoo.com]
Sent: 29 November 2001 20:31
To: NT Developers Interest List
Subject: [ntdev] !!!help–pcmcia driver how to start

Dear Friends,

I had worked on PCI BASED DEVICE DRIVERS, but I am a newbie to PCMCIA
DEVICE DRIVERS on wdm…I learnt that pcmcia driver has 2 software modules

socket services
card services

I would like to know

  1. more about the Card insertion and automatic card detection part (socket
    service in more details)…in wdm for win 2000.How exactly the thing is
    happening.

  2. As far as the card services is concerned I would like to know about the
    configuration space ,whether is it identical to pci configuration space or
    different…

3)I am not sure about the concept that i found, from windows 95 onwards, all
windows OS has got functions for Card Service and Socket Service,is that
meaning that, by any chance, can I access pc-card straight from an
application at user mode???

Can any of your goodselves would kindly give me more information on the
same,I would be very much grateful…

thanx in advance

****************************************************************************
*****************************************
Shiva Prasad T.S.
Project Engineer,
EMBEDDED SYSTEMS GROUP,
RASS IT SOLUTIONS (P) LIMITED,
Bangalore-560041.
www.rassit.com http:
Email: xxxxx@yahoo.com mailto:xxxxx
***********************************



You are currently subscribed to ntdev as: xxxxx@des.co.uk
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</mailto:xxxxx></http:>

> I had worked on PCI BASED DEVICE DRIVERS, but I am a newbie to PCMCIA

DEVICE DRIVERS on wdm…I learnt that pcmcia driver has 2 software modules

socket services
card services

NONE of the stuff in the PCMCIA spec about card and socket services applies
to PCMCIA cards on Win2000. Erase from your brain the terms card and socket
services.

You basically write a WDM function driver, and the PnP system reads the
card tuple and loads your driver and informs you of card arrival/removal
and resources.

  1. more about the Card insertion and automatic card detection part (socket
    service in more details)…in wdm for win 2000.How exactly the thing is
    happening.

This is all handled by the Microsoft supplied PCMCIA bus driver and the
standard PnP operations. You need an INF file with a PnP id that matches
your card.

  1. As far as the card services is concerned I would like to know about the
    configuration space ,whether is it identical to pci configuration space or
    different…

If you mean attribute vs. common memory space, these get memory mapped
based on what the card INF file says. You can also read and write device
memory (both attribute and common) with IRP’s to the PDO that represents
the device. In theory, access through the parent bus driver/FDO should be
independent of the physical bus your PCMCIA card reader uses (ISA/PCI/USB).
Reality is, things aren’t written nearly this abstractly, so you can’t
access the memory on your PCMCIA card which happens to be inserted in a
slot of a USB attached card reader.

3)I am not sure about the concept that i found, from windows 95 onwards,
all windows OS has got functions for Card Service and Socket Service,is
that meaning that, by any chance, can I access pc-card straight from an
application at user mode???

For W2K you write a WDM function driver, that talks to the PCMCIA card, and
presents a read/write/ioctl interface to applications. There is some
limited access to a card by opening the bus device (i.e. \.\PCMCIAx:).

Not having ever done this on Win9x, I have no idea if the W2K support is
unique or just an evolution of Win9x stuff. I also found the W2K PCMCIA
driver had some significant bugs.

  • Jan

You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Jan is correct - forget about card services and socket services when you’re
under Win2k and just write a straight WDM driver. It also deserves
mentioning that your hardware must have a FULL tuple table set up and it
must follow the guidelines for PCMCIA cards for Windows. If it does not,
you will have a tough time making it work under Win2k and beyond…

  • Dennis

Dennis Merrill
Embedded Systems Engineer
Thermo Nicolet Corporation

-----Original Message-----
From: Jan Bottorff [mailto:xxxxx@pmatrix.com]
Sent: Thursday, November 29, 2001 6:08 AM
To: NT Developers Interest List
Subject: [ntdev] Re: !!!help–pcmcia driver how to start

I had worked on PCI BASED DEVICE DRIVERS, but I am a newbie to PCMCIA
DEVICE DRIVERS on wdm…I learnt that pcmcia driver has 2 software modules

socket services
card services

NONE of the stuff in the PCMCIA spec about card and socket services applies
to PCMCIA cards on Win2000. Erase from your brain the terms card and socket
services.

You basically write a WDM function driver, and the PnP system reads the
card tuple and loads your driver and informs you of card arrival/removal
and resources.

  1. more about the Card insertion and automatic card detection part (socket
    service in more details)…in wdm for win 2000.How exactly the thing is
    happening.

This is all handled by the Microsoft supplied PCMCIA bus driver and the
standard PnP operations. You need an INF file with a PnP id that matches
your card.

  1. As far as the card services is concerned I would like to know about the
    configuration space ,whether is it identical to pci configuration space or
    different…

If you mean attribute vs. common memory space, these get memory mapped
based on what the card INF file says. You can also read and write device
memory (both attribute and common) with IRP’s to the PDO that represents
the device. In theory, access through the parent bus driver/FDO should be
independent of the physical bus your PCMCIA card reader uses (ISA/PCI/USB).
Reality is, things aren’t written nearly this abstractly, so you can’t
access the memory on your PCMCIA card which happens to be inserted in a
slot of a USB attached card reader.

3)I am not sure about the concept that i found, from windows 95 onwards,
all windows OS has got functions for Card Service and Socket Service,is
that meaning that, by any chance, can I access pc-card straight from an
application at user mode???

For W2K you write a WDM function driver, that talks to the PCMCIA card, and
presents a read/write/ioctl interface to applications. There is some
limited access to a card by opening the bus device (i.e. \.\PCMCIAx:).

Not having ever done this on Win9x, I have no idea if the W2K support is
unique or just an evolution of Win9x stuff. I also found the W2K PCMCIA
driver had some significant bugs.

  • Jan

You are currently subscribed to ntdev as: xxxxx@thermonicolet.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

A big thanx to Jan and Dennis,

The info was very useful to me to get a start.

regards,

shiv


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com