Re: Help me in writing win 2k Plug n Play driver for PCMCIA card
- From: "mahi" <mahinder_gudur@xxxxxxxxx>
- Date: 5 Aug 2005 21:58:53 -0700
Pavel A. wrote:
> Answers inline
>
> "mahi" wrote:
> > Hi Everybody,
> >
> > We have win 2k device drivers(non plug n play) for PCI based add
> > on card.Now we started writing Windows 2K device drivers(WDM, Plug n
> > play) for 16 bit PCMCIA PC card.We are using ZILOG PCMCIA Adapter chip
> > in our card. We filled the device related information like port base
> > address,Port Range,Memory Range,Memory base and IRQ through Card
> > Information Structure(CIS) touples.
> > In case of pci card to detect a device we can check for Device ID and
> > Vendor ID.
> > How we can detect a PCMCIA device?
>
> In the INF, specify PnP id for your card.
> Ids for 16-bit pcmcia cards look this way: PCMCIA\xxx-yyy-NNNN
> where xxx and yyy are modified vendor and device name strings from
> your CIS and NNNN are hex digits.
> (There are some other formats but this is most common.)
> Look for INFs on your system for examples.
>
> Detecting your actual ID is very simple.
> Insert your card with CIS on it. When new device wizard pops up,
> note how it displays the device name and type.
> If it does resemble what you put in your CIS, open regedit,
> go to CurrentControlSet\Enum\PCMCIA and just copy the ID string
> that appears there, to your INF. It is your actual ID.
> Then cancel the wizard and pull your card out.
> If the wizard won't pop up or displays wrong info, fix your CIS.
>
> > For PCI card drivers we will get allocated resources from
> > CM_RESOURCE_LIST structure. We can use that information as per
> > standardized PCI configuration registers.
> > In case of PCMCIA drivers, Allocated resources will be stored in the
> > same CM_RESOURCE_LIST structure or no?
>
> Yes.
>
> > If yes, in which format it is?
>
> In the same standard format: memory ranges, interrupt, i/o ranges.
> There also will be some "internal" resources that are not one of above.
> This is not error, just ignore them.
>
> > Please guide me in writing the drivers for pcmcia card.
> > If any mistake I have done in explainig my problem or if Iam going in
> > a wrong way. Please guide me in right direction.
>
> Read anything related to 16-bit PCMCIA on microsoft.com/whdc
> and DDK dsocumentation.
> Especially, about supporting shared PCI style interrupts.
> Use other INFs on your system as examples how to specify
> device ID and resources.
>
>
> Good luck,
> --PA
Hi,
Thank u Mr.Pavel for giving such a valuable suggestion. With ur
Reply Iam Proceeding to develop pnp drivers for our pcmcia 16 bit pc
card.
Iam trying to write .INF file, But I have two doubts in preparing
that file.
1. What is CLASS GUID. How it can be generated.I saw some examples
INF files in my system.In each file I observed "CLASS GUID".
What is the procedure to generate CLASS GUID?
2. I used DTPL.exe to generate PCMCIA unique device id.
I executed DTPL with our card CIS file as input.
But It is not generating the device ID and displays as ...
"Device ID cannot be created for the PC card"
What could be the reason? Is there any problem in the CIS
information.
Please guide me in sovling the above problems.
Thank u,
Mahender.
.
- References:
- Prev by Date: Re: Installing driver in user mode
- Next by Date: How to generate CLASSGUID and PCMCIA device ID to write in the INF file
- Previous by thread: RE: Help me in writing win 2k Plug n Play driver for PCMCIA card
- Next by thread: The real reason why WriteFile behave strange.
- Index(es):
Relevant Pages
|
Loading