bdk: add missing header guards

This commit is contained in:
CTCaer
2026-01-29 09:07:22 +02:00
parent 0b41f8129c
commit b297e58bc8
4 changed files with 14 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
/*
* Copyright (c) 2018 naehrwert
* Copyright (c) 2018-2025 CTCaer
* Copyright (c) 2018-2026 CTCaer
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,

View File

@@ -15,10 +15,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <utils/types.h>
#ifndef _SMMU_H_
#define _SMMU_H_
#include <assert.h>
#define MC_SMMU_AVPC_ASID 0x23C
#define MC_SMMU_TSEC_ASID 0x294
@@ -70,3 +73,5 @@ void smmu_deinit_domain(u32 dev_base, u32 asid);
void smmu_domain_bypass(u32 dev_base, bool bypass);
void smmu_map(void *ptb, u32 iova, u64 iopa, u32 pages, u32 attr);
void smmu_map_huge(void *ptb, u32 iova, u64 iopa, u32 regions, u32 attr);
#endif

View File

@@ -51,7 +51,7 @@ typedef enum
BPMP_CLK_SUPER_BOOST, // 576MHz 41% - 144MHz APB.
BPMP_CLK_HYPER_BOOST, // 589MHz 44% - 147MHz APB.
//BPMP_CLK_DEV_BOOST, // 608MHz 49% - 152MHz APB.
BPMP_CLK_NUM
BPMP_CLK_NUM
} bpmp_freq_t;
typedef enum

View File

@@ -16,6 +16,9 @@
#include <utils/types.h>
#ifndef _DIRLIST_H_
#define _DIRLIST_H_
#define DIR_MAX_ENTRIES 64
#define DIR_SHOW_HIDDEN BIT(0)
@@ -29,3 +32,5 @@ typedef struct _dirlist_t
} dirlist_t;
dirlist_t *dirlist(const char *directory, const char *pattern, u32 flags);
#endif