diff options
Diffstat (limited to 'big-little/include')
-rw-r--r-- | big-little/include/arm.h | 14 | ||||
-rw-r--r-- | big-little/include/bakery.h | 16 | ||||
-rw-r--r-- | big-little/include/bl.h | 14 | ||||
-rw-r--r-- | big-little/include/context.h | 14 | ||||
-rw-r--r-- | big-little/include/events.h | 18 | ||||
-rw-r--r-- | big-little/include/gic_registers.h | 176 | ||||
-rw-r--r-- | big-little/include/handler.h | 14 | ||||
-rw-r--r-- | big-little/include/hvc.h | 14 | ||||
-rw-r--r-- | big-little/include/hyp_types.h | 14 | ||||
-rw-r--r-- | big-little/include/hyp_vmmap.h | 14 | ||||
-rw-r--r-- | big-little/include/int_master.h | 16 | ||||
-rw-r--r-- | big-little/include/misc.h | 30 | ||||
-rw-r--r-- | big-little/include/traps.h | 14 | ||||
-rw-r--r-- | big-little/include/vgiclib.h | 14 | ||||
-rw-r--r-- | big-little/include/virt_helpers.h | 14 |
15 files changed, 198 insertions, 198 deletions
diff --git a/big-little/include/arm.h b/big-little/include/arm.h index 4f33cb5..7112cbc 100644 --- a/big-little/include/arm.h +++ b/big-little/include/arm.h @@ -1,23 +1,23 @@ /* * Copyright (c) 2012, ARM Limited. All rights reserved. - * + * * Redistribution and use in source and binary forms, with * or without modification, are permitted provided that the * following conditions are met: - * + * * Redistributions of source code must retain the above - * copyright notice, this list of conditions and the + * copyright notice, this list of conditions and the * following disclaimer. * * Redistributions in binary form must reproduce the - * above copyright notice, this list of conditions and - * the following disclaimer in the documentation + * above copyright notice, this list of conditions and + * the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of ARM nor the names of its * contributors may be used to endorse or promote products * derived from this software without specific prior written - * permission. + * permission. */ #ifndef ARM_H diff --git a/big-little/include/bakery.h b/big-little/include/bakery.h index 261acf3..cb37d38 100644 --- a/big-little/include/bakery.h +++ b/big-little/include/bakery.h @@ -1,30 +1,30 @@ /* * Copyright (c) 2012, ARM Limited. All rights reserved. - * + * * Redistribution and use in source and binary forms, with * or without modification, are permitted provided that the * following conditions are met: - * + * * Redistributions of source code must retain the above - * copyright notice, this list of conditions and the + * copyright notice, this list of conditions and the * following disclaimer. * * Redistributions in binary form must reproduce the - * above copyright notice, this list of conditions and - * the following disclaimer in the documentation + * above copyright notice, this list of conditions and + * the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of ARM nor the names of its * contributors may be used to endorse or promote products * derived from this software without specific prior written - * permission. + * permission. */ #ifndef _BAKERY_H_ #define _BAKERY_H_ #define MAX_CPUS 4 -/* +/* * Bakery structure - declare/allocate one of these for each lock. * A pointer to this struct is passed to the lock/unlock functions. */ diff --git a/big-little/include/bl.h b/big-little/include/bl.h index 94e2fb0..eb5b11a 100644 --- a/big-little/include/bl.h +++ b/big-little/include/bl.h @@ -1,23 +1,23 @@ /* * Copyright (c) 2012, ARM Limited. All rights reserved. - * + * * Redistribution and use in source and binary forms, with * or without modification, are permitted provided that the * following conditions are met: - * + * * Redistributions of source code must retain the above - * copyright notice, this list of conditions and the + * copyright notice, this list of conditions and the * following disclaimer. * * Redistributions in binary form must reproduce the - * above copyright notice, this list of conditions and - * the following disclaimer in the documentation + * above copyright notice, this list of conditions and + * the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of ARM nor the names of its * contributors may be used to endorse or promote products * derived from this software without specific prior written - * permission. + * permission. */ #ifndef __BL_H__ diff --git a/big-little/include/context.h b/big-little/include/context.h index 4620393..38e591a 100644 --- a/big-little/include/context.h +++ b/big-little/include/context.h @@ -1,23 +1,23 @@ /* * Copyright (c) 2012, ARM Limited. All rights reserved. - * + * * Redistribution and use in source and binary forms, with * or without modification, are permitted provided that the * following conditions are met: - * + * * Redistributions of source code must retain the above - * copyright notice, this list of conditions and the + * copyright notice, this list of conditions and the * following disclaimer. * * Redistributions in binary form must reproduce the - * above copyright notice, this list of conditions and - * the following disclaimer in the documentation + * above copyright notice, this list of conditions and + * the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of ARM nor the names of its * contributors may be used to endorse or promote products * derived from this software without specific prior written - * permission. + * permission. */ #ifndef __CONTEXT_H__ diff --git a/big-little/include/events.h b/big-little/include/events.h index 4adc856..aa96098 100644 --- a/big-little/include/events.h +++ b/big-little/include/events.h @@ -1,23 +1,23 @@ /* * Copyright (c) 2012, ARM Limited. All rights reserved. - * + * * Redistribution and use in source and binary forms, with * or without modification, are permitted provided that the * following conditions are met: - * + * * Redistributions of source code must retain the above - * copyright notice, this list of conditions and the + * copyright notice, this list of conditions and the * following disclaimer. * * Redistributions in binary form must reproduce the - * above copyright notice, this list of conditions and - * the following disclaimer in the documentation + * above copyright notice, this list of conditions and + * the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of ARM nor the names of its * contributors may be used to endorse or promote products * derived from this software without specific prior written - * permission. + * permission. */ #ifndef __EVENTS_H__ @@ -44,12 +44,12 @@ /* Cores have finished performing inbound headstart specific initialisation */ #define HS_DONE 6 /* - * Holding pen to ensure that all other context is restored only after all + * Holding pen to ensure that all other context is restored only after all * cpus have finished initialised local and global HYP mode context. */ #define HYP_CONTEXT_DONE 7 /* - * Holding pen to ensure that all cores have setup the local and global + * Holding pen to ensure that all cores have setup the local and global * virtualisor context before any one of them uses it */ #define VIRT_SETUP_DONE 8 diff --git a/big-little/include/gic_registers.h b/big-little/include/gic_registers.h index 8a9ce9c..4d213e5 100644 --- a/big-little/include/gic_registers.h +++ b/big-little/include/gic_registers.h @@ -1,102 +1,102 @@ /* * Copyright (c) 2012, ARM Limited. All rights reserved. - * + * * Redistribution and use in source and binary forms, with * or without modification, are permitted provided that the * following conditions are met: - * + * * Redistributions of source code must retain the above - * copyright notice, this list of conditions and the + * copyright notice, this list of conditions and the * following disclaimer. * * Redistributions in binary form must reproduce the - * above copyright notice, this list of conditions and - * the following disclaimer in the documentation + * above copyright notice, this list of conditions and + * the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of ARM nor the names of its * contributors may be used to endorse or promote products * derived from this software without specific prior written - * permission. + * permission. + */ + +#ifndef __GIC_REGISTERS_H__ +#define __GIC_REGISTERS_H__ + +#include "hyp_vmmap.h" + +#define MAX_INTS 256 + +/* Distributor interface registers */ +#define GICD_CTL 0x0 +#define GICD_CTR 0x4 +#define GICD_SEC 0x80 +#define GICD_ENABLESET 0x100 +#define GICD_ENABLECLEAR 0x180 +#define GICD_PENDINGSET 0x200 +#define GICD_PENDINGCLEAR 0x280 +#define GICD_ACTIVESET 0x300 +#define GICD_ACTIVECLEAR 0x380 +#define GICD_PRI 0x400 +#define GICD_CPUS 0x800 +#define GICD_CONFIG 0xC00 +#define GICD_SW 0xF00 +#define GICD_CPENDSGIR 0xF10 +#define GICD_SPENDSGIR 0xF20 + +/* Physical CPU Interface registers */ +#define GICC_CTL 0x0 +#define GICC_PRIMASK 0x4 +#define GICC_BP 0x8 +#define GICC_INTACK 0xC +#define GICC_EOI 0x10 +#define GICC_RUNNINGPRI 0x14 +#define GICC_HIGHESTPEND 0x18 +#define GICC_DEACTIVATE 0x1000 +#define GICC_PRIODROP GICC_EOI + +/* HYP view virtual CPU Interface registers */ +#define GICH_CTL 0x0 +#define GICH_VTR 0x4 +#define GICH_ELRSR0 0x30 +#define GICH_ELRSR1 0x34 +#define GICH_APR0 0xF0 +#define GICH_LR_BASE 0x100 + +/* GuestOS view virtual CPU Interface registers */ +#define GICV_CTL 0x0 +#define GICV_PRIMASK 0x4 +#define GICV_BP 0x8 +#define GICV_INTACK 0xC +#define GICV_EOI 0x10 +#define GICV_RUNNINGPRI 0x14 +#define GICV_HIGHESTPEND 0x18 +#define GICV_DEACTIVATE 0x1000 + +#define VGICH_HCR_EN 0x1 +#define VGICV_NS_EN 0x2 + +#define GS_ENABLED 0x01 +#define GS_EDGE 0x02 +#define GIC_INTS 128 +#define GIC_PRIMASK 0xF8 /* 32 levels only */ +#define GIC_DISTENABLE 0x1 +#define GIC_CPUIFENABLE 0x2 + +#define VGIC_PRI 0x200 +#define VGIC_LIST 0x100 +#define VGIC_CONTROL 0x0 +/* + * TODO: + * Current mechanism to find free slots uses unsigned ints + * and is thus restricted to storing just 32 free slots. */ -
-#ifndef __GIC_REGISTERS_H__
-#define __GIC_REGISTERS_H__
-
-#include "hyp_vmmap.h"
-
-#define MAX_INTS 256
-
-/* Distributor interface registers */
-#define GICD_CTL 0x0
-#define GICD_CTR 0x4
-#define GICD_SEC 0x80
-#define GICD_ENABLESET 0x100
-#define GICD_ENABLECLEAR 0x180
-#define GICD_PENDINGSET 0x200
-#define GICD_PENDINGCLEAR 0x280
-#define GICD_ACTIVESET 0x300
-#define GICD_ACTIVECLEAR 0x380
-#define GICD_PRI 0x400
-#define GICD_CPUS 0x800
-#define GICD_CONFIG 0xC00
-#define GICD_SW 0xF00
-#define GICD_CPENDSGIR 0xF10
-#define GICD_SPENDSGIR 0xF20
-
-/* Physical CPU Interface registers */
-#define GICC_CTL 0x0
-#define GICC_PRIMASK 0x4
-#define GICC_BP 0x8
-#define GICC_INTACK 0xC
-#define GICC_EOI 0x10
-#define GICC_RUNNINGPRI 0x14
-#define GICC_HIGHESTPEND 0x18
-#define GICC_DEACTIVATE 0x1000
-#define GICC_PRIODROP GICC_EOI
-
-/* HYP view virtual CPU Interface registers */
-#define GICH_CTL 0x0
-#define GICH_VTR 0x4
-#define GICH_ELRSR0 0x30
-#define GICH_ELRSR1 0x34
-#define GICH_APR0 0xF0
-#define GICH_LR_BASE 0x100
-
-/* GuestOS view virtual CPU Interface registers */
-#define GICV_CTL 0x0
-#define GICV_PRIMASK 0x4
-#define GICV_BP 0x8
-#define GICV_INTACK 0xC
-#define GICV_EOI 0x10
-#define GICV_RUNNINGPRI 0x14
-#define GICV_HIGHESTPEND 0x18
-#define GICV_DEACTIVATE 0x1000
-
-#define VGICH_HCR_EN 0x1
-#define VGICV_NS_EN 0x2
-
-#define GS_ENABLED 0x01
-#define GS_EDGE 0x02
-#define GIC_INTS 128
-#define GIC_PRIMASK 0xF8 /* 32 levels only */
-#define GIC_DISTENABLE 0x1
-#define GIC_CPUIFENABLE 0x2
-
-#define VGIC_PRI 0x200
-#define VGIC_LIST 0x100
-#define VGIC_CONTROL 0x0
-/*
- * TODO:
- * Current mechanism to find free slots uses unsigned ints
- * and is thus restricted to storing just 32 free slots.
- */
-#define VGIC_LISTENTRIES 64
-
-#define VGIC_ENTRY_HW 0x80000000
-#define VGIC_ENTRY_ACTIVE 0x20000000
-#define VGIC_ENTRY_ACTIVE_PENDING 0x30000000
-#define VGIC_ENTRY_PENDING 0x10000000
-
-#endif /* __GIC_REGISTERS_H__ */
-
+#define VGIC_LISTENTRIES 64 + +#define VGIC_ENTRY_HW 0x80000000 +#define VGIC_ENTRY_ACTIVE 0x20000000 +#define VGIC_ENTRY_ACTIVE_PENDING 0x30000000 +#define VGIC_ENTRY_PENDING 0x10000000 + +#endif /* __GIC_REGISTERS_H__ */ + diff --git a/big-little/include/handler.h b/big-little/include/handler.h index 7246b9e..b2466ae 100644 --- a/big-little/include/handler.h +++ b/big-little/include/handler.h @@ -1,23 +1,23 @@ /* * Copyright (c) 2012, ARM Limited. All rights reserved. - * + * * Redistribution and use in source and binary forms, with * or without modification, are permitted provided that the * following conditions are met: - * + * * Redistributions of source code must retain the above - * copyright notice, this list of conditions and the + * copyright notice, this list of conditions and the * following disclaimer. * * Redistributions in binary form must reproduce the - * above copyright notice, this list of conditions and - * the following disclaimer in the documentation + * above copyright notice, this list of conditions and + * the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of ARM nor the names of its * contributors may be used to endorse or promote products * derived from this software without specific prior written - * permission. + * permission. */ #ifndef __HANDLER_H__ diff --git a/big-little/include/hvc.h b/big-little/include/hvc.h index d0df974..ec9aa64 100644 --- a/big-little/include/hvc.h +++ b/big-little/include/hvc.h @@ -1,23 +1,23 @@ /* * Copyright (c) 2012, ARM Limited. All rights reserved. - * + * * Redistribution and use in source and binary forms, with * or without modification, are permitted provided that the * following conditions are met: - * + * * Redistributions of source code must retain the above - * copyright notice, this list of conditions and the + * copyright notice, this list of conditions and the * following disclaimer. * * Redistributions in binary form must reproduce the - * above copyright notice, this list of conditions and - * the following disclaimer in the documentation + * above copyright notice, this list of conditions and + * the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of ARM nor the names of its * contributors may be used to endorse or promote products * derived from this software without specific prior written - * permission. + * permission. */ #ifndef __HVC_H__ diff --git a/big-little/include/hyp_types.h b/big-little/include/hyp_types.h index 441320b..d40ca9c 100644 --- a/big-little/include/hyp_types.h +++ b/big-little/include/hyp_types.h @@ -1,23 +1,23 @@ /* * Copyright (c) 2012, ARM Limited. All rights reserved. - * + * * Redistribution and use in source and binary forms, with * or without modification, are permitted provided that the * following conditions are met: - * + * * Redistributions of source code must retain the above - * copyright notice, this list of conditions and the + * copyright notice, this list of conditions and the * following disclaimer. * * Redistributions in binary form must reproduce the - * above copyright notice, this list of conditions and - * the following disclaimer in the documentation + * above copyright notice, this list of conditions and + * the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of ARM nor the names of its * contributors may be used to endorse or promote products * derived from this software without specific prior written - * permission. + * permission. */ #ifndef __HYP_TYPES_H__ diff --git a/big-little/include/hyp_vmmap.h b/big-little/include/hyp_vmmap.h index aeeceae..c1b7b55 100644 --- a/big-little/include/hyp_vmmap.h +++ b/big-little/include/hyp_vmmap.h @@ -1,23 +1,23 @@ /* * Copyright (c) 2012, ARM Limited. All rights reserved. - * + * * Redistribution and use in source and binary forms, with * or without modification, are permitted provided that the * following conditions are met: - * + * * Redistributions of source code must retain the above - * copyright notice, this list of conditions and the + * copyright notice, this list of conditions and the * following disclaimer. * * Redistributions in binary form must reproduce the - * above copyright notice, this list of conditions and - * the following disclaimer in the documentation + * above copyright notice, this list of conditions and + * the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of ARM nor the names of its * contributors may be used to endorse or promote products * derived from this software without specific prior written - * permission. + * permission. */ #ifndef __HYP_VMMAP_H__ diff --git a/big-little/include/int_master.h b/big-little/include/int_master.h index f6fe603..cf55e8b 100644 --- a/big-little/include/int_master.h +++ b/big-little/include/int_master.h @@ -1,28 +1,28 @@ /* * Copyright (c) 2012, ARM Limited. All rights reserved. - * + * * Redistribution and use in source and binary forms, with * or without modification, are permitted provided that the * following conditions are met: - * + * * Redistributions of source code must retain the above - * copyright notice, this list of conditions and the + * copyright notice, this list of conditions and the * following disclaimer. * * Redistributions in binary form must reproduce the - * above copyright notice, this list of conditions and - * the following disclaimer in the documentation + * above copyright notice, this list of conditions and + * the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of ARM nor the names of its * contributors may be used to endorse or promote products * derived from this software without specific prior written - * permission. + * permission. */ /* * Master interrupt controller driver - talks to real IC and dispatches - * * interrupts to slave ICs or monitor drivers as appropriate + * * interrupts to slave ICs or monitor drivers as appropriate */ #ifndef _INT_MASTER_H_ diff --git a/big-little/include/misc.h b/big-little/include/misc.h index 4656d00..f5ada31 100644 --- a/big-little/include/misc.h +++ b/big-little/include/misc.h @@ -1,23 +1,23 @@ /* * Copyright (c) 2012, ARM Limited. All rights reserved. - * + * * Redistribution and use in source and binary forms, with * or without modification, are permitted provided that the * following conditions are met: - * + * * Redistributions of source code must retain the above - * copyright notice, this list of conditions and the + * copyright notice, this list of conditions and the * following disclaimer. * * Redistributions in binary form must reproduce the - * above copyright notice, this list of conditions and - * the following disclaimer in the documentation + * above copyright notice, this list of conditions and + * the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of ARM nor the names of its * contributors may be used to endorse or promote products * derived from this software without specific prior written - * permission. + * permission. */ #ifndef MISC_H @@ -150,8 +150,8 @@ #define TTBR_SH 0x1 #define TTBR_WBWA 0x1 -/* - * Bit definitions of Level 2 translation +/* + * Bit definitions of Level 2 translation * table entries. */ @@ -160,8 +160,8 @@ #define BLOCK_MAPPING 0x1 #define TABLE_MAPPING 0x3 -/* - * Bit definitions of Level 3 translation +/* + * Bit definitions of Level 3 translation * table entries. */ @@ -236,7 +236,7 @@ #define read_cci_cntr(x) read32(CCI_PERF_CNT(x) + CNT_REG) /* * TODO: - * Move platform specific definitions to the right places + * Move platform specific definitions to the right places */ #define KFSCB_BASE 0x60000000 @@ -270,7 +270,7 @@ /* * Map the 4 tubes to the Secure - * & non-secure worlds + * & non-secure worlds */ #define SEC_TUBE0 KFS_TUBE0 #define SEC_TUBE1 KFS_TUBE1 @@ -384,8 +384,8 @@ #define CRN_C9 0x9 #define CRN_C15 0xf -/* - * Opcode2 definitions in the corresponding cp15 instruction +/* + * Opcode2 definitions in the corresponding cp15 instruction */ #define MIDR 0x0 #define CTR 0x1 diff --git a/big-little/include/traps.h b/big-little/include/traps.h index 2d36210..2782b61 100644 --- a/big-little/include/traps.h +++ b/big-little/include/traps.h @@ -1,23 +1,23 @@ /* * Copyright (c) 2012, ARM Limited. All rights reserved. - * + * * Redistribution and use in source and binary forms, with * or without modification, are permitted provided that the * following conditions are met: - * + * * Redistributions of source code must retain the above - * copyright notice, this list of conditions and the + * copyright notice, this list of conditions and the * following disclaimer. * * Redistributions in binary form must reproduce the - * above copyright notice, this list of conditions and - * the following disclaimer in the documentation + * above copyright notice, this list of conditions and + * the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of ARM nor the names of its * contributors may be used to endorse or promote products * derived from this software without specific prior written - * permission. + * permission. */ #ifndef __TRAPS_H__ diff --git a/big-little/include/vgiclib.h b/big-little/include/vgiclib.h index 5cbca56..a520a3f 100644 --- a/big-little/include/vgiclib.h +++ b/big-little/include/vgiclib.h @@ -1,23 +1,23 @@ /* * Copyright (c) 2012, ARM Limited. All rights reserved. - * + * * Redistribution and use in source and binary forms, with * or without modification, are permitted provided that the * following conditions are met: - * + * * Redistributions of source code must retain the above - * copyright notice, this list of conditions and the + * copyright notice, this list of conditions and the * following disclaimer. * * Redistributions in binary form must reproduce the - * above copyright notice, this list of conditions and - * the following disclaimer in the documentation + * above copyright notice, this list of conditions and + * the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of ARM nor the names of its * contributors may be used to endorse or promote products * derived from this software without specific prior written - * permission. + * permission. */ #ifndef VGICLIB_H diff --git a/big-little/include/virt_helpers.h b/big-little/include/virt_helpers.h index 1388e35..c399430 100644 --- a/big-little/include/virt_helpers.h +++ b/big-little/include/virt_helpers.h @@ -1,23 +1,23 @@ /* * Copyright (c) 2012, ARM Limited. All rights reserved. - * + * * Redistribution and use in source and binary forms, with * or without modification, are permitted provided that the * following conditions are met: - * + * * Redistributions of source code must retain the above - * copyright notice, this list of conditions and the + * copyright notice, this list of conditions and the * following disclaimer. * * Redistributions in binary form must reproduce the - * above copyright notice, this list of conditions and - * the following disclaimer in the documentation + * above copyright notice, this list of conditions and + * the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of ARM nor the names of its * contributors may be used to endorse or promote products * derived from this software without specific prior written - * permission. + * permission. */ #ifndef _VIRT_HELPERS_H_ |