Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
43b97eda
Commit
43b97eda
authored
Apr 13, 2016
by
danh-arm
Browse files
Merge pull request #590 from yatharth-arm/yk/tzc400
Use unsigned long long instead of uintptr_t in TZC400/DMC500 drivers
parents
72c1dc14
9fbdb802
Changes
5
Show whitespace changes
Inline
Side-by-side
drivers/arm/tzc/tzc400.c
View file @
43b97eda
...
@@ -191,8 +191,8 @@ void tzc400_configure_region0(tzc_region_attributes_t sec_attr,
...
@@ -191,8 +191,8 @@ void tzc400_configure_region0(tzc_region_attributes_t sec_attr,
*/
*/
void
tzc400_configure_region
(
unsigned
int
filters
,
void
tzc400_configure_region
(
unsigned
int
filters
,
int
region
,
int
region
,
u
intptr_t
region_base
,
u
nsigned
long
long
region_base
,
u
intptr_t
region_top
,
u
nsigned
long
long
region_top
,
tzc_region_attributes_t
sec_attr
,
tzc_region_attributes_t
sec_attr
,
unsigned
int
nsaid_permissions
)
unsigned
int
nsaid_permissions
)
{
{
...
...
drivers/arm/tzc/tzc_common_private.c
View file @
43b97eda
...
@@ -44,40 +44,40 @@
...
@@ -44,40 +44,40 @@
static inline void _tzc##fn_name##_write_region_base( \
static inline void _tzc##fn_name##_write_region_base( \
uintptr_t base, \
uintptr_t base, \
int region_no, \
int region_no, \
uintptr_t
region_base) \
unsigned long long
region_base) \
{ \
{ \
mmio_write_32(base + \
mmio_write_32(base + \
TZC_REGION_OFFSET( \
TZC_REGION_OFFSET( \
TZC_##macro_name##_REGION_SIZE, \
TZC_##macro_name##_REGION_SIZE, \
region_no) + \
region_no) + \
TZC_##macro_name##_REGION_BASE_LOW_0_OFFSET, \
TZC_##macro_name##_REGION_BASE_LOW_0_OFFSET, \
(u
nsigned in
t)region_base); \
(u
int32_
t)region_base);
\
mmio_write_32(base + \
mmio_write_32(base + \
TZC_REGION_OFFSET( \
TZC_REGION_OFFSET( \
TZC_##macro_name##_REGION_SIZE, \
TZC_##macro_name##_REGION_SIZE, \
region_no) + \
region_no) + \
TZC_##macro_name##_REGION_BASE_HIGH_0_OFFSET, \
TZC_##macro_name##_REGION_BASE_HIGH_0_OFFSET, \
(u
nsigned in
t)(region_base >> 32)); \
(u
int32_
t)(region_base >> 32));
\
}
}
#define DEFINE_TZC_COMMON_WRITE_REGION_TOP(fn_name, macro_name) \
#define DEFINE_TZC_COMMON_WRITE_REGION_TOP(fn_name, macro_name) \
static inline void _tzc##fn_name##_write_region_top( \
static inline void _tzc##fn_name##_write_region_top( \
uintptr_t base, \
uintptr_t base, \
int region_no, \
int region_no, \
uintptr_t
region_top) \
unsigned long long
region_top) \
{ \
{ \
mmio_write_32(base + \
mmio_write_32(base + \
TZC_REGION_OFFSET \
TZC_REGION_OFFSET \
(TZC_##macro_name##_REGION_SIZE, \
(TZC_##macro_name##_REGION_SIZE, \
region_no) + \
region_no) + \
TZC_##macro_name##_REGION_TOP_LOW_0_OFFSET, \
TZC_##macro_name##_REGION_TOP_LOW_0_OFFSET, \
(u
nsigned in
t)region_top); \
(u
int32_
t)region_top); \
mmio_write_32(base + \
mmio_write_32(base + \
TZC_REGION_OFFSET( \
TZC_REGION_OFFSET( \
TZC_##macro_name##_REGION_SIZE, \
TZC_##macro_name##_REGION_SIZE, \
region_no) + \
region_no) + \
TZC_##macro_name##_REGION_TOP_HIGH_0_OFFSET, \
TZC_##macro_name##_REGION_TOP_HIGH_0_OFFSET, \
(u
nsigned in
t)(region_top >> 32)); \
(u
int32_
t)(region_top >> 32)); \
}
}
#define DEFINE_TZC_COMMON_WRITE_REGION_ATTRIBUTES(fn_name, macro_name) \
#define DEFINE_TZC_COMMON_WRITE_REGION_ATTRIBUTES(fn_name, macro_name) \
...
@@ -146,8 +146,8 @@
...
@@ -146,8 +146,8 @@
void _tzc##fn_name##_configure_region(uintptr_t base, \
void _tzc##fn_name##_configure_region(uintptr_t base, \
unsigned int filters, \
unsigned int filters, \
int region_no, \
int region_no, \
u
intptr_t
region_base,
\
u
nsigned long long
region_base, \
u
intptr_t
region_top,
\
u
nsigned long long
region_top, \
tzc_region_attributes_t sec_attr, \
tzc_region_attributes_t sec_attr, \
unsigned int nsaid_permissions) \
unsigned int nsaid_permissions) \
{ \
{ \
...
@@ -155,8 +155,8 @@
...
@@ -155,8 +155,8 @@
VERBOSE("TrustZone : Configuring region " \
VERBOSE("TrustZone : Configuring region " \
"(TZC Interface Base: %p, region_no = %d)" \
"(TZC Interface Base: %p, region_no = %d)" \
"...\n", (void *)base, region_no); \
"...\n", (void *)base, region_no); \
VERBOSE("TrustZone : ... base = %
p
, top = %
p
,"
\
VERBOSE("TrustZone : ... base = %
llx
, top = %
llx
," \
"\n",
(void *)
region_base,
(void *)
region_top);\
"\n", region_base, region_top);\
VERBOSE("TrustZone : ... sec_attr = 0x%x," \
VERBOSE("TrustZone : ... sec_attr = 0x%x," \
" ns_devs = 0x%x)\n", \
" ns_devs = 0x%x)\n", \
sec_attr, nsaid_permissions); \
sec_attr, nsaid_permissions); \
...
...
drivers/arm/tzc/tzc_dmc500.c
View file @
43b97eda
...
@@ -196,8 +196,8 @@ void tzc_dmc500_configure_region0(tzc_region_attributes_t sec_attr,
...
@@ -196,8 +196,8 @@ void tzc_dmc500_configure_region0(tzc_region_attributes_t sec_attr,
* for this region (see comment for that function).
* for this region (see comment for that function).
*/
*/
void
tzc_dmc500_configure_region
(
int
region_no
,
void
tzc_dmc500_configure_region
(
int
region_no
,
u
intptr_t
region_base
,
u
nsigned
long
long
region_base
,
u
intptr_t
region_top
,
u
nsigned
long
long
region_top
,
tzc_region_attributes_t
sec_attr
,
tzc_region_attributes_t
sec_attr
,
unsigned
int
nsaid_permissions
)
unsigned
int
nsaid_permissions
)
{
{
...
...
include/drivers/arm/tzc400.h
View file @
43b97eda
...
@@ -139,8 +139,8 @@ void tzc400_configure_region0(tzc_region_attributes_t sec_attr,
...
@@ -139,8 +139,8 @@ void tzc400_configure_region0(tzc_region_attributes_t sec_attr,
unsigned
int
ns_device_access
);
unsigned
int
ns_device_access
);
void
tzc400_configure_region
(
unsigned
int
filters
,
void
tzc400_configure_region
(
unsigned
int
filters
,
int
region
,
int
region
,
u
intptr_t
region_base
,
u
nsigned
long
long
region_base
,
u
intptr_t
region_top
,
u
nsigned
long
long
region_top
,
tzc_region_attributes_t
sec_attr
,
tzc_region_attributes_t
sec_attr
,
unsigned
int
ns_device_access
);
unsigned
int
ns_device_access
);
void
tzc400_set_action
(
tzc_action_t
action
);
void
tzc400_set_action
(
tzc_action_t
action
);
...
@@ -157,8 +157,8 @@ static inline void tzc_configure_region0(
...
@@ -157,8 +157,8 @@ static inline void tzc_configure_region0(
static
inline
void
tzc_configure_region
(
static
inline
void
tzc_configure_region
(
unsigned
int
filters
,
unsigned
int
filters
,
int
region
,
int
region
,
u
intptr_t
region_base
,
u
nsigned
long
long
region_base
,
u
intptr_t
region_top
,
u
nsigned
long
long
region_top
,
tzc_region_attributes_t
sec_attr
,
tzc_region_attributes_t
sec_attr
,
unsigned
int
ns_device_access
)
__deprecated
;
unsigned
int
ns_device_access
)
__deprecated
;
static
inline
void
tzc_set_action
(
tzc_action_t
action
)
__deprecated
;
static
inline
void
tzc_set_action
(
tzc_action_t
action
)
__deprecated
;
...
@@ -180,8 +180,8 @@ static inline void tzc_configure_region0(
...
@@ -180,8 +180,8 @@ static inline void tzc_configure_region0(
static
inline
void
tzc_configure_region
(
static
inline
void
tzc_configure_region
(
unsigned
int
filters
,
unsigned
int
filters
,
int
region
,
int
region
,
u
intptr_t
region_base
,
u
nsigned
long
long
region_base
,
u
intptr_t
region_top
,
u
nsigned
long
long
region_top
,
tzc_region_attributes_t
sec_attr
,
tzc_region_attributes_t
sec_attr
,
unsigned
int
ns_device_access
)
unsigned
int
ns_device_access
)
{
{
...
...
include/drivers/arm/tzc_dmc500.h
View file @
43b97eda
...
@@ -160,8 +160,8 @@ void tzc_dmc500_driver_init(const tzc_dmc500_driver_data_t *plat_driver_data);
...
@@ -160,8 +160,8 @@ void tzc_dmc500_driver_init(const tzc_dmc500_driver_data_t *plat_driver_data);
void
tzc_dmc500_configure_region0
(
tzc_region_attributes_t
sec_attr
,
void
tzc_dmc500_configure_region0
(
tzc_region_attributes_t
sec_attr
,
unsigned
int
nsaid_permissions
);
unsigned
int
nsaid_permissions
);
void
tzc_dmc500_configure_region
(
int
region_no
,
void
tzc_dmc500_configure_region
(
int
region_no
,
u
intptr_t
region_base
,
u
nsigned
long
long
region_base
,
u
intptr_t
region_top
,
u
nsigned
long
long
region_top
,
tzc_region_attributes_t
sec_attr
,
tzc_region_attributes_t
sec_attr
,
unsigned
int
nsaid_permissions
);
unsigned
int
nsaid_permissions
);
void
tzc_dmc500_set_action
(
tzc_action_t
action
);
void
tzc_dmc500_set_action
(
tzc_action_t
action
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment