OpenBIC
OpenSource Bridge-IC
xdpe15284.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 XDPE15284_H
18#define XDPE15284_H
19
23};
24
27 // XDPE15284 Disable all writes except the WRITE_PROTECT, OPERATION, PAGE, ON_OFF_CONFIG, and VOUT_COMMAND commands
29 // XDPE15284 Disable all writes except the WRITE_PROTECT, OPERATION, and PAGE commands
31 // XDPE15284 Disable all writes except the WRITE_PROTECT command
33};
34
44};
45
46bool xdpe15284_get_checksum(uint8_t bus, uint8_t addr, uint8_t *checksum);
47bool xdpe15284_lock_reg(uint8_t bus, uint8_t addr);
48bool xdpe15284_unlock_reg(uint8_t bus, uint8_t addr);
49bool xdpe15284_get_remaining_wr(uint8_t bus, uint8_t addr, uint8_t *data);
50bool xdpe15284_enable_write_protect(uint8_t bus, uint8_t addr);
51bool xdpe15284_disable_write_protect(uint8_t bus, uint8_t addr);
53bool xdpe15284_fwupdate(uint8_t bus, uint8_t addr, uint8_t *img_buff, uint32_t img_size);
54bool xdpe15284_get_status_byte(uint8_t bus, uint8_t addr, uint8_t *data);
55bool xdpe15284_set_write_protect(uint8_t bus, uint8_t addr, uint8_t option);
56
57#endif
uint32_t val
Definition: plat_util.c:40
uint8_t data[]
Definition: isl69259.c:2
uint8_t addr
Definition: isl69259.c:0
uint32_t checksum
Definition: ncsi.h:0
bool xdpe15284_lock_reg(uint8_t bus, uint8_t addr)
Definition: xdpe15284.c:411
bool xdpe15284_get_checksum(uint8_t bus, uint8_t addr, uint8_t *checksum)
Definition: xdpe15284.c:280
bool xdpe15284_set_write_protect(uint8_t bus, uint8_t addr, uint8_t option)
Definition: xdpe15284.c:164
bool xdpe15284_fwupdate(uint8_t bus, uint8_t addr, uint8_t *img_buff, uint32_t img_size)
Definition: xdpe15284.c:803
XDPE15284_STATUS_BIT
Definition: xdpe15284.h:35
@ XDPE15284_OUTPUT_OFF_BIT
Definition: xdpe15284.h:42
@ XDPE15284_UNDER_VOLTAGE_FAULT_BIT
Definition: xdpe15284.h:39
@ XDPE15284_OVER_VOLTAGE_FAULT_BIT
Definition: xdpe15284.h:41
@ XDPE15284_NONE_OF_ABOVE
Definition: xdpe15284.h:36
@ XDPE15284_COMMUNICATION_MEMORY_LOGIC_BIT
Definition: xdpe15284.h:37
@ XDPE15284_OVER_CURRENT_FAULT_BIT
Definition: xdpe15284.h:40
@ XDPE15284_BUSY_BIT
Definition: xdpe15284.h:43
@ XDPE15284_TEMPERATURE_FAULT_BIT
Definition: xdpe15284.h:38
bool xdpe15284_get_status_byte(uint8_t bus, uint8_t addr, uint8_t *data)
Definition: xdpe15284.c:333
XDPE15284_WRITE_PROTECT_OPTIONAL
Definition: xdpe15284.h:20
@ XDPE15284_DISABLE_WRITE_PROTECT
Definition: xdpe15284.h:22
@ XDPE15284_ENABLE_WRITE_PROTECT
Definition: xdpe15284.h:21
bool xdpe15284_unlock_reg(uint8_t bus, uint8_t addr)
Definition: xdpe15284.c:433
bool xdpe15284_disable_write_protect(uint8_t bus, uint8_t addr)
void xdpe15284_set_write_protect_default_val(uint8_t val)
Definition: xdpe15284.c:178
bool xdpe15284_get_remaining_wr(uint8_t bus, uint8_t addr, uint8_t *data)
Definition: xdpe15284.c:306
bool xdpe15284_enable_write_protect(uint8_t bus, uint8_t addr)
XDPE15284_WRITE_PROTECT_REG_VAL
Definition: xdpe15284.h:25
@ XDPE15284_DISABLE_WRITE_PROTECT_VAL
Definition: xdpe15284.h:26
@ XDPE15284_DISABLE_ALL_WRITE_EXCEPT_WRITE_PROTECT_VAL
Definition: xdpe15284.h:32
@ XDPE15284_DISABLE_ALL_WRITE_EXCEPT_FIVE_COMMANDS_VAL
Definition: xdpe15284.h:28
@ XDPE15284_DISABLE_ALL_WRITE_EXCEPT_THREE_COMMANDS_VAL
Definition: xdpe15284.h:30