diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-01-30 21:37:27 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-01-30 21:37:27 -0500 |
commit | 8af03e782cae1e0a0f530ddd22301cdd12cf9dc0 (patch) | |
tree | c4af13a38bd3cc1a811a37f2358491f171052070 /arch/powerpc/boot/dtc-src/srcpos.h | |
parent | 6232665040f9a23fafd9d94d4ae8d5a2dc850f65 (diff) | |
parent | 99e139126ab2e84be67969650f92eb37c12ab5cd (diff) |
Merge branch 'for-2.6.25' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
* 'for-2.6.25' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: (454 commits)
[POWERPC] Cell IOMMU fixed mapping support
[POWERPC] Split out the ioid fetching/checking logic
[POWERPC] Add support to cell_iommu_setup_page_tables() for multiple windows
[POWERPC] Split out the IOMMU logic from cell_dma_dev_setup()
[POWERPC] Split cell_iommu_setup_hardware() into two parts
[POWERPC] Split out the logic that allocates struct iommus
[POWERPC] Allocate the hash table under 1G on cell
[POWERPC] Add set_dma_ops() to match get_dma_ops()
[POWERPC] 83xx: Clean up / convert mpc83xx board DTS files to v1 format.
[POWERPC] 85xx: Only invalidate TLB0 and TLB1
[POWERPC] 83xx: Fix typo in mpc837x compatible entries
[POWERPC] 85xx: convert sbc85* boards to use machine_device_initcall
[POWERPC] 83xx: rework platform Kconfig
[POWERPC] 85xx: rework platform Kconfig
[POWERPC] 86xx: Remove unused IRQ defines
[POWERPC] QE: Explicitly set address-cells and size cells for muram
[POWERPC] Convert StorCenter DTS file to /dts-v1/ format.
[POWERPC] 86xx: Convert all 86xx DTS files to /dts-v1/ format.
[PPC] Remove 85xx from arch/ppc
[PPC] Remove 83xx from arch/ppc
...
Diffstat (limited to 'arch/powerpc/boot/dtc-src/srcpos.h')
-rw-r--r-- | arch/powerpc/boot/dtc-src/srcpos.h | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/arch/powerpc/boot/dtc-src/srcpos.h b/arch/powerpc/boot/dtc-src/srcpos.h new file mode 100644 index 000000000000..ce7ab5ba5b46 --- /dev/null +++ b/arch/powerpc/boot/dtc-src/srcpos.h | |||
@@ -0,0 +1,75 @@ | |||
1 | /* | ||
2 | * Copyright 2007 Jon Loeliger, Freescale Semiconductor, Inc. | ||
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 as | ||
6 | * published by the Free Software Foundation; either version 2 of the | ||
7 | * License, or (at your option) any later version. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
12 | * General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 | ||
17 | * USA | ||
18 | */ | ||
19 | |||
20 | /* | ||
21 | * Augment the standard YYLTYPE with a filenum index into an | ||
22 | * array of all opened filenames. | ||
23 | */ | ||
24 | |||
25 | #if ! defined(YYLTYPE) && ! defined(YYLTYPE_IS_DECLARED) | ||
26 | typedef struct YYLTYPE { | ||
27 | int first_line; | ||
28 | int first_column; | ||
29 | int last_line; | ||
30 | int last_column; | ||
31 | int filenum; | ||
32 | } YYLTYPE; | ||
33 | |||
34 | #define YYLTYPE_IS_DECLARED 1 | ||
35 | #define YYLTYPE_IS_TRIVIAL 1 | ||
36 | #endif | ||
37 | |||
38 | /* Cater to old parser templates. */ | ||
39 | #ifndef YYID | ||
40 | #define YYID(n) (n) | ||
41 | #endif | ||
42 | |||
43 | #define YYLLOC_DEFAULT(Current, Rhs, N) \ | ||
44 | do \ | ||
45 | if (YYID (N)) \ | ||
46 | { \ | ||
47 | (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ | ||
48 | (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ | ||
49 | (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ | ||
50 | (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ | ||
51 | (Current).filenum = YYRHSLOC (Rhs, N).filenum; \ | ||
52 | } \ | ||
53 | else \ | ||
54 | { \ | ||
55 | (Current).first_line = (Current).last_line = \ | ||
56 | YYRHSLOC (Rhs, 0).last_line; \ | ||
57 | (Current).first_column = (Current).last_column = \ | ||
58 | YYRHSLOC (Rhs, 0).last_column; \ | ||
59 | (Current).filenum = YYRHSLOC (Rhs, 0).filenum; \ | ||
60 | } \ | ||
61 | while (YYID (0)) | ||
62 | |||
63 | |||
64 | |||
65 | extern void yyerror(char const *); | ||
66 | |||
67 | extern int srcpos_filenum; | ||
68 | |||
69 | extern int push_input_file(const char *filename); | ||
70 | extern int pop_input_file(void); | ||
71 | |||
72 | extern FILE *dtc_open_file(const char *fname); | ||
73 | extern int lookup_file_name(const char *fname, int add_it); | ||
74 | extern const char *srcpos_filename_for_num(int filenum); | ||
75 | const char *srcpos_get_filename(void); | ||