aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/cpu-multi32.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-arm/cpu-multi32.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/asm-arm/cpu-multi32.h')
-rw-r--r--include/asm-arm/cpu-multi32.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/include/asm-arm/cpu-multi32.h b/include/asm-arm/cpu-multi32.h
new file mode 100644
index 000000000000..ff48022e4720
--- /dev/null
+++ b/include/asm-arm/cpu-multi32.h
@@ -0,0 +1,64 @@
1/*
2 * linux/include/asm-arm/cpu-multi32.h
3 *
4 * Copyright (C) 2000 Russell King
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10#include <asm/page.h>
11
12struct mm_struct;
13
14/*
15 * Don't change this structure - ASM code
16 * relies on it.
17 */
18extern struct processor {
19 /* MISC
20 * get data abort address/flags
21 */
22 void (*_data_abort)(unsigned long pc);
23 /*
24 * Set up any processor specifics
25 */
26 void (*_proc_init)(void);
27 /*
28 * Disable any processor specifics
29 */
30 void (*_proc_fin)(void);
31 /*
32 * Special stuff for a reset
33 */
34 volatile void (*reset)(unsigned long addr);
35 /*
36 * Idle the processor
37 */
38 int (*_do_idle)(void);
39 /*
40 * Processor architecture specific
41 */
42 /*
43 * clean a virtual address range from the
44 * D-cache without flushing the cache.
45 */
46 void (*dcache_clean_area)(void *addr, int size);
47
48 /*
49 * Set the page table
50 */
51 void (*switch_mm)(unsigned long pgd_phys, struct mm_struct *mm);
52 /*
53 * Set a PTE
54 */
55 void (*set_pte)(pte_t *ptep, pte_t pte);
56} processor;
57
58#define cpu_proc_init() processor._proc_init()
59#define cpu_proc_fin() processor._proc_fin()
60#define cpu_reset(addr) processor.reset(addr)
61#define cpu_do_idle() processor._do_idle()
62#define cpu_dcache_clean_area(addr,sz) processor.dcache_clean_area(addr,sz)
63#define cpu_set_pte(ptep, pte) processor.set_pte(ptep, pte)
64#define cpu_do_switch_mm(pgd,mm) processor.switch_mm(pgd,mm)