blob: b837d7c580da32c89ef4e87abed33629dfacd712 [file] [log] [blame]
Matt Spinlerdf13bdb2019-07-10 16:54:13 -05001#pragma once
Patrick Williamsfa2d9622024-09-30 16:25:43 -04002#include "../../paths.hpp"
3
Matt Spinlerdf13bdb2019-07-10 16:54:13 -05004#include <filesystem>
5
6namespace openpower
7{
8namespace pels
9{
10
11/**
12 * @brief Returns the path to the PEL ID file
13 */
14std::filesystem::path getPELIDFile();
15
Matt Spinler89fa0822019-07-17 13:54:30 -050016/**
17 * @brief Returns the path to the PEL repository
18 */
19std::filesystem::path getPELRepoPath();
20
Matt Spinler367144c2019-09-19 15:33:52 -050021/**
Matt Spinler0d804ef2020-05-12 16:16:26 -050022 * @brief Returns the path to the read only data directory
Matt Spinler367144c2019-09-19 15:33:52 -050023 */
Matt Spinler0d804ef2020-05-12 16:16:26 -050024std::filesystem::path getPELReadOnlyDataPath();
Matt Spinler8d5f3a22020-07-07 10:30:33 -050025
26/**
27 * @brief Returns the maximum size in bytes allocated to store PELs.
28 *
29 * This is still in paths.c/hpp even though it doesn't return a path
30 * because this file is easy to override when testing.
31 *
32 * @return size_t The maximum size in bytes to use for storing PELs.
33 */
34size_t getPELRepoSize();
35
36/**
37 * @brief Returns the maximum number of PELs allowed
38 *
39 * This is still in paths.c/hpp even though it doesn't return a path
40 * because this file is easy to override when testing.
41 *
42 * @return size_t The maximum number of PELs to allow in the repository.
43 */
44size_t getMaxNumPELs();
45
Matt Spinlerdf13bdb2019-07-10 16:54:13 -050046} // namespace pels
47} // namespace openpower