OpenBIC
OpenSource Bridge-IC
guid.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef GUID_H
18#define GUID_H
19
20#include "eeprom.h"
21
22enum {
28};
29
30enum {
33};
34
35uint8_t GUID_read(EEPROM_ENTRY *entry);
36uint8_t GUID_write(EEPROM_ENTRY *entry);
37
38uint8_t get_system_guid(uint16_t *data_len, uint8_t *data);
39uint8_t set_system_guid(const uint16_t *data_len, uint8_t *data);
40
41#endif
uint8_t GUID_write(EEPROM_ENTRY *entry)
Definition: guid.c:58
uint8_t set_system_guid(const uint16_t *data_len, uint8_t *data)
Definition: guid.c:92
@ GUID_READ_SUCCESS
Definition: guid.h:24
@ GUID_INVALID_ID
Definition: guid.h:25
@ GUID_OUT_OF_RANGE
Definition: guid.h:26
@ GUID_WRITE_SUCCESS
Definition: guid.h:23
@ GUID_FAIL_TO_ACCESS
Definition: guid.h:27
@ GUID_ACCESS_BYTE
Definition: guid.h:31
@ GUID_ACCESS_WORD
Definition: guid.h:32
uint8_t GUID_read(EEPROM_ENTRY *entry)
Definition: guid.c:29
uint8_t get_system_guid(uint16_t *data_len, uint8_t *data)
Definition: guid.c:87
uint16_t data_len
Definition: ipmb.h:14
uint8_t data[]
Definition: isl69259.c:2
Definition: eeprom.h:56