diff options
author | Richard Kuo <rkuo@codeaurora.org> | 2011-10-31 19:26:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-01 10:34:18 -0400 |
commit | cd8e65fb96f3ce8eee91c2032720f0ba143627e1 (patch) | |
tree | 9263c3c7fec63b1f9a7d163ba17b584194764303 /arch/hexagon | |
parent | c3b92c8787367a8bb53d57d9789b558f1295cc96 (diff) |
Hexagon: Add generic headers
Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
Signed-off-by: Linas Vepstas <linas@codeaurora.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/hexagon')
-rw-r--r-- | arch/hexagon/include/asm/Kbuild | 58 | ||||
-rw-r--r-- | arch/hexagon/include/asm/bitsperlong.h | 26 | ||||
-rw-r--r-- | arch/hexagon/include/asm/mutex.h | 8 | ||||
-rw-r--r-- | arch/hexagon/include/asm/setup.h | 29 | ||||
-rw-r--r-- | arch/hexagon/include/asm/user.h | 81 |
5 files changed, 202 insertions, 0 deletions
diff --git a/arch/hexagon/include/asm/Kbuild b/arch/hexagon/include/asm/Kbuild new file mode 100644 index 000000000000..9aa17f1917ea --- /dev/null +++ b/arch/hexagon/include/asm/Kbuild | |||
@@ -0,0 +1,58 @@ | |||
1 | include include/asm-generic/Kbuild.asm | ||
2 | |||
3 | header-y += registers.h | ||
4 | header-y += ucontext.h | ||
5 | header-y += user.h | ||
6 | |||
7 | generic-y += auxvec.h | ||
8 | generic-y += bug.h | ||
9 | generic-y += bugs.h | ||
10 | generic-y += cpumask.h | ||
11 | generic-y += cputime.h | ||
12 | generic-y += current.h | ||
13 | generic-y += device.h | ||
14 | generic-y += div64.h | ||
15 | generic-y += emergency-restart.h | ||
16 | generic-y += errno.h | ||
17 | generic-y += fb.h | ||
18 | generic-y += fcntl.h | ||
19 | generic-y += ftrace.h | ||
20 | generic-y += hardirq.h | ||
21 | generic-y += hw_irq.h | ||
22 | generic-y += ioctl.h | ||
23 | generic-y += ioctls.h | ||
24 | generic-y += iomap.h | ||
25 | generic-y += ipcbuf.h | ||
26 | generic-y += ipc.h | ||
27 | generic-y += irq_regs.h | ||
28 | generic-y += kdebug.h | ||
29 | generic-y += kmap_types.h | ||
30 | generic-y += local64.h | ||
31 | generic-y += local.h | ||
32 | generic-y += local.h | ||
33 | generic-y += mman.h | ||
34 | generic-y += msgbuf.h | ||
35 | generic-y += pci.h | ||
36 | generic-y += percpu.h | ||
37 | generic-y += poll.h | ||
38 | generic-y += posix_types.h | ||
39 | generic-y += resource.h | ||
40 | generic-y += rwsem.h | ||
41 | generic-y += scatterlist.h | ||
42 | generic-y += sections.h | ||
43 | generic-y += segment.h | ||
44 | generic-y += sembuf.h | ||
45 | generic-y += shmbuf.h | ||
46 | generic-y += shmparam.h | ||
47 | generic-y += siginfo.h | ||
48 | generic-y += socket.h | ||
49 | generic-y += sockios.h | ||
50 | generic-y += statfs.h | ||
51 | generic-y += stat.h | ||
52 | generic-y += termbits.h | ||
53 | generic-y += termios.h | ||
54 | generic-y += topology.h | ||
55 | generic-y += types.h | ||
56 | generic-y += ucontext.h | ||
57 | generic-y += unaligned.h | ||
58 | generic-y += xor.h | ||
diff --git a/arch/hexagon/include/asm/bitsperlong.h b/arch/hexagon/include/asm/bitsperlong.h new file mode 100644 index 000000000000..2701cae3426e --- /dev/null +++ b/arch/hexagon/include/asm/bitsperlong.h | |||
@@ -0,0 +1,26 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved. | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License version 2 and | ||
6 | * only version 2 as published by the Free Software Foundation. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program; if not, write to the Free Software | ||
15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
16 | * 02110-1301, USA. | ||
17 | */ | ||
18 | |||
19 | #ifndef __ASM_HEXAGON_BITSPERLONG_H | ||
20 | #define __ASM_HEXAGON_BITSPERLONG_H | ||
21 | |||
22 | #define __BITS_PER_LONG 32 | ||
23 | |||
24 | #include <asm-generic/bitsperlong.h> | ||
25 | |||
26 | #endif | ||
diff --git a/arch/hexagon/include/asm/mutex.h b/arch/hexagon/include/asm/mutex.h new file mode 100644 index 000000000000..58b52de1bc22 --- /dev/null +++ b/arch/hexagon/include/asm/mutex.h | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | * Pull in the generic implementation for the mutex fastpath. | ||
3 | * | ||
4 | * TODO: implement optimized primitives instead, or leave the generic | ||
5 | * implementation in place, or pick the atomic_xchg() based generic | ||
6 | * implementation. (see asm-generic/mutex-xchg.h for details) | ||
7 | */ | ||
8 | #include <asm-generic/mutex-xchg.h> | ||
diff --git a/arch/hexagon/include/asm/setup.h b/arch/hexagon/include/asm/setup.h new file mode 100644 index 000000000000..3b754c50bc0a --- /dev/null +++ b/arch/hexagon/include/asm/setup.h | |||
@@ -0,0 +1,29 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved. | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License version 2 and | ||
6 | * only version 2 as published by the Free Software Foundation. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program; if not, write to the Free Software | ||
15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
16 | * 02110-1301, USA. | ||
17 | */ | ||
18 | |||
19 | #ifndef _ASM_SETUP_H | ||
20 | #define _ASM_SETUP_H | ||
21 | |||
22 | #include <linux/init.h> | ||
23 | #include <asm-generic/setup.h> | ||
24 | |||
25 | extern char external_cmdline_buffer; | ||
26 | |||
27 | void __init setup_arch_memory(void); | ||
28 | |||
29 | #endif | ||
diff --git a/arch/hexagon/include/asm/user.h b/arch/hexagon/include/asm/user.h new file mode 100644 index 000000000000..3a55078543d1 --- /dev/null +++ b/arch/hexagon/include/asm/user.h | |||
@@ -0,0 +1,81 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved. | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License version 2 and | ||
6 | * only version 2 as published by the Free Software Foundation. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program; if not, write to the Free Software | ||
15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
16 | * 02110-1301, USA. | ||
17 | */ | ||
18 | |||
19 | #ifndef HEXAGON_ASM_USER_H | ||
20 | #define HEXAGON_ASM_USER_H | ||
21 | |||
22 | /* | ||
23 | * Layout for registers passed in elf core dumps to userspace. | ||
24 | * | ||
25 | * Basically a rearranged subset of "pt_regs". | ||
26 | * | ||
27 | * Interested parties: libc, gdb... | ||
28 | */ | ||
29 | |||
30 | struct user_regs_struct { | ||
31 | unsigned long r0; | ||
32 | unsigned long r1; | ||
33 | unsigned long r2; | ||
34 | unsigned long r3; | ||
35 | unsigned long r4; | ||
36 | unsigned long r5; | ||
37 | unsigned long r6; | ||
38 | unsigned long r7; | ||
39 | unsigned long r8; | ||
40 | unsigned long r9; | ||
41 | unsigned long r10; | ||
42 | unsigned long r11; | ||
43 | unsigned long r12; | ||
44 | unsigned long r13; | ||
45 | unsigned long r14; | ||
46 | unsigned long r15; | ||
47 | unsigned long r16; | ||
48 | unsigned long r17; | ||
49 | unsigned long r18; | ||
50 | unsigned long r19; | ||
51 | unsigned long r20; | ||
52 | unsigned long r21; | ||
53 | unsigned long r22; | ||
54 | unsigned long r23; | ||
55 | unsigned long r24; | ||
56 | unsigned long r25; | ||
57 | unsigned long r26; | ||
58 | unsigned long r27; | ||
59 | unsigned long r28; | ||
60 | unsigned long r29; | ||
61 | unsigned long r30; | ||
62 | unsigned long r31; | ||
63 | unsigned long sa0; | ||
64 | unsigned long lc0; | ||
65 | unsigned long sa1; | ||
66 | unsigned long lc1; | ||
67 | unsigned long m0; | ||
68 | unsigned long m1; | ||
69 | unsigned long usr; | ||
70 | unsigned long p3_0; | ||
71 | unsigned long gp; | ||
72 | unsigned long ugp; | ||
73 | unsigned long pc; | ||
74 | unsigned long cause; | ||
75 | unsigned long badva; | ||
76 | unsigned long pad1; /* pad out to 48 words total */ | ||
77 | unsigned long pad2; /* pad out to 48 words total */ | ||
78 | unsigned long pad3; /* pad out to 48 words total */ | ||
79 | }; | ||
80 | |||
81 | #endif | ||