diff options
| author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
|---|---|---|
| committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
| commit | fcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch) | |
| tree | a57612d1888735a2ec7972891b68c1ac5ec8faea /arch/arm/include/asm | |
| parent | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff) | |
Diffstat (limited to 'arch/arm/include/asm')
57 files changed, 2460 insertions, 0 deletions
diff --git a/arch/arm/include/asm/a.out.h b/arch/arm/include/asm/a.out.h new file mode 100644 index 00000000000..083894b2e3b --- /dev/null +++ b/arch/arm/include/asm/a.out.h | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | #ifndef __ARM_A_OUT_H__ | ||
| 2 | #define __ARM_A_OUT_H__ | ||
| 3 | |||
| 4 | #include <linux/personality.h> | ||
| 5 | #include <linux/types.h> | ||
| 6 | |||
| 7 | struct exec | ||
| 8 | { | ||
| 9 | __u32 a_info; /* Use macros N_MAGIC, etc for access */ | ||
| 10 | __u32 a_text; /* length of text, in bytes */ | ||
| 11 | __u32 a_data; /* length of data, in bytes */ | ||
| 12 | __u32 a_bss; /* length of uninitialized data area for file, in bytes */ | ||
| 13 | __u32 a_syms; /* length of symbol table data in file, in bytes */ | ||
| 14 | __u32 a_entry; /* start address */ | ||
| 15 | __u32 a_trsize; /* length of relocation info for text, in bytes */ | ||
| 16 | __u32 a_drsize; /* length of relocation info for data, in bytes */ | ||
| 17 | }; | ||
| 18 | |||
| 19 | /* | ||
| 20 | * This is always the same | ||
| 21 | */ | ||
| 22 | #define N_TXTADDR(a) (0x00008000) | ||
| 23 | |||
| 24 | #define N_TRSIZE(a) ((a).a_trsize) | ||
| 25 | #define N_DRSIZE(a) ((a).a_drsize) | ||
| 26 | #define N_SYMSIZE(a) ((a).a_syms) | ||
| 27 | |||
| 28 | #define M_ARM 103 | ||
| 29 | |||
| 30 | #ifndef LIBRARY_START_TEXT | ||
| 31 | #define LIBRARY_START_TEXT (0x00c00000) | ||
| 32 | #endif | ||
| 33 | |||
| 34 | #endif /* __A_OUT_GNU_H__ */ | ||
diff --git a/arch/arm/include/asm/auxvec.h b/arch/arm/include/asm/auxvec.h new file mode 100644 index 00000000000..c0536f6b29a --- /dev/null +++ b/arch/arm/include/asm/auxvec.h | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | #ifndef __ASMARM_AUXVEC_H | ||
| 2 | #define __ASMARM_AUXVEC_H | ||
| 3 | |||
| 4 | #endif | ||
diff --git a/arch/arm/include/asm/bitsperlong.h b/arch/arm/include/asm/bitsperlong.h new file mode 100644 index 00000000000..6dc0bb0c13b --- /dev/null +++ b/arch/arm/include/asm/bitsperlong.h | |||
| @@ -0,0 +1 @@ | |||
| #include <asm-generic/bitsperlong.h> | |||
diff --git a/arch/arm/include/asm/byteorder.h b/arch/arm/include/asm/byteorder.h new file mode 100644 index 00000000000..77379748b17 --- /dev/null +++ b/arch/arm/include/asm/byteorder.h | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | /* | ||
| 2 | * arch/arm/include/asm/byteorder.h | ||
| 3 | * | ||
| 4 | * ARM Endian-ness. In little endian mode, the data bus is connected such | ||
| 5 | * that byte accesses appear as: | ||
| 6 | * 0 = d0...d7, 1 = d8...d15, 2 = d16...d23, 3 = d24...d31 | ||
| 7 | * and word accesses (data or instruction) appear as: | ||
| 8 | * d0...d31 | ||
| 9 | * | ||
| 10 | * When in big endian mode, byte accesses appear as: | ||
| 11 | * 0 = d24...d31, 1 = d16...d23, 2 = d8...d15, 3 = d0...d7 | ||
| 12 | * and word accesses (data or instruction) appear as: | ||
| 13 | * d0...d31 | ||
| 14 | */ | ||
| 15 | #ifndef __ASM_ARM_BYTEORDER_H | ||
| 16 | #define __ASM_ARM_BYTEORDER_H | ||
| 17 | |||
| 18 | #ifdef __ARMEB__ | ||
| 19 | #include <linux/byteorder/big_endian.h> | ||
| 20 | #else | ||
| 21 | #include <linux/byteorder/little_endian.h> | ||
| 22 | #endif | ||
| 23 | |||
| 24 | #endif | ||
| 25 | |||
diff --git a/arch/arm/include/asm/cpu_pm.h b/arch/arm/include/asm/cpu_pm.h new file mode 100644 index 00000000000..07b1b6ec025 --- /dev/null +++ b/arch/arm/include/asm/cpu_pm.h | |||
| @@ -0,0 +1,123 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2011 Google, Inc. | ||
| 3 | * | ||
| 4 | * Author: | ||
| 5 | * Colin Cross <ccross@android.com> | ||
| 6 | * | ||
| 7 | * This software is licensed under the terms of the GNU General Public | ||
| 8 | * License version 2, as published by the Free Software Foundation, and | ||
| 9 | * may be copied, distributed, and modified under those terms. | ||
| 10 | * | ||
| 11 | * This program is distributed in the hope that it will be useful, | ||
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | * | ||
| 16 | */ | ||
| 17 | |||
| 18 | #ifndef _ASMARM_CPU_PM_H | ||
| 19 | #define _ASMARM_CPU_PM_H | ||
| 20 | |||
| 21 | #include <linux/kernel.h> | ||
| 22 | #include <linux/notifier.h> | ||
| 23 | |||
| 24 | /* | ||
| 25 | * When a CPU goes to a low power state that turns off power to the CPU's | ||
| 26 | * power domain, the contents of some blocks (floating point coprocessors, | ||
| 27 | * interrutp controllers, caches, timers) in the same power domain can | ||
| 28 | * be lost. The cpm_pm notifiers provide a method for platform idle, suspend, | ||
| 29 | * and hotplug implementations to notify the drivers for these blocks that | ||
| 30 | * they may be reset. | ||
| 31 | * | ||
| 32 | * All cpu_pm notifications must be called with interrupts disabled. | ||
| 33 | * | ||
| 34 | * The notifications are split into two classes, CPU notifications and CPU | ||
| 35 | * complex notifications. | ||
| 36 | * | ||
| 37 | * CPU notifications apply to a single CPU, and must be called on the affected | ||
| 38 | * CPU. They are used to save per-cpu context for affected blocks. | ||
| 39 | * | ||
| 40 | * CPU complex notifications apply to all CPUs in a single power domain. They | ||
| 41 | * are used to save any global context for affected blocks, and must be called | ||
| 42 | * after all the CPUs in the power domain have been notified of the low power | ||
| 43 | * state. | ||
| 44 | * | ||
| 45 | */ | ||
| 46 | |||
| 47 | /* | ||
| 48 | * Event codes passed as unsigned long val to notifier calls | ||
| 49 | */ | ||
| 50 | enum cpu_pm_event { | ||
| 51 | /* A single cpu is entering a low power state */ | ||
| 52 | CPU_PM_ENTER, | ||
| 53 | |||
| 54 | /* A single cpu failed to enter a low power state */ | ||
| 55 | CPU_PM_ENTER_FAILED, | ||
| 56 | |||
| 57 | /* A single cpu is exiting a low power state */ | ||
| 58 | CPU_PM_EXIT, | ||
| 59 | |||
