blob: 52a5ff0c3d362cf32f48bf6a1b752c7adde83883 (
plain)
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
|
/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/occ_405/wof/wof.h $ */
/* */
/* OpenPOWER OnChipController Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2016,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
/* you may not use this file except in compliance with the License. */
/* You may obtain a copy of the License at */
/* */
/* http://www.apache.org/licenses/LICENSE-2.0 */
/* */
/* Unless required by applicable law or agreed to in writing, software */
/* distributed under the License is distributed on an "AS IS" BASIS, */
/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
/* implied. See the License for the specific language governing */
/* permissions and limitations under the License. */
/* */
/* IBM_PROLOG_END_TAG */
#ifndef _WOF_H
#define _WOF_H
//******************************************************************************
// Define
//******************************************************************************
#define MIN_BCE_REQ_SIZE 256
#define ACTIVE_QUAD_SZ_MIN 1
#define ACTIVE_QUAD_SZ_MAX 6
typedef struct __attribute__ ((packed))
{
uint64_t magic_number;
uint8_t size_of_vfrt;
uint8_t vfrt_data_size;
uint8_t active_quads_start;
uint8_t active_quads_size;
uint8_t vdn_start;
uint8_t vdn_step;
uint8_t vdn_size;
uint8_t vdd_start;
uint8_t vdd_step;
uint8_t vdd_size;
} wof_header_data_t;
typedef struct
{
// There is no guarantee that we can fit everything into the min BceRequest
// size of 128 given that there may be a need to padding in the event the
// Main Memory address is not 128-byte aligned. The data here is 256 to
// ensure we have enough room for any and all padding that may be needed.
uint8_t data[MIN_BCE_REQ_SIZE];
} temp_bce_request_buffer_t __attribute ((aligned(128)));
//******************************************************************************
// Function Prototypes
//******************************************************************************
void wof_main( void );
uint16_t calculate_step_from_start( uint16_t i_ceff_vdx,
uint8_t i_step_size,
uint8_t i_min_step,
uint8_t i_max_step );
uint8_t calc_quad_step_from_start( uint8_t i_num_active_quads );
#endif
|