IB/ipath: Fix typo in pma_counter_select subscript
[linux-2.6/zen-sources.git] / include / asm-arm / cpu-multi32.h
blob4679f63688e99c1471b2699a8f99ae163306edf3
1 /*
2 * linux/include/asm-arm/cpu-multi32.h
4 * Copyright (C) 2000 Russell King
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>
12 struct mm_struct;
15 * Don't change this structure - ASM code
16 * relies on it.
18 extern struct processor {
19 /* MISC
20 * get data abort address/flags
22 void (*_data_abort)(unsigned long pc);
24 * Set up any processor specifics
26 void (*_proc_init)(void);
28 * Disable any processor specifics
30 void (*_proc_fin)(void);
32 * Special stuff for a reset
34 void (*reset)(unsigned long addr) __attribute__((noreturn));
36 * Idle the processor
38 int (*_do_idle)(void);
40 * Processor architecture specific
43 * clean a virtual address range from the
44 * D-cache without flushing the cache.
46 void (*dcache_clean_area)(void *addr, int size);
49 * Set the page table
51 void (*switch_mm)(unsigned long pgd_phys, struct mm_struct *mm);
53 * Set a PTE
55 void (*set_pte)(pte_t *ptep, pte_t pte);
56 } processor;
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)