TianoCore EDK2 master
Loading...
Searching...
No Matches
I2cDxe.c
Go to the documentation of this file.
1
9#include "I2cDxe.h"
10
22EFIAPI
24 IN EFI_HANDLE ImageHandle,
25 IN EFI_SYSTEM_TABLE *SystemTable
26 )
27{
28 EFI_STATUS Status;
29
30 //
31 // Install driver model protocol(s).
32 //
33 Status = InitializeI2cHost (ImageHandle, SystemTable);
34 if ( !EFI_ERROR (Status)) {
35 Status = InitializeI2cBus (ImageHandle, SystemTable);
36 }
37
38 return Status;
39}
40
54EFIAPI
56 IN EFI_HANDLE ImageHandle
57 )
58{
59 EFI_STATUS Status;
60
61 //
62 // Disconnect the drivers
63 //
64 Status = I2cBusUnload (ImageHandle);
65 if ( !EFI_ERROR (Status)) {
66 Status = I2cHostUnload (ImageHandle);
67 }
68
69 return Status;
70}
EFI_STATUS EFIAPI I2cBusUnload(IN EFI_HANDLE ImageHandle)
Definition: I2cBus.c:1409
EFI_STATUS EFIAPI InitializeI2cBus(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
Definition: I2cBus.c:1372
EFI_STATUS EFIAPI I2cUnload(IN EFI_HANDLE ImageHandle)
Definition: I2cDxe.c:55
EFI_STATUS EFIAPI InitializeI2c(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
Definition: I2cDxe.c:23
EFI_STATUS EFIAPI I2cHostUnload(IN EFI_HANDLE ImageHandle)
Definition: I2cHost.c:1125
EFI_STATUS EFIAPI InitializeI2cHost(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
Definition: I2cHost.c:1089
#define IN
Definition: Base.h:279
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33