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
/** @file
  IPMI Command Library Header File.
 
  @copyright
  Copyright 2011 - 2021 Intel Corporation. <BR>
  SPDX-License-Identifier: BSD-2-Clause-Patent
**/
 
#ifndef _IPMI_BASE_LIB_H_
#define _IPMI_BASE_LIB_H_
 
//
// Prototype definitions for IPMI Library
//
/**
  Initialize the global varible with the pointer of IpmiTransport Protocol.
 
  @retval EFI_SUCCESS - Always return success
 
**/
EFI_STATUS
InitializeIpmiBase (
  VOID
  );
 
/**
  Routine to send commands to BMC.
 
  @param NetFunction       - Net function of the command
  @param Command           - IPMI Command
  @param CommandData       - Command Data
  @param CommandDataSize   - Size of CommandData
  @param ResponseData      - Response Data
  @param ResponseDataSize  - Response Data Size
 
  @retval EFI_NOT_AVAILABLE_YET - IpmiTransport Protocol is not installed yet
 
**/
EFI_STATUS
IpmiSubmitCommand (
  IN UINT8     NetFunction,
  IN UINT8     Command,
  IN UINT8     *CommandData,
  IN UINT32    CommandDataSize,
  OUT UINT8    *ResponseData,
  OUT UINT32   *ResponseDataSize
  );
 
#endif