blob: ab1a1be5af6f7d5a0fa60451169017dc96a4b2d3 [file] [log] [blame]
Julian Hall8cff2b82020-11-23 18:12:17 +01001/*
julhal013ec4c322021-02-05 17:30:49 +00002 * Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved.
Julian Hall8cff2b82020-11-23 18:12:17 +01003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#include <service_locator.h>
8#include <service/locator/standalone/services/crypto/crypto_service_context.h>
julhal013a4207d2021-03-08 13:32:08 +00009#include <service/locator/standalone/services/internal-trusted-storage/its_service_context.h>
10#include <service/locator/standalone/services/protected-storage/ps_service_context.h>
julhal013ec4c322021-02-05 17:30:49 +000011#include <service/locator/standalone/services/test-runner/test_runner_service_context.h>
Julian Hall700aa362021-05-13 15:30:39 +010012#include <service/locator/standalone/services/attestation/attestation_service_context.h>
Julian Hall8cff2b82020-11-23 18:12:17 +010013#include "standalone_location_strategy.h"
14#include "standalone_service_registry.h"
15
16void service_locator_envinit(void)
17{
18 static crypto_service_context crypto_context("sn:trustedfirmware.org:crypto:0");
19 standalone_service_registry::instance()->regsiter_service_instance(&crypto_context);
julhal013ec4c322021-02-05 17:30:49 +000020
julhal013a4207d2021-03-08 13:32:08 +000021 static its_service_context its_service_context("sn:trustedfirmware.org:internal-trusted-storage:0");
22 standalone_service_registry::instance()->regsiter_service_instance(&its_service_context);
23
24 static ps_service_context ps_service_context("sn:trustedfirmware.org:protected-storage:0");
25 standalone_service_registry::instance()->regsiter_service_instance(&ps_service_context);
26
julhal013ec4c322021-02-05 17:30:49 +000027 static test_runner_service_context test_runner_context("sn:trustedfirmware.org:test-runner:0");
28 standalone_service_registry::instance()->regsiter_service_instance(&test_runner_context);
29
Julian Hall700aa362021-05-13 15:30:39 +010030 static attestation_service_context attestation_context("sn:trustedfirmware.org:attestation:0");
31 standalone_service_registry::instance()->regsiter_service_instance(&attestation_context);
32
Julian Hall8cff2b82020-11-23 18:12:17 +010033 service_locator_register_strategy(standalone_location_strategy());
julhal013a4207d2021-03-08 13:32:08 +000034}