Welcome to WinForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Why Smart card reader is not listed by the resource manage..

 
   Windows XP Arc2 (Home) -> Device Driver RSS
Next:  canstop system asking which operating system  
Author Message
Eshanye_kp

External


Since: Jun 29, 2006
Posts: 8



(Msg. 1) Posted: Fri Oct 13, 2006 3:55 am
Post subject: Why Smart card reader is not listed by the resource manager ?
Archived from groups: microsoft>public>development>device>drivers, others (more info?)

Hi,

I have written a smart card reader driver using the ddk sample pscr for
WinXP. When the WinAPI 'SCardListReaders' is called, its not listing my
reader. But the installation and the registry entries for my reader
driver is perfect and as described by the DDK help. The resource manager
service has been started also. But one thing i have observed is, the
IRP's related to Power management are not coming to the driver (Is this
because, the member PowerMgmtSupport' in the card capabilities is not at
all initialized ?). IRP_MJ_START_DEVICE and other IRP's are coming and
also, another minor IRP, IRP_MN_QUERY_LEGACY_BUS_INFORMATION is
observed.. is this because i have set the 'Reader Type' member in the
reader capabilities to SCARD_READER_TYPE_VENDOR since its a PCI reader
and there is no specific type defined for PCI.

What should i do so that the resource manager recognizes our card reader ?

Regards
Esha

 >> Stay informed about: Why Smart card reader is not listed by the resource manage.. 
Back to top
Login to vote
Eliyas Yakub MSFT

External


Since: Dec 01, 2003
Posts: 1



(Msg. 2) Posted: Fri Oct 13, 2006 6:19 am
Post subject: Re: Why Smart card reader is not listed by the resource manager ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Are you sure you have registered and enabled smartcard interface in your
driver? You can ignore IRP_MN_QUERY_LEGACY_BUS_INFORMATION. The only driver
that handles this IRP in the entire world is the ISA bus driver provided by
MS.

-Eliyas

 >> Stay informed about: Why Smart card reader is not listed by the resource manage.. 
Back to top
Login to vote
Venusł˛

External


Since: Oct 22, 2006
Posts: 2



(Msg. 3) Posted: Sun Oct 22, 2006 12:22 pm
Post subject: Re: Why Smart card reader is not listed by the resource manager ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Eshanye_kp" <esha RemoveThis @procsys.com> wrote in message
news:452F37EE.9040508@procsys.com...
> Hi,
>
> I have written a smart card reader driver using the ddk sample pscr for
> WinXP. When the WinAPI 'SCardListReaders' is called, its not listing my
> reader. But the installation and the registry entries for my reader driver
> is perfect and as described by the DDK help. The resource manager service
> has been started also. But one thing i have observed is, the IRP's related
> to Power management are not coming to the driver (Is this because, the
> member PowerMgmtSupport' in the card capabilities is not at all
> initialized ?). IRP_MJ_START_DEVICE and other IRP's are coming and also,
> another minor IRP, IRP_MN_QUERY_LEGACY_BUS_INFORMATION is observed.. is
> this because i have set the 'Reader Type' member in the reader
> capabilities to SCARD_READER_TYPE_VENDOR since its a PCI reader and there
> is no specific type defined for PCI.
>
> What should i do so that the resource manager recognizes our card reader ?
>
> Regards
> Esha

The problem is, your DDK sample driver may not have the code to handle
a Resource Information request. In this case, the device manager will not
be
able to display anything on its list for your sample driver. I can
explain why you see the listing for network driver, this is how it works: In
a network driver environment, the Device Manager will call
NdisMQueryAdapterResources() function, this functions is finally handled by
a miniport driver, it pulled information from the hardware and send the info
back to the caller (Device Manager) to be displayed. The Device manager
will display at its option simple or detailed information.

---------------------------------------------------------------------------------------------------------------------
a Device Manager will call this function:

NdisMQueryAdapterResources(&stat, WrapperConfigurationContext, resList,
&bufSize);

if (stat == NDIS_STATUS_SUCCESS){
PCM_PARTIAL_RESOURCE_DESCRIPTOR resDesc;
BOOLEAN haveIRQ = FALSE,
haveIOAddr = FALSE,
haveDma = FALSE;
UINT i;

for (resDesc = resList->PartialDescriptors, i = 0;
i < resList->Count;
resDesc++, i++){

switch (resDesc->Type){
case CmResourceTypePort:
if (thisDev->CardType==PC87108 &&
(resDesc->u.Port.Start.LowPart==0xEA ||
resDesc->u.Port.Start.LowPart==0x398 ||
resDesc->u.Port.Start.LowPart==0x150))
{
// This is an eval board and to config io base address

thisDev->portInfo.ConfigIoBasePhysAddr =
resDesc->u.Port.Start.LowPart;
}
else if (thisDev->CardType==PC87308 &&
(resDesc->u.Port.Start.LowPart==0x2E ||
resDesc->u.Port.Start.LowPart==0x15C))
{
// This is an eval board and to config io base address

thisDev->portInfo.ConfigIoBasePhysAddr =
resDesc->u.Port.Start.LowPart;
}
 >> Stay informed about: Why Smart card reader is not listed by the resource manage.. 
Back to top
Login to vote
Display posts from previous:   
   Windows XP Arc2 (Home) -> Device Driver All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
 Windows XP
 Windows Vista!
 Win 2000/NT/98/ME


[ Contact us | Terms of Service/Privacy Policy ]