Re: Help me in writing win 2k Plug n Play driver for PCMCIA card




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.

.



Relevant Pages

  • RE: Help me in writing win 2k Plug n Play driver for PCMCIA card
    ... > We have win 2k device driversfor PCI based add ... > play) for 16 bit PCMCIA PC card.We are using ZILOG PCMCIA Adapter chip ... > in our card. ... > In case of PCMCIA drivers, Allocated resources will be stored in the ...
    (microsoft.public.development.device.drivers)
  • Re: 2.6.17-rc[56]-mm*: pcmcia "I/O resource not free"
    ... PCI: Setting latency timer of device 0000:00:1f.6 to 64 ... pcmcia: parent PCI bridge Memory window: 0xd0200000 - 0xdfffffff ... pccard: PCMCIA card inserted into slot 0 ... 1: 2685 IO-APIC-edge i8042 ...
    (Linux-Kernel)
  • Re: wireless Avaya
    ... The chip is prism II and the possible driver is ... What kind of card? ... PCMCIA? ... PCI? ...
    (Fedora)
  • 2.6.17-rc[56]-mm*: pcmcia "I/O resource not free"
    ... The PCMCIA slot on my Thinkpad X40 stopped working sometime between ... PCI: Setting latency timer of device 0000:00:1f.6 to 64 ... pccard: PCMCIA card inserted into slot 0 ... 1: 2685 IO-APIC-edge i8042 ...
    (Linux-Kernel)
  • Re: Siemens MC45 PCMCIA gprs modem
    ... > bridge did not report that it had turned on the power to the socket ... > Could you give some info on the PCMCIA hardware in this machine please? ... The same is happening for me with an Option GlobeTrotter GPRS card. ... CIS to remove the entry that confuses cardmgr, ...
    (Linux-Kernel)

Loading