PCI 4 Serial ports card WDM Driver development issue RRS feed

  • Question

  • Hi,

    I am a new guy in Windows Driver development. I'm planning to development a driver for a PCI card with 4 Serial ports(based on the 4 BARs and compatible with 16550) using WDM.

    So is there any reference code that I can find here? I met with the problem about the 4 devices on one Driver Object's initialization , and how to create and register the device with the right type in AddDevice. Another issues are how the device manager in windows to cooperate with the driver code and how to enum the COMx ports in Serial test applications. And the writing of the inf file.

    Since I can find little material to support me, any help will be appreciated.



    Wednesday, April 20, 2016 4:00 PM


  • First don't use WDM for this use KMDF.  Microsoft's reference serial port driver is KMDF, and there is no reason to use WDM (with all its challenges) for a hardware driver.

    Does your device comply with either the multi-function specifications  or the multi-function bus driver   If so you should be able to use the standard serial port driver.

    If your device does not meet these requirements, you will probably need to write a bus driver to split the device into four serial ports, and then modify the serial port sample driver to work with that.  I've done a number of these, since it is common for people to do a design that either used a single bar, or had something like an interrupt control register that was shared for all the devices.

    Don Burn Windows Driver Consulting Website:

    Wednesday, April 20, 2016 4:10 PM

All replies