Win2K pcmcia bus driver issue?

Hi, probably somebody may help me to analyse the following behavior:
I have a CardBus piece of hardware (some propritery development board). I
hot plug the card into win2k system, and try two scenarios:

  1. I don’t provide device driver for this card. Then system notifies me
    that device has a problem and it does not allocate any resources (MMIO,
    interruot) for it (as i can see in device manager).
  2. I do provide my device driver. Then system proceeds OK with the device,
    i.e. I can query device resources from the driver (MMIO range and interrupt
    number).
    My question concerns the first scenario: isn’t it that pcmcia bus driver
    shout query device’s CardBus resource requirements followed by PnP manager
    allocation of system resources accordingly, and all this happens even if I
    don’t provide device driver eventually?
    Thanks,
    Igor.

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

> Hi, probably somebody may help me to analyse the following behavior:

I have a CardBus piece of hardware (some propritery development board). I
hot plug the card into win2k system, and try two scenarios:

  1. I don’t provide device driver for this card. Then system notifies me
    that device has a problem and it does not allocate any resources (MMIO,
    interruot) for it (as i can see in device manager).

Correct.

  1. I do provide my device driver. Then system proceeds OK with the device,
    i.e. I can query device resources from the driver (MMIO range and interrupt
    number).
    Yes. Cardbus assigns the resources to your device and passes them into you
    via IRP_MN_START_DEVICE. Your device driver (assuming it is using the PnP
    IRPs) should not have to query anything to find out what hardware resources
    to use.

My question concerns the first scenario: isn’t it that pcmcia bus driver
shout query device’s CardBus resource requirements followed by PnP manager
allocation of system resources accordingly, and all this happens even if I
don’t provide device driver eventually?

Yes and No. The Bus driver is responsible for resource assignment and
telling your device what they are. However, it does not assign you resources
until a driver is provided for your device. It is a case of there is nothing
around to use these resources so why go to the trouble of allocating and
assigning them.

Mike


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