2007-09-30 05:08:02 +02:00
|
|
|
/** @file
|
2009-01-16 01:09:52 +01:00
|
|
|
Header for the DHCP4 driver.
|
|
|
|
|
2016-07-08 08:21:04 +02:00
|
|
|
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
2010-04-24 11:33:45 +02:00
|
|
|
This program and the accompanying materials
|
2007-09-30 05:08:02 +02:00
|
|
|
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
|
|
|
|
http://opensource.org/licenses/bsd-license.php
|
|
|
|
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef __EFI_DHCP4_DRIVER_H__
|
|
|
|
#define __EFI_DHCP4_DRIVER_H__
|
|
|
|
|
|
|
|
extern EFI_COMPONENT_NAME_PROTOCOL gDhcp4ComponentName;
|
|
|
|
extern EFI_COMPONENT_NAME2_PROTOCOL gDhcp4ComponentName2;
|
2012-12-13 07:47:06 +01:00
|
|
|
extern EFI_UNICODE_STRING_TABLE *gDhcpControllerNameTable;
|
2007-09-30 05:08:02 +02:00
|
|
|
|
2008-06-30 09:20:33 +02:00
|
|
|
/**
|
2008-11-18 15:30:46 +01:00
|
|
|
Test to see if this driver supports ControllerHandle. This service
|
|
|
|
is called by the EFI boot service ConnectController(). In
|
|
|
|
order to make drivers as small as possible, there are a few calling
|
|
|
|
restrictions for this service. ConnectController() must
|
|
|
|
follow these calling restrictions. If any other agent wishes to call
|
|
|
|
Supported() it must also follow these calling restrictions.
|
|
|
|
|
2009-01-16 01:09:52 +01:00
|
|
|
@param[in] This Protocol instance pointer.
|
|
|
|
@param[in] ControllerHandle Handle of device to test
|
|
|
|
@param[in] RemainingDevicePath Optional parameter use to pick a specific child
|
|
|
|
device to start.
|
2008-11-18 15:30:46 +01:00
|
|
|
|
|
|
|
@retval EFI_SUCCESS This driver supports this device
|
|
|
|
@retval EFI_ALREADY_STARTED This driver is already running on this device
|
|
|
|
@retval other This driver does not support this device
|
2008-06-30 09:20:33 +02:00
|
|
|
|
|
|
|
**/
|
2007-09-30 05:08:02 +02:00
|
|
|
EFI_STATUS
|
|
|
|
EFIAPI
|
|
|
|
Dhcp4DriverBindingSupported (
|
|
|
|
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
|
|
|
IN EFI_HANDLE ControllerHandle,
|
|
|
|
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath OPTIONAL
|
|
|
|
);
|
|
|
|
|
2008-06-30 09:20:33 +02:00
|
|
|
/**
|
2008-11-18 15:30:46 +01:00
|
|
|
Start this driver on ControllerHandle. This service is called by the
|
|
|
|
EFI boot service ConnectController(). In order to make
|
|
|
|
drivers as small as possible, there are a few calling restrictions for
|
|
|
|
this service. ConnectController() must follow these
|
|
|
|
calling restrictions. If any other agent wishes to call Start() it
|
|
|
|
must also follow these calling restrictions.
|
|
|
|
|
2009-01-16 01:09:52 +01:00
|
|
|
@param[in] This Protocol instance pointer.
|
|
|
|
@param[in] ControllerHandle Handle of device to bind driver to
|
|
|
|
@param[in] RemainingDevicePath Optional parameter use to pick a specific child
|
|
|
|
device to start.
|
2008-11-18 15:30:46 +01:00
|
|
|
|
|
|
|
@retval EFI_SUCCESS This driver is added to ControllerHandle
|
|
|
|
@retval EFI_ALREADY_STARTED This driver is already running on ControllerHandle
|
|
|
|
@retval other This driver does not support this device
|
2008-06-30 09:20:33 +02:00
|
|
|
|
|
|
|
**/
|
2007-09-30 05:08:02 +02:00
|
|
|
EFI_STATUS
|
|
|
|
EFIAPI
|
|
|
|
Dhcp4DriverBindingStart (
|
|
|
|
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
|
|
|
IN EFI_HANDLE ControllerHandle,
|
|
|
|
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath OPTIONAL
|
|
|
|
);
|
|
|
|
|
2008-06-30 09:20:33 +02:00
|
|
|
/**
|
2008-11-18 15:30:46 +01:00
|
|
|
Stop this driver on ControllerHandle. This service is called by the
|
|
|
|
EFI boot service DisconnectController(). In order to
|
|
|
|
make drivers as small as possible, there are a few calling
|
|
|
|
restrictions for this service. DisconnectController()
|
|
|
|
must follow these calling restrictions. If any other agent wishes
|
|
|
|
to call Stop() it must also follow these calling restrictions.
|
|
|
|
|
2009-01-16 01:09:52 +01:00
|
|
|
@param[in] This Protocol instance pointer.
|
|
|
|
@param[in] ControllerHandle Handle of device to stop driver on
|
|
|
|
@param[in] NumberOfChildren Number of Handles in ChildHandleBuffer. If number of
|
|
|
|
children is zero stop the entire bus driver.
|
|
|
|
@param[in] ChildHandleBuffer List of Child Handles to Stop.
|
2008-11-18 15:30:46 +01:00
|
|
|
|
|
|
|
@retval EFI_SUCCESS This driver is removed ControllerHandle
|
|
|
|
@retval other This driver was not removed from this device
|
2008-06-30 09:20:33 +02:00
|
|
|
|
|
|
|
**/
|
2007-09-30 05:08:02 +02:00
|
|
|
EFI_STATUS
|
|
|
|
EFIAPI
|
|
|
|
Dhcp4DriverBindingStop (
|
|
|
|
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
|
|
|
IN EFI_HANDLE ControllerHandle,
|
|
|
|
IN UINTN NumberOfChildren,
|
|
|
|
IN EFI_HANDLE *ChildHandleBuffer
|
|
|
|
);
|
|
|
|
|
2008-06-30 09:20:33 +02:00
|
|
|
/**
|
2009-01-16 01:09:52 +01:00
|
|
|
Creates a child handle and installs a protocol.
|
|
|
|
|
|
|
|
The CreateChild() function installs a protocol on ChildHandle.
|
|
|
|
If ChildHandle is a pointer to NULL, then a new handle is created and returned in ChildHandle.
|
|
|
|
If ChildHandle is not a pointer to NULL, then the protocol installs on the existing ChildHandle.
|
2008-06-30 09:20:33 +02:00
|
|
|
|
2009-01-16 01:09:52 +01:00
|
|
|
@param This Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.
|
|
|
|
@param ChildHandle Pointer to the handle of the child to create. If it is NULL,
|
|
|
|
then a new handle is created. If it is a pointer to an existing UEFI handle,
|
|
|
|
then the protocol is added to the existing UEFI handle.
|
2008-06-30 09:20:33 +02:00
|
|
|
|
2009-01-16 01:09:52 +01:00
|
|
|
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
2008-11-18 15:30:46 +01:00
|
|
|
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
2016-07-08 08:21:04 +02:00
|
|
|
@retval EFI_OUT_OF_RESOURCES There are not enough resources available to create
|
2008-11-18 15:30:46 +01:00
|
|
|
the child
|
|
|
|
@retval other The child handle was not created
|
2008-06-30 09:20:33 +02:00
|
|
|
|
|
|
|
**/
|
2007-09-30 05:08:02 +02:00
|
|
|
EFI_STATUS
|
|
|
|
EFIAPI
|
|
|
|
Dhcp4ServiceBindingCreateChild (
|
|
|
|
IN EFI_SERVICE_BINDING_PROTOCOL *This,
|
|
|
|
IN EFI_HANDLE *ChildHandle
|
|
|
|
);
|
|
|
|
|
2008-06-30 09:20:33 +02:00
|
|
|
/**
|
2009-01-16 01:09:52 +01:00
|
|
|
Destroys a child handle with a protocol installed on it.
|
|
|
|
|
|
|
|
The DestroyChild() function does the opposite of CreateChild(). It removes a protocol
|
|
|
|
that was installed by CreateChild() from ChildHandle. If the removed protocol is the
|
|
|
|
last protocol on ChildHandle, then ChildHandle is destroyed.
|
2008-06-30 09:20:33 +02:00
|
|
|
|
2009-01-16 01:09:52 +01:00
|
|
|
@param This Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.
|
2008-11-18 15:30:46 +01:00
|
|
|
@param ChildHandle Handle of the child to destroy
|
|
|
|
|
2009-01-16 01:09:52 +01:00
|
|
|
@retval EFI_SUCCES The protocol was removed from ChildHandle.
|
|
|
|
@retval EFI_UNSUPPORTED ChildHandle does not support the protocol that is being removed.
|
2011-07-06 05:55:36 +02:00
|
|
|
@retval EFI_INVALID_PARAMETER Child handle is NULL.
|
2009-01-16 01:09:52 +01:00
|
|
|
@retval EFI_ACCESS_DENIED The protocol could not be removed from the ChildHandle
|
|
|
|
because its services are being used.
|
2008-11-18 15:30:46 +01:00
|
|
|
@retval other The child handle was not destroyed
|
2008-06-30 09:20:33 +02:00
|
|
|
|
|
|
|
**/
|
2007-09-30 05:08:02 +02:00
|
|
|
EFI_STATUS
|
|
|
|
EFIAPI
|
|
|
|
Dhcp4ServiceBindingDestroyChild (
|
|
|
|
IN EFI_SERVICE_BINDING_PROTOCOL *This,
|
|
|
|
IN EFI_HANDLE ChildHandle
|
|
|
|
);
|
|
|
|
|
|
|
|
#endif
|