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/


RE: RE:Ndis Miniport Driver for a NIC card with multiple ethernet ports

Doron_HolanDoron_Holan Member - All Emails Posts: 10,490
Yes, or query interface

From: [email protected] [mailto:[email protected]] On Behalf Of Sachindranath p.v
Sent: Monday, April 27, 2015 11:07 AM
To: Windows System Software Devs Interest List
Subject: Re: RE:[ntdev] Ndis Miniport Driver for a NIC card with multiple ethernet ports

Is private interface route is like IOCTL Communication?

On Mon, Apr 27, 2015 at 12:02 PM, Doron Holan > wrote:
No, you can’t. the interfaces to arbitrate those pci resources are not documented, you have to go the private interface route

From: [email protected] [mailto:[email protected]] On Behalf Of Sachindranath p.v
Sent: Sunday, April 26, 2015 11:28 PM
To: Windows System Software Devs Interest List
Subject: Re: RE:[ntdev] Ndis Miniport Driver for a NIC card with multiple ethernet ports

Write a custom bus driver to manually do the carving yourself (for complex resource allocation or interdependencies), as discussed above (although you can get by with just 2 drivers and not necessarily 3)

If we are creating child PDO from custom bus driver, Can we use EvtDeviceResourcesQuery(WDF_PDO_EVENT_CALLBACKS) calbacks to export resource descriptor(by creating or dividing manually) to its child devices?



On Sat, Oct 12, 2013 at 1:57 AM, Jeffrey Tippet > wrote:
No - the "port" concept provided by NdisMAllocatePort is not meant to deal with hardware that has multiple physical ports. Hardware that has multiple physical ports should either:

(a) Expose each port as a separate PCI function, so the OS automatically carves up the hardware into multiple independent NICs

(b) Use mf.sys to explicitly carve up the hardware into independent NICs (assuming static resource allocation); or

(c) Write a custom bus driver to manually do the carving yourself (for complex resource allocation or interdependencies), as discussed above (although you can get by with just 2 drivers and not necessarily 3)


The "port" concept provided by NdisMAllocatePort is meant for other abstractions. Its usage is contextual: for a wireless NIC, a port is a way to select virtual MACs. Above an Ethernet NIC, ports are reserved for the operating system's NIC Teaming or Bridging features.

---
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



--
Regards
Sachindranath
[http://s.c.lnkd.licdn.com/scds/common/u/img/webpromo/btn_liprofile_blue_80x15.png]


--- 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



--
Regards
Sachindranath
[http://s.c.lnkd.licdn.com/scds/common/u/img/webpromo/btn_liprofile_blue_80x15.png]


--- 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
d
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