diff options
author | hhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-04-25 01:25:11 +0000 |
---|---|---|
committer | hhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-04-25 01:25:11 +0000 |
commit | 9f82599a514dcb57912f2da16eb05c37499da715 (patch) | |
tree | abb5c9f0e6e34d3080cfa77b0dbd43b141c13cc5 /MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.h | |
parent | 8990b82f4fdf58420ffdb0f7f1a9c100aac8c1ae (diff) | |
download | edk2-9f82599a514dcb57912f2da16eb05c37499da715.zip edk2-9f82599a514dcb57912f2da16eb05c37499da715.tar.gz edk2-9f82599a514dcb57912f2da16eb05c37499da715.tar.bz2 |
1. Enabled IP4 layer auto configuration in case cable swap is detected.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11582 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.h')
-rw-r--r-- | MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.h | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.h b/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.h index eacd893..622b87e 100644 --- a/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.h +++ b/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.h @@ -1,7 +1,7 @@ /** @file
Header file for IP4Config driver.
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at<BR>
@@ -128,6 +128,16 @@ typedef struct _IP4_CONFIG_INSTANCE { EFI_DHCP4_PROTOCOL *Dhcp4;
EFI_HANDLE Dhcp4Handle;
EFI_EVENT Dhcp4Event;
+
+ //
+ // A dedicated timer is used to poll underlying media status
+ //
+ EFI_EVENT Timer;
+
+ //
+ // Underlying media present status.
+ //
+ BOOLEAN MediaPresent;
} IP4_CONFIG_INSTANCE;
#define IP4_CONFIG_INSTANCE_FROM_IP4CONFIG(this) \
@@ -496,4 +506,23 @@ EfiIp4ConfigGetData ( OUT EFI_IP4_IPCONFIG_DATA *ConfigData OPTIONAL
);
+/**
+ A dedicated timer is used to poll underlying media status. In case of
+ cable swap, a new round auto configuration will be initiated. The timer
+ will signal the IP4 to run the auto configuration again. IP4 driver will free
+ old IP address related resource, such as route table and Interface, then
+ initiate a DHCP round by IP4Config->Start to acquire new IP, eventually
+ create route table for new IP address.
+
+ @param[in] Event The IP4 service instance's heart beat timer.
+ @param[in] Context The IP4 service instance.
+
+**/
+VOID
+EFIAPI
+MediaChangeDetect (
+ IN EFI_EVENT Event,
+ IN VOID *Context
+ );
+
#endif
|