audk/MdeModulePkg/Universal/Network/SnpDxe
Fu Siyuan 128946c9c3 MdeModulePkg: Refine SNP driver's media status check logic.
Some UNDI drivers may not support the cable detect in UNDI INITIALIZE command,
but support the media present check in UNDI GET_STATUS command. Current SNP
driver will set the MediaPresentSupported field to FALSE in EFI_SIMPLE_NETWORK_MODE
for such case, which forbid the media detect from the callers.

This patch updates the SNP driver to support such kind of UNDIs for media detect.
MediaPresentSupported will be set to TRUE, and a GET_STATUS command will be issued
immediately after INITIALIZE command in SNP->Initialize() function, to refresh
the value of MediaPresent in SNP mode data.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-By: Ye Ting <ting.ye@intel.com>
Reviewed-By: Wu Jiaxin <jiaxin.wu@intel.com>
2016-05-06 08:52:26 +08:00
..
Callback.c 1. Use the PciIo->GetBarAttributes to find the logical bar index of the memory mapped bar and IO mapped bar. 2014-09-15 03:37:58 +00:00
ComponentName.c Add more check for the code to make it more safely. 2014-09-18 08:45:26 +00:00
Get_status.c MdeModulePkg: Refine SNP driver's media status check logic. 2016-05-06 08:52:26 +08:00
Initialize.c MdeModulePkg: Refine SNP driver's media status check logic. 2016-05-06 08:52:26 +08:00
Mcast_ip_to_mac.c Refine soma code to make code run safely. 2010-09-15 07:48:11 +00:00
Nvdata.c Refine soma code to make code run safely. 2010-09-15 07:48:11 +00:00
Receive.c Refine soma code to make code run safely. 2010-09-15 07:48:11 +00:00
Receive_filters.c MdeModulePkg: SNP should check Cdb.StatCode with PXE_STATCODE_SUCCESS. 2016-02-17 08:51:03 +08:00
Reset.c Update the copyright notice format 2010-04-24 09:33:45 +00:00
Shutdown.c Update the copyright notice format 2010-04-24 09:33:45 +00:00
Snp.c MdeModulePkg: Refine SNP driver's media status check logic. 2016-05-06 08:52:26 +08:00
Snp.h MdeModulePkg: Refine SNP driver's media status check logic. 2016-05-06 08:52:26 +08:00
SnpDxe.inf MdeModulePkg: INF/DEC file updates to EDK II packages 2014-08-28 06:34:06 +00:00
SnpDxe.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
SnpDxeExtra.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
Start.c Refine soma code to make code run safely. 2010-09-15 07:48:11 +00:00
Station_address.c Use PXE_OPFLAGS_STATION_ADDRESS_WRITE when setting new MAC address for the NIC in SNP driver. 2014-03-20 06:04:50 +00:00
Statistics.c Refine soma code to make code run safely. 2010-09-15 07:48:11 +00:00
Stop.c MdeModulePkg: Make the DEBUG info consistent in SNP driver. 2016-02-17 08:50:54 +08:00
Transmit.c MdeModulePkg: Correct one return status code in SNP Transmit function. 2016-02-03 15:17:06 +08:00
WaitForPacket.c Refine soma code to make code run safely. 2010-09-15 07:48:11 +00:00