COM port WDF driver for Win7-64

Hello,

I have to write a WDF driver for FPGA that implements a 16550 UART.

I want that the driver will be in the Device Manager under “Ports” and will
allocate a virtual (?) com port.

Should I use this link ?
http://msdn.microsoft.com/en-us/library/windows/hardware/hh825924(v=vs.85).aspx

This FPGA has also other functions (e.g on\off, reset) that does not relate
to the UART.

Is it possible to write another driver for this FPGA that will implement the
not-UART features ?

Best regards,
Z.V

Why not put the extra stuff in the same driver? If it is based on real hw, it isn’t virtual

d

Bent from my phone


From: Zvi Veredmailto:xxxxx
Sent: ?12/?16/?2014 8:00 AM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: [ntdev] COM port WDF driver for Win7-64

Hello,

I have to write a WDF driver for FPGA that implements a 16550 UART.

I want that the driver will be in the Device Manager under ?Ports? and will
allocate a virtual (?) com port.

Should I use this link ?
http://msdn.microsoft.com/en-us/library/windows/hardware/hh825924(v=vs.85).aspx

This FPGA has also other functions (e.g on\off, reset) that does not relate
to the UART.

Is it possible to write another driver for this FPGA that will implement the
not-UART features ?

Best regards,
Z.V


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx>

Hi Doron, All

Good news that I can put all features in one driver.

The link contains the following code fragment:

case CmResourceTypeConnection:
{ // Check against the expected connection types.
UCHAR Class = pDescriptor->u.Connection.Class;
UCHAR Type = pDescriptor->u.Connection.Type;
if (Class == CM_RESOURCE_CONNECTION_CLASS_SERIAL)

break;

Strange. I’m using 7600.16385.1 and no CM_RESOURCE_CONNECTION_CLASS_SERIAL
nor CmResourceTypeConnection is defined.

I’m looking for a sample code explains how to see my UART as a COM port.

Should I use src\serial\serial example ?

Thank you in advance,
Z.V

From: Doron Holan
Sent: Tuesday, December 16, 2014 6:13 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] COM port WDF driver for Win7-64

Why not put the extra stuff in the same driver? If it is based on real hw,
it isn’t virtual

d

Bent from my phone
From: Zvi Vered
Sent: ý12/ý16/ý2014 8:00 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] COM port WDF driver for Win7-64

Hello,

I have to write a WDF driver for FPGA that implements a 16550 UART.

I want that the driver will be in the Device Manager under “Ports” and will
allocate a virtual (?) com port.

Should I use this link ?
http://msdn.microsoft.com/en-us/library/windows/hardware/hh825924(v=vs.85).aspx

This FPGA has also other functions (e.g on\off, reset) that does not relate
to the UART.

Is it possible to write another driver for this FPGA that will implement the
not-UART features ?

Best regards,
Z.V


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

It wont be in the assigned hw resources. The os see it as a com port by the symbolic link name, enabling the serial device interface guid and then supporting all of the serial i/o contract for reads, writes and ioctls. The definitive version is the code in serial.sys. If you want to expose additional functionality, do not mark the device as exclusive, set up a namespace with your device interfaces so you can tell which interface is being opened.

d

Bent from my phone


From: Zvi Veredmailto:xxxxx
Sent: ?12/?16/?2014 1:40 PM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: Re: [ntdev] COM port WDF driver for Win7-64

Hi Doron, All

Good news that I can put all features in one driver.

The link contains the following code fragment:

case CmResourceTypeConnection:
{ // Check against the expected connection types.
UCHAR Class = pDescriptor->u.Connection.Class;
UCHAR Type = pDescriptor->u.Connection.Type;
if (Class == CM_RESOURCE_CONNECTION_CLASS_SERIAL)

break;

Strange. I?m using 7600.16385.1 and no CM_RESOURCE_CONNECTION_CLASS_SERIAL
nor CmResourceTypeConnection is defined.

I?m looking for a sample code explains how to see my UART as a COM port.

Should I use src\serial\serial example ?

Thank you in advance,
Z.V

From: Doron Holan
Sent: Tuesday, December 16, 2014 6:13 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] COM port WDF driver for Win7-64

Why not put the extra stuff in the same driver? If it is based on real hw,
it isn’t virtual

d

Bent from my phone
From: Zvi Vered
Sent: ?12/?16/?2014 8:00 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] COM port WDF driver for Win7-64

Hello,

I have to write a WDF driver for FPGA that implements a 16550 UART.

I want that the driver will be in the Device Manager under ?Ports? and will
allocate a virtual (?) com port.

Should I use this link ?
http://msdn.microsoft.com/en-us/library/windows/hardware/hh825924(v=vs.85).aspx

This FPGA has also other functions (e.g on\off, reset) that does not relate
to the UART.

Is it possible to write another driver for this FPGA that will implement the
not-UART features ?

Best regards,
Z.V


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx>

Wrong sample. This is for SPB type devices… serial ports that connect devices OTHER THAN as traditional PC serial ports.

Doron has provided you the rest of the answer, I think.

Peter
OSR
@OSRDrivers