Discussion:
[edk2] Source code for network devices?
Ralph Campbell
2015-07-09 17:46:24 UTC
Permalink
I was searching the edk2 code for network device drivers but I could only find 3:

EmbeddedPkg/Drivers/Lan9118Dxe/*
OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772/*
OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/*

Does anyone know of other examples?
Perhaps from Ethernet chip manufactures?
Laszlo Ersek
2015-07-09 18:43:07 UTC
Permalink
Post by Ralph Campbell
EmbeddedPkg/Drivers/Lan9118Dxe/*
OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772/*
OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/*
Does anyone know of other examples?
(1) here's a driver for the virtio-net NIC (a virtual network card used
in virtual machines, on the qemu/KVM hypervisor(s)):

OvmfPkg/VirtioNetDxe/

There's a "TechNotes.txt" in there as well, although the Driver Writer's
Guide is really helpful. (Along the UEFI spec of course.)

(2) The iPXE project provides an EFI SNP interface as well, a generic
wrapper for all the network cards that it can otherwise drive. See
src/interface/efi/efi_snp.c.

(3) Olivier recently posted this port:

http://thread.gmane.org/gmane.comp.bios.tianocore.devel/15847

I guess it could be the closest to what you are looking for, since it's
a standalone physical hw driver.

(4) You can find another phys hw driver here:

https://github.com/mlangsdorf/linaro-edk2/tree/acpi-share/ArmPlatformPkg/APMXGenePkg/Drivers/MellanoxDxe
Post by Ralph Campbell
Perhaps from Ethernet chip manufactures?
Well if Broadcom were to contribute an open source driver, that would be
most awesome ;)

Thanks
Laszlo
Thomas Rognon
2015-07-09 19:23:54 UTC
Permalink
I'm guessing you're looking for an example of a full working stack on real
hardware. If so, check out the minnowboard source code...
https://firmware.intel.com/content/minnowboard-uefi-firmware-download
Post by Ralph Campbell
EmbeddedPkg/Drivers/Lan9118Dxe/*
OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772/*
OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/*
Does anyone know of other examples?
Perhaps from Ethernet chip manufactures?
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
edk2-devel mailing list
https://lists.sourceforge.net/lists/listinfo/edk2-devel
Thomas Rognon
2015-07-09 19:28:13 UTC
Permalink
In particular, check
out MinnowBoard.1.00-Source\2013-WW49-MinnowBoard.1.00\IntelEg20tPkg\EthernetDxe
Post by Thomas Rognon
I'm guessing you're looking for an example of a full working stack on real
hardware. If so, check out the minnowboard source code...
https://firmware.intel.com/content/minnowboard-uefi-firmware-download
On Thu, Jul 9, 2015 at 12:46 PM, Ralph Campbell <
Post by Ralph Campbell
EmbeddedPkg/Drivers/Lan9118Dxe/*
OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772/*
OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/*
Does anyone know of other examples?
Perhaps from Ethernet chip manufactures?
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
edk2-devel mailing list
https://lists.sourceforge.net/lists/listinfo/edk2-devel
Ye, Ting
2015-07-10 01:25:59 UTC
Permalink
Another example is an UNDI driver available @ OptionRomPkg\UndiRuntimeDxe to support Intel Pro100 network card.

Best Regards,
Ye Ting

From: Thomas Rognon [mailto:***@gmail.com]
Sent: Friday, July 10, 2015 3:28 AM
To: edk2-devel
Subject: Re: [edk2] Source code for network devices?

In particular, check out MinnowBoard.1.00-Source\2013-WW49-MinnowBoard.1.00\IntelEg20tPkg\EthernetDxe

On Thu, Jul 9, 2015 at 2:23 PM, Thomas Rognon <***@gmail.com<mailto:***@gmail.com>> wrote:
I'm guessing you're looking for an example of a full working stack on real hardware. If so, check out the minnowboard source code...
https://firmware.intel.com/content/minnowboard-uefi-firmware-download

On Thu, Jul 9, 2015 at 12:46 PM, Ralph Campbell <***@broadcom.com<mailto:***@broadcom.com>> wrote:
I was searching the edk2 code for network device drivers but I could only find 3:

EmbeddedPkg/Drivers/Lan9118Dxe/*
OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772/*
OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/*

Does anyone know of other examples?
Perhaps from Ethernet chip manufactures?

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
edk2-devel mailing list
edk2-***@lists.sourceforge.net<mailto:edk2-***@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Continue reading on narkive:
Loading...