#define NIC_ITEM_CONFIG_SIZE sizeof (NIC_IP4_CONFIG_INFO) + sizeof (EFI_IP4_ROUTE_TABLE) * MAX_IP4_CONFIG_IN_VARIABLE\r
\r
\r
-///\r
-/// HII specific Vendor Device Path definition.\r
-///\r
-typedef struct {\r
- VENDOR_DEVICE_PATH VendorDevicePath;\r
- EFI_DEVICE_PATH_PROTOCOL End;\r
-} HII_VENDOR_DEVICE_PATH;\r
-\r
-/**\r
- Updates the network configuration form to add/delete an entry for the network\r
- device specified by the Instance.\r
-\r
- @param[in] Instance The IP4 Config instance.\r
- @param[in] AddForm Whether to add or delete a form entry.\r
-\r
- @retval EFI_SUCCESS The network configuration form is updated.\r
- @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
- @retval Others Other errors as indicated.\r
-**/\r
-EFI_STATUS\r
-Ip4ConfigUpdateForm (\r
- IN IP4_CONFIG_INSTANCE *Instance,\r
- IN BOOLEAN AddForm\r
- );\r
-\r
/**\r
Install HII Config Access protocol for network device and allocate resource.\r
\r
IN IP4_CONFIG_INSTANCE *Instance\r
);\r
\r
-/**\r
- Initialize the network configuration form, this includes: delete all the network\r
- device configuration entries, install the form callback protocol and\r
- allocate the resources used.\r
-\r
- @retval EFI_SUCCESS The network configuration form is unloaded.\r
- @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
-**/\r
-EFI_STATUS\r
-Ip4ConfigFormInit (\r
- VOID\r
- );\r
-\r
-/**\r
- Unload the network configuration form, this includes: delete all the network\r
- device configuration entries, uninstall the form callback protocol and\r
- free the resources used.\r
-\r
- @retval EFI_SUCCESS The network configuration form is unloaded.\r
-**/\r
-EFI_STATUS\r
-Ip4ConfigFormUnload (\r
- VOID\r
- );\r
-\r
#endif\r