OpenBIC
OpenSource Bridge-IC
snoop.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 SNOOP_H
18#define SNOOP_H
19
20#ifdef CONFIG_SNOOP_ASPEED
21
22#define SENDPOSTCODE_STACK_SIZE 2048
23#define SNOOP_STACK_SIZE 512
24#define SNOOP_MAX_LEN 244
25
26enum POSTCODE_COPY_TYPES {
27 COPY_ALL_POSTCODE,
28 COPY_SPECIFIC_POSTCODE,
29};
30
31extern int snoop_read_num;
32void copy_snoop_read_buffer(uint8_t offset, int size_num, uint8_t *buffer, uint8_t copy_mode);
33bool get_postcode_ok();
34void reset_postcode_ok();
35void init_snoop_thread();
36void abort_snoop_thread();
37void init_send_postcode_thread();
38
39#endif
40
41#endif
ipmi_msg buffer
Definition: ipmb.h:0
uint32_t offset
Definition: pldm_firmware_update.h:0