Code Scrub for Protocol and Ppi Definition
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5564 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
/** @file
|
||||
EFI ControllerHandle Driver Protocol
|
||||
UEFI DriverBinding Protocol is defined in UEFI specification.
|
||||
|
||||
This protocol is produced by every driver that follows the UEFI Driver Model,
|
||||
and it is the central component that allows drivers and controllers to be managed.
|
||||
|
||||
Copyright (c) 2006, Intel Corporation
|
||||
Copyright (c) 2006 - 2008, Intel Corporation
|
||||
All rights reserved. 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
|
||||
@@ -97,6 +100,61 @@ EFI_STATUS
|
||||
//
|
||||
// Interface structure for the ControllerHandle Driver Protocol
|
||||
//
|
||||
/**
|
||||
@par Protocol Description:
|
||||
This protocol provides the services required to determine if a driver supports a given controller.
|
||||
If a controller is supported, then it also provides routines to start and stop the controller.
|
||||
|
||||
@param Supported
|
||||
Tests to see if this driver supports a given controller. 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.
|
||||
|
||||
|
||||
@param Start
|
||||
Starts a controller using this driver. 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.
|
||||
|
||||
@param Stop
|
||||
Stops a controller using this driver. 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.
|
||||
|
||||
@param Version
|
||||
The version number of the UEFI driver that produced the
|
||||
EFI_DRIVER_BINDING_PROTOCOL. This field is used by
|
||||
the EFI boot service ConnectController() to determine
|
||||
the order that driver's Supported() service will be used when
|
||||
a controller needs to be started. EFI Driver Binding Protocol
|
||||
instances with higher Version values will be used before ones
|
||||
with lower Version values. The Version values of 0x0-
|
||||
0x0f and 0xfffffff0-0xffffffff are reserved for
|
||||
platform/OEM specific drivers. The Version values of 0x10-
|
||||
0xffffffef are reserved for IHV-developed drivers.
|
||||
|
||||
@param ImageHandle
|
||||
The image handle of the UEFI driver that produced this instance
|
||||
of the EFI_DRIVER_BINDING_PROTOCOL.
|
||||
|
||||
@param DriverBindingHandle
|
||||
The handle on which this instance of the
|
||||
EFI_DRIVER_BINDING_PROTOCOL is installed. In most
|
||||
cases, this is the same handle as ImageHandle. However, for
|
||||
UEFI drivers that produce more than one instance of the
|
||||
EFI_DRIVER_BINDING_PROTOCOL, this value may not be
|
||||
the same as ImageHandle.
|
||||
|
||||
**/
|
||||
struct _EFI_DRIVER_BINDING_PROTOCOL {
|
||||
EFI_DRIVER_BINDING_SUPPORTED Supported;
|
||||
EFI_DRIVER_BINDING_START Start;
|
||||
|
Reference in New Issue
Block a user