diff options
Diffstat (limited to 'arch/tile/include/asm')
| -rw-r--r-- | arch/tile/include/asm/auxvec.h | 20 | ||||
| -rw-r--r-- | arch/tile/include/asm/bitsperlong.h | 26 | ||||
| -rw-r--r-- | arch/tile/include/asm/byteorder.h | 1 | ||||
| -rw-r--r-- | arch/tile/include/asm/memprof.h | 33 | ||||
| -rw-r--r-- | arch/tile/include/asm/mman.h | 41 | ||||
| -rw-r--r-- | arch/tile/include/asm/opcode-tile.h | 30 | ||||
| -rw-r--r-- | arch/tile/include/asm/opcode-tile_32.h | 1513 | ||||
| -rw-r--r-- | arch/tile/include/asm/opcode-tile_64.h | 1248 | ||||
| -rw-r--r-- | arch/tile/include/asm/opcode_constants.h | 26 | ||||
| -rw-r--r-- | arch/tile/include/asm/opcode_constants_32.h | 480 | ||||
| -rw-r--r-- | arch/tile/include/asm/opcode_constants_64.h | 609 | ||||
| -rw-r--r-- | arch/tile/include/asm/sigcontext.h | 35 | ||||
| -rw-r--r-- | arch/tile/include/asm/siginfo.h | 34 | ||||
| -rw-r--r-- | arch/tile/include/asm/stat.h | 4 | ||||
| -rw-r--r-- | arch/tile/include/asm/swab.h | 23 | ||||
| -rw-r--r-- | arch/tile/include/asm/system.h | 261 |
16 files changed, 4384 insertions, 0 deletions
diff --git a/arch/tile/include/asm/auxvec.h b/arch/tile/include/asm/auxvec.h new file mode 100644 index 00000000000..1d393edb064 --- /dev/null +++ b/arch/tile/include/asm/auxvec.h | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | /* | ||
| 2 | * Copyright 2010 Tilera Corporation. All Rights Reserved. | ||
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of the GNU General Public License | ||
| 6 | * as published by the Free Software Foundation, version 2. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or | ||
| 11 | * NON INFRINGEMENT. See the GNU General Public License for | ||
| 12 | * more details. | ||
| 13 | */ | ||
| 14 | |||
| 15 | #ifndef _ASM_TILE_AUXVEC_H | ||
| 16 | #define _ASM_TILE_AUXVEC_H | ||
| 17 | |||
| 18 | /* No extensions to auxvec */ | ||
| 19 | |||
| 20 | #endif /* _ASM_TILE_AUXVEC_H */ | ||
diff --git a/arch/tile/include/asm/bitsperlong.h b/arch/tile/include/asm/bitsperlong.h new file mode 100644 index 00000000000..58c771f2af2 --- /dev/null +++ b/arch/tile/include/asm/bitsperlong.h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | /* | ||
| 2 | * Copyright 2010 Tilera Corporation. All Rights Reserved. | ||
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of the GNU General Public License | ||
| 6 | * as published by the Free Software Foundation, version 2. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or | ||
| 11 | * NON INFRINGEMENT. See the GNU General Public License for | ||
| 12 | * more details. | ||
| 13 | */ | ||
| 14 | |||
| 15 | #ifndef _ASM_TILE_BITSPERLONG_H | ||
| 16 | #define _ASM_TILE_BITSPERLONG_H | ||
| 17 | |||
| 18 | #ifdef __LP64__ | ||
| 19 | # define __BITS_PER_LONG 64 | ||
| 20 | #else | ||
| 21 | # define __BITS_PER_LONG 32 | ||
| 22 | #endif | ||
| 23 | |||
| 24 | #include <asm-generic/bitsperlong.h> | ||
| 25 | |||
| 26 | #endif /* _ASM_TILE_BITSPERLONG_H */ | ||
diff --git a/arch/tile/include/asm/byteorder.h b/arch/tile/include/asm/byteorder.h new file mode 100644 index 00000000000..9558416d578 --- /dev/null +++ b/arch/tile/include/asm/byteorder.h | |||
| @@ -0,0 +1 @@ | |||
| #include <linux/byteorder/little_endian.h> | |||
diff --git a/arch/tile/include/asm/memprof.h b/arch/tile/include/asm/memprof.h new file mode 100644 index 00000000000..359949be28c --- /dev/null +++ b/arch/tile/include/asm/memprof.h | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | /* | ||
| 2 | * Copyright 2010 Tilera Corporation. All Rights Reserved. | ||
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of the GNU General Public License | ||
| 6 | * as published by the Free Software Foundation, version 2. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or | ||
| 11 | * NON INFRINGEMENT. See the GNU General Public License for | ||
| 12 | * more details. | ||
| 13 | * | ||
| 14 | * The hypervisor's memory controller profiling infrastructure allows | ||
| 15 | * the programmer to find out what fraction of the available memory | ||
| 16 | * bandwidth is being consumed at each memory controller. The | ||
| 17 | * profiler provides start, stop, and clear operations to allows | ||
| 18 | * profiling over a specific time window, as well as an interface for | ||
| 19 | * reading the most recent profile values. | ||
| 20 | * | ||
| 21 | * This header declares IOCTL codes necessary to control memprof. | ||
| 22 | */ | ||
| 23 | #ifndef _ASM_TILE_MEMPROF_H | ||
| 24 | #define _ASM_TILE_MEMPROF_H | ||
| 25 | |||
| 26 | #include <linux/ioctl.h> | ||
| 27 | |||
| 28 | #define MEMPROF_IOCTL_TYPE 0xB4 | ||
| 29 | #define MEMPROF_IOCTL_START _IO(MEMPROF_IOCTL_TYPE, 0) | ||
| 30 | #define MEMPROF_IOCTL_STOP _IO(MEMPROF_IOCTL_TYPE, 1) | ||
| 31 | #define MEMPROF_IOCTL_CLEAR _IO(MEMPROF_IOCTL_TYPE, 2) | ||
| 32 | |||
| 33 | #endif /* _ASM_TILE_MEMPROF_H */ | ||
diff --git a/arch/tile/include/asm/mman.h b/arch/tile/include/asm/mman.h new file mode 100644 index 00000000000..81b8fc348d6 --- /dev/null +++ b/arch/tile/include/asm/mman.h | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | /* | ||
| 2 | * Copyright 2010 Tilera Corporation. All Rights Reserved. | ||
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of the GNU General Public License | ||
| 6 | * as published by the Free Software Foundation, version 2. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or | ||
| 11 | * NON INFRINGEMENT. See the GNU General Public License for | ||
| 12 | * more details. | ||
| 13 | */ | ||
| 14 | |||
| 15 | #ifndef _ASM_TILE_MMAN_H | ||
| 16 | #define _ASM_TILE_MMAN_H | ||
| 17 | |||
| 18 | #include <asm-generic/mman-common.h> | ||
| 19 | #include <arch/chip.h> | ||
| 20 | |||
| 21 | /* Standard Linux flags */ | ||
| 22 | |||
| 23 | #define MAP_POPULATE 0x0040 /* populate (prefault) pagetables */ | ||
| 24 | #define MAP_NONBLOCK 0x0080 /* do not block on IO */ | ||
| 25 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ | ||
| 26 | #define MAP_STACK MAP_GROWSDOWN /* provide convenience alias */ | ||
| 27 | #define MAP_LOCKED 0x0200 /* pages are locked */ | ||
| 28 | #define MAP_NORESERVE 0x0400 /* don't check for reservations */ | ||
| 29 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ | ||
| 30 | #define MAP_EXECUTABLE 0x1000 /* mark it as an executable */ | ||
| 31 | #define MAP_HUGETLB 0x4000 /* create a huge page mapping */ | ||
| 32 | |||
| 33 | |||
| 34 | /* | ||
| 35 | * Flags for mlockall | ||
| 36 | */ | ||
| 37 | #define MCL_CURRENT 1 /* lock all current mappings */ | ||
| 38 | #define MCL_FUTURE 2 /* lock all future mappings */ | ||
| 39 | |||
| 40 | |||
| 41 | #endif /* _ASM_TILE_MMAN_H */ | ||
diff --git a/arch/tile/include/asm/opcode-tile.h b/arch/tile/include/asm/opcode-tile.h new file mode 100644 index 00000000000..ba38959137d --- /dev/null +++ b/arch/tile/include/asm/opcode-tile.h | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | /* | ||
| 2 | * Copyright 2010 Tilera Corporation. All Rights Reserved. | ||
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or | ||
| 5 | * modify it under the terms of the GNU General Public License | ||
| 6 | * as published by the Free Software Foundation, version 2. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, but | ||
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or | ||
| 11 | * NON INFRINGEMENT. See the GNU General Public License for | ||
| 12 | * more details. | ||
| 13 | */ | ||
| 14 | |||
| 15 | #ifndef _ASM_TILE_OPCODE_TILE_H | ||
| 16 | #define _ASM_TILE_OPCODE_TILE_H | ||
| 17 | |||
| 18 | #include <arch/chip.h> | ||
| 19 | |||
| 20 | #if CHIP_WORD_SIZE() == 64 | ||
| 21 | #include <asm/opcode-tile_64.h> | ||
| 22 | #else | ||
| 23 | #include <asm/opcode-tile_32.h> | ||
| 24 | #endif | ||
| 25 | |||
| 26 | /* These definitions are not correct for TILE64, so just avoid them. */ | ||
| 27 | #undef TILE_ELF_MACHINE_CODE | ||
| 28 | #undef TILE_ELF_NAME | ||
| 29 | |||
| 30 | #endif /* _ASM_TILE_OPCODE_TILE_H */ | ||
diff --git a/arch/tile/include/asm/opcode-tile_32.h b/arch/tile/include/asm/opcode-tile_32.h new file mode 100644 index 00000000000..03df7b1e77b --- /dev/null +++ b/arch/tile/include/asm/opcode-tile_32.h | |||
| @@ -0,0 +1,1513 @@ | |||
| 1 | /* tile.h -- Header file for TILE opcode table | ||
| 2 | Copyright (C) 2005 Free Software Foundation, Inc. | ||
| 3 | Contributed by Tilera Corp. */ | ||
| 4 | |||
| 5 | #ifndef opcode_tile_h | ||
| 6 | #define opcode_tile_h | ||
| 7 | |||
| 8 | typedef unsigned long long tile_bundle_bits; | ||
| 9 | |||
| 10 | |||
| 11 | enum | ||
| 12 | { | ||
| 13 | TILE_MAX_OPERANDS = 5 /* mm */ | ||
| 14 | }; | ||
| 15 | |||
| 16 | typedef enum | ||
| 17 | { | ||
| 18 | TILE_OPC_BPT, | ||
| 19 | TILE_OPC_INFO, | ||
| 20 | TILE_OPC_INFOL, | ||
| 21 | TILE_OPC_J, | ||
| 22 | TILE_OPC_JAL, | ||
| 23 | TILE_OPC_MOVE, | ||
| 24 | TILE_OPC_MOVE_SN, | ||
| 25 | TILE_OPC_MOVEI, | ||
| 26 | TILE_OPC_MOVEI_SN, | ||
| 27 | TILE_OPC_MOVELI, | ||
| 28 | TILE_OPC_MOVELI_SN, | ||
| 29 | TILE_OPC_MOVELIS, | ||
| 30 | TILE_OPC_PREFETCH, | ||
| 31 | TILE_OPC_RAISE, | ||
| 32 | TILE_OPC_ADD, | ||
| 33 | <|||
