blob: c52ff0a0d5db959339e9019ffae474810cb01ab8 [file] [log] [blame]
Sheetal Tigadoli58a9eca2019-12-18 20:05:09 +05301/*
2 * Copyright (c) 2017 - 2020, Broadcom
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef FSX_H
8#define FSX_H
9
10#include <stdbool.h>
11
12typedef enum FSX_TYPE {
13 eFS4_RAID,
14 eFS4_CRYPTO,
15 eFS6_PKI,
16} eFSX_TYPE;
17
18void fsx_init(eFSX_TYPE fsx_type,
19 unsigned int ring_count,
20 unsigned int dme_count,
21 unsigned int ae_count,
22 unsigned int start_stream_id,
23 unsigned int msi_dev_id,
24 uintptr_t idm_io_control_direct,
25 uintptr_t idm_reset_control,
26 uintptr_t base,
27 uintptr_t dme_base);
28
29void fsx_meminit(const char *name,
30 uintptr_t idm_io_control_direct,
31 uintptr_t idm_io_status);
32
33void fs4_disable_clocks(bool disable_sram,
34 bool disable_crypto,
35 bool disable_raid);
36
37#endif /* FSX_H */