blob: eec2cd692bd030c36af2baceaf463b1e582b40a0 [file] [log] [blame]
Feist, Jamesc95cf672019-08-29 16:10:35 -07001/*
2// Copyright (c) 2019 Intel Corporation
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#include <cstdint>
18#include <string>
19#include <variant>
20#include <vector>
21
22using GetSubTreeType = std::vector<
23 std::pair<std::string,
24 std::vector<std::pair<std::string, std::vector<std::string>>>>>;
25using BasicVariantType =
26 std::variant<std::vector<std::string>, std::string, int64_t, uint64_t,
27 double, int32_t, uint32_t, int16_t, uint16_t, uint8_t, bool>;
28
29namespace mapper
30{
31constexpr const char* busName = "xyz.openbmc_project.ObjectMapper";
32constexpr const char* path = "/xyz/openbmc_project/object_mapper";
33constexpr const char* interface = "xyz.openbmc_project.ObjectMapper";
34constexpr const char* subtree = "GetSubTree";
35} // namespace mapper
36
37namespace entityManager
38{
39constexpr const char* busName = "xyz.openbmc_project.EntityManager";
40} // namespace entityManager
41
42namespace inventory
43{
44constexpr const char* interface = "xyz.openbmc_project.Inventory.Item";
45} // namespace inventory
46
47namespace hsbp
48{
49enum class registers : uint8_t
50{
51 fpgaIdH = 0x0,
52 fpgaIdL = 0x1,
53 typeId = 0x2,
54 bootVer = 0x3,
55 fpgaVer = 0x4,
56 securityRev = 0x5,
57 funSupported = 0x6,
58 numDisks = 0x7,
59 presence = 0x8,
60 ssdIFDET = 0x9,
61 ifdetPart = 0xA,
62 statusLocate = 0xB,
63 statusFail = 0xC,
64 statusRebuild = 0xD,
65 ledOverride = 0xE,
66 ledStatus = 0xF,
67 ledPattern0 = 0x10,
68 ledPattern1 = 0x11,
69 ledPattern2 = 0x12,
70 ledPattern3 = 0x13,
71 ledPattern4 = 0x14,
72 ledPattern5 = 0x15,
73 ledPattern6 = 0x16,
74 ledPattern7 = 0x17,
75};
76
77} // namespace hsbp