diff options
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r-- | arch/powerpc/include/asm/copro.h | 16 | ||||
-rw-r--r-- | arch/powerpc/include/asm/spu.h | 5 |
2 files changed, 18 insertions, 3 deletions
diff --git a/arch/powerpc/include/asm/copro.h b/arch/powerpc/include/asm/copro.h new file mode 100644 index 000000000000..51cae85a50b4 --- /dev/null +++ b/arch/powerpc/include/asm/copro.h | |||
@@ -0,0 +1,16 @@ | |||
1 | /* | ||
2 | * Copyright 2014 IBM Corp. | ||
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; either version | ||
7 | * 2 of the License, or (at your option) any later version. | ||
8 | */ | ||
9 | |||
10 | #ifndef _ASM_POWERPC_COPRO_H | ||
11 | #define _ASM_POWERPC_COPRO_H | ||
12 | |||
13 | int copro_handle_mm_fault(struct mm_struct *mm, unsigned long ea, | ||
14 | unsigned long dsisr, unsigned *flt); | ||
15 | |||
16 | #endif /* _ASM_POWERPC_COPRO_H */ | ||
diff --git a/arch/powerpc/include/asm/spu.h b/arch/powerpc/include/asm/spu.h index 37b7ca39ec9f..a6e6e2bf9d15 100644 --- a/arch/powerpc/include/asm/spu.h +++ b/arch/powerpc/include/asm/spu.h | |||
@@ -27,6 +27,8 @@ | |||
27 | #include <linux/workqueue.h> | 27 | #include <linux/workqueue.h> |
28 | #include <linux/device.h> | 28 | #include <linux/device.h> |
29 | #include <linux/mutex.h> | 29 | #include <linux/mutex.h> |
30 | #include <asm/reg.h> | ||
31 | #include <asm/copro.h> | ||
30 | 32 | ||
31 | #define LS_SIZE (256 * 1024) | 33 | #define LS_SIZE (256 * 1024) |
32 | #define LS_ADDR_MASK (LS_SIZE - 1) | 34 | #define LS_ADDR_MASK (LS_SIZE - 1) |
@@ -277,9 +279,6 @@ void spu_remove_dev_attr(struct device_attribute *attr); | |||
277 | int spu_add_dev_attr_group(struct attribute_group *attrs); | 279 | int spu_add_dev_attr_group(struct attribute_group *attrs); |
278 | void spu_remove_dev_attr_group(struct attribute_group *attrs); | 280 | void spu_remove_dev_attr_group(struct attribute_group *attrs); |
279 | 281 | ||
280 | int spu_handle_mm_fault(struct mm_struct *mm, unsigned long ea, | ||
281 | unsigned long dsisr, unsigned *flt); | ||
282 | |||
283 | /* | 282 | /* |
284 | * Notifier blocks: | 283 | * Notifier blocks: |
285 | * | 284 | * |