hc
2024-03-25 edb30157bad0c0001c32b854271ace01d3b9a16a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/** @file
  A Null Library to support all BMC access via IPMI command.
 
  @copyright
  Copyright 2011 - 2021 Intel Corporation. <BR>
  SPDX-License-Identifier: BSD-2-Clause-Patent
**/
 
#include <Library/BaseLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/DxeServicesLib.h>
#include <Library/DebugLib.h>
#include <Library/IpmiBaseLib.h>
#include <Ppi/IpmiTransportPpi.h>
 
/**
 
  Initialize the global varible with the pointer of IpmiTransport Protocol
 
  @retval EFI_SUCCESS Always return success.
 
**/
EFI_STATUS
InitializeIpmiBase (
  VOID
  )
{
  return EFI_SUCCESS;
}
 
/**
  Routine to send commands to BMC.
  @param [in]   NetFunction        Net function of the command
  @param [in]   Command            IPMI Command
  @param [in]   CommandData        Command Data
  @param [in]   CommandDataSize    Size of CommandData
  @param [out]  ResponseData       Response Data
  @param [out]  ResponseDataSize   Response Data Size
 
  @retval EFI_SUCCESS            Restart Successly.
  @retval EFI_NOT_AVAILABLE_YET  IpmiTransport Protocol is not installed yet.
  @retval Other                  Failure.
 
**/
EFI_STATUS
IpmiSubmitCommand (
  IN UINT8     NetFunction,
  IN UINT8     Command,
  IN UINT8     *CommandData,
  IN UINT32    CommandDataSize,
  OUT UINT8    *ResponseData,
  OUT UINT32   *ResponseDataSize
  )
{
  return EFI_SUCCESS;
}
 
/**
  Routine to send commands to BMC.
  @param [out] BmcStatus   A pointer to BMC_STATUS.
  @param [out] ComAddress  A pointer to SM_COM_ADDRESS.
 
  @retval EFI_SUCCESS  Restart Successly.
  @retval EFI_NOT_AVAILABLE_YET - IpmiTransport Protocol is not installed yet.
  @retval Other        Failure.
 
**/
EFI_STATUS
GetBmcStatus (
  OUT BMC_STATUS                         *BmcStatus,
  OUT SM_COM_ADDRESS                     *ComAddress
  )
{
  return EFI_SUCCESS;
}