TianoCore EDK2 master
Loading...
Searching...
No Matches
IdeController.h
Go to the documentation of this file.
1
9#ifndef _IDE_CONTROLLER_H_
10#define _IDE_CONTROLLER_H_
11
12#include <Uefi.h>
15#include <Protocol/PciIo.h>
18#include <Library/DebugLib.h>
19#include <Library/UefiLib.h>
20#include <Library/BaseLib.h>
25
26//
27// Global Variables definitions
28//
32
36#define ICH_IDE_MAX_CHANNEL 0x02
37
41#define ICH_IDE_MAX_DEVICES 0x02
42#define ICH_IDE_ENUMER_ALL FALSE
43
44//
45// Driver binding functions declaration
46//
47
60EFIAPI
63 IN EFI_HANDLE Controller,
64 IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
65 )
66;
67
82EFIAPI
85 IN EFI_HANDLE Controller,
86 IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
87 )
88;
89
102EFIAPI
105 IN EFI_HANDLE Controller,
106 IN UINTN NumberOfChildren,
107 IN EFI_HANDLE *ChildHandleBuffer
108 )
109;
110
111//
112// IDE controller init functions declaration
113//
114
152EFIAPI
155 IN UINT8 Channel,
156 OUT BOOLEAN *Enabled,
157 OUT UINT8 *MaxDevices
158 )
159;
160
186EFIAPI
190 IN UINT8 Channel
191 )
192;
193
234EFIAPI
237 IN UINT8 Channel,
238 IN UINT8 Device,
239 IN EFI_IDENTIFY_DATA *IdentifyData
240 )
241;
242
284EFIAPI
287 IN UINT8 Channel,
288 IN UINT8 Device,
290 )
291;
292
348EFIAPI
351 IN UINT8 Channel,
352 IN UINT8 Device,
353 OUT EFI_ATA_COLLECTIVE_MODE **SupportedModes
354 )
355;
356
381EFIAPI
384 IN UINT8 Channel,
385 IN UINT8 Device,
387 )
388;
389
390//
391// Forward reference declaration
392//
393
416EFIAPI
419 IN CHAR8 *Language,
420 OUT CHAR16 **DriverName
421 )
422;
423
465EFIAPI
468 IN EFI_HANDLE ControllerHandle,
469 IN EFI_HANDLE ChildHandle OPTIONAL,
470 IN CHAR8 *Language,
471 OUT CHAR16 **ControllerName
472 )
473;
474
475#endif
UINT64 UINTN
EFI_STATUS EFIAPI IdeInitNotifyPhase(IN EFI_IDE_CONTROLLER_INIT_PROTOCOL *This, IN EFI_IDE_CONTROLLER_ENUM_PHASE Phase, IN UINT8 Channel)
EFI_STATUS EFIAPI IdeControllerComponentNameGetDriverName(IN EFI_COMPONENT_NAME_PROTOCOL *This, IN CHAR8 *Language, OUT CHAR16 **DriverName)
Definition: ComponentName.c:81
EFI_STATUS EFIAPI IdeControllerSupported(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
EFI_STATUS EFIAPI IdeInitSubmitData(IN EFI_IDE_CONTROLLER_INIT_PROTOCOL *This, IN UINT8 Channel, IN UINT8 Device, IN EFI_IDENTIFY_DATA *IdentifyData)
EFI_STATUS EFIAPI IdeInitSetTiming(IN EFI_IDE_CONTROLLER_INIT_PROTOCOL *This, IN UINT8 Channel, IN UINT8 Device, IN EFI_ATA_COLLECTIVE_MODE *Modes)
EFI_STATUS EFIAPI IdeControllerStart(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
EFI_DRIVER_BINDING_PROTOCOL gIdeControllerDriverBinding
Definition: IdeController.c:16
EFI_STATUS EFIAPI IdeControllerComponentNameGetControllerName(IN EFI_COMPONENT_NAME_PROTOCOL *This, IN EFI_HANDLE ControllerHandle, IN EFI_HANDLE ChildHandle OPTIONAL, IN CHAR8 *Language, OUT CHAR16 **ControllerName)
EFI_COMPONENT_NAME2_PROTOCOL gIdeControllerComponentName2
Definition: ComponentName.c:24
EFI_STATUS EFIAPI IdeControllerStop(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN UINTN NumberOfChildren, IN EFI_HANDLE *ChildHandleBuffer)
EFI_COMPONENT_NAME_PROTOCOL gIdeControllerComponentName
Definition: ComponentName.c:15
EFI_STATUS EFIAPI IdeInitGetChannelInfo(IN EFI_IDE_CONTROLLER_INIT_PROTOCOL *This, IN UINT8 Channel, OUT BOOLEAN *Enabled, OUT UINT8 *MaxDevices)
EFI_STATUS EFIAPI IdeInitDisqualifyMode(IN EFI_IDE_CONTROLLER_INIT_PROTOCOL *This, IN UINT8 Channel, IN UINT8 Device, IN EFI_ATA_COLLECTIVE_MODE *BadModes)
EFI_STATUS EFIAPI IdeInitCalculateMode(IN EFI_IDE_CONTROLLER_INIT_PROTOCOL *This, IN UINT8 Channel, IN UINT8 Device, OUT EFI_ATA_COLLECTIVE_MODE **SupportedModes)
EFI_IDE_CONTROLLER_ENUM_PHASE
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33