blob: 8e63bfefa87c7dce922a32428ad427990da5ecc0 [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>;
James Feist0b236ab2019-10-02 09:09:16 -070028using Association = std::tuple<std::string, std::string, std::string>;
Feist, Jamesc95cf672019-08-29 16:10:35 -070029
30namespace mapper
31{
32constexpr const char* busName = "xyz.openbmc_project.ObjectMapper";
33constexpr const char* path = "/xyz/openbmc_project/object_mapper";
34constexpr const char* interface = "xyz.openbmc_project.ObjectMapper";
35constexpr const char* subtree = "GetSubTree";
36} // namespace mapper
37
38namespace entityManager
39{
40constexpr const char* busName = "xyz.openbmc_project.EntityManager";
41} // namespace entityManager
42
43namespace inventory
44{
45constexpr const char* interface = "xyz.openbmc_project.Inventory.Item";
46} // namespace inventory
47
48namespace hsbp
49{
50enum class registers : uint8_t
51{
52 fpgaIdH = 0x0,
53 fpgaIdL = 0x1,
54 typeId = 0x2,
55 bootVer = 0x3,
56 fpgaVer = 0x4,
57 securityRev = 0x5,
58 funSupported = 0x6,
59 numDisks = 0x7,
60 presence = 0x8,
61 ssdIFDET = 0x9,
62 ifdetPart = 0xA,
63 statusLocate = 0xB,
64 statusFail = 0xC,
65 statusRebuild = 0xD,
66 ledOverride = 0xE,
67 ledStatus = 0xF,
68 ledPattern0 = 0x10,
69 ledPattern1 = 0x11,
70 ledPattern2 = 0x12,
71 ledPattern3 = 0x13,
72 ledPattern4 = 0x14,
73 ledPattern5 = 0x15,
74 ledPattern6 = 0x16,
75 ledPattern7 = 0x17,
76};
77
78} // namespace hsbp