diff options
author | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-07-27 07:54:08 -0400 |
---|---|---|
committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-07-27 07:54:08 -0400 |
commit | eda3d8f5604860aae1bb9996bb5efc4213778369 (patch) | |
tree | 9d3887d2665bcc5f5abf200758794545c7b2c69b /include/asm-mn10300 | |
parent | 87a9f704658a40940e740b1d73d861667e9164d3 (diff) | |
parent | 8be1a6d6c77ab4532e4476fdb8177030ef48b52c (diff) |
Merge commit 'upstream/master'
Diffstat (limited to 'include/asm-mn10300')
-rw-r--r-- | include/asm-mn10300/dma-mapping.h | 2 | ||||
-rw-r--r-- | include/asm-mn10300/ide.h | 4 | ||||
-rw-r--r-- | include/asm-mn10300/kvm.h | 6 | ||||
-rw-r--r-- | include/asm-mn10300/namei.h | 22 | ||||
-rw-r--r-- | include/asm-mn10300/page.h | 3 | ||||
-rw-r--r-- | include/asm-mn10300/pci.h | 9 | ||||
-rw-r--r-- | include/asm-mn10300/ptrace.h | 8 | ||||
-rw-r--r-- | include/asm-mn10300/scatterlist.h | 9 | ||||
-rw-r--r-- | include/asm-mn10300/semaphore.h | 1 | ||||
-rw-r--r-- | include/asm-mn10300/thread_info.h | 2 |
10 files changed, 18 insertions, 48 deletions
diff --git a/include/asm-mn10300/dma-mapping.h b/include/asm-mn10300/dma-mapping.h index 7c882fca9ec8..ccae8f6c6326 100644 --- a/include/asm-mn10300/dma-mapping.h +++ b/include/asm-mn10300/dma-mapping.h | |||
@@ -182,7 +182,7 @@ void dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, | |||
182 | } | 182 | } |
183 | 183 | ||
184 | static inline | 184 | static inline |
185 | int dma_mapping_error(dma_addr_t dma_addr) | 185 | int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) |
186 | { | 186 | { |
187 | return 0; | 187 | return 0; |
188 | } | 188 | } |
diff --git a/include/asm-mn10300/ide.h b/include/asm-mn10300/ide.h index dc235121ec42..6adcdd92e83d 100644 --- a/include/asm-mn10300/ide.h +++ b/include/asm-mn10300/ide.h | |||
@@ -23,10 +23,6 @@ | |||
23 | #undef SUPPORT_VLB_SYNC | 23 | #undef SUPPORT_VLB_SYNC |
24 | #define SUPPORT_VLB_SYNC 0 | 24 | #define SUPPORT_VLB_SYNC 0 |
25 | 25 | ||
26 | #ifndef MAX_HWIFS | ||
27 | #define MAX_HWIFS 8 | ||
28 | #endif | ||
29 | |||
30 | /* | 26 | /* |
31 | * some bits needed for parts of the IDE subsystem to compile | 27 | * some bits needed for parts of the IDE subsystem to compile |
32 | */ | 28 | */ |
diff --git a/include/asm-mn10300/kvm.h b/include/asm-mn10300/kvm.h deleted file mode 100644 index f6b609ff4a57..000000000000 --- a/include/asm-mn10300/kvm.h +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | #ifndef __LINUX_KVM_MN10300_H | ||
2 | #define __LINUX_KVM_MN10300_H | ||
3 | |||
4 | /* mn10300 does not support KVM */ | ||
5 | |||
6 | #endif | ||
diff --git a/include/asm-mn10300/namei.h b/include/asm-mn10300/namei.h deleted file mode 100644 index bd9ce94aeb65..000000000000 --- a/include/asm-mn10300/namei.h +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | /* Emulation stuff | ||
2 | * | ||
3 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. | ||
4 | * Written by David Howells (dhowells@redhat.com) | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or | ||
7 | * modify it under the terms of the GNU General Public Licence | ||
8 | * as published by the Free Software Foundation; either version | ||
9 | * 2 of the Licence, or (at your option) any later version. | ||
10 | */ | ||
11 | |||
12 | #ifndef _ASM_NAMEI_H | ||
13 | #define _ASM_NAMEI_H | ||
14 | |||
15 | /* This dummy routine maybe changed to something useful | ||
16 | * for /usr/gnemul/ emulation stuff. | ||
17 | * Look at asm-sparc/namei.h for details. | ||
18 | */ | ||
19 | |||
20 | #define __emul_prefix() NULL | ||
21 | |||
22 | #endif /* _ASM_NAMEI_H */ | ||
diff --git a/include/asm-mn10300/page.h b/include/asm-mn10300/page.h index 124971b9fb9b..8288e124165b 100644 --- a/include/asm-mn10300/page.h +++ b/include/asm-mn10300/page.h | |||
@@ -61,9 +61,6 @@ typedef struct page *pgtable_t; | |||
61 | 61 | ||
62 | #endif /* !__ASSEMBLY__ */ | 62 | #endif /* !__ASSEMBLY__ */ |
63 | 63 | ||
64 | /* to align the pointer to the (next) page boundary */ | ||
65 | #define PAGE_ALIGN(addr) (((addr) + PAGE_SIZE - 1) & PAGE_MASK) | ||
66 | |||
67 | /* | 64 | /* |
68 | * This handles the memory map.. We could make this a config | 65 | * This handles the memory map.. We could make this a config |
69 | * option, but too many people screw it up, and too few need | 66 | * option, but too many people screw it up, and too few need |
diff --git a/include/asm-mn10300/pci.h b/include/asm-mn10300/pci.h index 205192c52bb5..cd9cc5c89cea 100644 --- a/include/asm-mn10300/pci.h +++ b/include/asm-mn10300/pci.h | |||
@@ -74,15 +74,6 @@ struct pci_dev; | |||
74 | /* This is always fine. */ | 74 | /* This is always fine. */ |
75 | #define pci_dac_dma_supported(pci_dev, mask) (0) | 75 | #define pci_dac_dma_supported(pci_dev, mask) (0) |
76 | 76 | ||
77 | /* | ||
78 | * These macros should be used after a pci_map_sg call has been done | ||
79 | * to get bus addresses of each of the SG entries and their lengths. | ||
80 | * You should only work with the number of sg entries pci_map_sg | ||
81 | * returns. | ||
82 | */ | ||
83 | #define sg_dma_address(sg) ((sg)->dma_address) | ||
84 | #define sg_dma_len(sg) ((sg)->length) | ||
85 | |||
86 | /* Return the index of the PCI controller for device. */ | 77 | /* Return the index of the PCI controller for device. */ |
87 | static inline int pci_controller_num(struct pci_dev *dev) | 78 | static inline int pci_controller_num(struct pci_dev *dev) |
88 | { | 79 | { |
diff --git a/include/asm-mn10300/ptrace.h b/include/asm-mn10300/ptrace.h index b3684689fcce..7b06cc623d8b 100644 --- a/include/asm-mn10300/ptrace.h +++ b/include/asm-mn10300/ptrace.h | |||
@@ -88,12 +88,16 @@ extern struct pt_regs *__frame; /* current frame pointer */ | |||
88 | /* options set using PTRACE_SETOPTIONS */ | 88 | /* options set using PTRACE_SETOPTIONS */ |
89 | #define PTRACE_O_TRACESYSGOOD 0x00000001 | 89 | #define PTRACE_O_TRACESYSGOOD 0x00000001 |
90 | 90 | ||
91 | #if defined(__KERNEL__) && !defined(__ASSEMBLY__) | 91 | #if defined(__KERNEL__) |
92 | |||
93 | #if !defined(__ASSEMBLY__) | ||
92 | #define user_mode(regs) (((regs)->epsw & EPSW_nSL) == EPSW_nSL) | 94 | #define user_mode(regs) (((regs)->epsw & EPSW_nSL) == EPSW_nSL) |
93 | #define instruction_pointer(regs) ((regs)->pc) | 95 | #define instruction_pointer(regs) ((regs)->pc) |
94 | extern void show_regs(struct pt_regs *); | 96 | extern void show_regs(struct pt_regs *); |
95 | #endif | 97 | #endif /* !__ASSEMBLY */ |
96 | 98 | ||
97 | #define profile_pc(regs) ((regs)->pc) | 99 | #define profile_pc(regs) ((regs)->pc) |
98 | 100 | ||
101 | #endif /* __KERNEL__ */ | ||
102 | |||
99 | #endif /* _ASM_PTRACE_H */ | 103 | #endif /* _ASM_PTRACE_H */ |
diff --git a/include/asm-mn10300/scatterlist.h b/include/asm-mn10300/scatterlist.h index e29d91dbcf2b..67535901b9ff 100644 --- a/include/asm-mn10300/scatterlist.h +++ b/include/asm-mn10300/scatterlist.h | |||
@@ -43,4 +43,13 @@ struct scatterlist { | |||
43 | 43 | ||
44 | #define ISA_DMA_THRESHOLD (0x00ffffff) | 44 | #define ISA_DMA_THRESHOLD (0x00ffffff) |
45 | 45 | ||
46 | /* | ||
47 | * These macros should be used after a pci_map_sg call has been done | ||
48 | * to get bus addresses of each of the SG entries and their lengths. | ||
49 | * You should only work with the number of sg entries pci_map_sg | ||
50 | * returns. | ||
51 | */ | ||
52 | #define sg_dma_address(sg) ((sg)->dma_address) | ||
53 | #define sg_dma_len(sg) ((sg)->length) | ||
54 | |||
46 | #endif /* _ASM_SCATTERLIST_H */ | 55 | #endif /* _ASM_SCATTERLIST_H */ |
diff --git a/include/asm-mn10300/semaphore.h b/include/asm-mn10300/semaphore.h deleted file mode 100644 index d9b2034ed1d2..000000000000 --- a/include/asm-mn10300/semaphore.h +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | #include <linux/semaphore.h> | ||
diff --git a/include/asm-mn10300/thread_info.h b/include/asm-mn10300/thread_info.h index e397e7192785..78a3881f3c12 100644 --- a/include/asm-mn10300/thread_info.h +++ b/include/asm-mn10300/thread_info.h | |||
@@ -112,6 +112,8 @@ static inline unsigned long current_stack_pointer(void) | |||
112 | return sp; | 112 | return sp; |
113 | } | 113 | } |
114 | 114 | ||
115 | #define __HAVE_ARCH_THREAD_INFO_ALLOCATOR | ||
116 | |||
115 | /* thread information allocation */ | 117 | /* thread information allocation */ |
116 | #ifdef CONFIG_DEBUG_STACK_USAGE | 118 | #ifdef CONFIG_DEBUG_STACK_USAGE |
117 | #define alloc_thread_info(tsk) kzalloc(THREAD_SIZE, GFP_KERNEL) | 119 | #define alloc_thread_info(tsk) kzalloc(THREAD_SIZE, GFP_KERNEL) |