Jason M. Bills | d1e4060 | 2019-05-09 11:43:51 -0700 | [diff] [blame] | 1 | /* |
| 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 | #pragma once |
| 18 | #include <peci.h> |
| 19 | |
| 20 | #include <cstdint> |
| 21 | #include <vector> |
| 22 | |
| 23 | namespace peci_pcie |
| 24 | { |
| 25 | static constexpr char const* peciPCIeObject = "xyz.openbmc_project.PCIe"; |
| 26 | static constexpr char const* peciPCIePath = "/xyz/openbmc_project/PCIe"; |
| 27 | static constexpr char const* peciPCIeDeviceInterface = |
| 28 | "xyz.openbmc_project.PCIe.Device"; |
| 29 | |
| 30 | static constexpr const int maxPCIBuses = 256; |
| 31 | static constexpr const int maxPCIDevices = 32; |
| 32 | static constexpr const int maxPCIFunctions = 8; |
| 33 | |
| 34 | static constexpr const int peciCheckInterval = 10; |
| 35 | } // namespace peci_pcie |