diff options
| author | Steve French <sfrench@us.ibm.com> | 2006-02-18 10:07:18 -0500 |
|---|---|---|
| committer | Steve French <sfrench@us.ibm.com> | 2006-02-18 10:07:18 -0500 |
| commit | e601ef22bc5ec9332c8d785533895ee81c834b8a (patch) | |
| tree | 4685a666fe2a553dccdfe7b4b3f88816d075b29e /include | |
| parent | 27754b34600770beb38e3ae12cb3f345f02e3797 (diff) | |
| parent | bd71c2b17468a2531fb4c81ec1d73520845e97e1 (diff) | |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'include')
46 files changed, 189 insertions, 581 deletions
diff --git a/include/asm-alpha/mman.h b/include/asm-alpha/mman.h index a21515c16a43..5f24c755f577 100644 --- a/include/asm-alpha/mman.h +++ b/include/asm-alpha/mman.h | |||
| @@ -42,9 +42,11 @@ | |||
| 42 | #define MADV_WILLNEED 3 /* will need these pages */ | 42 | #define MADV_WILLNEED 3 /* will need these pages */ |
| 43 | #define MADV_SPACEAVAIL 5 /* ensure resources are available */ | 43 | #define MADV_SPACEAVAIL 5 /* ensure resources are available */ |
| 44 | #define MADV_DONTNEED 6 /* don't need these pages */ | 44 | #define MADV_DONTNEED 6 /* don't need these pages */ |
| 45 | #define MADV_REMOVE 7 /* remove these pages & resources */ | 45 | |
| 46 | #define MADV_DONTFORK 0x30 /* dont inherit across fork */ | 46 | /* common/generic parameters */ |
| 47 | #define MADV_DOFORK 0x31 /* do inherit across fork */ | 47 | #define MADV_REMOVE 9 /* remove these pages & resources */ |
| 48 | #define MADV_DONTFORK 10 /* don't inherit across fork */ | ||
| 49 | #define MADV_DOFORK 11 /* do inherit across fork */ | ||
| 48 | 50 | ||
| 49 | /* compatibility flags */ | 51 | /* compatibility flags */ |
| 50 | #define MAP_ANON MAP_ANONYMOUS | 52 | #define MAP_ANON MAP_ANONYMOUS |
diff --git a/include/asm-arm/mman.h b/include/asm-arm/mman.h index 693ed859e632..54570d2e95b7 100644 --- a/include/asm-arm/mman.h +++ b/include/asm-arm/mman.h | |||
| @@ -1,19 +1,7 @@ | |||
| 1 | #ifndef __ARM_MMAN_H__ | 1 | #ifndef __ARM_MMAN_H__ |
| 2 | #define __ARM_MMAN_H__ | 2 | #define __ARM_MMAN_H__ |
| 3 | 3 | ||
| 4 | #define PROT_READ 0x1 /* page can be read */ | 4 | #include <asm-generic/mman.h> |
| 5 | #define PROT_WRITE 0x2 /* page can be written */ | ||
| 6 | #define PROT_EXEC 0x4 /* page can be executed */ | ||
| 7 | #define PROT_SEM 0x8 /* page may be used for atomic ops */ | ||
| 8 | #define PROT_NONE 0x0 /* page can not be accessed */ | ||
| 9 | #define PROT_GROWSDOWN 0x01000000 /* mprotect flag: extend change to start of growsdown vma */ | ||
| 10 | #define PROT_GROWSUP 0x02000000 /* mprotect flag: extend change to end of growsup vma */ | ||
| 11 | |||
| 12 | #define MAP_SHARED 0x01 /* Share changes */ | ||
| 13 | #define MAP_PRIVATE 0x02 /* Changes are private */ | ||
| 14 | #define MAP_TYPE 0x0f /* Mask for type of mapping */ | ||
| 15 | #define MAP_FIXED 0x10 /* Interpret addr exactly */ | ||
| 16 | #define MAP_ANONYMOUS 0x20 /* don't use a file */ | ||
| 17 | 5 | ||
| 18 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ | 6 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ |
| 19 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ | 7 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ |
| @@ -23,24 +11,7 @@ | |||
| 23 | #define MAP_POPULATE 0x8000 /* populate (prefault) page tables */ | 11 | #define MAP_POPULATE 0x8000 /* populate (prefault) page tables */ |
| 24 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ | 12 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ |
| 25 | 13 | ||
| 26 | #define MS_ASYNC 1 /* sync memory asynchronously */ | ||
| 27 | #define MS_INVALIDATE 2 /* invalidate the caches */ | ||
| 28 | #define MS_SYNC 4 /* synchronous memory sync */ | ||
| 29 | |||
| 30 | #define MCL_CURRENT 1 /* lock all current mappings */ | 14 | #define MCL_CURRENT 1 /* lock all current mappings */ |
| 31 | #define MCL_FUTURE 2 /* lock all future mappings */ | 15 | #define MCL_FUTURE 2 /* lock all future mappings */ |
| 32 | 16 | ||
| 33 | #define MADV_NORMAL 0x0 /* default page-in behavior */ | ||
| 34 | #define MADV_RANDOM 0x1 /* page-in minimum required */ | ||
| 35 | #define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */ | ||
| 36 | #define MADV_WILLNEED 0x3 /* pre-fault pages */ | ||
| 37 | #define MADV_DONTNEED 0x4 /* discard these pages */ | ||
| 38 | #define MADV_REMOVE 0x5 /* remove these pages & resources */ | ||
| 39 | #define MADV_DONTFORK 0x30 /* dont inherit across fork */ | ||
| 40 | #define MADV_DOFORK 0x31 /* do inherit across fork */ | ||
| 41 | |||
| 42 | /* compatibility flags */ | ||
| 43 | #define MAP_ANON MAP_ANONYMOUS | ||
| 44 | #define MAP_FILE 0 | ||
| 45 | |||
| 46 | #endif /* __ARM_MMAN_H__ */ | 17 | #endif /* __ARM_MMAN_H__ */ |
diff --git a/include/asm-arm/smp.h b/include/asm-arm/smp.h index 5a72e50ca9fc..fe45f7f61223 100644 --- a/include/asm-arm/smp.h +++ b/include/asm-arm/smp.h | |||
| @@ -42,6 +42,11 @@ extern void show_ipi_list(struct seq_file *p); | |||
| 42 | asmlinkage void do_IPI(struct pt_regs *regs); | 42 | asmlinkage void do_IPI(struct pt_regs *regs); |
| 43 | 43 | ||
| 44 | /* | 44 | /* |
| 45 | * Setup the SMP cpu_possible_map | ||
| 46 | */ | ||
| 47 | extern void smp_init_cpus(void); | ||
| 48 | |||
| 49 | /* | ||
| 45 | * Move global data into per-processor storage. | 50 | * Move global data into per-processor storage. |
| 46 | */ | 51 | */ |
| 47 | extern void smp_store_cpu_info(unsigned int cpuid); | 52 | extern void smp_store_cpu_info(unsigned int cpuid); |
diff --git a/include/asm-arm/unistd.h b/include/asm-arm/unistd.h index 77430d6178ae..8f331bbd39a8 100644 --- a/include/asm-arm/unistd.h +++ b/include/asm-arm/unistd.h | |||
| @@ -309,7 +309,7 @@ | |||
| 309 | #define __NR_mq_getsetattr (__NR_SYSCALL_BASE+279) | 309 | #define __NR_mq_getsetattr (__NR_SYSCALL_BASE+279) |
| 310 | #define __NR_waitid (__NR_SYSCALL_BASE+280) | 310 | #define __NR_waitid (__NR_SYSCALL_BASE+280) |
| 311 | 311 | ||
| 312 | #if 0 /* reserve these for un-muxing socketcall */ | 312 | #if defined(__ARM_EABI__) /* reserve these for un-muxing socketcall */ |
| 313 | #define __NR_socket (__NR_SYSCALL_BASE+281) | 313 | #define __NR_socket (__NR_SYSCALL_BASE+281) |
| 314 | #define __NR_bind (__NR_SYSCALL_BASE+282) | 314 | #define __NR_bind (__NR_SYSCALL_BASE+282) |
| 315 | #define __NR_connect (__NR_SYSCALL_BASE+283) | 315 | #define __NR_connect (__NR_SYSCALL_BASE+283) |
| @@ -329,7 +329,7 @@ | |||
| 329 | #define __NR_recvmsg (__NR_SYSCALL_BASE+297) | 329 | #define __NR_recvmsg (__NR_SYSCALL_BASE+297) |
| 330 | #endif | 330 | #endif |
| 331 | 331 | ||
| 332 | #if 0 /* reserve these for un-muxing ipc */ | 332 | #if defined(__ARM_EABI__) /* reserve these for un-muxing ipc */ |
| 333 | #define __NR_semop (__NR_SYSCALL_BASE+298) | 333 | #define __NR_semop (__NR_SYSCALL_BASE+298) |
| 334 | #define __NR_semget (__NR_SYSCALL_BASE+299) | 334 | #define __NR_semget (__NR_SYSCALL_BASE+299) |
| 335 | #define __NR_semctl (__NR_SYSCALL_BASE+300) | 335 | #define __NR_semctl (__NR_SYSCALL_BASE+300) |
| @@ -347,7 +347,7 @@ | |||
| 347 | #define __NR_request_key (__NR_SYSCALL_BASE+310) | 347 | #define __NR_request_key (__NR_SYSCALL_BASE+310) |
| 348 | #define __NR_keyctl (__NR_SYSCALL_BASE+311) | 348 | #define __NR_keyctl (__NR_SYSCALL_BASE+311) |
| 349 | 349 | ||
| 350 | #if 0 /* reserved for un-muxing ipc */ | 350 | #if defined(__ARM_EABI__) /* reserved for un-muxing ipc */ |
| 351 | #define __NR_semtimedop (__NR_SYSCALL_BASE+312) | 351 | #define __NR_semtimedop (__NR_SYSCALL_BASE+312) |
| 352 | #endif | 352 | #endif |
| 353 | 353 | ||
diff --git a/include/asm-arm26/mman.h b/include/asm-arm26/mman.h index 2096c50df888..4000a6c1b76b 100644 --- a/include/asm-arm26/mman.h +++ b/include/asm-arm26/mman.h | |||
| @@ -1,19 +1,7 @@ | |||
| 1 | #ifndef __ARM_MMAN_H__ | 1 | #ifndef __ARM_MMAN_H__ |
| 2 | #define __ARM_MMAN_H__ | 2 | #define __ARM_MMAN_H__ |
| 3 | 3 | ||
| 4 | #define PROT_READ 0x1 /* page can be read */ | 4 | #include <asm-generic/mman.h> |
| 5 | #define PROT_WRITE 0x2 /* page can be written */ | ||
| 6 | #define PROT_EXEC 0x4 /* page can be executed */ | ||
| 7 | #define PROT_SEM 0x8 /* page may be used for atomic ops */ | ||
| 8 | #define PROT_NONE 0x0 /* page can not be accessed */ | ||
| 9 | #define PROT_GROWSDOWN 0x01000000 /* mprotect flag: extend change to start of growsdown vma */ | ||
| 10 | #define PROT_GROWSUP 0x02000000 /* mprotect flag: extend change to end of growsup vma */ | ||
| 11 | |||
| 12 | #define MAP_SHARED 0x01 /* Share changes */ | ||
| 13 | #define MAP_PRIVATE 0x02 /* Changes are private */ | ||
| 14 | #define MAP_TYPE 0x0f /* Mask for type of mapping */ | ||
| 15 | #define MAP_FIXED 0x10 /* Interpret addr exactly */ | ||
| 16 | #define MAP_ANONYMOUS 0x20 /* don't use a file */ | ||
| 17 | 5 | ||
| 18 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ | 6 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ |
| 19 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ | 7 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ |
| @@ -23,24 +11,7 @@ | |||
| 23 | #define MAP_POPULATE 0x8000 /* populate (prefault) page tables */ | 11 | #define MAP_POPULATE 0x8000 /* populate (prefault) page tables */ |
| 24 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ | 12 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ |
| 25 | 13 | ||
| 26 | #define MS_ASYNC 1 /* sync memory asynchronously */ | ||
| 27 | #define MS_INVALIDATE 2 /* invalidate the caches */ | ||
| 28 | #define MS_SYNC 4 /* synchronous memory sync */ | ||
| 29 | |||
| 30 | #define MCL_CURRENT 1 /* lock all current mappings */ | 14 | #define MCL_CURRENT 1 /* lock all current mappings */ |
| 31 | #define MCL_FUTURE 2 /* lock all future mappings */ | 15 | #define MCL_FUTURE 2 /* lock all future mappings */ |
| 32 | 16 | ||
| 33 | #define MADV_NORMAL 0x0 /* default page-in behavior */ | ||
| 34 | #define MADV_RANDOM 0x1 /* page-in minimum required */ | ||
| 35 | #define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */ | ||
| 36 | #define MADV_WILLNEED 0x3 /* pre-fault pages */ | ||
| 37 | #define MADV_DONTNEED 0x4 /* discard these pages */ | ||
| 38 | #define MADV_REMOVE 0x5 /* remove these pages & resources */ | ||
| 39 | #define MADV_DONTFORK 0x30 /* dont inherit across fork */ | ||
| 40 | #define MADV_DOFORK 0x31 /* do inherit across fork */ | ||
| 41 | |||
| 42 | /* compatibility flags */ | ||
| 43 | #define MAP_ANON MAP_ANONYMOUS | ||
| 44 | #define MAP_FILE 0 | ||
| 45 | |||
| 46 | #endif /* __ARM_MMAN_H__ */ | 17 | #endif /* __ARM_MMAN_H__ */ |
diff --git a/include/asm-cris/mman.h b/include/asm-cris/mman.h index deddfb239ff5..1c35e1b66b46 100644 --- a/include/asm-cris/mman.h +++ b/include/asm-cris/mman.h | |||
| @@ -3,19 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | /* verbatim copy of asm-i386/ version */ | 4 | /* verbatim copy of asm-i386/ version */ |
| 5 | 5 | ||
| 6 | #define PROT_READ 0x1 /* page can be read */ | 6 | #include <asm-generic/mman.h> |
| 7 | #define PROT_WRITE 0x2 /* page can be written */ | ||
| 8 | #define PROT_EXEC 0x4 /* page can be executed */ | ||
| 9 | #define PROT_SEM 0x8 /* page may be used for atomic ops */ | ||
| 10 | #define PROT_NONE 0x0 /* page can not be accessed */ | ||
| 11 | #define PROT_GROWSDOWN 0x01000000 /* mprotect flag: extend change to start of growsdown vma */ | ||
| 12 | #define PROT_GROWSUP 0x02000000 /* mprotect flag: extend change to end of growsup vma */ | ||
| 13 | |||
| 14 | #define MAP_SHARED 0x01 /* Share changes */ | ||
| 15 | #define MAP_PRIVATE 0x02 /* Changes are private */ | ||
| 16 | #define MAP_TYPE 0x0f /* Mask for type of mapping */ | ||
| 17 | #define MAP_FIXED 0x10 /* Interpret addr exactly */ | ||
| 18 | #define MAP_ANONYMOUS 0x20 /* don't use a file */ | ||
| 19 | 7 | ||
| 20 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ | 8 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ |
| 21 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ | 9 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ |
| @@ -25,24 +13,7 @@ | |||
| 25 | #define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ | 13 | #define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ |
| 26 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ | 14 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ |
| 27 | 15 | ||
| 28 | #define MS_ASYNC 1 /* sync memory asynchronously */ | ||
| 29 | #define MS_INVALIDATE 2 /* invalidate the caches */ | ||
| 30 | #define MS_SYNC 4 /* synchronous memory sync */ | ||
| 31 | |||
| 32 | #define MCL_CURRENT 1 /* lock all current mappings */ | 16 | #define MCL_CURRENT 1 /* lock all current mappings */ |
| 33 | #define MCL_FUTURE 2 /* lock all future mappings */ | 17 | #define MCL_FUTURE 2 /* lock all future mappings */ |
| 34 | 18 | ||
| 35 | #define MADV_NORMAL 0x0 /* default page-in behavior */ | ||
| 36 | #define MADV_RANDOM 0x1 /* page-in minimum required */ | ||
| 37 | #define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */ | ||
| 38 | #define MADV_WILLNEED 0x3 /* pre-fault pages */ | ||
| 39 | #define MADV_DONTNEED 0x4 /* discard these pages */ | ||
| 40 | #define MADV_REMOVE 0x5 /* remove these pages & resources */ | ||
| 41 | #define MADV_DONTFORK 0x30 /* dont inherit across fork */ | ||
| 42 | #define MADV_DOFORK 0x31 /* do inherit across fork */ | ||
| 43 | |||
| 44 | /* compatibility flags */ | ||
| 45 | #define MAP_ANON MAP_ANONYMOUS | ||
| 46 | #define MAP_FILE 0 | ||
| 47 | |||
| 48 | #endif /* __CRIS_MMAN_H__ */ | 19 | #endif /* __CRIS_MMAN_H__ */ |
diff --git a/include/asm-frv/mman.h b/include/asm-frv/mman.h index d3bca306da82..b4371e928683 100644 --- a/include/asm-frv/mman.h +++ b/include/asm-frv/mman.h | |||
| @@ -1,19 +1,7 @@ | |||
| 1 | #ifndef __ASM_MMAN_H__ | 1 | #ifndef __ASM_MMAN_H__ |
| 2 | #define __ASM_MMAN_H__ | 2 | #define __ASM_MMAN_H__ |
| 3 | 3 | ||
| 4 | #define PROT_READ 0x1 /* page can be read */ | 4 | #include <asm-generic/mman.h> |
| 5 | #define PROT_WRITE 0x2 /* page can be written */ | ||
| 6 | #define PROT_EXEC 0x4 /* page can be executed */ | ||
| 7 | #define PROT_SEM 0x8 /* page may be used for atomic ops */ | ||
| 8 | #define PROT_NONE 0x0 /* page can not be accessed */ | ||
| 9 | #define PROT_GROWSDOWN 0x01000000 /* mprotect flag: extend change to start of growsdown vma */ | ||
| 10 | #define PROT_GROWSUP 0x02000000 /* mprotect flag: extend change to end of growsup vma */ | ||
| 11 | |||
| 12 | #define MAP_SHARED 0x01 /* Share changes */ | ||
| 13 | #define MAP_PRIVATE 0x02 /* Changes are private */ | ||
| 14 | #define MAP_TYPE 0x0f /* Mask for type of mapping */ | ||
| 15 | #define MAP_FIXED 0x10 /* Interpret addr exactly */ | ||
| 16 | #define MAP_ANONYMOUS 0x20 /* don't use a file */ | ||
| 17 | 5 | ||
| 18 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ | 6 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ |
| 19 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ | 7 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ |
| @@ -23,25 +11,8 @@ | |||
| 23 | #define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ | 11 | #define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ |
| 24 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ | 12 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ |
| 25 | 13 | ||
| 26 | #define MS_ASYNC 1 /* sync memory asynchronously */ | ||
| 27 | #define MS_INVALIDATE 2 /* invalidate the caches */ | ||
| 28 | #define MS_SYNC 4 /* synchronous memory sync */ | ||
| 29 | |||
| 30 | #define MCL_CURRENT 1 /* lock all current mappings */ | 14 | #define MCL_CURRENT 1 /* lock all current mappings */ |
| 31 | #define MCL_FUTURE 2 /* lock all future mappings */ | 15 | #define MCL_FUTURE 2 /* lock all future mappings */ |
| 32 | 16 | ||
| 33 | #define MADV_NORMAL 0x0 /* default page-in behavior */ | ||
| 34 | #define MADV_RANDOM 0x1 /* page-in minimum required */ | ||
| 35 | #define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */ | ||
| 36 | #define MADV_WILLNEED 0x3 /* pre-fault pages */ | ||
| 37 | #define MADV_DONTNEED 0x4 /* discard these pages */ | ||
| 38 | #define MADV_REMOVE 0x5 /* remove these pages & resources */ | ||
| 39 | #define MADV_DONTFORK 0x30 /* dont inherit across fork */ | ||
| 40 | #define MADV_DOFORK 0x31 /* do inherit across fork */ | ||
| 41 | |||
| 42 | /* compatibility flags */ | ||
| 43 | #define MAP_ANON MAP_ANONYMOUS | ||
| 44 | #define MAP_FILE 0 | ||
| 45 | |||
| 46 | #endif /* __ASM_MMAN_H__ */ | 17 | #endif /* __ASM_MMAN_H__ */ |
| 47 | 18 | ||
diff --git a/include/asm-generic/mman.h b/include/asm-generic/mman.h new file mode 100644 index 000000000000..3b41d2bb70da --- /dev/null +++ b/include/asm-generic/mman.h | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | #ifndef _ASM_GENERIC_MMAN_H | ||
| 2 | #define _ASM_GENERIC_MMAN_H | ||
| 3 | |||
| 4 | /* | ||
| 5 | Author: Michael S. Tsirkin <mst@mellanox.co.il>, Mellanox Technologies Ltd. | ||
| 6 | Based on: asm-xxx/mman.h | ||
| 7 | */ | ||
| 8 | |||
| 9 | #define PROT_READ 0x1 /* page can be read */ | ||
| 10 | #define PROT_WRITE 0x2 /* page can be written */ | ||
| 11 | #define PROT_EXEC 0x4 /* page can be executed */ | ||
| 12 | #define PROT_SEM 0x8 /* page may be used for atomic ops */ | ||
| 13 | #define PROT_NONE 0x0 /* page can not be accessed */ | ||
| 14 | #define PROT_GROWSDOWN 0x01000000 /* mprotect flag: extend change to start of growsdown vma */ | ||
| 15 | #define PROT_GROWSUP 0x02000000 /* mprotect flag: extend change to end of growsup vma */ | ||
| 16 | |||
| 17 | #define MAP_SHARED 0x01 /* Share changes */ | ||
| 18 | #define MAP_PRIVATE 0x02 /* Changes are private */ | ||
| 19 | #define MAP_TYPE 0x0f /* Mask for type of mapping */ | ||
| 20 | #define MAP_FIXED 0x10 /* Interpret addr exactly */ | ||
| 21 | #define MAP_ANONYMOUS 0x20 /* don't use a file */ | ||
| 22 | |||
| 23 | #define MS_ASYNC 1 /* sync memory asynchronously */ | ||
| 24 | #define MS_INVALIDATE 2 /* invalidate the caches */ | ||
| 25 | #define MS_SYNC 4 /* synchronous memory sync */ | ||
| 26 | |||
| 27 | #define MADV_NORMAL 0 /* no further special treatment */ | ||
| 28 | #define MADV_RANDOM 1 /* expect random page references */ | ||
| 29 | #define MADV_SEQUENTIAL 2 /* expect sequential page references */ | ||
| 30 | #define MADV_WILLNEED 3 /* will need these pages */ | ||
| 31 | #define MADV_DONTNEED 4 /* don't need these pages */ | ||
| 32 | |||
| 33 | /* common parameters: try to keep these consistent across architectures */ | ||
| 34 | #define MADV_REMOVE 9 /* remove these pages & resources */ | ||
| 35 | #define MADV_DONTFORK 10 /* don't inherit across fork */ | ||
| 36 | #define MADV_DOFORK 11 /* do inherit across fork */ | ||
| 37 | |||
| 38 | /* compatibility flags */ | ||
| 39 | #define MAP_ANON MAP_ANONYMOUS | ||
| 40 | #define MAP_FILE 0 | ||
| 41 | |||
| 42 | #endif | ||
diff --git a/include/asm-h8300/mman.h b/include/asm-h8300/mman.h index ac0346f7d11d..b9f104f22a36 100644 --- a/include/asm-h8300/mman.h +++ b/include/asm-h8300/mman.h | |||
| @@ -1,19 +1,7 @@ | |||
| 1 | #ifndef __H8300_MMAN_H__ | 1 | #ifndef __H8300_MMAN_H__ |
| 2 | #define __H8300_MMAN_H__ | 2 | #define __H8300_MMAN_H__ |
| 3 | 3 | ||
| 4 | #define PROT_READ 0x1 /* page can be read */ | 4 | #include <asm-generic/mman.h> |
| 5 | #define PROT_WRITE 0x2 /* page can be written */ | ||
| 6 | #define PROT_EXEC 0x4 /* page can be executed */ | ||
| 7 | #define PROT_SEM 0x8 /* page may be used for atomic ops */ | ||
| 8 | #define PROT_NONE 0x0 /* page can not be accessed */ | ||
| 9 | #define PROT_GROWSDOWN 0x01000000 /* mprotect flag: extend change to start of growsdown vma */ | ||
| 10 | #define PROT_GROWSUP 0x02000000 /* mprotect flag: extend change to end of growsup vma */ | ||
| 11 | |||
| 12 | #define MAP_SHARED 0x01 /* Share changes */ | ||
| 13 | #define MAP_PRIVATE 0x02 /* Changes are private */ | ||
| 14 | #define MAP_TYPE 0x0f /* Mask for type of mapping */ | ||
| 15 | #define MAP_FIXED 0x10 /* Interpret addr exactly */ | ||
| 16 | #define MAP_ANONYMOUS 0x20 /* don't use a file */ | ||
| 17 | 5 | ||
| 18 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ | 6 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ |
| 19 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ | 7 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ |
| @@ -23,24 +11,7 @@ | |||
| 23 | #define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ | 11 | #define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ |
| 24 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ | 12 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ |
| 25 | 13 | ||
| 26 | #define MS_ASYNC 1 /* sync memory asynchronously */ | ||
| 27 | #define MS_INVALIDATE 2 /* invalidate the caches */ | ||
| 28 | #define MS_SYNC 4 /* synchronous memory sync */ | ||
| 29 | |||
| 30 | #define MCL_CURRENT 1 /* lock all current mappings */ | 14 | #define MCL_CURRENT 1 /* lock all current mappings */ |
| 31 | #define MCL_FUTURE 2 /* lock all future mappings */ | 15 | #define MCL_FUTURE 2 /* lock all future mappings */ |
| 32 | 16 | ||
| 33 | #define MADV_NORMAL 0x0 /* default page-in behavior */ | ||
| 34 | #define MADV_RANDOM 0x1 /* page-in minimum required */ | ||
| 35 | #define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */ | ||
| 36 | #define MADV_WILLNEED 0x3 /* pre-fault pages */ | ||
| 37 | #define MADV_DONTNEED 0x4 /* discard these pages */ | ||
| 38 | #define MADV_REMOVE 0x5 /* remove these pages & resources */ | ||
| 39 | #define MADV_DONTFORK 0x30 /* dont inherit across fork */ | ||
| 40 | #define MADV_DOFORK 0x31 /* do inherit across fork */ | ||
| 41 | |||
| 42 | /* compatibility flags */ | ||
| 43 | #define MAP_ANON MAP_ANONYMOUS | ||
| 44 | #define MAP_FILE 0 | ||
| 45 | |||
| 46 | #endif /* __H8300_MMAN_H__ */ | 17 | #endif /* __H8300_MMAN_H__ */ |
diff --git a/include/asm-i386/mman.h b/include/asm-i386/mman.h index ab2339a1d807..8fd9d7ab7faf 100644 --- a/include/asm-i386/mman.h +++ b/include/asm-i386/mman.h | |||
| @@ -1,19 +1,7 @@ | |||
| 1 | #ifndef __I386_MMAN_H__ | 1 | #ifndef __I386_MMAN_H__ |
| 2 | #define __I386_MMAN_H__ | 2 | #define __I386_MMAN_H__ |
| 3 | 3 | ||
| 4 | #define PROT_READ 0x1 /* page can be read */ | 4 | #include <asm-generic/mman.h> |
| 5 | #define PROT_WRITE 0x2 /* page can be written */ | ||
| 6 | #define PROT_EXEC 0x4 /* page can be executed */ | ||
| 7 | #define PROT_SEM 0x8 /* page may be used for atomic ops */ | ||
| 8 | #define PROT_NONE 0x0 /* page can not be accessed */ | ||
| 9 | #define PROT_GROWSDOWN 0x01000000 /* mprotect flag: extend change to start of growsdown vma */ | ||
| 10 | #define PROT_GROWSUP 0x02000000 /* mprotect flag: extend change to end of growsup vma */ | ||
| 11 | |||
| 12 | #define MAP_SHARED 0x01 /* Share changes */ | ||
| 13 | #define MAP_PRIVATE 0x02 /* Changes are private */ | ||
| 14 | #define MAP_TYPE 0x0f /* Mask for type of mapping */ | ||
| 15 | #define MAP_FIXED 0x10 /* Interpret addr exactly */ | ||
| 16 | #define MAP_ANONYMOUS 0x20 /* don't use a file */ | ||
| 17 | 5 | ||
| 18 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ | 6 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ |
| 19 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ | 7 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ |
| @@ -23,24 +11,7 @@ | |||
| 23 | #define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ | 11 | #define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ |
| 24 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ | 12 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ |
| 25 | 13 | ||
| 26 | #define MS_ASYNC 1 /* sync memory asynchronously */ | ||
| 27 | #define MS_INVALIDATE 2 /* invalidate the caches */ | ||
| 28 | #define MS_SYNC 4 /* synchronous memory sync */ | ||
| 29 | |||
| 30 | #define MCL_CURRENT 1 /* lock all current mappings */ | 14 | #define MCL_CURRENT 1 /* lock all current mappings */ |
| 31 | #define MCL_FUTURE 2 /* lock all future mappings */ | 15 | #define MCL_FUTURE 2 /* lock all future mappings */ |
| 32 | 16 | ||
| 33 | #define MADV_NORMAL 0x0 /* default page-in behavior */ | ||
| 34 | #define MADV_RANDOM 0x1 /* page-in minimum required */ | ||
| 35 | #define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */ | ||
| 36 | #define MADV_WILLNEED 0x3 /* pre-fault pages */ | ||
| 37 | #define MADV_DONTNEED 0x4 /* discard these pages */ | ||
| 38 | #define MADV_REMOVE 0x5 /* remove these pages & resources */ | ||
| 39 | #define MADV_DONTFORK 0x30 /* dont inherit across fork */ | ||
| 40 | #define MADV_DOFORK 0x31 /* do inherit across fork */ | ||
| 41 | |||
| 42 | /* compatibility flags */ | ||
| 43 | #define MAP_ANON MAP_ANONYMOUS | ||
| 44 | #define MAP_FILE 0 | ||
| 45 | |||
| 46 | #endif /* __I386_MMAN_H__ */ | 17 | #endif /* __I386_MMAN_H__ */ |
diff --git a/include/asm-i386/thread_info.h b/include/asm-i386/thread_info.h index e20e99551d71..1f7d48c9ba3f 100644 --- a/include/asm-i386/thread_info.h +++ b/include/asm-i386/thread_info.h | |||
| @@ -158,8 +158,8 @@ register unsigned long current_stack_pointer asm("esp") __attribute_used__; | |||
| 158 | 158 | ||
| 159 | /* work to do on interrupt/exception return */ | 159 | /* work to do on interrupt/exception return */ |
| 160 | #define _TIF_WORK_MASK \ | 160 | #define _TIF_WORK_MASK \ |
| 161 | (0x0000FFFF & ~(_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT|_TIF_SINGLESTEP|\ | 161 | (0x0000FFFF & ~(_TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT | \ |
| 162 | _TIF_SECCOMP|_TIF_SYSCALL_EMU)) | 162 | _TIF_SECCOMP | _TIF_SYSCALL_EMU)) |
| 163 | /* work to do on any return to u-space */ | 163 | /* work to do on any return to u-space */ |
| 164 | #define _TIF_ALLWORK_MASK (0x0000FFFF & ~_TIF_SECCOMP) | 164 | #define _TIF_ALLWORK_MASK (0x0000FFFF & ~_TIF_SECCOMP) |
| 165 | 165 | ||
diff --git a/include/asm-ia64/acpi.h b/include/asm-ia64/acpi.h index 3a544ffc5008..f7a517654308 100644 --- a/include/asm-ia64/acpi.h +++ b/include/asm-ia64/acpi.h | |||
| @@ -106,6 +106,8 @@ extern unsigned int can_cpei_retarget(void); | |||
| 106 | extern unsigned int is_cpu_cpei_target(unsigned int cpu); | 106 | extern unsigned int is_cpu_cpei_target(unsigned int cpu); |
| 107 | extern void set_cpei_target_cpu(unsigned int cpu); | 107 | extern void set_cpei_target_cpu(unsigned int cpu); |
| 108 | extern unsigned int get_cpei_target_cpu(void); | 108 | extern unsigned int get_cpei_target_cpu(void); |
| 109 | extern void prefill_possible_map(void); | ||
| 110 | extern int additional_cpus; | ||
| 109 | 111 | ||
| 110 | #ifdef CONFIG_ACPI_NUMA | 112 | #ifdef CONFIG_ACPI_NUMA |
| 111 | /* Proximity bitmap length; _PXM is at most 255 (8 bit)*/ | 113 | /* Proximity bitmap length; _PXM is at most 255 (8 bit)*/ |
diff --git a/include/asm-ia64/machvec_sn2.h b/include/asm-ia64/machvec_sn2.h index e1b6cd63f49e..03d00faf03b5 100644 --- a/include/asm-ia64/machvec_sn2.h +++ b/include/asm-ia64/machvec_sn2.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2002-2003 Silicon Graphics, Inc. All Rights Reserved. | 2 | * Copyright (c) 2002-2003, 2006 Silicon Graphics, Inc. All Rights Reserved. |
| 3 | * | 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify it | 4 | * This program is free software; you can redistribute it and/or modify it |
| 5 | * under the terms of version 2 of the GNU General Public License | 5 | * under the terms of version 2 of the GNU General Public License |
| @@ -20,11 +20,6 @@ | |||
| 20 | * License along with this program; if not, write the Free Software | 20 | * License along with this program; if not, write the Free Software |
| 21 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. | 21 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. |
| 22 | * | 22 | * |
| 23 | * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy, | ||
| 24 | * Mountain View, CA 94043, or: | ||
| 25 | * | ||
| 26 | * http://www.sgi.com | ||
| 27 | * | ||
| 28 | * For further information regarding this notice, see: | 23 | * For further information regarding this notice, see: |
| 29 | * | 24 | * |
| 30 | * http://oss.sgi.com/projects/GenInfo/NoticeExplan | 25 | * http://oss.sgi.com/projects/GenInfo/NoticeExplan |
diff --git a/include/asm-ia64/mman.h b/include/asm-ia64/mman.h index 357ebb780cc0..6ba179f12718 100644 --- a/include/asm-ia64/mman.h +++ b/include/asm-ia64/mman.h | |||
| @@ -8,19 +8,7 @@ | |||
| 8 | * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co | 8 | * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co |
| 9 | */ | 9 | */ |
| 10 | 10 | ||
| 11 | #define PROT_READ 0x1 /* page can be read */ | 11 | #include <asm-generic/mman.h> |
| 12 | #define PROT_WRITE 0x2 /* page can be written */ | ||
| 13 | #define PROT_EXEC 0x4 /* page can be executed */ | ||
| 14 | #define PROT_SEM 0x8 /* page may be used for atomic ops */ | ||
| 15 | #define PROT_NONE 0x0 /* page can not be accessed */ | ||
| 16 | #define PROT_GROWSDOWN 0x01000000 /* mprotect flag: extend change to start of growsdown vma */ | ||
| 17 | #define PROT_GROWSUP 0x02000000 /* mprotect flag: extend change to end of growsup vma */ | ||
| 18 | |||
| 19 | #define MAP_SHARED 0x01 /* Share changes */ | ||
| 20 | #define MAP_PRIVATE 0x02 /* Changes are private */ | ||
| 21 | #define MAP_TYPE 0x0f /* Mask for type of mapping */ | ||
| 22 | #define MAP_FIXED 0x10 /* Interpret addr exactly */ | ||
| 23 | #define MAP_ANONYMOUS 0x20 /* don't use a file */ | ||
| 24 | 12 | ||
| 25 | #define MAP_GROWSDOWN 0x00100 /* stack-like segment */ | 13 | #define MAP_GROWSDOWN 0x00100 /* stack-like segment */ |
| 26 | #define MAP_GROWSUP 0x00200 /* register stack-like segment */ | 14 | #define MAP_GROWSUP 0x00200 /* register stack-like segment */ |
| @@ -31,24 +19,7 @@ | |||
| 31 | #define MAP_POPULATE 0x08000 /* populate (prefault) pagetables */ | 19 | #define MAP_POPULATE 0x08000 /* populate (prefault) pagetables */ |
| 32 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ | 20 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ |
| 33 | 21 | ||
| 34 | #define MS_ASYNC 1 /* sync memory asynchronously */ | ||
| 35 | #define MS_INVALIDATE 2 /* invalidate the caches */ | ||
| 36 | #define MS_SYNC 4 /* synchronous memory sync */ | ||
| 37 | |||
| 38 | #define MCL_CURRENT 1 /* lock all current mappings */ | 22 | #define MCL_CURRENT 1 /* lock all current mappings */ |
| 39 | #define MCL_FUTURE 2 /* lock all future mappings */ | 23 | #define MCL_FUTURE 2 /* lock all future mappings */ |
| 40 | 24 | ||
| 41 | #define MADV_NORMAL 0x0 /* default page-in behavior */ | ||
| 42 | #define MADV_RANDOM 0x1 /* page-in minimum required */ | ||
| 43 | #define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */ | ||
| 44 | #define MADV_WILLNEED 0x3 /* pre-fault pages */ | ||
| 45 | #define MADV_DONTNEED 0x4 /* discard these pages */ | ||
| 46 | #define MADV_REMOVE 0x5 /* remove these pages & resources */ | ||
| 47 | #define MADV_DONTFORK 0x30 /* dont inherit across fork */ | ||
| 48 | #define MADV_DOFORK 0x31 /* do inherit across fork */ | ||
| 49 | |||
| 50 | /* compatibility flags */ | ||
| 51 | #define MAP_ANON MAP_ANONYMOUS | ||
| 52 | #define MAP_FILE 0 | ||
| 53 | |||
| 54 | #endif /* _ASM_IA64_MMAN_H */ | 25 | #endif /* _ASM_IA64_MMAN_H */ |
diff --git a/include/asm-ia64/sn/arch.h b/include/asm-ia64/sn/arch.h index 1a3831c04af6..91c31be87b13 100644 --- a/include/asm-ia64/sn/arch.h +++ b/include/asm-ia64/sn/arch.h | |||
| @@ -70,7 +70,7 @@ DECLARE_PER_CPU(struct sn_hub_info_s, __sn_hub_info); | |||
| 70 | * Compact node ID to nasid mappings kept in the per-cpu data areas of each | 70 | * Compact node ID to nasid mappings kept in the per-cpu data areas of each |
| 71 | * cpu. | 71 | * cpu. |
| 72 | */ | 72 | */ |
| 73 | DECLARE_PER_CPU(short, __sn_cnodeid_to_nasid[MAX_NUMNODES]); | 73 | DECLARE_PER_CPU(short, __sn_cnodeid_to_nasid[MAX_COMPACT_NODES]); |
| 74 | #define sn_cnodeid_to_nasid (&__get_cpu_var(__sn_cnodeid_to_nasid[0])) | 74 | #define sn_cnodeid_to_nasid (&__get_cpu_var(__sn_cnodeid_to_nasid[0])) |
| 75 | 75 | ||
| 76 | 76 | ||
diff --git a/include/asm-ia64/sn/bte.h b/include/asm-ia64/sn/bte.h index 01e5b4103235..5335d87ca5f8 100644 --- a/include/asm-ia64/sn/bte.h +++ b/include/asm-ia64/sn/bte.h | |||
| @@ -46,7 +46,7 @@ | |||
| 46 | #define BTES_PER_NODE (is_shub2() ? 4 : 2) | 46 | #define BTES_PER_NODE (is_shub2() ? 4 : 2) |
| 47 | #define MAX_BTES_PER_NODE 4 | 47 | #define MAX_BTES_PER_NODE 4 |
| 48 | 48 | ||
| 49 | #define BTE2OFF_CTRL (0) | 49 | #define BTE2OFF_CTRL 0 |
| 50 | #define BTE2OFF_SRC (SH2_BT_ENG_SRC_ADDR_0 - SH2_BT_ENG_CSR_0) | 50 | #define BTE2OFF_SRC (SH2_BT_ENG_SRC_ADDR_0 - SH2_BT_ENG_CSR_0) |
| 51 | #define BTE2OFF_DEST (SH2_BT_ENG_DEST_ADDR_0 - SH2_BT_ENG_CSR_0) | 51 | #define BTE2OFF_DEST (SH2_BT_ENG_DEST_ADDR_0 - SH2_BT_ENG_CSR_0) |
| 52 | #define BTE2OFF_NOTIFY (SH2_BT_ENG_NOTIF_ADDR_0 - SH2_BT_ENG_CSR_0) | 52 | #define BTE2OFF_NOTIFY (SH2_BT_ENG_NOTIF_ADDR_0 - SH2_BT_ENG_CSR_0) |
| @@ -75,11 +75,11 @@ | |||
| 75 | : base + (BTEOFF_NOTIFY/8)) | 75 | : base + (BTEOFF_NOTIFY/8)) |
| 76 | 76 | ||
| 77 | /* Define hardware modes */ | 77 | /* Define hardware modes */ |
| 78 | #define BTE_NOTIFY (IBCT_NOTIFY) | 78 | #define BTE_NOTIFY IBCT_NOTIFY |
| 79 | #define BTE_NORMAL BTE_NOTIFY | 79 | #define BTE_NORMAL BTE_NOTIFY |
| 80 | #define BTE_ZERO_FILL (BTE_NOTIFY | IBCT_ZFIL_MODE) | 80 | #define BTE_ZERO_FILL (BTE_NOTIFY | IBCT_ZFIL_MODE) |
| 81 | /* Use a reserved bit to let the caller specify a wait for any BTE */ | 81 | /* Use a reserved bit to let the caller specify a wait for any BTE */ |
| 82 | #define BTE_WACQUIRE (0x4000) | 82 | #define BTE_WACQUIRE 0x4000 |
| 83 | /* Use the BTE on the node with the destination memory */ | 83 | /* Use the BTE on the node with the destination memory */ |
| 84 | #define BTE_USE_DEST (BTE_WACQUIRE << 1) | 84 | #define BTE_USE_DEST (BTE_WACQUIRE << 1) |
| 85 | /* Use any available BTE interface on any node for the transfer */ | 85 | /* Use any available BTE interface on any node for the transfer */ |
diff --git a/include/asm-ia64/sn/pcibr_provider.h b/include/asm-ia64/sn/pcibr_provider.h index 9334078b089a..a601d3af39b6 100644 --- a/include/asm-ia64/sn/pcibr_provider.h +++ b/include/asm-ia64/sn/pcibr_provider.h | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | * License. See the file "COPYING" in the main directory of this archive | 3 | * License. See the file "COPYING" in the main directory of this archive |
| 4 | * for more details. | 4 | * for more details. |
| 5 | * | 5 | * |
| 6 | * Copyright (C) 1992-1997,2000-2004 Silicon Graphics, Inc. All rights reserved. | 6 | * Copyright (C) 1992-1997,2000-2006 Silicon Graphics, Inc. All rights reserved. |
| 7 | */ | 7 | */ |
| 8 | #ifndef _ASM_IA64_SN_PCI_PCIBR_PROVIDER_H | 8 | #ifndef _ASM_IA64_SN_PCI_PCIBR_PROVIDER_H |
| 9 | #define _ASM_IA64_SN_PCI_PCIBR_PROVIDER_H | 9 | #define _ASM_IA64_SN_PCI_PCIBR_PROVIDER_H |
| @@ -115,18 +115,6 @@ struct pcibus_info { | |||
| 115 | spinlock_t pbi_lock; | 115 | spinlock_t pbi_lock; |
| 116 | }; | 116 | }; |
| 117 | 117 | ||
| 118 | /* | ||
| 119 | * pcibus_info structure locking macros | ||
| 120 | */ | ||
| 121 | inline static unsigned long | ||
| 122 | pcibr_lock(struct pcibus_info *pcibus_info) | ||
| 123 | { | ||
| 124 | unsigned long flag; | ||
| 125 | spin_lock_irqsave(&pcibus_info->pbi_lock, flag); | ||
| 126 | return(flag); | ||
| 127 | } | ||
| 128 | #define pcibr_unlock(pcibus_info, flag) spin_unlock_irqrestore(&pcibus_info->pbi_lock, flag) | ||
| 129 | |||
| 130 | extern int pcibr_init_provider(void); | 118 | extern int pcibr_init_provider(void); |
| 131 | extern void *pcibr_bus_fixup(struct pcibus_bussoft *, struct pci_controller *); | 119 | extern void *pcibr_bus_fixup(struct pcibus_bussoft *, struct pci_controller *); |
| 132 | extern dma_addr_t pcibr_dma_map(struct pci_dev *, unsigned long, size_t); | 120 | extern dma_addr_t pcibr_dma_map(struct pci_dev *, unsigned long, size_t); |
diff --git a/include/asm-ia64/sn/sn_feature_sets.h b/include/asm-ia64/sn/sn_feature_sets.h index 9ca642cad338..ff33e3bd3f8e 100644 --- a/include/asm-ia64/sn/sn_feature_sets.h +++ b/include/asm-ia64/sn/sn_feature_sets.h | |||
| @@ -12,9 +12,6 @@ | |||
| 12 | */ | 12 | */ |
| 13 | 13 | ||
| 14 | 14 | ||
| 15 | #include <asm/types.h> | ||
| 16 | #include <asm/bitops.h> | ||
| 17 | |||
| 18 | /* --------------------- PROM Features -----------------------------*/ | 15 | /* --------------------- PROM Features -----------------------------*/ |
| 19 | extern int sn_prom_feature_available(int id); | 16 | extern int sn_prom_feature_available(int id); |
| 20 | 17 | ||
diff --git a/include/asm-ia64/sn/xpc.h b/include/asm-ia64/sn/xpc.h index 0c36928ffd8b..df7f5f4f3cde 100644 --- a/include/asm-ia64/sn/xpc.h +++ b/include/asm-ia64/sn/xpc.h | |||
| @@ -508,19 +508,24 @@ struct xpc_channel { | |||
| 508 | #define XPC_C_OPENREQUEST 0x00000010 /* local open channel request */ | 508 | #define XPC_C_OPENREQUEST 0x00000010 /* local open channel request */ |
| 509 | 509 | ||
| 510 | #define XPC_C_SETUP 0x00000020 /* channel's msgqueues are alloc'd */ | 510 | #define XPC_C_SETUP 0x00000020 /* channel's msgqueues are alloc'd */ |
| 511 | #define XPC_C_CONNECTCALLOUT 0x00000040 /* channel connected callout made */ | 511 | #define XPC_C_CONNECTEDCALLOUT 0x00000040 /* connected callout initiated */ |
| 512 | #define XPC_C_CONNECTED 0x00000080 /* local channel is connected */ | 512 | #define XPC_C_CONNECTEDCALLOUT_MADE \ |
| 513 | #define XPC_C_CONNECTING 0x00000100 /* channel is being connected */ | 513 | 0x00000080 /* connected callout completed */ |
| 514 | 514 | #define XPC_C_CONNECTED 0x00000100 /* local channel is connected */ | |
| 515 | #define XPC_C_RCLOSEREPLY 0x00000200 /* remote close channel reply */ | 515 | #define XPC_C_CONNECTING 0x00000200 /* channel is being connected */ |
| 516 | #define XPC_C_CLOSEREPLY 0x00000400 /* local close channel reply */ | 516 | |
| 517 | #define XPC_C_RCLOSEREQUEST 0x00000800 /* remote close channel request */ | 517 | #define XPC_C_RCLOSEREPLY 0x00000400 /* remote close channel reply */ |
| 518 | #define XPC_C_CLOSEREQUEST 0x00001000 /* local close channel request */ | 518 | #define XPC_C_CLOSEREPLY 0x00000800 /* local close channel reply */ |
| 519 | 519 | #define XPC_C_RCLOSEREQUEST 0x00001000 /* remote close channel request */ | |
| 520 | #define XPC_C_DISCONNECTED 0x00002000 /* channel is disconnected */ | 520 | #define XPC_C_CLOSEREQUEST 0x00002000 /* local close channel request */ |
| 521 | #define XPC_C_DISCONNECTING 0x00004000 /* channel is being disconnected */ | 521 | |
| 522 | #define XPC_C_DISCONNECTCALLOUT 0x00008000 /* chan disconnected callout made */ | 522 | #define XPC_C_DISCONNECTED 0x00004000 /* channel is disconnected */ |
| 523 | #define XPC_C_WDISCONNECT 0x00010000 /* waiting for channel disconnect */ | 523 | #define XPC_C_DISCONNECTING 0x00008000 /* channel is being disconnected */ |
| 524 | #define XPC_C_DISCONNECTINGCALLOUT \ | ||
| 525 | 0x00010000 /* disconnecting callout initiated */ | ||
| 526 | #define XPC_C_DISCONNECTINGCALLOUT_MADE \ | ||
| 527 | 0x00020000 /* disconnecting callout completed */ | ||
| 528 | #define XPC_C_WDISCONNECT 0x00040000 /* waiting for channel disconnect */ | ||
| 524 | 529 | ||
| 525 | 530 | ||
| 526 | 531 | ||
diff --git a/include/asm-ia64/timex.h b/include/asm-ia64/timex.h index 414aae060440..05a6baf8a472 100644 --- a/include/asm-ia64/timex.h +++ b/include/asm-ia64/timex.h | |||
| @@ -15,6 +15,8 @@ | |||
| 15 | 15 | ||
| 16 | typedef unsigned long cycles_t; | 16 | typedef unsigned long cycles_t; |
| 17 | 17 | ||
| 18 | extern void (*ia64_udelay)(unsigned long usecs); | ||
| 19 | |||
| 18 | /* | 20 | /* |
| 19 | * For performance reasons, we don't want to define CLOCK_TICK_TRATE as | 21 | * For performance reasons, we don't want to define CLOCK_TICK_TRATE as |
| 20 | * local_cpu_data->itc_rate. Fortunately, we don't have to, either: according to George | 22 | * local_cpu_data->itc_rate. Fortunately, we don't have to, either: according to George |
diff --git a/include/asm-m32r/mman.h b/include/asm-m32r/mman.h index 6b02fe3fcff2..695a860c024f 100644 --- a/include/asm-m32r/mman.h +++ b/include/asm-m32r/mman.h | |||
| @@ -1,21 +1,9 @@ | |||
| 1 | #ifndef __M32R_MMAN_H__ | 1 | #ifndef __M32R_MMAN_H__ |
| 2 | #define __M32R_MMAN_H__ | 2 | #define __M32R_MMAN_H__ |
| 3 | 3 | ||
| 4 | /* orig : i386 2.6.0-test6 */ | 4 | #include <asm-generic/mman.h> |
| 5 | |||
| 6 | #define PROT_READ 0x1 /* page can be read */ | ||
| 7 | #define PROT_WRITE 0x2 /* page can be written */ | ||
| 8 | #define PROT_EXEC 0x4 /* page can be executed */ | ||
| 9 | #define PROT_SEM 0x8 /* page may be used for atomic ops */ | ||
| 10 | #define PROT_NONE 0x0 /* page can not be accessed */ | ||
| 11 | #define PROT_GROWSDOWN 0x01000000 /* mprotect flag: extend change to start of growsdown vma */ | ||
| 12 | #define PROT_GROWSUP 0x02000000 /* mprotect flag: extend change to end of growsup vma */ | ||
| 13 | 5 | ||
| 14 | #define MAP_SHARED 0x01 /* Share changes */ | 6 | /* orig : i386 2.6.0-test6 */ |
| 15 | #define MAP_PRIVATE 0x02 /* Changes are private */ | ||
| 16 | #define MAP_TYPE 0x0f /* Mask for type of mapping */ | ||
| 17 | #define MAP_FIXED 0x10 /* Interpret addr exactly */ | ||
| 18 | #define MAP_ANONYMOUS 0x20 /* don't use a file */ | ||
| 19 | 7 | ||
| 20 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ | 8 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ |
| 21 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ | 9 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ |
| @@ -25,24 +13,7 @@ | |||
| 25 | #define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ | 13 | #define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ |
| 26 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ | 14 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ |
| 27 | 15 | ||
| 28 | #define MS_ASYNC 1 /* sync memory asynchronously */ | ||
| 29 | #define MS_INVALIDATE 2 /* invalidate the caches */ | ||
| 30 | #define MS_SYNC 4 /* synchronous memory sync */ | ||
| 31 | |||
| 32 | #define MCL_CURRENT 1 /* lock all current mappings */ | 16 | #define MCL_CURRENT 1 /* lock all current mappings */ |
| 33 | #define MCL_FUTURE 2 /* lock all future mappings */ | 17 | #define MCL_FUTURE 2 /* lock all future mappings */ |
| 34 | 18 | ||
| 35 | #define MADV_NORMAL 0x0 /* default page-in behavior */ | ||
| 36 | #define MADV_RANDOM 0x1 /* page-in minimum required */ | ||
| 37 | #define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */ | ||
| 38 | #define MADV_WILLNEED 0x3 /* pre-fault pages */ | ||
| 39 | #define MADV_DONTNEED 0x4 /* discard these pages */ | ||
| 40 | #define MADV_REMOVE 0x5 /* remove these pages & resources */ | ||
| 41 | #define MADV_DONTFORK 0x30 /* dont inherit across fork */ | ||
| 42 | #define MADV_DOFORK 0x31 /* do inherit across fork */ | ||
| 43 | |||
| 44 | /* compatibility flags */ | ||
| 45 | #define MAP_ANON MAP_ANONYMOUS | ||
| 46 | #define MAP_FILE 0 | ||
| 47 | |||
| 48 | #endif /* __M32R_MMAN_H__ */ | 19 | #endif /* __M32R_MMAN_H__ */ |
diff --git a/include/asm-m68k/mman.h b/include/asm-m68k/mman.h index efd12bc4ccb7..1626d37f4898 100644 --- a/include/asm-m68k/mman.h +++ b/include/asm-m68k/mman.h | |||
| @@ -1,19 +1,7 @@ | |||
| 1 | #ifndef __M68K_MMAN_H__ | 1 | #ifndef __M68K_MMAN_H__ |
| 2 | #define __M68K_MMAN_H__ | 2 | #define __M68K_MMAN_H__ |
| 3 | 3 | ||
| 4 | #define PROT_READ 0x1 /* page can be read */ | 4 | #include <asm-generic/mman.h> |
| 5 | #define PROT_WRITE 0x2 /* page can be written */ | ||
| 6 | #define PROT_EXEC 0x4 /* page can be executed */ | ||
| 7 | #define PROT_SEM 0x8 /* page may be used for atomic ops */ | ||
| 8 | #define PROT_NONE 0x0 /* page can not be accessed */ | ||
| 9 | #define PROT_GROWSDOWN 0x01000000 /* mprotect flag: extend change to start of growsdown vma */ | ||
| 10 | #define PROT_GROWSUP 0x02000000 /* mprotect flag: extend change to end of growsup vma */ | ||
| 11 | |||
| 12 | #define MAP_SHARED 0x01 /* Share changes */ | ||
| 13 | #define MAP_PRIVATE 0x02 /* Changes are private */ | ||
| 14 | #define MAP_TYPE 0x0f /* Mask for type of mapping */ | ||
| 15 | #define MAP_FIXED 0x10 /* Interpret addr exactly */ | ||
| 16 | #define MAP_ANONYMOUS 0x20 /* don't use a file */ | ||
| 17 | 5 | ||
| 18 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ | 6 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ |
| 19 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ | 7 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ |
| @@ -23,24 +11,7 @@ | |||
| 23 | #define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ | 11 | #define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ |
| 24 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ | 12 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ |
| 25 | 13 | ||
| 26 | #define MS_ASYNC 1 /* sync memory asynchronously */ | ||
| 27 | #define MS_INVALIDATE 2 /* invalidate the caches */ | ||
| 28 | #define MS_SYNC 4 /* synchronous memory sync */ | ||
| 29 | |||
| 30 | #define MCL_CURRENT 1 /* lock all current mappings */ | 14 | #define MCL_CURRENT 1 /* lock all current mappings */ |
| 31 | #define MCL_FUTURE 2 /* lock all future mappings */ | 15 | #define MCL_FUTURE 2 /* lock all future mappings */ |
| 32 | 16 | ||
| 33 | #define MADV_NORMAL 0x0 /* default page-in behavior */ | ||
| 34 | #define MADV_RANDOM 0x1 /* page-in minimum required */ | ||
| 35 | #define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */ | ||
| 36 | #define MADV_WILLNEED 0x3 /* pre-fault pages */ | ||
| 37 | #define MADV_DONTNEED 0x4 /* discard these pages */ | ||
| 38 | #define MADV_REMOVE 0x5 /* remove these pages & resources */ | ||
| 39 | #define MADV_DONTFORK 0x30 /* dont inherit across fork */ | ||
| 40 | #define MADV_DOFORK 0x31 /* do inherit across fork */ | ||
| 41 | |||
| 42 | /* compatibility flags */ | ||
| 43 | #define MAP_ANON MAP_ANONYMOUS | ||
| 44 | #define MAP_FILE 0 | ||
| 45 | |||
| 46 | #endif /* __M68K_MMAN_H__ */ | 17 | #endif /* __M68K_MMAN_H__ */ |
diff --git a/include/asm-mips/mman.h b/include/asm-mips/mman.h index 6d01e26830fa..046cf686bee7 100644 --- a/include/asm-mips/mman.h +++ b/include/asm-mips/mman.h | |||
| @@ -60,17 +60,19 @@ | |||
| 60 | #define MCL_CURRENT 1 /* lock all current mappings */ | 60 | #define MCL_CURRENT 1 /* lock all current mappings */ |
| 61 | #define MCL_FUTURE 2 /* lock all future mappings */ | 61 | #define MCL_FUTURE 2 /* lock all future mappings */ |
| 62 | 62 | ||
| 63 | #define MADV_NORMAL 0x0 /* default page-in behavior */ | 63 | #define MADV_NORMAL 0 /* no further special treatment */ |
| 64 | #define MADV_RANDOM 0x1 /* page-in minimum required */ | 64 | #define MADV_RANDOM 1 /* expect random page references */ |
| 65 | #define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */ | 65 | #define MADV_SEQUENTIAL 2 /* expect sequential page references */ |
| 66 | #define MADV_WILLNEED 0x3 /* pre-fault pages */ | 66 | #define MADV_WILLNEED 3 /* will need these pages */ |
| 67 | #define MADV_DONTNEED 0x4 /* discard these pages */ | 67 | #define MADV_DONTNEED 4 /* don't need these pages */ |
| 68 | #define MADV_REMOVE 0x5 /* remove these pages & resources */ | 68 | |
| 69 | #define MADV_DONTFORK 0x30 /* dont inherit across fork */ | 69 | /* common parameters: try to keep these consistent across architectures */ |
| 70 | #define MADV_DOFORK 0x31 /* do inherit across fork */ | 70 | #define MADV_REMOVE 9 /* remove these pages & resources */ |
| 71 | #define MADV_DONTFORK 10 /* don't inherit across fork */ | ||
| 72 | #define MADV_DOFORK 11 /* do inherit across fork */ | ||
| 71 | 73 | ||
| 72 | /* compatibility flags */ | 74 | /* compatibility flags */ |
| 73 | #define MAP_ANON MAP_ANONYMOUS | 75 | #define MAP_ANON MAP_ANONYMOUS |
| 74 | #define MAP_FILE 0 | 76 | #define MAP_FILE 0 |
| 75 | 77 | ||
| 76 | #endif /* _ASM_MMAN_H */ | 78 | #endif /* _ASM_MMAN_H */ |
diff --git a/include/asm-parisc/mman.h b/include/asm-parisc/mman.h index a381cf5c8f55..0ef15ee0f17e 100644 --- a/include/asm-parisc/mman.h +++ b/include/asm-parisc/mman.h | |||
| @@ -38,7 +38,11 @@ | |||
| 38 | #define MADV_SPACEAVAIL 5 /* insure that resources are reserved */ | 38 | #define MADV_SPACEAVAIL 5 /* insure that resources are reserved */ |
| 39 | #define MADV_VPS_PURGE 6 /* Purge pages from VM page cache */ | 39 | #define MADV_VPS_PURGE 6 /* Purge pages from VM page cache */ |
| 40 | #define MADV_VPS_INHERIT 7 /* Inherit parents page size */ | 40 | #define MADV_VPS_INHERIT 7 /* Inherit parents page size */ |
| 41 | #define MADV_REMOVE 8 /* remove these pages & resources */ | 41 | |
| 42 | /* common/generic parameters */ | ||
| 43 | #define MADV_REMOVE 9 /* remove these pages & resources */ | ||
| 44 | #define MADV_DONTFORK 10 /* don't inherit across fork */ | ||
| 45 | #define MADV_DOFORK 11 /* do inherit across fork */ | ||
| 42 | 46 | ||
| 43 | /* The range 12-64 is reserved for page size specification. */ | 47 | /* The range 12-64 is reserved for page size specification. */ |
| 44 | #define MADV_4K_PAGES 12 /* Use 4K pages */ | 48 | #define MADV_4K_PAGES 12 /* Use 4K pages */ |
| @@ -49,8 +53,6 @@ | |||
| 49 | #define MADV_4M_PAGES 22 /* Use 4 Megabyte pages */ | 53 | #define MADV_4M_PAGES 22 /* Use 4 Megabyte pages */ |
| 50 | #define MADV_16M_PAGES 24 /* Use 16 Megabyte pages */ | 54 | #define MADV_16M_PAGES 24 /* Use 16 Megabyte pages */ |
| 51 | #define MADV_64M_PAGES 26 /* Use 64 Megabyte pages */ | 55 | #define MADV_64M_PAGES 26 /* Use 64 Megabyte pages */ |
| 52 | #define MADV_DONTFORK 0x30 /* dont inherit across fork */ | ||
| 53 | #define MADV_DOFORK 0x31 /* do inherit across fork */ | ||
| 54 | 56 | ||
| 55 | /* compatibility flags */ | 57 | /* compatibility flags */ |
| 56 | #define MAP_ANON MAP_ANONYMOUS | 58 | #define MAP_ANON MAP_ANONYMOUS |
diff --git a/include/asm-powerpc/mman.h b/include/asm-powerpc/mman.h index fcff25d13f13..24cf664a8295 100644 --- a/include/asm-powerpc/mman.h +++ b/include/asm-powerpc/mman.h | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | #ifndef _ASM_POWERPC_MMAN_H | 1 | #ifndef _ASM_POWERPC_MMAN_H |
| 2 | #define _ASM_POWERPC_MMAN_H | 2 | #define _ASM_POWERPC_MMAN_H |
| 3 | 3 | ||
| 4 | #include <asm-generic/mman.h> | ||
| 5 | |||
| 4 | /* | 6 | /* |
| 5 | * This program is free software; you can redistribute it and/or | 7 | * This program is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU General Public License | 8 | * modify it under the terms of the GNU General Public License |
| @@ -8,19 +10,6 @@ | |||
| 8 | * 2 of the License, or (at your option) any later version. | 10 | * 2 of the License, or (at your option) any later version. |
| 9 | */ | 11 | */ |
| 10 | 12 | ||
| 11 | #define PROT_READ 0x1 /* page can be read */ | ||
| 12 | #define PROT_WRITE 0x2 /* page can be written */ | ||
| 13 | #define PROT_EXEC 0x4 /* page can be executed */ | ||
| 14 | #define PROT_SEM 0x8 /* page may be used for atomic ops */ | ||
| 15 | #define PROT_NONE 0x0 /* page can not be accessed */ | ||
| 16 | #define PROT_GROWSDOWN 0x01000000 /* mprotect flag: extend change to start of growsdown vma */ | ||
| 17 | #define PROT_GROWSUP 0x02000000 /* mprotect flag: extend change to end of growsup vma */ | ||
| 18 | |||
| 19 | #define MAP_SHARED 0x01 /* Share changes */ | ||
| 20 | #define MAP_PRIVATE 0x02 /* Changes are private */ | ||
| 21 | #define MAP_TYPE 0x0f /* Mask for type of mapping */ | ||
| 22 | #define MAP_FIXED 0x10 /* Interpret addr exactly */ | ||
| 23 | #define MAP_ANONYMOUS 0x20 /* don't use a file */ | ||
| 24 | #define MAP_RENAME MAP_ANONYMOUS /* In SunOS terminology */ | 13 | #define MAP_RENAME MAP_ANONYMOUS /* In SunOS terminology */ |
| 25 | #define MAP_NORESERVE 0x40 /* don't reserve swap pages */ | 14 | #define MAP_NORESERVE 0x40 /* don't reserve swap pages */ |
| 26 | #define MAP_LOCKED 0x80 | 15 | #define MAP_LOCKED 0x80 |
| @@ -29,27 +18,10 @@ | |||
| 29 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ | 18 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ |
| 30 | #define MAP_EXECUTABLE 0x1000 /* mark it as an executable */ | 19 | #define MAP_EXECUTABLE 0x1000 /* mark it as an executable */ |
| 31 | 20 | ||
| 32 | #define MS_ASYNC 1 /* sync memory asynchronously */ | ||
| 33 | #define MS_INVALIDATE 2 /* invalidate the caches */ | ||
| 34 | #define MS_SYNC 4 /* synchronous memory sync */ | ||
| 35 | |||
| 36 | #define MCL_CURRENT 0x2000 /* lock all currently mapped pages */ | 21 | #define MCL_CURRENT 0x2000 /* lock all currently mapped pages */ |
| 37 | #define MCL_FUTURE 0x4000 /* lock all additions to address space */ | 22 | #define MCL_FUTURE 0x4000 /* lock all additions to address space */ |
| 38 | 23 | ||
| 39 | #define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ | 24 | #define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ |
| 40 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ | 25 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ |
| 41 | 26 | ||
| 42 | #define MADV_NORMAL 0x0 /* default page-in behavior */ | ||
| 43 | #define MADV_RANDOM 0x1 /* page-in minimum required */ | ||
| 44 | #define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */ | ||
| 45 | #define MADV_WILLNEED 0x3 /* pre-fault pages */ | ||
| 46 | #define MADV_DONTNEED 0x4 /* discard these pages */ | ||
| 47 | #define MADV_REMOVE 0x5 /* remove these pages & resources */ | ||
| 48 | #define MADV_DONTFORK 0x30 /* dont inherit across fork */ | ||
| 49 | #define MADV_DOFORK 0x31 /* do inherit across fork */ | ||
| 50 | |||
| 51 | /* compatibility flags */ | ||
| 52 | #define MAP_ANON MAP_ANONYMOUS | ||
| 53 | #define MAP_FILE 0 | ||
| 54 | |||
| 55 | #endif /* _ASM_POWERPC_MMAN_H */ | 27 | #endif /* _ASM_POWERPC_MMAN_H */ |
diff --git a/include/asm-powerpc/pgalloc.h b/include/asm-powerpc/pgalloc.h index 9f5b052784a5..a00ee002cd11 100644 --- a/include/asm-powerpc/pgalloc.h +++ b/include/asm-powerpc/pgalloc.h | |||
| @@ -146,7 +146,7 @@ extern void pgtable_free_tlb(struct mmu_gather *tlb, pgtable_free_t pgf); | |||
| 146 | pgtable_free_tlb(tlb, pgtable_free_cache(pmd, \ | 146 | pgtable_free_tlb(tlb, pgtable_free_cache(pmd, \ |
| 147 | PMD_CACHE_NUM, PMD_TABLE_SIZE-1)) | 147 | PMD_CACHE_NUM, PMD_TABLE_SIZE-1)) |
| 148 | #ifndef CONFIG_PPC_64K_PAGES | 148 | #ifndef CONFIG_PPC_64K_PAGES |
| 149 | #define __pud_free_tlb(tlb, pmd) \ | 149 | #define __pud_free_tlb(tlb, pud) \ |
| 150 | pgtable_free_tlb(tlb, pgtable_free_cache(pud, \ | 150 | pgtable_free_tlb(tlb, pgtable_free_cache(pud, \ |
| 151 | PUD_CACHE_NUM, PUD_TABLE_SIZE-1)) | 151 | PUD_CACHE_NUM, PUD_TABLE_SIZE-1)) |
| 152 | #endif /* CONFIG_PPC_64K_PAGES */ | 152 | #endif /* CONFIG_PPC_64K_PAGES */ |
diff --git a/include/asm-s390/mman.h b/include/asm-s390/mman.h index d41ca1477010..7839767d837e 100644 --- a/include/asm-s390/mman.h +++ b/include/asm-s390/mman.h | |||
| @@ -9,19 +9,7 @@ | |||
| 9 | #ifndef __S390_MMAN_H__ | 9 | #ifndef __S390_MMAN_H__ |
| 10 | #define __S390_MMAN_H__ | 10 | #define __S390_MMAN_H__ |
| 11 | 11 | ||
| 12 | #define PROT_READ 0x1 /* page can be read */ | 12 | #include <asm-generic/mman.h> |
| 13 | #define PROT_WRITE 0x2 /* page can be written */ | ||
| 14 | #define PROT_EXEC 0x4 /* page can be executed */ | ||
| 15 | #define PROT_SEM 0x8 /* page may be used for atomic ops */ | ||
| 16 | #define PROT_NONE 0x0 /* page can not be accessed */ | ||
| 17 | #define PROT_GROWSDOWN 0x01000000 /* mprotect flag: extend change to start of growsdown vma */ | ||
| 18 | #define PROT_GROWSUP 0x02000000 /* mprotect flag: extend change to end of growsup vma */ | ||
| 19 | |||
| 20 | #define MAP_SHARED 0x01 /* Share changes */ | ||
| 21 | #define MAP_PRIVATE 0x02 /* Changes are private */ | ||
| 22 | #define MAP_TYPE 0x0f /* Mask for type of mapping */ | ||
| 23 | #define MAP_FIXED 0x10 /* Interpret addr exactly */ | ||
| 24 | #define MAP_ANONYMOUS 0x20 /* don't use a file */ | ||
| 25 | 13 | ||
| 26 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ | 14 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ |
| 27 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ | 15 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ |
| @@ -31,24 +19,7 @@ | |||
| 31 | #define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ | 19 | #define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ |
| 32 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ | 20 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ |
| 33 | 21 | ||
| 34 | #define MS_ASYNC 1 /* sync memory asynchronously */ | ||
| 35 | #define MS_INVALIDATE 2 /* invalidate the caches */ | ||
| 36 | #define MS_SYNC 4 /* synchronous memory sync */ | ||
| 37 | |||
| 38 | #define MCL_CURRENT 1 /* lock all current mappings */ | 22 | #define MCL_CURRENT 1 /* lock all current mappings */ |
| 39 | #define MCL_FUTURE 2 /* lock all future mappings */ | 23 | #define MCL_FUTURE 2 /* lock all future mappings */ |
| 40 | 24 | ||
| 41 | #define MADV_NORMAL 0x0 /* default page-in behavior */ | ||
| 42 | #define MADV_RANDOM 0x1 /* page-in minimum required */ | ||
| 43 | #define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */ | ||
| 44 | #define MADV_WILLNEED 0x3 /* pre-fault pages */ | ||
| 45 | #define MADV_DONTNEED 0x4 /* discard these pages */ | ||
| 46 | #define MADV_REMOVE 0x5 /* remove these pages & resources */ | ||
| 47 | #define MADV_DONTFORK 0x30 /* dont inherit across fork */ | ||
| 48 | #define MADV_DOFORK 0x31 /* do inherit across fork */ | ||
| 49 | |||
| 50 | /* compatibility flags */ | ||
| 51 | #define MAP_ANON MAP_ANONYMOUS | ||
| 52 | #define MAP_FILE 0 | ||
| 53 | |||
| 54 | #endif /* __S390_MMAN_H__ */ | 25 | #endif /* __S390_MMAN_H__ */ |
diff --git a/include/asm-s390/smp.h b/include/asm-s390/smp.h index 9c6e9c300eb9..444dae5912e6 100644 --- a/include/asm-s390/smp.h +++ b/include/asm-s390/smp.h | |||
| @@ -31,6 +31,7 @@ typedef struct | |||
| 31 | __u16 cpu; | 31 | __u16 cpu; |
| 32 | } sigp_info; | 32 | } sigp_info; |
| 33 | 33 | ||
| 34 | extern void smp_setup_cpu_possible_map(void); | ||
| 34 | extern int smp_call_function_on(void (*func) (void *info), void *info, | 35 | extern int smp_call_function_on(void (*func) (void *info), void *info, |
| 35 | int nonatomic, int wait, int cpu); | 36 | int nonatomic, int wait, int cpu); |
| 36 | #define NO_PROC_ID 0xFF /* No processor magic marker */ | 37 | #define NO_PROC_ID 0xFF /* No processor magic marker */ |
| @@ -104,6 +105,7 @@ smp_call_function_on(void (*func) (void *info), void *info, | |||
| 104 | #define smp_cpu_not_running(cpu) 1 | 105 | #define smp_cpu_not_running(cpu) 1 |
| 105 | #define smp_get_cpu(cpu) ({ 0; }) | 106 | #define smp_get_cpu(cpu) ({ 0; }) |
| 106 | #define smp_put_cpu(cpu) ({ 0; }) | 107 | #define smp_put_cpu(cpu) ({ 0; }) |
| 108 | #define smp_setup_cpu_possible_map() | ||
| 107 | #endif | 109 | #endif |
| 108 | 110 | ||
| 109 | #endif | 111 | #endif |
diff --git a/include/asm-sh/mman.h b/include/asm-sh/mman.h index 0e08d0573abc..156eb0225cf6 100644 --- a/include/asm-sh/mman.h +++ b/include/asm-sh/mman.h | |||
| @@ -1,19 +1,7 @@ | |||
| 1 | #ifndef __ASM_SH_MMAN_H | 1 | #ifndef __ASM_SH_MMAN_H |
| 2 | #define __ASM_SH_MMAN_H | 2 | #define __ASM_SH_MMAN_H |
| 3 | 3 | ||
| 4 | #define PROT_READ 0x1 /* page can be read */ | 4 | #include <asm-generic/mman.h> |
| 5 | #define PROT_WRITE 0x2 /* page can be written */ | ||
| 6 | #define PROT_EXEC 0x4 /* page can be executed */ | ||
| 7 | #define PROT_SEM 0x8 /* page may be used for atomic ops */ | ||
| 8 | #define PROT_NONE 0x0 /* page can not be accessed */ | ||
| 9 | #define PROT_GROWSDOWN 0x01000000 /* mprotect flag: extend change to start of growsdown vma */ | ||
| 10 | #define PROT_GROWSUP 0x02000000 /* mprotect flag: extend change to end of growsup vma */ | ||
| 11 | |||
| 12 | #define MAP_SHARED 0x01 /* Share changes */ | ||
| 13 | #define MAP_PRIVATE 0x02 /* Changes are private */ | ||
| 14 | #define MAP_TYPE 0x0f /* Mask for type of mapping */ | ||
| 15 | #define MAP_FIXED 0x10 /* Interpret addr exactly */ | ||
| 16 | #define MAP_ANONYMOUS 0x20 /* don't use a file */ | ||
| 17 | 5 | ||
| 18 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ | 6 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ |
| 19 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ | 7 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ |
| @@ -23,24 +11,7 @@ | |||
| 23 | #define MAP_POPULATE 0x8000 /* populate (prefault) page tables */ | 11 | #define MAP_POPULATE 0x8000 /* populate (prefault) page tables */ |
| 24 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ | 12 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ |
| 25 | 13 | ||
| 26 | #define MS_ASYNC 1 /* sync memory asynchronously */ | ||
| 27 | #define MS_INVALIDATE 2 /* invalidate the caches */ | ||
| 28 | #define MS_SYNC 4 /* synchronous memory sync */ | ||
| 29 | |||
| 30 | #define MCL_CURRENT 1 /* lock all current mappings */ | 14 | #define MCL_CURRENT 1 /* lock all current mappings */ |
| 31 | #define MCL_FUTURE 2 /* lock all future mappings */ | 15 | #define MCL_FUTURE 2 /* lock all future mappings */ |
| 32 | 16 | ||
| 33 | #define MADV_NORMAL 0x0 /* default page-in behavior */ | ||
| 34 | #define MADV_RANDOM 0x1 /* page-in minimum required */ | ||
| 35 | #define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */ | ||
| 36 | #define MADV_WILLNEED 0x3 /* pre-fault pages */ | ||
| 37 | #define MADV_DONTNEED 0x4 /* discard these pages */ | ||
| 38 | #define MADV_REMOVE 0x5 /* remove these pages & resources */ | ||
| 39 | #define MADV_DONTFORK 0x30 /* dont inherit across fork */ | ||
| 40 | #define MADV_DOFORK 0x31 /* do inherit across fork */ | ||
| 41 | |||
| 42 | /* compatibility flags */ | ||
| 43 | #define MAP_ANON MAP_ANONYMOUS | ||
| 44 | #define MAP_FILE 0 | ||
| 45 | |||
| 46 | #endif /* __ASM_SH_MMAN_H */ | 17 | #endif /* __ASM_SH_MMAN_H */ |
diff --git a/include/asm-sparc/mman.h b/include/asm-sparc/mman.h index 4a298b2be859..88d1886abf3b 100644 --- a/include/asm-sparc/mman.h +++ b/include/asm-sparc/mman.h | |||
| @@ -2,21 +2,10 @@ | |||
| 2 | #ifndef __SPARC_MMAN_H__ | 2 | #ifndef __SPARC_MMAN_H__ |
| 3 | #define __SPARC_MMAN_H__ | 3 | #define __SPARC_MMAN_H__ |
| 4 | 4 | ||
| 5 | /* SunOS'ified... */ | 5 | #include <asm-generic/mman.h> |
| 6 | 6 | ||
| 7 | #define PROT_READ 0x1 /* page can be read */ | 7 | /* SunOS'ified... */ |
| 8 | #define PROT_WRITE 0x2 /* page can be written */ | ||
| 9 | #define PROT_EXEC 0x4 /* page can be executed */ | ||
| 10 | #define PROT_SEM 0x8 /* page may be used for atomic ops */ | ||
| 11 | #define PROT_NONE 0x0 /* page can not be accessed */ | ||
| 12 | #define PROT_GROWSDOWN 0x01000000 /* mprotect flag: extend change to start of growsdown vma */ | ||
| 13 | #define PROT_GROWSUP 0x02000000 /* mprotect flag: extend change to end of growsup vma */ | ||
| 14 | 8 | ||
| 15 | #define MAP_SHARED 0x01 /* Share changes */ | ||
| 16 | #define MAP_PRIVATE 0x02 /* Changes are private */ | ||
| 17 | #define MAP_TYPE 0x0f /* Mask for type of mapping */ | ||
| 18 | #define MAP_FIXED 0x10 /* Interpret addr exactly */ | ||
| 19 | #define MAP_ANONYMOUS 0x20 /* don't use a file */ | ||
| 20 | #define MAP_RENAME MAP_ANONYMOUS /* In SunOS terminology */ | 9 | #define MAP_RENAME MAP_ANONYMOUS /* In SunOS terminology */ |
| 21 | #define MAP_NORESERVE 0x40 /* don't reserve swap pages */ | 10 | #define MAP_NORESERVE 0x40 /* don't reserve swap pages */ |
| 22 | #define MAP_INHERIT 0x80 /* SunOS doesn't do this, but... */ | 11 | #define MAP_INHERIT 0x80 /* SunOS doesn't do this, but... */ |
| @@ -27,10 +16,6 @@ | |||
| 27 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ | 16 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ |
| 28 | #define MAP_EXECUTABLE 0x1000 /* mark it as an executable */ | 17 | #define MAP_EXECUTABLE 0x1000 /* mark it as an executable */ |
| 29 | 18 | ||
| 30 | #define MS_ASYNC 1 /* sync memory asynchronously */ | ||
| 31 | #define MS_INVALIDATE 2 /* invalidate the caches */ | ||
| 32 | #define MS_SYNC 4 /* synchronous memory sync */ | ||
| 33 | |||
| 34 | #define MCL_CURRENT 0x2000 /* lock all currently mapped pages */ | 19 | #define MCL_CURRENT 0x2000 /* lock all currently mapped pages */ |
| 35 | #define MCL_FUTURE 0x4000 /* lock all additions to address space */ | 20 | #define MCL_FUTURE 0x4000 /* lock all additions to address space */ |
| 36 | 21 | ||
| @@ -48,18 +33,6 @@ | |||
| 48 | #define MC_LOCKAS 5 /* Lock an entire address space of the calling process */ | 33 | #define MC_LOCKAS 5 /* Lock an entire address space of the calling process */ |
| 49 | #define MC_UNLOCKAS 6 /* Unlock entire address space of calling process */ | 34 | #define MC_UNLOCKAS 6 /* Unlock entire address space of calling process */ |
| 50 | 35 | ||
| 51 | #define MADV_NORMAL 0x0 /* default page-in behavior */ | ||
| 52 | #define MADV_RANDOM 0x1 /* page-in minimum required */ | ||
| 53 | #define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */ | ||
| 54 | #define MADV_WILLNEED 0x3 /* pre-fault pages */ | ||
| 55 | #define MADV_DONTNEED 0x4 /* discard these pages */ | ||
| 56 | #define MADV_FREE 0x5 /* (Solaris) contents can be freed */ | 36 | #define MADV_FREE 0x5 /* (Solaris) contents can be freed */ |
| 57 | #define MADV_REMOVE 0x6 /* remove these pages & resources */ | ||
| 58 | #define MADV_DONTFORK 0x30 /* dont inherit across fork */ | ||
| 59 | #define MADV_DOFORK 0x31 /* do inherit across fork */ | ||
| 60 | |||
| 61 | /* compatibility flags */ | ||
| 62 | #define MAP_ANON MAP_ANONYMOUS | ||
| 63 | #define MAP_FILE 0 | ||
| 64 | 37 | ||
| 65 | #endif /* __SPARC_MMAN_H__ */ | 38 | #endif /* __SPARC_MMAN_H__ */ |
diff --git a/include/asm-sparc64/mman.h b/include/asm-sparc64/mman.h index d705ec92da8b..6fd878e61435 100644 --- a/include/asm-sparc64/mman.h +++ b/include/asm-sparc64/mman.h | |||
| @@ -2,21 +2,10 @@ | |||
| 2 | #ifndef __SPARC64_MMAN_H__ | 2 | #ifndef __SPARC64_MMAN_H__ |
| 3 | #define __SPARC64_MMAN_H__ | 3 | #define __SPARC64_MMAN_H__ |
| 4 | 4 | ||
| 5 | /* SunOS'ified... */ | 5 | #include <asm-generic/mman.h> |
| 6 | 6 | ||
| 7 | #define PROT_READ 0x1 /* page can be read */ | 7 | /* SunOS'ified... */ |
| 8 | #define PROT_WRITE 0x2 /* page can be written */ | ||
| 9 | #define PROT_EXEC 0x4 /* page can be executed */ | ||
| 10 | #define PROT_SEM 0x8 /* page may be used for atomic ops */ | ||
| 11 | #define PROT_NONE 0x0 /* page can not be accessed */ | ||
| 12 | #define PROT_GROWSDOWN 0x01000000 /* mprotect flag: extend change to start of growsdown vma */ | ||
| 13 | #define PROT_GROWSUP 0x02000000 /* mprotect flag: extend change to end of growsup vma */ | ||
| 14 | 8 | ||
| 15 | #define MAP_SHARED 0x01 /* Share changes */ | ||
| 16 | #define MAP_PRIVATE 0x02 /* Changes are private */ | ||
| 17 | #define MAP_TYPE 0x0f /* Mask for type of mapping */ | ||
| 18 | #define MAP_FIXED 0x10 /* Interpret addr exactly */ | ||
| 19 | #define MAP_ANONYMOUS 0x20 /* don't use a file */ | ||
| 20 | #define MAP_RENAME MAP_ANONYMOUS /* In SunOS terminology */ | 9 | #define MAP_RENAME MAP_ANONYMOUS /* In SunOS terminology */ |
| 21 | #define MAP_NORESERVE 0x40 /* don't reserve swap pages */ | 10 | #define MAP_NORESERVE 0x40 /* don't reserve swap pages */ |
| 22 | #define MAP_INHERIT 0x80 /* SunOS doesn't do this, but... */ | 11 | #define MAP_INHERIT 0x80 /* SunOS doesn't do this, but... */ |
| @@ -27,10 +16,6 @@ | |||
| 27 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ | 16 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ |
| 28 | #define MAP_EXECUTABLE 0x1000 /* mark it as an executable */ | 17 | #define MAP_EXECUTABLE 0x1000 /* mark it as an executable */ |
| 29 | 18 | ||
| 30 | #define MS_ASYNC 1 /* sync memory asynchronously */ | ||
| 31 | #define MS_INVALIDATE 2 /* invalidate the caches */ | ||
| 32 | #define MS_SYNC 4 /* synchronous memory sync */ | ||
| 33 | |||
| 34 | #define MCL_CURRENT 0x2000 /* lock all currently mapped pages */ | 19 | #define MCL_CURRENT 0x2000 /* lock all currently mapped pages */ |
| 35 | #define MCL_FUTURE 0x4000 /* lock all additions to address space */ | 20 | #define MCL_FUTURE 0x4000 /* lock all additions to address space */ |
| 36 | 21 | ||
| @@ -48,18 +33,6 @@ | |||
| 48 | #define MC_LOCKAS 5 /* Lock an entire address space of the calling process */ | 33 | #define MC_LOCKAS 5 /* Lock an entire address space of the calling process */ |
| 49 | #define MC_UNLOCKAS 6 /* Unlock entire address space of calling process */ | 34 | #define MC_UNLOCKAS 6 /* Unlock entire address space of calling process */ |
| 50 | 35 | ||
| 51 | #define MADV_NORMAL 0x0 /* default page-in behavior */ | ||
| 52 | #define MADV_RANDOM 0x1 /* page-in minimum required */ | ||
| 53 | #define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */ | ||
| 54 | #define MADV_WILLNEED 0x3 /* pre-fault pages */ | ||
| 55 | #define MADV_DONTNEED 0x4 /* discard these pages */ | ||
| 56 | #define MADV_FREE 0x5 /* (Solaris) contents can be freed */ | 36 | #define MADV_FREE 0x5 /* (Solaris) contents can be freed */ |
| 57 | #define MADV_REMOVE 0x6 /* remove these pages & resources */ | ||
| 58 | #define MADV_DONTFORK 0x30 /* dont inherit across fork */ | ||
| 59 | #define MADV_DOFORK 0x31 /* do inherit across fork */ | ||
| 60 | |||
| 61 | /* compatibility flags */ | ||
| 62 | #define MAP_ANON MAP_ANONYMOUS | ||
| 63 | #define MAP_FILE 0 | ||
| 64 | 37 | ||
| 65 | #endif /* __SPARC64_MMAN_H__ */ | 38 | #endif /* __SPARC64_MMAN_H__ */ |
diff --git a/include/asm-v850/mman.h b/include/asm-v850/mman.h index 7b851c310e41..edbf6edbfb37 100644 --- a/include/asm-v850/mman.h +++ b/include/asm-v850/mman.h | |||
| @@ -1,18 +1,7 @@ | |||
| 1 | #ifndef __V850_MMAN_H__ | 1 | #ifndef __V850_MMAN_H__ |
| 2 | #define __V850_MMAN_H__ | 2 | #define __V850_MMAN_H__ |
| 3 | 3 | ||
| 4 | #define PROT_READ 0x1 /* page can be read */ | 4 | #include <asm-generic/mman.h> |
| 5 | #define PROT_WRITE 0x2 /* page can be written */ | ||
| 6 | #define PROT_EXEC 0x4 /* page can be executed */ | ||
| 7 | #define PROT_NONE 0x0 /* page can not be accessed */ | ||
| 8 | #define PROT_GROWSDOWN 0x01000000 /* mprotect flag: extend change to start of growsdown vma */ | ||
| 9 | #define PROT_GROWSUP 0x02000000 /* mprotect flag: extend change to end of growsup vma */ | ||
| 10 | |||
| 11 | #define MAP_SHARED 0x01 /* Share changes */ | ||
| 12 | #define MAP_PRIVATE 0x02 /* Changes are private */ | ||
| 13 | #define MAP_TYPE 0x0f /* Mask for type of mapping */ | ||
| 14 | #define MAP_FIXED 0x10 /* Interpret addr exactly */ | ||
| 15 | #define MAP_ANONYMOUS 0x20 /* don't use a file */ | ||
| 16 | 5 | ||
| 17 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ | 6 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ |
| 18 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ | 7 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ |
| @@ -20,24 +9,7 @@ | |||
| 20 | #define MAP_LOCKED 0x2000 /* pages are locked */ | 9 | #define MAP_LOCKED 0x2000 /* pages are locked */ |
| 21 | #define MAP_NORESERVE 0x4000 /* don't check for reservations */ | 10 | #define MAP_NORESERVE 0x4000 /* don't check for reservations */ |
| 22 | 11 | ||
| 23 | #define MS_ASYNC 1 /* sync memory asynchronously */ | ||
| 24 | #define MS_INVALIDATE 2 /* invalidate the caches */ | ||
| 25 | #define MS_SYNC 4 /* synchronous memory sync */ | ||
| 26 | |||
| 27 | #define MCL_CURRENT 1 /* lock all current mappings */ | 12 | #define MCL_CURRENT 1 /* lock all current mappings */ |
| 28 | #define MCL_FUTURE 2 /* lock all future mappings */ | 13 | #define MCL_FUTURE 2 /* lock all future mappings */ |
| 29 | 14 | ||
| 30 | #define MADV_NORMAL 0x0 /* default page-in behavior */ | ||
| 31 | #define MADV_RANDOM 0x1 /* page-in minimum required */ | ||
| 32 | #define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */ | ||
| 33 | #define MADV_WILLNEED 0x3 /* pre-fault pages */ | ||
| 34 | #define MADV_DONTNEED 0x4 /* discard these pages */ | ||
| 35 | #define MADV_REMOVE 0x5 /* remove these pages & resources */ | ||
| 36 | #define MADV_DONTFORK 0x30 /* dont inherit across fork */ | ||
| 37 | #define MADV_DOFORK 0x31 /* do inherit across fork */ | ||
| 38 | |||
| 39 | /* compatibility flags */ | ||
| 40 | #define MAP_ANON MAP_ANONYMOUS | ||
| 41 | #define MAP_FILE 0 | ||
| 42 | |||
| 43 | #endif /* __V850_MMAN_H__ */ | 15 | #endif /* __V850_MMAN_H__ */ |
diff --git a/include/asm-x86_64/mman.h b/include/asm-x86_64/mman.h index b699a38c1c3c..dd5cb0534d37 100644 --- a/include/asm-x86_64/mman.h +++ b/include/asm-x86_64/mman.h | |||
| @@ -1,19 +1,8 @@ | |||
| 1 | #ifndef __X8664_MMAN_H__ | 1 | #ifndef __X8664_MMAN_H__ |
| 2 | #define __X8664_MMAN_H__ | 2 | #define __X8664_MMAN_H__ |
| 3 | 3 | ||
| 4 | #define PROT_READ 0x1 /* page can be read */ | 4 | #include <asm-generic/mman.h> |
| 5 | #define PROT_WRITE 0x2 /* page can be written */ | ||
| 6 | #define PROT_EXEC 0x4 /* page can be executed */ | ||
| 7 | #define PROT_NONE 0x0 /* page can not be accessed */ | ||
| 8 | #define PROT_SEM 0x8 | ||
| 9 | #define PROT_GROWSDOWN 0x01000000 /* mprotect flag: extend change to start of growsdown vma */ | ||
| 10 | #define PROT_GROWSUP 0x02000000 /* mprotect flag: extend change to end of growsup vma */ | ||
| 11 | 5 | ||
| 12 | #define MAP_SHARED 0x01 /* Share changes */ | ||
| 13 | #define MAP_PRIVATE 0x02 /* Changes are private */ | ||
| 14 | #define MAP_TYPE 0x0f /* Mask for type of mapping */ | ||
| 15 | #define MAP_FIXED 0x10 /* Interpret addr exactly */ | ||
| 16 | #define MAP_ANONYMOUS 0x20 /* don't use a file */ | ||
| 17 | #define MAP_32BIT 0x40 /* only give out 32bit addresses */ | 6 | #define MAP_32BIT 0x40 /* only give out 32bit addresses */ |
| 18 | 7 | ||
| 19 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ | 8 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ |
| @@ -24,24 +13,7 @@ | |||
| 24 | #define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ | 13 | #define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ |
| 25 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ | 14 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ |
| 26 | 15 | ||
| 27 | #define MS_ASYNC 1 /* sync memory asynchronously */ | ||
| 28 | #define MS_INVALIDATE 2 /* invalidate the caches */ | ||
| 29 | #define MS_SYNC 4 /* synchronous memory sync */ | ||
| 30 | |||
| 31 | #define MCL_CURRENT 1 /* lock all current mappings */ | 16 | #define MCL_CURRENT 1 /* lock all current mappings */ |
| 32 | #define MCL_FUTURE 2 /* lock all future mappings */ | 17 | #define MCL_FUTURE 2 /* lock all future mappings */ |
| 33 | 18 | ||
| 34 | #define MADV_NORMAL 0x0 /* default page-in behavior */ | ||
| 35 | #define MADV_RANDOM 0x1 /* page-in minimum required */ | ||
| 36 | #define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */ | ||
| 37 | #define MADV_WILLNEED 0x3 /* pre-fault pages */ | ||
| 38 | #define MADV_DONTNEED 0x4 /* discard these pages */ | ||
| 39 | #define MADV_REMOVE 0x5 /* remove these pages & resources */ | ||
| 40 | #define MADV_DONTFORK 0x30 /* dont inherit across fork */ | ||
| 41 | #define MADV_DOFORK 0x31 /* do inherit across fork */ | ||
| 42 | |||
| 43 | /* compatibility flags */ | ||
| 44 | #define MAP_ANON MAP_ANONYMOUS | ||
| 45 | #define MAP_FILE 0 | ||
| 46 | |||
| 47 | #endif | 19 | #endif |
diff --git a/include/asm-x86_64/proto.h b/include/asm-x86_64/proto.h index c99832e7bf3f..eca3f2d633db 100644 --- a/include/asm-x86_64/proto.h +++ b/include/asm-x86_64/proto.h | |||
| @@ -133,6 +133,7 @@ extern int fix_aperture; | |||
| 133 | extern int force_iommu; | 133 | extern int force_iommu; |
| 134 | 134 | ||
| 135 | extern int reboot_force; | 135 | extern int reboot_force; |
| 136 | extern int notsc_setup(char *); | ||
| 136 | 137 | ||
| 137 | extern void smp_local_timer_interrupt(struct pt_regs * regs); | 138 | extern void smp_local_timer_interrupt(struct pt_regs * regs); |
| 138 | 139 | ||
diff --git a/include/asm-xtensa/mman.h b/include/asm-xtensa/mman.h index e2d7afb679c8..ba394cbb4807 100644 --- a/include/asm-xtensa/mman.h +++ b/include/asm-xtensa/mman.h | |||
| @@ -67,17 +67,19 @@ | |||
| 67 | #define MCL_CURRENT 1 /* lock all current mappings */ | 67 | #define MCL_CURRENT 1 /* lock all current mappings */ |
| 68 | #define MCL_FUTURE 2 /* lock all future mappings */ | 68 | #define MCL_FUTURE 2 /* lock all future mappings */ |
| 69 | 69 | ||
| 70 | #define MADV_NORMAL 0x0 /* default page-in behavior */ | 70 | #define MADV_NORMAL 0 /* no further special treatment */ |
| 71 | #define MADV_RANDOM 0x1 /* page-in minimum required */ | 71 | #define MADV_RANDOM 1 /* expect random page references */ |
| 72 | #define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */ | 72 | #define MADV_SEQUENTIAL 2 /* expect sequential page references */ |
| 73 | #define MADV_WILLNEED 0x3 /* pre-fault pages */ | 73 | #define MADV_WILLNEED 3 /* will need these pages */ |
| 74 | #define MADV_DONTNEED 0x4 /* discard these pages */ | 74 | #define MADV_DONTNEED 4 /* don't need these pages */ |
| 75 | #define MADV_REMOVE 0x5 /* remove these pages & resources */ | 75 | |
| 76 | #define MADV_DONTFORK 0x30 /* dont inherit across fork */ | 76 | /* common parameters: try to keep these consistent across architectures */ |
| 77 | #define MADV_DOFORK 0x31 /* do inherit across fork */ | 77 | #define MADV_REMOVE 9 /* remove these pages & resources */ |
| 78 | #define MADV_DONTFORK 10 /* don't inherit across fork */ | ||
| 79 | #define MADV_DOFORK 11 /* do inherit across fork */ | ||
| 78 | 80 | ||
| 79 | /* compatibility flags */ | 81 | /* compatibility flags */ |
| 80 | #define MAP_ANON MAP_ANONYMOUS | 82 | #define MAP_ANON MAP_ANONYMOUS |
| 81 | #define MAP_FILE 0 | 83 | #define MAP_FILE 0 |
| 82 | 84 | ||
| 83 | #endif /* _XTENSA_MMAN_H */ | 85 | #endif /* _XTENSA_MMAN_H */ |
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index b49affa0ac5a..3b507bf05d09 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
| @@ -326,12 +326,6 @@ struct sysinfo { | |||
| 326 | /* Force a compilation error if condition is true */ | 326 | /* Force a compilation error if condition is true */ |
| 327 | #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)])) | 327 | #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)])) |
| 328 | 328 | ||
| 329 | #ifdef CONFIG_SYSCTL | ||
| 330 | extern int randomize_va_space; | ||
| 331 | #else | ||
| 332 | #define randomize_va_space 1 | ||
| 333 | #endif | ||
| 334 | |||
| 335 | /* Trap pasters of __FUNCTION__ at compile-time */ | 329 | /* Trap pasters of __FUNCTION__ at compile-time */ |
| 336 | #define __FUNCTION__ (__func__) | 330 | #define __FUNCTION__ (__func__) |
| 337 | 331 | ||
diff --git a/include/linux/ktime.h b/include/linux/ktime.h index 6aca67a569a2..f3dec45ef874 100644 --- a/include/linux/ktime.h +++ b/include/linux/ktime.h | |||
| @@ -96,10 +96,16 @@ static inline ktime_t ktime_set(const long secs, const unsigned long nsecs) | |||
| 96 | ({ (ktime_t){ .tv64 = (kt).tv64 + (nsval) }; }) | 96 | ({ (ktime_t){ .tv64 = (kt).tv64 + (nsval) }; }) |
| 97 | 97 | ||
| 98 | /* convert a timespec to ktime_t format: */ | 98 | /* convert a timespec to ktime_t format: */ |
| 99 | #define timespec_to_ktime(ts) ktime_set((ts).tv_sec, (ts).tv_nsec) | 99 | static inline ktime_t timespec_to_ktime(struct timespec ts) |
| 100 | { | ||
| 101 | return ktime_set(ts.tv_sec, ts.tv_nsec); | ||
| 102 | } | ||
| 100 | 103 | ||
| 101 | /* convert a timeval to ktime_t format: */ | 104 | /* convert a timeval to ktime_t format: */ |
| 102 | #define timeval_to_ktime(tv) ktime_set((tv).tv_sec, (tv).tv_usec * 1000) | 105 | static inline ktime_t timeval_to_ktime(struct timeval tv) |
| 106 | { | ||
| 107 | return ktime_set(tv.tv_sec, tv.tv_usec * NSEC_PER_USEC); | ||
| 108 | } | ||
| 103 | 109 | ||
| 104 | /* Map the ktime_t to timespec conversion to ns_to_timespec function */ | 110 | /* Map the ktime_t to timespec conversion to ns_to_timespec function */ |
| 105 | #define ktime_to_timespec(kt) ns_to_timespec((kt).tv64) | 111 | #define ktime_to_timespec(kt) ns_to_timespec((kt).tv64) |
diff --git a/include/linux/mm.h b/include/linux/mm.h index 75e9f0724997..26e1663a5cbe 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
| @@ -1051,5 +1051,7 @@ int shrink_slab(unsigned long scanned, gfp_t gfp_mask, | |||
| 1051 | void drop_pagecache(void); | 1051 | void drop_pagecache(void); |
| 1052 | void drop_slab(void); | 1052 | void drop_slab(void); |
| 1053 | 1053 | ||
| 1054 | extern int randomize_va_space; | ||
| 1055 | |||
| 1054 | #endif /* __KERNEL__ */ | 1056 | #endif /* __KERNEL__ */ |
| 1055 | #endif /* _LINUX_MM_H */ | 1057 | #endif /* _LINUX_MM_H */ |
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h index 4cf6088625c1..468896939843 100644 --- a/include/linux/netfilter.h +++ b/include/linux/netfilter.h | |||
| @@ -184,8 +184,11 @@ static inline int nf_hook_thresh(int pf, unsigned int hook, | |||
| 184 | struct sk_buff **pskb, | 184 | struct sk_buff **pskb, |
| 185 | struct net_device *indev, | 185 | struct net_device *indev, |
| 186 | struct net_device *outdev, | 186 | struct net_device *outdev, |
| 187 | int (*okfn)(struct sk_buff *), int thresh) | 187 | int (*okfn)(struct sk_buff *), int thresh, |
| 188 | int cond) | ||
| 188 | { | 189 | { |
| 190 | if (!cond) | ||
| 191 | return 1; | ||
| 189 | #ifndef CONFIG_NETFILTER_DEBUG | 192 | #ifndef CONFIG_NETFILTER_DEBUG |
| 190 | if (list_empty(&nf_hooks[pf][hook])) | 193 | if (list_empty(&nf_hooks[pf][hook])) |
| 191 | return 1; | 194 | return 1; |
| @@ -197,7 +200,7 @@ static inline int nf_hook(int pf, unsigned int hook, struct sk_buff **pskb, | |||
| 197 | struct net_device *indev, struct net_device *outdev, | 200 | struct net_device *indev, struct net_device *outdev, |
| 198 | int (*okfn)(struct sk_buff *)) | 201 | int (*okfn)(struct sk_buff *)) |
| 199 | { | 202 | { |
| 200 | return nf_hook_thresh(pf, hook, pskb, indev, outdev, okfn, INT_MIN); | 203 | return nf_hook_thresh(pf, hook, pskb, indev, outdev, okfn, INT_MIN, 1); |
| 201 | } | 204 | } |
| 202 | 205 | ||
| 203 | /* Activate hook; either okfn or kfree_skb called, unless a hook | 206 | /* Activate hook; either okfn or kfree_skb called, unless a hook |
| @@ -224,7 +227,13 @@ static inline int nf_hook(int pf, unsigned int hook, struct sk_buff **pskb, | |||
| 224 | 227 | ||
| 225 | #define NF_HOOK_THRESH(pf, hook, skb, indev, outdev, okfn, thresh) \ | 228 | #define NF_HOOK_THRESH(pf, hook, skb, indev, outdev, okfn, thresh) \ |
| 226 | ({int __ret; \ | 229 | ({int __ret; \ |
| 227 | if ((__ret=nf_hook_thresh(pf, hook, &(skb), indev, outdev, okfn, thresh)) == 1)\ | 230 | if ((__ret=nf_hook_thresh(pf, hook, &(skb), indev, outdev, okfn, thresh, 1)) == 1)\ |
| 231 | __ret = (okfn)(skb); \ | ||
| 232 | __ret;}) | ||
| 233 | |||
| 234 | #define NF_HOOK_COND(pf, hook, skb, indev, outdev, okfn, cond) \ | ||
| 235 | ({int __ret; \ | ||
| 236 | if ((__ret=nf_hook_thresh(pf, hook, &(skb), indev, outdev, okfn, INT_MIN, cond)) == 1)\ | ||
| 228 | __ret = (okfn)(skb); \ | 237 | __ret = (okfn)(skb); \ |
| 229 | __ret;}) | 238 | __ret;}) |
| 230 | 239 | ||
| @@ -295,11 +304,13 @@ extern struct proc_dir_entry *proc_net_netfilter; | |||
| 295 | 304 | ||
| 296 | #else /* !CONFIG_NETFILTER */ | 305 | #else /* !CONFIG_NETFILTER */ |
| 297 | #define NF_HOOK(pf, hook, skb, indev, outdev, okfn) (okfn)(skb) | 306 | #define NF_HOOK(pf, hook, skb, indev, outdev, okfn) (okfn)(skb) |
| 307 | #define NF_HOOK_COND(pf, hook, skb, indev, outdev, okfn, cond) (okfn)(skb) | ||
| 298 | static inline int nf_hook_thresh(int pf, unsigned int hook, | 308 | static inline int nf_hook_thresh(int pf, unsigned int hook, |
| 299 | struct sk_buff **pskb, | 309 | struct sk_buff **pskb, |
| 300 | struct net_device *indev, | 310 | struct net_device *indev, |
| 301 | struct net_device *outdev, | 311 | struct net_device *outdev, |
| 302 | int (*okfn)(struct sk_buff *), int thresh) | 312 | int (*okfn)(struct sk_buff *), int thresh, |
| 313 | int cond) | ||
| 303 | { | 314 | { |
| 304 | return okfn(*pskb); | 315 | return okfn(*pskb); |
| 305 | } | 316 | } |
| @@ -307,7 +318,7 @@ static inline int nf_hook(int pf, unsigned int hook, struct sk_buff **pskb, | |||
| 307 | struct net_device *indev, struct net_device *outdev, | 318 | struct net_device *indev, struct net_device *outdev, |
| 308 | int (*okfn)(struct sk_buff *)) | 319 | int (*okfn)(struct sk_buff *)) |
| 309 | { | 320 | { |
| 310 | return okfn(*pskb); | 321 | return 1; |
| 311 | } | 322 | } |
| 312 | static inline void nf_ct_attach(struct sk_buff *new, struct sk_buff *skb) {} | 323 | static inline void nf_ct_attach(struct sk_buff *new, struct sk_buff *skb) {} |
| 313 | struct flowi; | 324 | struct flowi; |
diff --git a/include/linux/timex.h b/include/linux/timex.h index 04a4a8cb4ed3..b7ca1204e42a 100644 --- a/include/linux/timex.h +++ b/include/linux/timex.h | |||
| @@ -345,6 +345,9 @@ time_interpolator_reset(void) | |||
| 345 | 345 | ||
| 346 | #endif /* !CONFIG_TIME_INTERPOLATION */ | 346 | #endif /* !CONFIG_TIME_INTERPOLATION */ |
| 347 | 347 | ||
| 348 | /* Returns how long ticks are at present, in ns / 2^(SHIFT_SCALE-10). */ | ||
| 349 | extern u64 current_tick_length(void); | ||
| 350 | |||
| 348 | #endif /* KERNEL */ | 351 | #endif /* KERNEL */ |
| 349 | 352 | ||
| 350 | #endif /* LINUX_TIMEX_H */ | 353 | #endif /* LINUX_TIMEX_H */ |
diff --git a/include/net/ip.h b/include/net/ip.h index 8de0697b364c..fab3d5b3ab1c 100644 --- a/include/net/ip.h +++ b/include/net/ip.h | |||
| @@ -41,6 +41,7 @@ struct inet_skb_parm | |||
| 41 | #define IPSKB_XFRM_TUNNEL_SIZE 2 | 41 | #define IPSKB_XFRM_TUNNEL_SIZE 2 |
| 42 | #define IPSKB_XFRM_TRANSFORMED 4 | 42 | #define IPSKB_XFRM_TRANSFORMED 4 |
| 43 | #define IPSKB_FRAG_COMPLETE 8 | 43 | #define IPSKB_FRAG_COMPLETE 8 |
| 44 | #define IPSKB_REROUTED 16 | ||
| 44 | }; | 45 | }; |
| 45 | 46 | ||
| 46 | struct ipcm_cookie | 47 | struct ipcm_cookie |
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index d09ca0e7d139..d6111a2f0a23 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
| @@ -866,7 +866,6 @@ extern int xfrm_state_mtu(struct xfrm_state *x, int mtu); | |||
| 866 | extern int xfrm_init_state(struct xfrm_state *x); | 866 | extern int xfrm_init_state(struct xfrm_state *x); |
| 867 | extern int xfrm4_rcv(struct sk_buff *skb); | 867 | extern int xfrm4_rcv(struct sk_buff *skb); |
| 868 | extern int xfrm4_output(struct sk_buff *skb); | 868 | extern int xfrm4_output(struct sk_buff *skb); |
| 869 | extern int xfrm4_output_finish(struct sk_buff *skb); | ||
| 870 | extern int xfrm4_tunnel_register(struct xfrm_tunnel *handler); | 869 | extern int xfrm4_tunnel_register(struct xfrm_tunnel *handler); |
| 871 | extern int xfrm4_tunnel_deregister(struct xfrm_tunnel *handler); | 870 | extern int xfrm4_tunnel_deregister(struct xfrm_tunnel *handler); |
| 872 | extern int xfrm6_rcv_spi(struct sk_buff **pskb, u32 spi); | 871 | extern int xfrm6_rcv_spi(struct sk_buff **pskb, u32 spi); |
diff --git a/include/scsi/iscsi_if.h b/include/scsi/iscsi_if.h index 3e5cb5ab2d34..e5618b90996e 100644 --- a/include/scsi/iscsi_if.h +++ b/include/scsi/iscsi_if.h | |||
| @@ -163,9 +163,6 @@ enum iscsi_param { | |||
| 163 | }; | 163 | }; |
| 164 | #define ISCSI_PARAM_MAX 14 | 164 | #define ISCSI_PARAM_MAX 14 |
| 165 | 165 | ||
| 166 | typedef uint64_t iscsi_sessionh_t; /* iSCSI Data-Path session handle */ | ||
| 167 | typedef uint64_t iscsi_connh_t; /* iSCSI Data-Path connection handle */ | ||
| 168 | |||
| 169 | #define iscsi_ptr(_handle) ((void*)(unsigned long)_handle) | 166 | #define iscsi_ptr(_handle) ((void*)(unsigned long)_handle) |
| 170 | #define iscsi_handle(_ptr) ((uint64_t)(unsigned long)_ptr) | 167 | #define iscsi_handle(_ptr) ((uint64_t)(unsigned long)_ptr) |
| 171 | #define hostdata_session(_hostdata) (iscsi_ptr(*(unsigned long *)_hostdata)) | 168 | #define hostdata_session(_hostdata) (iscsi_ptr(*(unsigned long *)_hostdata)) |
diff --git a/include/scsi/scsi.h b/include/scsi/scsi.h index c60b8ff2f5e4..9c331258bc27 100644 --- a/include/scsi/scsi.h +++ b/include/scsi/scsi.h | |||
| @@ -433,4 +433,6 @@ struct scsi_lun { | |||
| 433 | /* Used to obtain the PCI location of a device */ | 433 | /* Used to obtain the PCI location of a device */ |
| 434 | #define SCSI_IOCTL_GET_PCI 0x5387 | 434 | #define SCSI_IOCTL_GET_PCI 0x5387 |
| 435 | 435 | ||
| 436 | int scsi_execute_in_process_context(void (*fn)(void *data), void *data); | ||
| 437 | |||
| 436 | #endif /* _SCSI_SCSI_H */ | 438 | #endif /* _SCSI_SCSI_H */ |
diff --git a/include/scsi/scsi_transport_iscsi.h b/include/scsi/scsi_transport_iscsi.h index 16602a547a63..b41cf077e54b 100644 --- a/include/scsi/scsi_transport_iscsi.h +++ b/include/scsi/scsi_transport_iscsi.h | |||
| @@ -63,25 +63,28 @@ struct iscsi_transport { | |||
| 63 | int max_lun; | 63 | int max_lun; |
| 64 | unsigned int max_conn; | 64 | unsigned int max_conn; |
| 65 | unsigned int max_cmd_len; | 65 | unsigned int max_cmd_len; |
| 66 | struct Scsi_Host *(*create_session) (struct scsi_transport_template *t, | 66 | struct iscsi_cls_session *(*create_session) |
| 67 | uint32_t initial_cmdsn); | 67 | (struct scsi_transport_template *t, uint32_t sn, uint32_t *sid); |
| 68 | void (*destroy_session) (struct Scsi_Host *shost); | 68 | void (*destroy_session) (struct iscsi_cls_session *session); |
| 69 | struct iscsi_cls_conn *(*create_conn) (struct Scsi_Host *shost, | 69 | struct iscsi_cls_conn *(*create_conn) (struct iscsi_cls_session *sess, |
| 70 | uint32_t cid); | 70 | uint32_t cid); |
| 71 | int (*bind_conn) (iscsi_sessionh_t session, iscsi_connh_t conn, | 71 | int (*bind_conn) (struct iscsi_cls_session *session, |
| 72 | struct iscsi_cls_conn *cls_conn, | ||
| 72 | uint32_t transport_fd, int is_leading); | 73 | uint32_t transport_fd, int is_leading); |
| 73 | int (*start_conn) (iscsi_connh_t conn); | 74 | int (*start_conn) (struct iscsi_cls_conn *conn); |
| 74 | void (*stop_conn) (iscsi_connh_t conn, int flag); | 75 | void (*stop_conn) (struct iscsi_cls_conn *conn, int flag); |
| 75 | void (*destroy_conn) (struct iscsi_cls_conn *conn); | 76 | void (*destroy_conn) (struct iscsi_cls_conn *conn); |
| 76 | int (*set_param) (iscsi_connh_t conn, enum iscsi_param param, | 77 | int (*set_param) (struct iscsi_cls_conn *conn, enum iscsi_param param, |
| 77 | uint32_t value); | 78 | uint32_t value); |
| 78 | int (*get_conn_param) (void *conndata, enum iscsi_param param, | 79 | int (*get_conn_param) (struct iscsi_cls_conn *conn, |
| 80 | enum iscsi_param param, | ||
| 79 | uint32_t *value); | 81 | uint32_t *value); |
| 80 | int (*get_session_param) (struct Scsi_Host *shost, | 82 | int (*get_session_param) (struct iscsi_cls_session *session, |
| 81 | enum iscsi_param param, uint32_t *value); | 83 | enum iscsi_param param, uint32_t *value); |
| 82 | int (*send_pdu) (iscsi_connh_t conn, struct iscsi_hdr *hdr, | 84 | int (*send_pdu) (struct iscsi_cls_conn *conn, struct iscsi_hdr *hdr, |
| 83 | char *data, uint32_t data_size); | 85 | char *data, uint32_t data_size); |
| 84 | void (*get_stats) (iscsi_connh_t conn, struct iscsi_stats *stats); | 86 | void (*get_stats) (struct iscsi_cls_conn *conn, |
| 87 | struct iscsi_stats *stats); | ||
| 85 | }; | 88 | }; |
| 86 | 89 | ||
| 87 | /* | 90 | /* |
| @@ -93,15 +96,14 @@ extern int iscsi_unregister_transport(struct iscsi_transport *tt); | |||
| 93 | /* | 96 | /* |
| 94 | * control plane upcalls | 97 | * control plane upcalls |
| 95 | */ | 98 | */ |
| 96 | extern void iscsi_conn_error(iscsi_connh_t conn, enum iscsi_err error); | 99 | extern void iscsi_conn_error(struct iscsi_cls_conn *conn, enum iscsi_err error); |
| 97 | extern int iscsi_recv_pdu(iscsi_connh_t conn, struct iscsi_hdr *hdr, | 100 | extern int iscsi_recv_pdu(struct iscsi_cls_conn *conn, struct iscsi_hdr *hdr, |
| 98 | char *data, uint32_t data_size); | 101 | char *data, uint32_t data_size); |
| 99 | 102 | ||
| 100 | struct iscsi_cls_conn { | 103 | struct iscsi_cls_conn { |
| 101 | struct list_head conn_list; /* item in connlist */ | 104 | struct list_head conn_list; /* item in connlist */ |
| 102 | void *dd_data; /* LLD private data */ | 105 | void *dd_data; /* LLD private data */ |
| 103 | struct iscsi_transport *transport; | 106 | struct iscsi_transport *transport; |
| 104 | iscsi_connh_t connh; | ||
| 105 | int active; /* must be accessed with the connlock */ | 107 | int active; /* must be accessed with the connlock */ |
| 106 | struct device dev; /* sysfs transport/container device */ | 108 | struct device dev; /* sysfs transport/container device */ |
| 107 | struct mempool_zone *z_error; | 109 | struct mempool_zone *z_error; |
| @@ -113,7 +115,7 @@ struct iscsi_cls_conn { | |||
| 113 | container_of(_dev, struct iscsi_cls_conn, dev) | 115 | container_of(_dev, struct iscsi_cls_conn, dev) |
| 114 | 116 | ||
| 115 | struct iscsi_cls_session { | 117 | struct iscsi_cls_session { |
| 116 | struct list_head list; /* item in session_list */ | 118 | struct list_head sess_list; /* item in session_list */ |
| 117 | struct iscsi_transport *transport; | 119 | struct iscsi_transport *transport; |
| 118 | struct device dev; /* sysfs transport/container device */ | 120 | struct device dev; /* sysfs transport/container device */ |
| 119 | }; | 121 | }; |
diff --git a/include/video/neomagic.h b/include/video/neomagic.h index 1d69049bd4c1..78b1f15a538f 100644 --- a/include/video/neomagic.h +++ b/include/video/neomagic.h | |||
| @@ -159,6 +159,7 @@ struct neofb_par { | |||
| 159 | unsigned char PanelDispCntlReg1; | 159 | unsigned char PanelDispCntlReg1; |
| 160 | unsigned char PanelDispCntlReg2; | 160 | unsigned char PanelDispCntlReg2; |
| 161 | unsigned char PanelDispCntlReg3; | 161 | unsigned char PanelDispCntlReg3; |
| 162 | unsigned char PanelDispCntlRegRead; | ||
| 162 | unsigned char PanelVertCenterReg1; | 163 | unsigned char PanelVertCenterReg1; |
| 163 | unsigned char PanelVertCenterReg2; | 164 | unsigned char PanelVertCenterReg2; |
| 164 | unsigned char PanelVertCenterReg3; | 165 | unsigned char PanelVertCenterReg3; |
