Example PCI driver in DDK???

Hello,

I am looking for an example PCI function driver in DDK to no avail. I am using Pci* functions as a way to search. Below a PCI function driver is the PCI bus driver, yes?

Regards, Vasili


Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine’s Day

Sure is … and when your AddDevice is called you get a PDO to the PCI bus driver below you.


Gary G. Little
Have Computer, will travel …
909-698-3191
909-551-2105
“Galchin Vasili” wrote in message news:xxxxx@ntdev…
Hello,

I am looking for an example PCI function driver in DDK to no avail. I am using Pci* functions as a way to search. Below a PCI function driver is the PCI bus driver, yes?

Regards, Vasili

------------------------------------------------------------------------------
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine’s Day

Gary,
Did you see other question? In DDK, were is source code for PCI function driver?
Thanks and regards, Vasili

“Gary G. Little” wrote:Sure is … and when your AddDevice is called you get a PDO to the PCI bus driver below you.

Gary G. Little
Have Computer, will travel …
909-698-3191
909-551-2105"Galchin Vasili" wrote in message news:xxxxx@ntdev…
Hello,

I am looking for an example PCI function driver in DDK to no avail. I am using Pci* functions as a way to search. Below a PCI function driver is the PCI bus driver, yes?

Regards, Vasili

---------------------------------
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine’s Day—
You are currently subscribed to ntdev as: xxxxx@yahoo.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

---------------------------------
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine’s Day

You don’t have a PCI driver sample in DDK. Where as the toaster sample is
very helpful. But you have a PCI driver from OSR in its resources section.

Regards,
Dayalan
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Galchin Vasili
Sent: Saturday, February 15, 2003 4:58 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Example PCI driver in DDK???

Gary,

Did you see other question? In DDK, were is source code for PCI
function driver?

Thanks and regards, Vasili

“Gary G. Little” wrote:

Sure is … and when your AddDevice is called you get a PDO to the PCI
bus driver below you.


Gary G. Little
Have Computer, will travel …
909-698-3191
909-551-2105
“Galchin Vasili” wrote in message
news:xxxxx@ntdev…
Hello,

I am looking for an example PCI function driver in DDK to no
avail. I am using Pci* functions as a way to search. Below a PCI function
driver is the PCI bus driver, yes?

Regards, Vasili

--------------------------------------------------------------------------
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine’s Day

You are currently subscribed to ntdev as: xxxxx@yahoo.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

----------------------------------------------------------------------------

Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine’s Day — You are currently
subscribed to ntdev as: xxxxx@qmaxtest.com To unsubscribe send a
blank email to xxxxx@lists.osr.com

There is no *need* for a specific sample of a PCI driver. It’s like
looking at an example of a door with an knob on the right and saying,
“yes, but my door has the knob on the left, so how do I open *it*?” The
beauty of the PnP model is that every driver works basically the same
until you get to the device-specific configuration stuff that you do
during IRP_MN_START_DEVICE.


Walter Oney, Consulting and Training
Basic and Advanced Driver Programming Seminars
Now teaming with John Hyde for USB Device Engineering Seminars
Check out our schedule at http://www.oneysoft.com

Well actually there is a lot of generic code in a pci driver. Answers to questions like the infamous “are my
BARs ordered in the resources” could be illustrated in code. Busmaster DMA using scattergather lists is
generic up to the actual point where you program the DMA registers on the PCI device. Accessing the config
space is entirely generic. And the answer the the doorknob question question might also be generic (turn
counter-clockwise to open, or turn to the inside to open. :slight_smile:

I think it is rather silly that the hardware examples in the DDK are almost without exception ISA (or is
that LPC these days?) devices. A complete example of a MODERN hardware device driver is not too much to ask
for.

===========================
Mark Roddy
Consultant, Microsoft DDK MVP
Hollis Technology Solutions
xxxxx@hollistech.com
www.hollistech.com
603-321-1032

-----Original Message-----
From: Walter Oney
To: “NT Developers Interest List”
Date: Sat, 15 Feb 2003 05:15:35 -0500
Subject: [ntdev] Re: Example PCI driver in DDK???

> There is no need for a specific sample of a PCI driver. It’s like
> looking at an example of a door with an knob on the right and saying,
> “yes, but my door has the knob on the left, so how do I open it?” The
> beauty of the PnP model is that every driver works basically the same
> until you get to the device-specific configuration stuff that you do
> during IRP_MN_START_DEVICE.
>
> –
> Walter Oney, Consulting and Training
> Basic and Advanced Driver Programming Seminars
> Now teaming with John Hyde for USB Device Engineering Seminars
> Check out our schedule at http://www.oneysoft.com
>
> —
> You are currently subscribed to ntdev as: xxxxx@hollistech.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

Mark Roddy wrote:

Well actually there is a lot of generic code in a pci driver. Answers to questions like the infamous “are my
BARs ordered in the resources” could be illustrated in code. Busmaster DMA using scattergather lists is
generic up to the actual point where you program the DMA registers on the PCI device. Accessing the config
space is entirely generic. And the answer the the doorknob question question might also be generic (turn
counter-clockwise to open, or turn to the inside to open. :slight_smile:

Well, okay. I exaggerated to make a point. I’m not sure if it was the
same guy asking the same question in another forum, but I pointed
somebody to the PCI42 and PKTDMA samples in my book, which are for real
PCI hardware.


Walter Oney, Consulting and Training
Basic and Advanced Driver Programming Seminars
Now teaming with John Hyde for USB Device Engineering Seminars
Check out our schedule at http://www.oneysoft.com