-
Notifications
You must be signed in to change notification settings - Fork 31
/
IpmiTransportLib.h
85 lines (58 loc) · 1.51 KB
/
IpmiTransportLib.h
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
77
78
79
80
81
82
83
84
85
/** @file
External functions and definitions for the IPMI transport layer libraries.
Copyright 1999 - 2021 Intel Corporation.
Copyright (c) Microsoft Corporation
PDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _IPMI_TRANSPORT_H
#define _IPMI_TRANSPORT_H
/**
Send data to BMC over the IPMI transport.
@param[in] IpmiTimeoutPeriod The timeout for the transaction.
@retval EFI_SUCCESS <Description>
**/
EFI_STATUS
SendDataToBmcPort (
UINT64 IpmiTimeoutPeriod,
UINT8 *Data,
UINT8 DataSize
)
/*++
Routine Description:
Send data to BMC
Arguments:
IpmiInstance - The pointer of IPMI_BMC_INSTANCE_DATA
Data - The data pointer to be sent
DataSize - The data size
Returns:
EFI_SUCCESS - Send out the data successfully
--*/
;
EFI_STATUS
ReceiveBmcDataFromPort (
UINT64 IpmiTimeoutPeriod,
UINT8 *Data,
UINT8 *DataSize
)
/*++
Routine Description:
Routine Description:
Receive data from BMC
Arguments:
IpmiInstance - The pointer of IPMI_BMC_INSTANCE_DATA
Data - The buffer pointer
DataSize - The buffer size
Returns:
EFI_SUCCESS - Received data successfully
--*/
;
/**
Initializing hardware for the IPMI transport.
@retval EFI_SUCCESS Hardware was successfully initialized.
@retval Other There was a hardware specific failure.
**/
EFI_STATUS
InitializeIpmiTransportHardware (
VOID
);
#endif