Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV
Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


What is the best driver model for implementing support for custom hot-plug controller?

I have a fairly new hot-plug controller that I bought some time ago because it was cheap. it was just sitting around.
It is custom programming interface and needs a driver for Windows to use it.

Somebody designed this using a FPGA and gave it to me. It powers up.

Anyways, I decided to write a driver for it just for the fun of it so I can use it with windows 10.
It has M.2 and old OHCI controller (Is this USB 1.1?).
This is a very wierd combination
Upstream is old PCI so I need a system with a PCie to PCI bridge, I realize

Anyways, I am thinking I will need to write a bus driver that enumerates the PDO for the downstream devices as they are detected and plugged and presents them to Windows.
I would like to start off with KMDF model.

Is a bus driver good enough?. Or do I need to do anything else?.

Thanks,
RK

Comments

  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 8,016

    Have you plugged it in?

    Why do you think you need to write a bus driver for this device?

    What does the PCI Config Descriptor on the device say?

    Peter

    Peter Viscarola
    OSR
    @OSRDrivers

  • The classcode has value of 0xff for programming interface which means Windows will not load a driver for it. Under what conditions would Windows load a driver for it?. I did not think Windows came with a standard driver for hot-plug controllers. I am thinking a bus driver is needed because a bunch of devices can be connected downstream and they can come and go. I am not sure how I can avoid writing a driver for it.

  • Tim_RobertsTim_Roberts Member - All Emails Posts: 13,578

    To be pedantic, there's no such thing as a generic "hot-plug controller". Is this a PCI hot-plug controller, so it has PCI on one end and PCI on the other end? For that, you'd write an INF that maps your vendor and device ID to a PCI bridge. If not, what kinds of devices will be coming and going?

    Yes, OHCI is one of the two USB 1.x host controller standards. I assume it has its own vendor and device ID, in which case you can write an INF to map that to a USB host controller.

    Tim Roberts, [email protected]
    Providenza & Boekelheide, Inc.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Kernel Debugging 30 Mar 2020 OSR Seminar Space
Developing Minifilters 15 Jun 2020 LIVE ONLINE
Writing WDF Drivers 22 June 2020 LIVE ONLINE
Internals & Software Drivers 28 Sept 2020 Dulles, VA