Re: PCI DEVICE DRIVERS

Hai Arun,

If u want to read the configuration space of your device from your device driver, the simplest way is to use IRP_MN_READ_CONFIG. The 98 DDK and 2K ddk contains the documentation about this. If u are using windows 98 or 2000, I am sure this will help u.
bye,
regards,
prasanth

------------- Original Message --------------
Arun Kumar wrote:
To:xxxxx@rediffmail.com
From:Arun Kumar
Date:Fri, 6 Apr 2001 04:02:42 -0700 (PDT)
Subject: PCI DEVICE DRIVERS

hai,

i just saw your question in www.ntdev.org,

even i have the same problem,
i am writing a driver for a pci device driver ,
i have to read the configuration space,
now you would have known to read the configuration
space,
please help me out.

arun


Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/

___
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.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

hai,

thanks for replying,

i am using the minor function as described but the
value what i read is getting cccccccc ,so what could
be the problem,

even in my pci card we are using 4 BAR regs and all
memory mapped so, how could i configure the
startdevice function ,so that the baseaddress of all
the BARs can be got.
if any one has examples of wdm pci drivers , please
mail me.

arun


Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.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

> even in my pci card we are using 4 BAR regs and all

memory mapped so, how could i configure the
startdevice function ,so that the baseaddress of all
the BARs can be got.
if any one has examples of wdm pci drivers , please
mail me.

Use AllocatedResourcesTranslated from the START IRP, and call MmMapIoSpace
on them.

Max


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

I see this when I compile in debug mode and forget to initialize a structure
after allocating it.

Greg

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Arun Kumar
Sent: Wednesday, April 11, 2001 2:44 AM
To: NT Developers Interest List
Subject: [ntdev] Re: PCI DEVICE DRIVERS

hai,

thanks for replying,

i am using the minor function as described but the
value what i read is getting cccccccc ,so what could
be the problem,

even in my pci card we are using 4 BAR regs and all
memory mapped so, how could i configure the
startdevice function ,so that the baseaddress of all
the BARs can be got.
if any one has examples of wdm pci drivers , please
mail me.

arun


Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/


You are currently subscribed to ntdev as: xxxxx@pdq.net
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