diff options
| author | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-06-18 03:36:46 -0400 |
|---|---|---|
| committer | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-06-18 03:36:46 -0400 |
| commit | 0107b3cf3225aed6ddde4fa8dbcd4ed643b34f4d (patch) | |
| tree | 9b9337ae627fc56a0eda43c60860765f25efaa0b /include | |
| parent | 1c3f45ab2f7f879ea482501c83899505c31f7539 (diff) | |
| parent | 9ee1c939d1cb936b1f98e8d81aeffab57bae46ab (diff) | |
Merge with master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Diffstat (limited to 'include')
36 files changed, 254 insertions, 205 deletions
diff --git a/include/asm-alpha/agp.h b/include/asm-alpha/agp.h index c99dbbb5bcb5..ef855a3bc0f5 100644 --- a/include/asm-alpha/agp.h +++ b/include/asm-alpha/agp.h | |||
| @@ -10,4 +10,14 @@ | |||
| 10 | #define flush_agp_mappings() | 10 | #define flush_agp_mappings() |
| 11 | #define flush_agp_cache() mb() | 11 | #define flush_agp_cache() mb() |
| 12 | 12 | ||
| 13 | /* Convert a physical address to an address suitable for the GART. */ | ||
| 14 | #define phys_to_gart(x) (x) | ||
| 15 | #define gart_to_phys(x) (x) | ||
| 16 | |||
| 17 | /* GATT allocation. Returns/accepts GATT kernel virtual address. */ | ||
| 18 | #define alloc_gatt_pages(order) \ | ||
| 19 | ((char *)__get_free_pages(GFP_KERNEL, (order))) | ||
| 20 | #define free_gatt_pages(table, order) \ | ||
| 21 | free_pages((unsigned long)(table), (order)) | ||
| 22 | |||
| 13 | #endif | 23 | #endif |
diff --git a/include/asm-arm/arch-integrator/platform.h b/include/asm-arm/arch-integrator/platform.h index bd364f5a99bc..96ad3d2a66d1 100644 --- a/include/asm-arm/arch-integrator/platform.h +++ b/include/asm-arm/arch-integrator/platform.h | |||
| @@ -293,7 +293,11 @@ | |||
| 293 | #define INTEGRATOR_DBG_SWITCH (INTEGRATOR_DBG_BASE + INTEGRATOR_DBG_SWITCH_OFFSET) | 293 | #define INTEGRATOR_DBG_SWITCH (INTEGRATOR_DBG_BASE + INTEGRATOR_DBG_SWITCH_OFFSET) |
| 294 | 294 | ||
| 295 | 295 | ||
| 296 | #if defined(CONFIG_ARCH_INTEGRATOR_AP) | ||
| 296 | #define INTEGRATOR_GPIO_BASE 0x1B000000 /* GPIO */ | 297 | #define INTEGRATOR_GPIO_BASE 0x1B000000 /* GPIO */ |
| 298 | #elif defined(CONFIG_ARCH_INTEGRATOR_CP) | ||
| 299 | #define INTEGRATOR_GPIO_BASE 0xC9000000 /* GPIO */ | ||
| 300 | #endif | ||
| 297 | 301 | ||
| 298 | /* ------------------------------------------------------------------------ | 302 | /* ------------------------------------------------------------------------ |
| 299 | * KMI keyboard/mouse definitions | 303 | * KMI keyboard/mouse definitions |
diff --git a/include/asm-arm/arch-ixp2000/io.h b/include/asm-arm/arch-ixp2000/io.h index a8e3c2daefd6..083462668e18 100644 --- a/include/asm-arm/arch-ixp2000/io.h +++ b/include/asm-arm/arch-ixp2000/io.h | |||
| @@ -75,8 +75,8 @@ static inline void insw(u32 ptr, void *buf, int length) | |||
| 75 | * Is this cycle meant for the CS8900? | 75 | * Is this cycle meant for the CS8900? |
| 76 | */ | 76 | */ |
| 77 | if ((machine_is_ixdp2401() || machine_is_ixdp2801()) && | 77 | if ((machine_is_ixdp2401() || machine_is_ixdp2801()) && |
| 78 | ((port >= IXDP2X01_CS8900_VIRT_BASE) && | 78 | (((u32)port >= (u32)IXDP2X01_CS8900_VIRT_BASE) && |
| 79 | (port <= IXDP2X01_CS8900_VIRT_END))) { | 79 | ((u32)port <= (u32)IXDP2X01_CS8900_VIRT_END))) { |
| 80 | u8 *buf8 = (u8*)buf; | 80 | u8 *buf8 = (u8*)buf; |
| 81 | register u32 tmp32; | 81 | register u32 tmp32; |
| 82 | 82 | ||
| @@ -100,8 +100,8 @@ static inline void outsw(u32 ptr, void *buf, int length) | |||
| 100 | * Is this cycle meant for the CS8900? | 100 | * Is this cycle meant for the CS8900? |
| 101 | */ | 101 | */ |
| 102 | if ((machine_is_ixdp2401() || machine_is_ixdp2801()) && | 102 | if ((machine_is_ixdp2401() || machine_is_ixdp2801()) && |
| 103 | ((port >= IXDP2X01_CS8900_VIRT_BASE) && | 103 | (((u32)port >= (u32)IXDP2X01_CS8900_VIRT_BASE) && |
| 104 | (port <= IXDP2X01_CS8900_VIRT_END))) { | 104 | ((u32)port <= (u32)IXDP2X01_CS8900_VIRT_END))) { |
| 105 | register u32 tmp32; | 105 | register u32 tmp32; |
| 106 | u8 *buf8 = (u8*)buf; | 106 | u8 *buf8 = (u8*)buf; |
| 107 | do { | 107 | do { |
| @@ -124,8 +124,8 @@ static inline u16 inw(u32 ptr) | |||
| 124 | * Is this cycle meant for the CS8900? | 124 | * Is this cycle meant for the CS8900? |
| 125 | */ | 125 | */ |
| 126 | if ((machine_is_ixdp2401() || machine_is_ixdp2801()) && | 126 | if ((machine_is_ixdp2401() || machine_is_ixdp2801()) && |
| 127 | ((port >= IXDP2X01_CS8900_VIRT_BASE) && | 127 | (((u32)port >= (u32)IXDP2X01_CS8900_VIRT_BASE) && |
| 128 | (port <= IXDP2X01_CS8900_VIRT_END))) { | 128 | ((u32)port <= (u32)IXDP2X01_CS8900_VIRT_END))) { |
| 129 | return (u16)(*port); | 129 | return (u16)(*port); |
| 130 | } | 130 | } |
| 131 | 131 | ||
| @@ -137,8 +137,8 @@ static inline void outw(u16 value, u32 ptr) | |||
| 137 | register volatile u32 *port = (volatile u32 *)ptr; | 137 | register volatile u32 *port = (volatile u32 *)ptr; |
| 138 | 138 | ||
| 139 | if ((machine_is_ixdp2401() || machine_is_ixdp2801()) && | 139 | if ((machine_is_ixdp2401() || machine_is_ixdp2801()) && |
| 140 | ((port >= IXDP2X01_CS8900_VIRT_BASE) && | 140 | (((u32)port >= (u32)IXDP2X01_CS8900_VIRT_BASE) && |
| 141 | (port <= IXDP2X01_CS8900_VIRT_END))) { | 141 | ((u32)port <= (u32)IXDP2X01_CS8900_VIRT_END))) { |
| 142 | *port = value; | 142 | *port = value; |
| 143 | return; | 143 | return; |
| 144 | } | 144 | } |
diff --git a/include/asm-arm/arch-pxa/pxa-regs.h b/include/asm-arm/arch-pxa/pxa-regs.h index 39741d3c9a34..b5e54a9e9fa7 100644 --- a/include/asm-arm/arch-pxa/pxa-regs.h +++ b/include/asm-arm/arch-pxa/pxa-regs.h | |||
| @@ -1296,6 +1296,7 @@ | |||
| 1296 | #define GPIO111_MMCDAT3 111 /* MMC DAT3 (PXA27x) */ | 1296 | #define GPIO111_MMCDAT3 111 /* MMC DAT3 (PXA27x) */ |
| 1297 | #define GPIO111_MMCCS1 111 /* MMC Chip Select 1 (PXA27x) */ | 1297 | #define GPIO111_MMCCS1 111 /* MMC Chip Select 1 (PXA27x) */ |
| 1298 | #define GPIO112_MMCCMD 112 /* MMC CMD (PXA27x) */ | 1298 | #define GPIO112_MMCCMD 112 /* MMC CMD (PXA27x) */ |
| 1299 | #define GPIO113_I2S_SYSCLK 113 /* I2S System Clock (PXA27x) */ | ||
| 1299 | #define GPIO113_AC97_RESET_N 113 /* AC97 NRESET on (PXA27x) */ | 1300 | #define GPIO113_AC97_RESET_N 113 /* AC97 NRESET on (PXA27x) */ |
| 1300 | 1301 | ||
| 1301 | /* GPIO alternate function mode & direction */ | 1302 | /* GPIO alternate function mode & direction */ |
| @@ -1428,6 +1429,7 @@ | |||
| 1428 | #define GPIO111_MMCDAT3_MD (111 | GPIO_ALT_FN_1_OUT) | 1429 | #define GPIO111_MMCDAT3_MD (111 | GPIO_ALT_FN_1_OUT) |
| 1429 | #define GPIO110_MMCCS1_MD (111 | GPIO_ALT_FN_1_OUT) | 1430 | #define GPIO110_MMCCS1_MD (111 | GPIO_ALT_FN_1_OUT) |
| 1430 | #define GPIO112_MMCCMD_MD (112 | GPIO_ALT_FN_1_OUT) | 1431 | #define GPIO112_MMCCMD_MD (112 | GPIO_ALT_FN_1_OUT) |
| 1432 | #define GPIO113_I2S_SYSCLK_MD (113 | GPIO_ALT_FN_1_OUT) | ||
| 1431 | #define GPIO113_AC97_RESET_N_MD (113 | GPIO_ALT_FN_2_OUT) | 1433 | #define GPIO113_AC97_RESET_N_MD (113 | GPIO_ALT_FN_2_OUT) |
| 1432 | #define GPIO117_I2CSCL_MD (117 | GPIO_ALT_FN_1_OUT) | 1434 | #define GPIO117_I2CSCL_MD (117 | GPIO_ALT_FN_1_OUT) |
| 1433 | #define GPIO118_I2CSDA_MD (118 | GPIO_ALT_FN_1_IN) | 1435 | #define GPIO118_I2CSDA_MD (118 | GPIO_ALT_FN_1_IN) |
diff --git a/include/asm-arm/arch-versatile/platform.h b/include/asm-arm/arch-versatile/platform.h index 2598d1f08548..a71093e44c58 100644 --- a/include/asm-arm/arch-versatile/platform.h +++ b/include/asm-arm/arch-versatile/platform.h | |||
| @@ -498,11 +498,17 @@ | |||
| 498 | /* | 498 | /* |
| 499 | * IB2 Versatile/AB expansion board definitions | 499 | * IB2 Versatile/AB expansion board definitions |
| 500 | */ | 500 | */ |
| 501 | #define VERSATILE_IB2_CAMERA_BANK 0x24000000 | 501 | #define VERSATILE_IB2_CAMERA_BANK VERSATILE_IB2_BASE |
| 502 | #define VERSATILE_IB2_KBD_DATAREG 0x25000000 | 502 | #define VERSATILE_IB2_KBD_DATAREG (VERSATILE_IB2_BASE + 0x01000000) |
| 503 | #define VERSATILE_IB2_IER 0x26000000 /* for VICINTSOURCE27 */ | 503 | |
| 504 | #define VERSATILE_IB2_CTRL 0x27000000 | 504 | /* VICINTSOURCE27 */ |
| 505 | #define VERSATILE_IB2_STAT 0x27000004 | 505 | #define VERSATILE_IB2_INT_BASE (VERSATILE_IB2_BASE + 0x02000000) |
| 506 | #define VERSATILE_IB2_IER (VERSATILE_IB2_INT_BASE + 0) | ||
| 507 | #define VERSATILE_IB2_ISR (VERSATILE_IB2_INT_BASE + 4) | ||
| 508 | |||
| 509 | #define VERSATILE_IB2_CTL_BASE (VERSATILE_IB2_BASE + 0x03000000) | ||
| 510 | #define VERSATILE_IB2_CTRL (VERSATILE_IB2_CTL_BASE + 0) | ||
| 511 | #define VERSATILE_IB2_STAT (VERSATILE_IB2_CTL_BASE + 4) | ||
| 506 | #endif | 512 | #endif |
| 507 | 513 | ||
| 508 | #endif | 514 | #endif |
diff --git a/include/asm-arm/elf.h b/include/asm-arm/elf.h index cbceacbe5afa..a1696ba238d3 100644 --- a/include/asm-arm/elf.h +++ b/include/asm-arm/elf.h | |||
| @@ -38,9 +38,9 @@ typedef struct user_fp elf_fpregset_t; | |||
| 38 | */ | 38 | */ |
| 39 | #define ELF_CLASS ELFCLASS32 | 39 | #define ELF_CLASS ELFCLASS32 |
| 40 | #ifdef __ARMEB__ | 40 | #ifdef __ARMEB__ |
| 41 | #define ELF_DATA ELFDATA2MSB; | 41 | #define ELF_DATA ELFDATA2MSB |
| 42 | #else | 42 | #else |
| 43 | #define ELF_DATA ELFDATA2LSB; | 43 | #define ELF_DATA ELFDATA2LSB |
| 44 | #endif | 44 | #endif |
| 45 | #define ELF_ARCH EM_ARM | 45 | #define ELF_ARCH EM_ARM |
| 46 | 46 | ||
diff --git a/include/asm-arm26/elf.h b/include/asm-arm26/elf.h index 8b149474db24..5a47fdb3015d 100644 --- a/include/asm-arm26/elf.h +++ b/include/asm-arm26/elf.h | |||
| @@ -36,7 +36,7 @@ typedef struct { void *null; } elf_fpregset_t; | |||
| 36 | * These are used to set parameters in the core dumps. | 36 | * These are used to set parameters in the core dumps. |
| 37 | */ | 37 | */ |
| 38 | #define ELF_CLASS ELFCLASS32 | 38 | #define ELF_CLASS ELFCLASS32 |
| 39 | #define ELF_DATA ELFDATA2LSB; | 39 | #define ELF_DATA ELFDATA2LSB |
| 40 | #define ELF_ARCH EM_ARM | 40 | #define ELF_ARCH EM_ARM |
| 41 | 41 | ||
| 42 | #define USE_ELF_CORE_DUMP | 42 | #define USE_ELF_CORE_DUMP |
diff --git a/include/asm-arm26/signal.h b/include/asm-arm26/signal.h index dedb29280303..37ad25355591 100644 --- a/include/asm-arm26/signal.h +++ b/include/asm-arm26/signal.h | |||
| @@ -166,9 +166,6 @@ typedef struct sigaltstack { | |||
| 166 | #include <asm/sigcontext.h> | 166 | #include <asm/sigcontext.h> |
| 167 | 167 | ||
| 168 | #define sigmask(sig) (1UL << ((sig) - 1)) | 168 | #define sigmask(sig) (1UL << ((sig) - 1)) |
| 169 | //FIXME!!! | ||
| 170 | //#define HAVE_ARCH_GET_SIGNAL_TO_DELIVER | ||
| 171 | |||
| 172 | #endif | 169 | #endif |
| 173 | 170 | ||
| 174 | 171 | ||
diff --git a/include/asm-h8300/kmap_types.h b/include/asm-h8300/kmap_types.h index 82431edeb2a1..1ec8a3427120 100644 --- a/include/asm-h8300/kmap_types.h +++ b/include/asm-h8300/kmap_types.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | #ifndef _ASM_KMAP_TYPES_H | 1 | #ifndef _ASM_H8300_KMAP_TYPES_H |
| 2 | #define _ASM_KMAP_TYPES_H | 2 | #define _ASM_H8300_KMAP_TYPES_H |
| 3 | 3 | ||
| 4 | enum km_type { | 4 | enum km_type { |
| 5 | KM_BOUNCE_READ, | 5 | KM_BOUNCE_READ, |
| @@ -13,6 +13,8 @@ enum km_type { | |||
| 13 | KM_PTE1, | 13 | KM_PTE1, |
| 14 | KM_IRQ0, | 14 | KM_IRQ0, |
| 15 | KM_IRQ1, | 15 | KM_IRQ1, |
| 16 | KM_SOFTIRQ0, | ||
| 17 | KM_SOFTIRQ1, | ||
| 16 | KM_TYPE_NR | 18 | KM_TYPE_NR |
| 17 | }; | 19 | }; |
| 18 | 20 | ||
diff --git a/include/asm-h8300/mman.h b/include/asm-h8300/mman.h index abe08856c84f..63f727a59850 100644 --- a/include/asm-h8300/mman.h +++ b/include/asm-h8300/mman.h | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | #define PROT_READ 0x1 /* page can be read */ | 4 | #define PROT_READ 0x1 /* page can be read */ |
| 5 | #define PROT_WRITE 0x2 /* page can be written */ | 5 | #define PROT_WRITE 0x2 /* page can be written */ |
| 6 | #define PROT_EXEC 0x4 /* page can be executed */ | 6 | #define PROT_EXEC 0x4 /* page can be executed */ |
| 7 | #define PROT_SEM 0x8 /* page may be used for atomic ops */ | ||
| 7 | #define PROT_NONE 0x0 /* page can not be accessed */ | 8 | #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_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 | #define PROT_GROWSUP 0x02000000 /* mprotect flag: extend change to end of growsup vma */ |
| @@ -19,6 +20,8 @@ | |||
| 19 | #define MAP_EXECUTABLE 0x1000 /* mark it as an executable */ | 20 | #define MAP_EXECUTABLE 0x1000 /* mark it as an executable */ |
| 20 | #define MAP_LOCKED 0x2000 /* pages are locked */ | 21 | #define MAP_LOCKED 0x2000 /* pages are locked */ |
| 21 | #define MAP_NORESERVE 0x4000 /* don't check for reservations */ | 22 | #define MAP_NORESERVE 0x4000 /* don't check for reservations */ |
| 23 | #define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ | ||
| 24 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ | ||
| 22 | 25 | ||
| 23 | #define MS_ASYNC 1 /* sync memory asynchronously */ | 26 | #define MS_ASYNC 1 /* sync memory asynchronously */ |
| 24 | #define MS_INVALIDATE 2 /* invalidate the caches */ | 27 | #define MS_INVALIDATE 2 /* invalidate the caches */ |
diff --git a/include/asm-i386/agp.h b/include/asm-i386/agp.h index a917ff50354f..b82f5f3ab887 100644 --- a/include/asm-i386/agp.h +++ b/include/asm-i386/agp.h | |||
| @@ -21,4 +21,14 @@ int unmap_page_from_agp(struct page *page); | |||
| 21 | worth it. Would need a page for it. */ | 21 | worth it. Would need a page for it. */ |
| 22 | #define flush_agp_cache() asm volatile("wbinvd":::"memory") | 22 | #define flush_agp_cache() asm volatile("wbinvd":::"memory") |
| 23 | 23 | ||
| 24 | /* Convert a physical address to an address suitable for the GART. */ | ||
| 25 | #define phys_to_gart(x) (x) | ||
| 26 | #define gart_to_phys(x) (x) | ||
| 27 | |||
| 28 | /* GATT allocation. Returns/accepts GATT kernel virtual address. */ | ||
| 29 | #define alloc_gatt_pages(order) \ | ||
| 30 | ((char *)__get_free_pages(GFP_KERNEL, (order))) | ||
| 31 | #define free_gatt_pages(table, order) \ | ||
| 32 | free_pages((unsigned long)(table), (order)) | ||
| 33 | |||
| 24 | #endif | 34 | #endif |
diff --git a/include/asm-i386/mach-numaq/mach_ipi.h b/include/asm-i386/mach-numaq/mach_ipi.h index 1b46fd3f2ae3..c6044488e9e6 100644 --- a/include/asm-i386/mach-numaq/mach_ipi.h +++ b/include/asm-i386/mach-numaq/mach_ipi.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | #ifndef __ASM_MACH_IPI_H | 1 | #ifndef __ASM_MACH_IPI_H |
| 2 | #define __ASM_MACH_IPI_H | 2 | #define __ASM_MACH_IPI_H |
| 3 | 3 | ||
| 4 | inline void send_IPI_mask_sequence(cpumask_t, int vector); | 4 | void send_IPI_mask_sequence(cpumask_t, int vector); |
| 5 | 5 | ||
| 6 | static inline void send_IPI_mask(cpumask_t mask, int vector) | 6 | static inline void send_IPI_mask(cpumask_t mask, int vector) |
| 7 | { | 7 | { |
diff --git a/include/asm-ia64/agp.h b/include/asm-ia64/agp.h index d1316f1e6ee1..4e517f0e6afa 100644 --- a/include/asm-ia64/agp.h +++ b/include/asm-ia64/agp.h | |||
| @@ -18,4 +18,14 @@ | |||
| 18 | #define flush_agp_mappings() /* nothing */ | 18 | #define flush_agp_mappings() /* nothing */ |
| 19 | #define flush_agp_cache() mb() | 19 | #define flush_agp_cache() mb() |
| 20 | 20 | ||
| 21 | /* Convert a physical address to an address suitable for the GART. */ | ||
| 22 | #define phys_to_gart(x) (x) | ||
| 23 | #define gart_to_phys(x) (x) | ||
| 24 | |||
| 25 | /* GATT allocation. Returns/accepts GATT kernel virtual address. */ | ||
| 26 | #define alloc_gatt_pages(order) \ | ||
| 27 | ((char *)__get_free_pages(GFP_KERNEL, (order))) | ||
| 28 | #define free_gatt_pages(table, order) \ | ||
| 29 | free_pages((unsigned long)(table), (order)) | ||
| 30 | |||
| 21 | #endif /* _ASM_IA64_AGP_H */ | 31 | #endif /* _ASM_IA64_AGP_H */ |
diff --git a/include/asm-ia64/pgtable.h b/include/asm-ia64/pgtable.h index ea121a002309..fcc9c3344ab4 100644 --- a/include/asm-ia64/pgtable.h +++ b/include/asm-ia64/pgtable.h | |||
| @@ -8,7 +8,7 @@ | |||
| 8 | * This hopefully works with any (fixed) IA-64 page-size, as defined | 8 | * This hopefully works with any (fixed) IA-64 page-size, as defined |
| 9 | * in <asm/page.h>. | 9 | * in <asm/page.h>. |
| 10 | * | 10 | * |
| 11 | * Copyright (C) 1998-2004 Hewlett-Packard Co | 11 | * Copyright (C) 1998-2005 Hewlett-Packard Co |
| 12 | * David Mosberger-Tang <davidm@hpl.hp.com> | 12 | * David Mosberger-Tang <davidm@hpl.hp.com> |
| 13 | */ | 13 | */ |
| 14 | 14 | ||
| @@ -551,7 +551,11 @@ do { \ | |||
| 551 | 551 | ||
| 552 | /* These tell get_user_pages() that the first gate page is accessible from user-level. */ | 552 | /* These tell get_user_pages() that the first gate page is accessible from user-level. */ |
| 553 | #define FIXADDR_USER_START GATE_ADDR | 553 | #define FIXADDR_USER_START GATE_ADDR |
| 554 | #define FIXADDR_USER_END (GATE_ADDR + 2*PERCPU_PAGE_SIZE) | 554 | #ifdef HAVE_BUGGY_SEGREL |
| 555 | # define FIXADDR_USER_END (GATE_ADDR + 2*PAGE_SIZE) | ||
| 556 | #else | ||
| 557 | # define FIXADDR_USER_END (GATE_ADDR + 2*PERCPU_PAGE_SIZE) | ||
| 558 | #endif | ||
| 555 | 559 | ||
| 556 | #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_YOUNG | 560 | #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_YOUNG |
| 557 | #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_DIRTY | 561 | #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_DIRTY |
diff --git a/include/asm-ia64/processor.h b/include/asm-ia64/processor.h index 9e1ba8b7fb68..91bbd1f22461 100644 --- a/include/asm-ia64/processor.h +++ b/include/asm-ia64/processor.h | |||
| @@ -403,7 +403,10 @@ extern void ia64_setreg_unknown_kr (void); | |||
| 403 | * task_struct at this point. | 403 | * task_struct at this point. |
| 404 | */ | 404 | */ |
| 405 | 405 | ||
| 406 | /* Return TRUE if task T owns the fph partition of the CPU we're running on. */ | 406 | /* |
| 407 | * Return TRUE if task T owns the fph partition of the CPU we're running on. | ||
| 408 | * Must be called from code that has preemption disabled. | ||
| 409 | */ | ||
| 407 | #define ia64_is_local_fpu_owner(t) \ | 410 | #define ia64_is_local_fpu_owner(t) \ |
| 408 | ({ \ | 411 | ({ \ |
| 409 | struct task_struct *__ia64_islfo_task = (t); \ | 412 | struct task_struct *__ia64_islfo_task = (t); \ |
| @@ -411,7 +414,10 @@ extern void ia64_setreg_unknown_kr (void); | |||
| 411 | && __ia64_islfo_task == (struct task_struct *) ia64_get_kr(IA64_KR_FPU_OWNER)); \ | 414 | && __ia64_islfo_task == (struct task_struct *) ia64_get_kr(IA64_KR_FPU_OWNER)); \ |
| 412 | }) | 415 | }) |
| 413 | 416 | ||
| 414 | /* Mark task T as owning the fph partition of the CPU we're running on. */ | 417 | /* |
| 418 | * Mark task T as owning the fph partition of the CPU we're running on. | ||
| 419 | * Must be called from code that has preemption disabled. | ||
| 420 | */ | ||
| 415 | #define ia64_set_local_fpu_owner(t) do { \ | 421 | #define ia64_set_local_fpu_owner(t) do { \ |
| 416 | struct task_struct *__ia64_slfo_task = (t); \ | 422 | struct task_struct *__ia64_slfo_task = (t); \ |
| 417 | __ia64_slfo_task->thread.last_fph_cpu = smp_processor_id(); \ | 423 | __ia64_slfo_task->thread.last_fph_cpu = smp_processor_id(); \ |
diff --git a/include/asm-ppc/agp.h b/include/asm-ppc/agp.h index be27cfa8c5b0..ca9e423307f4 100644 --- a/include/asm-ppc/agp.h +++ b/include/asm-ppc/agp.h | |||
| @@ -10,4 +10,14 @@ | |||
| 10 | #define flush_agp_mappings() | 10 | #define flush_agp_mappings() |
| 11 | #define flush_agp_cache() mb() | 11 | #define flush_agp_cache() mb() |
| 12 | 12 | ||
| 13 | /* Convert a physical address to an address suitable for the GART. */ | ||
| 14 | #define phys_to_gart(x) (x) | ||
| 15 | #define gart_to_phys(x) (x) | ||
| 16 | |||
| 17 | /* GATT allocation. Returns/accepts GATT kernel virtual address. */ | ||
| 18 | #define alloc_gatt_pages(order) \ | ||
| 19 | ((char *)__get_free_pages(GFP_KERNEL, (order))) | ||
| 20 | #define free_gatt_pages(table, order) \ | ||
| 21 | free_pages((unsigned long)(table), (order)) | ||
| 22 | |||
| 13 | #endif | 23 | #endif |
diff --git a/include/asm-ppc/sigcontext.h b/include/asm-ppc/sigcontext.h index f82dcccdee1e..b7a417e0a921 100644 --- a/include/asm-ppc/sigcontext.h +++ b/include/asm-ppc/sigcontext.h | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | #define _ASM_PPC_SIGCONTEXT_H | 2 | #define _ASM_PPC_SIGCONTEXT_H |
| 3 | 3 | ||
| 4 | #include <asm/ptrace.h> | 4 | #include <asm/ptrace.h> |
| 5 | 5 | #include <linux/compiler.h> | |
| 6 | 6 | ||
| 7 | struct sigcontext { | 7 | struct sigcontext { |
| 8 | unsigned long _unused[4]; | 8 | unsigned long _unused[4]; |
diff --git a/include/asm-ppc64/agp.h b/include/asm-ppc64/agp.h index be27cfa8c5b0..ca9e423307f4 100644 --- a/include/asm-ppc64/agp.h +++ b/include/asm-ppc64/agp.h | |||
| @@ -10,4 +10,14 @@ | |||
| 10 | #define flush_agp_mappings() | 10 | #define flush_agp_mappings() |
| 11 | #define flush_agp_cache() mb() | 11 | #define flush_agp_cache() mb() |
| 12 | 12 | ||
| 13 | /* Convert a physical address to an address suitable for the GART. */ | ||
| 14 | #define phys_to_gart(x) (x) | ||
| 15 | #define gart_to_phys(x) (x) | ||
| 16 | |||
| 17 | /* GATT allocation. Returns/accepts GATT kernel virtual address. */ | ||
| 18 | #define alloc_gatt_pages(order) \ | ||
| 19 | ((char *)__get_free_pages(GFP_KERNEL, (order))) | ||
| 20 | #define free_gatt_pages(table, order) \ | ||
| 21 | free_pages((unsigned long)(table), (order)) | ||
| 22 | |||
| 13 | #endif | 23 | #endif |
diff --git a/include/asm-ppc64/elf.h b/include/asm-ppc64/elf.h index 6c42d61bedd1..085eedb956fe 100644 --- a/include/asm-ppc64/elf.h +++ b/include/asm-ppc64/elf.h | |||
| @@ -221,9 +221,7 @@ do { \ | |||
| 221 | set_thread_flag(TIF_ABI_PENDING); \ | 221 | set_thread_flag(TIF_ABI_PENDING); \ |
| 222 | else \ | 222 | else \ |
| 223 | clear_thread_flag(TIF_ABI_PENDING); \ | 223 | clear_thread_flag(TIF_ABI_PENDING); \ |
| 224 | if (ibcs2) \ | 224 | if (personality(current->personality) != PER_LINUX32) \ |
| 225 | set_personality(PER_SVR4); \ | ||
| 226 | else if (current->personality != PER_LINUX32) \ | ||
| 227 | set_personality(PER_LINUX); \ | 225 | set_personality(PER_LINUX); \ |
| 228 | } while (0) | 226 | } while (0) |
| 229 | 227 | ||
diff --git a/include/asm-ppc64/processor.h b/include/asm-ppc64/processor.h index 0035efe2db2b..809c634ba1df 100644 --- a/include/asm-ppc64/processor.h +++ b/include/asm-ppc64/processor.h | |||
| @@ -120,103 +120,18 @@ | |||
| 120 | 120 | ||
| 121 | /* Special Purpose Registers (SPRNs)*/ | 121 | /* Special Purpose Registers (SPRNs)*/ |
| 122 | 122 | ||
| 123 | #define SPRN_CDBCR 0x3D7 /* Cache Debug Control Register */ | ||
| 124 | #define SPRN_CTR 0x009 /* Count Register */ | 123 | #define SPRN_CTR 0x009 /* Count Register */ |
| 125 | #define SPRN_DABR 0x3F5 /* Data Address Breakpoint Register */ | 124 | #define SPRN_DABR 0x3F5 /* Data Address Breakpoint Register */ |
| 126 | #define SPRN_DAC1 0x3F6 /* Data Address Compare 1 */ | 125 | #define DABR_TRANSLATION (1UL << 2) |
| 127 | #define SPRN_DAC2 0x3F7 /* Data Address Compare 2 */ | ||
| 128 | #define SPRN_DAR 0x013 /* Data Address Register */ | 126 | #define SPRN_DAR 0x013 /* Data Address Register */ |
| 129 | #define SPRN_DBCR 0x3F2 /* Debug Control Regsiter */ | ||
| 130 | #define DBCR_EDM 0x80000000 | ||
| 131 | #define DBCR_IDM 0x40000000 | ||
| 132 | #define DBCR_RST(x) (((x) & 0x3) << 28) | ||
| 133 | #define DBCR_RST_NONE 0 | ||
| 134 | #define DBCR_RST_CORE 1 | ||
| 135 | #define DBCR_RST_CHIP 2 | ||
| 136 | #define DBCR_RST_SYSTEM 3 | ||
| 137 | #define DBCR_IC 0x08000000 /* Instruction Completion Debug Evnt */ | ||
| 138 | #define DBCR_BT 0x04000000 /* Branch Taken Debug Event */ | ||
| 139 | #define DBCR_EDE 0x02000000 /* Exception Debug Event */ | ||
| 140 | #define DBCR_TDE 0x01000000 /* TRAP Debug Event */ | ||
| 141 | #define DBCR_FER 0x00F80000 /* First Events Remaining Mask */ | ||
| 142 | #define DBCR_FT 0x00040000 /* Freeze Timers on Debug Event */ | ||
| 143 | #define DBCR_IA1 0x00020000 /* Instr. Addr. Compare 1 Enable */ | ||
| 144 | #define DBCR_IA2 0x00010000 /* Instr. Addr. Compare 2 Enable */ | ||
| 145 | #define DBCR_D1R 0x00008000 /* Data Addr. Compare 1 Read Enable */ | ||
| 146 | #define DBCR_D1W 0x00004000 /* Data Addr. Compare 1 Write Enable */ | ||
| 147 | #define DBCR_D1S(x) (((x) & 0x3) << 12) /* Data Adrr. Compare 1 Size */ | ||
| 148 | #define DAC_BYTE 0 | ||
| 149 | #define DAC_HALF 1 | ||
| 150 | #define DAC_WORD 2 | ||
| 151 | #define DAC_QUAD 3 | ||
| 152 | #define DBCR_D2R 0x00000800 /* Data Addr. Compare 2 Read Enable */ | ||
| 153 | #define DBCR_D2W 0x00000400 /* Data Addr. Compare 2 Write Enable */ | ||
| 154 | #define DBCR_D2S(x) (((x) & 0x3) << 8) /* Data Addr. Compare 2 Size */ | ||
| 155 | #define DBCR_SBT 0x00000040 /* Second Branch Taken Debug Event */ | ||
| 156 | #define DBCR_SED 0x00000020 /* Second Exception Debug Event */ | ||
| 157 | #define DBCR_STD 0x00000010 /* Second Trap Debug Event */ | ||
| 158 | #define DBCR_SIA 0x00000008 /* Second IAC Enable */ | ||
| 159 | #define DBCR_SDA 0x00000004 /* Second DAC Enable */ | ||
| 160 | #define DBCR_JOI 0x00000002 /* JTAG Serial Outbound Int. Enable */ | ||
| 161 | #define DBCR_JII 0x00000001 /* JTAG Serial Inbound Int. Enable */ | ||
| 162 | #define SPRN_DBCR0 0x3F2 /* Debug Control Register 0 */ | ||
| 163 | #define SPRN_DBCR1 0x3BD /* Debug Control Register 1 */ | ||
| 164 | #define SPRN_DBSR 0x3F0 /* Debug Status Register */ | ||
| 165 | #define SPRN_DCCR 0x3FA /* Data Cache Cacheability Register */ | ||
| 166 | #define DCCR_NOCACHE 0 /* Noncacheable */ | ||
| 167 | #define DCCR_CACHE 1 /* Cacheable */ | ||
| 168 | #define SPRN_DCMP 0x3D1 /* Data TLB Compare Register */ | ||
| 169 | #define SPRN_DCWR 0x3BA /* Data Cache Write-thru Register */ | ||
| 170 | #define DCWR_COPY 0 /* Copy-back */ | ||
| 171 | #define DCWR_WRITE 1 /* Write-through */ | ||
| 172 | #define SPRN_DEAR 0x3D5 /* Data Error Address Register */ | ||
| 173 | #define SPRN_DEC 0x016 /* Decrement Register */ | 127 | #define SPRN_DEC 0x016 /* Decrement Register */ |
| 174 | #define SPRN_DMISS 0x3D0 /* Data TLB Miss Register */ | ||
| 175 | #define SPRN_DSISR 0x012 /* Data Storage Interrupt Status Register */ | 128 | #define SPRN_DSISR 0x012 /* Data Storage Interrupt Status Register */ |
| 176 | #define DSISR_NOHPTE 0x40000000 /* no translation found */ | 129 | #define DSISR_NOHPTE 0x40000000 /* no translation found */ |
| 177 | #define DSISR_PROTFAULT 0x08000000 /* protection fault */ | 130 | #define DSISR_PROTFAULT 0x08000000 /* protection fault */ |
| 178 | #define DSISR_ISSTORE 0x02000000 /* access was a store */ | 131 | #define DSISR_ISSTORE 0x02000000 /* access was a store */ |
| 179 | #define DSISR_DABRMATCH 0x00400000 /* hit data breakpoint */ | 132 | #define DSISR_DABRMATCH 0x00400000 /* hit data breakpoint */ |
| 180 | #define DSISR_NOSEGMENT 0x00200000 /* STAB/SLB miss */ | 133 | #define DSISR_NOSEGMENT 0x00200000 /* STAB/SLB miss */ |
| 181 | #define SPRN_EAR 0x11A /* External Address Register */ | ||
| 182 | #define SPRN_ESR 0x3D4 /* Exception Syndrome Register */ | ||
| 183 | #define ESR_IMCP 0x80000000 /* Instr. Machine Check - Protection */ | ||
| 184 | #define ESR_IMCN 0x40000000 /* Instr. Machine Check - Non-config */ | ||
| 185 | #define ESR_IMCB 0x20000000 /* Instr. Machine Check - Bus error */ | ||
| 186 | #define ESR_IMCT 0x10000000 /* Instr. Machine Check - Timeout */ | ||
| 187 | #define ESR_PIL 0x08000000 /* Program Exception - Illegal */ | ||
| 188 | #define ESR_PPR 0x04000000 /* Program Exception - Priveleged */ | ||
| 189 | #define ESR_PTR 0x02000000 /* Program Exception - Trap */ | ||
| 190 | #define ESR_DST 0x00800000 /* Storage Exception - Data miss */ | ||
| 191 | #define ESR_DIZ 0x00400000 /* Storage Exception - Zone fault */ | ||
| 192 | #define SPRN_EVPR 0x3D6 /* Exception Vector Prefix Register */ | ||
| 193 | #define SPRN_HASH1 0x3D2 /* Primary Hash Address Register */ | ||
| 194 | #define SPRN_HASH2 0x3D3 /* Secondary Hash Address Resgister */ | ||
| 195 | #define SPRN_HID0 0x3F0 /* Hardware Implementation Register 0 */ | 134 | #define SPRN_HID0 0x3F0 /* Hardware Implementation Register 0 */ |
| 196 | #define HID0_EMCP (1<<31) /* Enable Machine Check pin */ | ||
| 197 | #define HID0_EBA (1<<29) /* Enable Bus Address Parity */ | ||
| 198 | #define HID0_EBD (1<<28) /* Enable Bus Data Parity */ | ||
| 199 | #define HID0_SBCLK (1<<27) | ||
| 200 | #define HID0_EICE (1<<26) | ||
| 201 | #define HID0_ECLK (1<<25) | ||
| 202 | #define HID0_PAR (1<<24) | ||
| 203 | #define HID0_DOZE (1<<23) | ||
| 204 | #define HID0_NAP (1<<22) | ||
| 205 | #define HID0_SLEEP (1<<21) | ||
| 206 | #define HID0_DPM (1<<20) | ||
| 207 | #define HID0_ICE (1<<15) /* Instruction Cache Enable */ | ||
| 208 | #define HID0_DCE (1<<14) /* Data Cache Enable */ | ||
| 209 | #define HID0_ILOCK (1<<13) /* Instruction Cache Lock */ | ||
| 210 | #define HID0_DLOCK (1<<12) /* Data Cache Lock */ | ||
| 211 | #define HID0_ICFI (1<<11) /* Instr. Cache Flash Invalidate */ | ||
| 212 | #define HID0_DCI (1<<10) /* Data Cache Invalidate */ | ||
| 213 | #define HID0_SPD (1<<9) /* Speculative disable */ | ||
| 214 | #define HID0_SGE (1<<7) /* Store Gathering Enable */ | ||
| 215 | #define HID0_SIED (1<<7) /* Serial Instr. Execution [Disable] */ | ||
| 216 | #define HID0_BTIC (1<<5) /* Branch Target Instruction Cache Enable */ | ||
| 217 | #define HID0_ABE (1<<3) /* Address Broadcast Enable */ | ||
| 218 | #define HID0_BHTE (1<<2) /* Branch History Table Enable */ | ||
| 219 | #define HID0_BTCD (1<<1) /* Branch target cache disable */ | ||
| 220 | #define SPRN_MSRDORM 0x3F1 /* Hardware Implementation Register 1 */ | 135 | #define SPRN_MSRDORM 0x3F1 /* Hardware Implementation Register 1 */ |
| 221 | #define SPRN_HID1 0x3F1 /* Hardware Implementation Register 1 */ | 136 | #define SPRN_HID1 0x3F1 /* Hardware Implementation Register 1 */ |
| 222 | #define SPRN_IABR 0x3F2 /* Instruction Address Breakpoint Register */ | 137 | #define SPRN_IABR 0x3F2 /* Instruction Address Breakpoint Register */ |
| @@ -225,23 +140,8 @@ | |||
| 225 | #define SPRN_HID5 0x3F6 /* 970 HID5 */ | 140 | #define SPRN_HID5 0x3F6 /* 970 HID5 */ |
| 226 | #define SPRN_TSC 0x3FD /* Thread switch control */ | 141 | #define SPRN_TSC 0x3FD /* Thread switch control */ |
| 227 | #define SPRN_TST 0x3FC /* Thread switch timeout */ | 142 | #define SPRN_TST 0x3FC /* Thread switch timeout */ |
| 228 | #define SPRN_IAC1 0x3F4 /* Instruction Address Compare 1 */ | ||
| 229 | #define SPRN_IAC2 0x3F5 /* Instruction Address Compare 2 */ | ||
| 230 | #define SPRN_ICCR 0x3FB /* Instruction Cache Cacheability Register */ | ||
| 231 | #define ICCR_NOCACHE 0 /* Noncacheable */ | ||
| 232 | #define ICCR_CACHE 1 /* Cacheable */ | ||
| 233 | #define SPRN_ICDBDR 0x3D3 /* Instruction Cache Debug Data Register */ | ||
| 234 | #define SPRN_ICMP 0x3D5 /* Instruction TLB Compare Register */ | ||
| 235 | #define SPRN_ICTC 0x3FB /* Instruction Cache Throttling Control Reg */ | ||
| 236 | #define SPRN_IMISS 0x3D4 /* Instruction TLB Miss Register */ | ||
| 237 | #define SPRN_IMMR 0x27E /* Internal Memory Map Register */ | ||
| 238 | #define SPRN_L2CR 0x3F9 /* Level 2 Cache Control Regsiter */ | 143 | #define SPRN_L2CR 0x3F9 /* Level 2 Cache Control Regsiter */ |
| 239 | #define SPRN_LR 0x008 /* Link Register */ | 144 | #define SPRN_LR 0x008 /* Link Register */ |
| 240 | #define SPRN_PBL1 0x3FC /* Protection Bound Lower 1 */ | ||
| 241 | #define SPRN_PBL2 0x3FE /* Protection Bound Lower 2 */ | ||
| 242 | #define SPRN_PBU1 0x3FD /* Protection Bound Upper 1 */ | ||
| 243 | #define SPRN_PBU2 0x3FF /* Protection Bound Upper 2 */ | ||
| 244 | #define SPRN_PID 0x3B1 /* Process ID */ | ||
| 245 | #define SPRN_PIR 0x3FF /* Processor Identification Register */ | 145 | #define SPRN_PIR 0x3FF /* Processor Identification Register */ |
| 246 | #define SPRN_PIT 0x3DB /* Programmable Interval Timer */ | 146 | #define SPRN_PIT 0x3DB /* Programmable Interval Timer */ |
| 247 | #define SPRN_PURR 0x135 /* Processor Utilization of Resources Register */ | 147 | #define SPRN_PURR 0x135 /* Processor Utilization of Resources Register */ |
| @@ -249,9 +149,6 @@ | |||
| 249 | #define SPRN_RPA 0x3D6 /* Required Physical Address Register */ | 149 | #define SPRN_RPA 0x3D6 /* Required Physical Address Register */ |
| 250 | #define SPRN_SDA 0x3BF /* Sampled Data Address Register */ | 150 | #define SPRN_SDA 0x3BF /* Sampled Data Address Register */ |
| 251 | #define SPRN_SDR1 0x019 /* MMU Hash Base Register */ | 151 | #define SPRN_SDR1 0x019 /* MMU Hash Base Register */ |
| 252 | #define SPRN_SGR 0x3B9 /* Storage Guarded Register */ | ||
| 253 | #define SGR_NORMAL 0 | ||
| 254 | #define SGR_GUARDED 1 | ||
| 255 | #define SPRN_SIA 0x3BB /* Sampled Instruction Address Register */ | 152 | #define SPRN_SIA 0x3BB /* Sampled Instruction Address Register */ |
| 256 | #define SPRN_SPRG0 0x110 /* Special Purpose Register General 0 */ | 153 | #define SPRN_SPRG0 0x110 /* Special Purpose Register General 0 */ |
| 257 | #define SPRN_SPRG1 0x111 /* Special Purpose Register General 1 */ | 154 | #define SPRN_SPRG1 0x111 /* Special Purpose Register General 1 */ |
| @@ -264,50 +161,12 @@ | |||
| 264 | #define SPRN_TBWL 0x11C /* Time Base Lower Register (super, W/O) */ | 161 | #define SPRN_TBWL 0x11C /* Time Base Lower Register (super, W/O) */ |
| 265 | #define SPRN_TBWU 0x11D /* Time Base Write Upper Register (super, W/O) */ | 162 | #define SPRN_TBWU 0x11D /* Time Base Write Upper Register (super, W/O) */ |
| 266 | #define SPRN_HIOR 0x137 /* 970 Hypervisor interrupt offset */ | 163 | #define SPRN_HIOR 0x137 /* 970 Hypervisor interrupt offset */ |
| 267 | #define SPRN_TCR 0x3DA /* Timer Control Register */ | ||
| 268 | #define TCR_WP(x) (((x)&0x3)<<30) /* WDT Period */ | ||
| 269 | #define WP_2_17 0 /* 2^17 clocks */ | ||
| 270 | #define WP_2_21 1 /* 2^21 clocks */ | ||
| 271 | #define WP_2_25 2 /* 2^25 clocks */ | ||
| 272 | #define WP_2_29 3 /* 2^29 clocks */ | ||
| 273 | #define TCR_WRC(x) (((x)&0x3)<<28) /* WDT Reset Control */ | ||
| 274 | #define WRC_NONE 0 /* No reset will occur */ | ||
| 275 | #define WRC_CORE 1 /* Core reset will occur */ | ||
| 276 | #define WRC_CHIP 2 /* Chip reset will occur */ | ||
| 277 | #define WRC_SYSTEM 3 /* System reset will occur */ | ||
| 278 | #define TCR_WIE 0x08000000 /* WDT Interrupt Enable */ | ||
| 279 | #define TCR_PIE 0x04000000 /* PIT Interrupt Enable */ | ||
| 280 | #define TCR_FP(x) (((x)&0x3)<<24) /* FIT Period */ | ||
| 281 | #define FP_2_9 0 /* 2^9 clocks */ | ||
| 282 | #define FP_2_13 1 /* 2^13 clocks */ | ||
| 283 | #define FP_2_17 2 /* 2^17 clocks */ | ||
| 284 | #define FP_2_21 3 /* 2^21 clocks */ | ||
| 285 | #define TCR_FIE 0x00800000 /* FIT Interrupt Enable */ | ||
| 286 | #define TCR_ARE 0x00400000 /* Auto Reload Enable */ | ||
| 287 | #define SPRN_THRM1 0x3FC /* Thermal Management Register 1 */ | ||
| 288 | #define THRM1_TIN (1<<0) | ||
| 289 | #define THRM1_TIV (1<<1) | ||
| 290 | #define THRM1_THRES (0x7f<<2) | ||
| 291 | #define THRM1_TID (1<<29) | ||
| 292 | #define THRM1_TIE (1<<30) | ||
| 293 | #define THRM1_V (1<<31) | ||
| 294 | #define SPRN_THRM2 0x3FD /* Thermal Management Register 2 */ | ||
| 295 | #define SPRN_THRM3 0x3FE /* Thermal Management Register 3 */ | ||
| 296 | #define THRM3_E (1<<31) | ||
| 297 | #define SPRN_TSR 0x3D8 /* Timer Status Register */ | ||
| 298 | #define TSR_ENW 0x80000000 /* Enable Next Watchdog */ | ||
| 299 | #define TSR_WIS 0x40000000 /* WDT Interrupt Status */ | ||
| 300 | #define TSR_WRS(x) (((x)&0x3)<<28) /* WDT Reset Status */ | ||
| 301 | #define WRS_NONE 0 /* No WDT reset occurred */ | ||
| 302 | #define WRS_CORE 1 /* WDT forced core reset */ | ||
| 303 | #define WRS_CHIP 2 /* WDT forced chip reset */ | ||
| 304 | #define WRS_SYSTEM 3 /* WDT forced system reset */ | ||
| 305 | #define TSR_PIS 0x08000000 /* PIT Interrupt Status */ | ||
| 306 | #define TSR_FIS 0x04000000 /* FIT Interrupt Status */ | ||
| 307 | #define SPRN_USIA 0x3AB /* User Sampled Instruction Address Register */ | 164 | #define SPRN_USIA 0x3AB /* User Sampled Instruction Address Register */ |
| 308 | #define SPRN_XER 0x001 /* Fixed Point Exception Register */ | 165 | #define SPRN_XER 0x001 /* Fixed Point Exception Register */ |
| 309 | #define SPRN_ZPR 0x3B0 /* Zone Protection Register */ | ||
| 310 | #define SPRN_VRSAVE 0x100 /* Vector save */ | 166 | #define SPRN_VRSAVE 0x100 /* Vector save */ |
| 167 | #define SPRN_CTRLF 0x088 | ||
| 168 | #define SPRN_CTRLT 0x098 | ||
| 169 | #define CTRL_RUNLATCH 0x1 | ||
| 311 | 170 | ||
| 312 | /* Performance monitor SPRs */ | 171 | /* Performance monitor SPRs */ |
| 313 | #define SPRN_SIAR 780 | 172 | #define SPRN_SIAR 780 |
| @@ -352,28 +211,19 @@ | |||
| 352 | #define CTR SPRN_CTR /* Counter Register */ | 211 | #define CTR SPRN_CTR /* Counter Register */ |
| 353 | #define DAR SPRN_DAR /* Data Address Register */ | 212 | #define DAR SPRN_DAR /* Data Address Register */ |
| 354 | #define DABR SPRN_DABR /* Data Address Breakpoint Register */ | 213 | #define DABR SPRN_DABR /* Data Address Breakpoint Register */ |
| 355 | #define DCMP SPRN_DCMP /* Data TLB Compare Register */ | ||
| 356 | #define DEC SPRN_DEC /* Decrement Register */ | 214 | #define DEC SPRN_DEC /* Decrement Register */ |
| 357 | #define DMISS SPRN_DMISS /* Data TLB Miss Register */ | ||
| 358 | #define DSISR SPRN_DSISR /* Data Storage Interrupt Status Register */ | 215 | #define DSISR SPRN_DSISR /* Data Storage Interrupt Status Register */ |
| 359 | #define EAR SPRN_EAR /* External Address Register */ | ||
| 360 | #define HASH1 SPRN_HASH1 /* Primary Hash Address Register */ | ||
| 361 | #define HASH2 SPRN_HASH2 /* Secondary Hash Address Register */ | ||
| 362 | #define HID0 SPRN_HID0 /* Hardware Implementation Register 0 */ | 216 | #define HID0 SPRN_HID0 /* Hardware Implementation Register 0 */ |
| 363 | #define MSRDORM SPRN_MSRDORM /* MSR Dormant Register */ | 217 | #define MSRDORM SPRN_MSRDORM /* MSR Dormant Register */ |
| 364 | #define NIADORM SPRN_NIADORM /* NIA Dormant Register */ | 218 | #define NIADORM SPRN_NIADORM /* NIA Dormant Register */ |
| 365 | #define TSC SPRN_TSC /* Thread switch control */ | 219 | #define TSC SPRN_TSC /* Thread switch control */ |
| 366 | #define TST SPRN_TST /* Thread switch timeout */ | 220 | #define TST SPRN_TST /* Thread switch timeout */ |
| 367 | #define IABR SPRN_IABR /* Instruction Address Breakpoint Register */ | 221 | #define IABR SPRN_IABR /* Instruction Address Breakpoint Register */ |
| 368 | #define ICMP SPRN_ICMP /* Instruction TLB Compare Register */ | ||
| 369 | #define IMISS SPRN_IMISS /* Instruction TLB Miss Register */ | ||
| 370 | #define IMMR SPRN_IMMR /* PPC 860/821 Internal Memory Map Register */ | ||
| 371 | #define L2CR SPRN_L2CR /* PPC 750 L2 control register */ | 222 | #define L2CR SPRN_L2CR /* PPC 750 L2 control register */ |
| 372 | #define __LR SPRN_LR | 223 | #define __LR SPRN_LR |
| 373 | #define PVR SPRN_PVR /* Processor Version */ | 224 | #define PVR SPRN_PVR /* Processor Version */ |
| 374 | #define PIR SPRN_PIR /* Processor ID */ | 225 | #define PIR SPRN_PIR /* Processor ID */ |
| 375 | #define PURR SPRN_PURR /* Processor Utilization of Resource Register */ | 226 | #define PURR SPRN_PURR /* Processor Utilization of Resource Register */ |
| 376 | //#define RPA SPRN_RPA /* Required Physical Address Register */ | ||
| 377 | #define SDR1 SPRN_SDR1 /* MMU hash base register */ | 227 | #define SDR1 SPRN_SDR1 /* MMU hash base register */ |
| 378 | #define SPR0 SPRN_SPRG0 /* Supervisor Private Registers */ | 228 | #define SPR0 SPRN_SPRG0 /* Supervisor Private Registers */ |
| 379 | #define SPR1 SPRN_SPRG1 | 229 | #define SPR1 SPRN_SPRG1 |
| @@ -389,10 +239,6 @@ | |||
| 389 | #define TBRU SPRN_TBRU /* Time Base Read Upper Register */ | 239 | #define TBRU SPRN_TBRU /* Time Base Read Upper Register */ |
| 390 | #define TBWL SPRN_TBWL /* Time Base Write Lower Register */ | 240 | #define TBWL SPRN_TBWL /* Time Base Write Lower Register */ |
| 391 | #define TBWU SPRN_TBWU /* Time Base Write Upper Register */ | 241 | #define TBWU SPRN_TBWU /* Time Base Write Upper Register */ |
| 392 | #define ICTC 1019 | ||
| 393 | #define THRM1 SPRN_THRM1 /* Thermal Management Register 1 */ | ||
| 394 | #define THRM2 SPRN_THRM2 /* Thermal Management Register 2 */ | ||
| 395 | #define THRM3 SPRN_THRM3 /* Thermal Management Register 3 */ | ||
| 396 | #define XER SPRN_XER | 242 | #define XER SPRN_XER |
| 397 | 243 | ||
| 398 | /* Processor Version Register (PVR) field extraction */ | 244 | /* Processor Version Register (PVR) field extraction */ |
| @@ -436,12 +282,6 @@ | |||
| 436 | #define XGLUE(a,b) a##b | 282 | #define XGLUE(a,b) a##b |
| 437 | #define GLUE(a,b) XGLUE(a,b) | 283 | #define GLUE(a,b) XGLUE(a,b) |
| 438 | 284 | ||
| 439 | /* iSeries CTRL register (for runlatch) */ | ||
| 440 | |||
| 441 | #define CTRLT 0x098 | ||
| 442 | #define CTRLF 0x088 | ||
| 443 | #define RUNLATCH 0x0001 | ||
| 444 | |||
| 445 | #ifdef __ASSEMBLY__ | 285 | #ifdef __ASSEMBLY__ |
| 446 | 286 | ||
| 447 | #define _GLOBAL(name) \ | 287 | #define _GLOBAL(name) \ |
| @@ -656,6 +496,24 @@ static inline void prefetchw(const void *x) | |||
| 656 | 496 | ||
| 657 | #define HAVE_ARCH_PICK_MMAP_LAYOUT | 497 | #define HAVE_ARCH_PICK_MMAP_LAYOUT |
| 658 | 498 | ||
| 499 | static inline void ppc64_runlatch_on(void) | ||
| 500 | { | ||
| 501 | unsigned long ctrl; | ||
| 502 | |||
| 503 | ctrl = mfspr(SPRN_CTRLF); | ||
| 504 | ctrl |= CTRL_RUNLATCH; | ||
| 505 | mtspr(SPRN_CTRLT, ctrl); | ||
| 506 | } | ||
| 507 | |||
| 508 | static inline void ppc64_runlatch_off(void) | ||
| 509 | { | ||
| 510 | unsigned long ctrl; | ||
| 511 | |||
| 512 | ctrl = mfspr(SPRN_CTRLF); | ||
| 513 | ctrl &= ~CTRL_RUNLATCH; | ||
| 514 | mtspr(SPRN_CTRLT, ctrl); | ||
| 515 | } | ||
| 516 | |||
| 659 | #endif /* __KERNEL__ */ | 517 | #endif /* __KERNEL__ */ |
| 660 | 518 | ||
| 661 | #endif /* __ASSEMBLY__ */ | 519 | #endif /* __ASSEMBLY__ */ |
diff --git a/include/asm-ppc64/thread_info.h b/include/asm-ppc64/thread_info.h index 037b5e06083c..48b7900e90ec 100644 --- a/include/asm-ppc64/thread_info.h +++ b/include/asm-ppc64/thread_info.h | |||
| @@ -96,7 +96,7 @@ static inline struct thread_info *current_thread_info(void) | |||
| 96 | #define TIF_POLLING_NRFLAG 4 /* true if poll_idle() is polling | 96 | #define TIF_POLLING_NRFLAG 4 /* true if poll_idle() is polling |
| 97 | TIF_NEED_RESCHED */ | 97 | TIF_NEED_RESCHED */ |
| 98 | #define TIF_32BIT 5 /* 32 bit binary */ | 98 | #define TIF_32BIT 5 /* 32 bit binary */ |
| 99 | #define TIF_RUN_LIGHT 6 /* iSeries run light */ | 99 | /* #define SPARE 6 */ |
| 100 | #define TIF_ABI_PENDING 7 /* 32/64 bit switch needed */ | 100 | #define TIF_ABI_PENDING 7 /* 32/64 bit switch needed */ |
| 101 | #define TIF_SYSCALL_AUDIT 8 /* syscall auditing active */ | 101 | #define TIF_SYSCALL_AUDIT 8 /* syscall auditing active */ |
| 102 | #define TIF_SINGLESTEP 9 /* singlestepping active */ | 102 | #define TIF_SINGLESTEP 9 /* singlestepping active */ |
| @@ -110,7 +110,7 @@ static inline struct thread_info *current_thread_info(void) | |||
| 110 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) | 110 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) |
| 111 | #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) | 111 | #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) |
| 112 | #define _TIF_32BIT (1<<TIF_32BIT) | 112 | #define _TIF_32BIT (1<<TIF_32BIT) |
| 113 | #define _TIF_RUN_LIGHT (1<<TIF_RUN_LIGHT) | 113 | /* #define _SPARE (1<<SPARE) */ |
| 114 | #define _TIF_ABI_PENDING (1<<TIF_ABI_PENDING) | 114 | #define _TIF_ABI_PENDING (1<<TIF_ABI_PENDING) |
| 115 | #define _TIF_SYSCALL_AUDIT (1<<TIF_SYSCALL_AUDIT) | 115 | #define _TIF_SYSCALL_AUDIT (1<<TIF_SYSCALL_AUDIT) |
| 116 | #define _TIF_SINGLESTEP (1<<TIF_SINGLESTEP) | 116 | #define _TIF_SINGLESTEP (1<<TIF_SINGLESTEP) |
diff --git a/include/asm-s390/user.h b/include/asm-s390/user.h index c64f8c181df3..1dc74baf03c4 100644 --- a/include/asm-s390/user.h +++ b/include/asm-s390/user.h | |||
| @@ -10,7 +10,7 @@ | |||
| 10 | #define _S390_USER_H | 10 | #define _S390_USER_H |
| 11 | 11 | ||
| 12 | #include <asm/page.h> | 12 | #include <asm/page.h> |
| 13 | #include <linux/ptrace.h> | 13 | #include <asm/ptrace.h> |
| 14 | /* Core file format: The core file is written in such a way that gdb | 14 | /* Core file format: The core file is written in such a way that gdb |
| 15 | can understand it and provide useful information to the user (under | 15 | can understand it and provide useful information to the user (under |
| 16 | linux we use the 'trad-core' bfd). There are quite a number of | 16 | linux we use the 'trad-core' bfd). There are quite a number of |
diff --git a/include/asm-sparc/uaccess.h b/include/asm-sparc/uaccess.h index f461144067ee..0a780e84a12b 100644 --- a/include/asm-sparc/uaccess.h +++ b/include/asm-sparc/uaccess.h | |||
| @@ -41,10 +41,11 @@ | |||
| 41 | * No one can read/write anything from userland in the kernel space by setting | 41 | * No one can read/write anything from userland in the kernel space by setting |
| 42 | * large size and address near to PAGE_OFFSET - a fault will break his intentions. | 42 | * large size and address near to PAGE_OFFSET - a fault will break his intentions. |
| 43 | */ | 43 | */ |
| 44 | #define __user_ok(addr,size) ((addr) < STACK_TOP) | 44 | #define __user_ok(addr, size) ({ (void)(size); (addr) < STACK_TOP; }) |
| 45 | #define __kernel_ok (segment_eq(get_fs(), KERNEL_DS)) | 45 | #define __kernel_ok (segment_eq(get_fs(), KERNEL_DS)) |
| 46 | #define __access_ok(addr,size) (__user_ok((addr) & get_fs().seg,(size))) | 46 | #define __access_ok(addr,size) (__user_ok((addr) & get_fs().seg,(size))) |
| 47 | #define access_ok(type,addr,size) __access_ok((unsigned long)(addr),(size)) | 47 | #define access_ok(type, addr, size) \ |
| 48 | ({ (void)(type); __access_ok((unsigned long)(addr), size); }) | ||
| 48 | 49 | ||
| 49 | /* this function will go away soon - use access_ok() instead */ | 50 | /* this function will go away soon - use access_ok() instead */ |
| 50 | static inline int __deprecated verify_area(int type, const void __user * addr, unsigned long size) | 51 | static inline int __deprecated verify_area(int type, const void __user * addr, unsigned long size) |
diff --git a/include/asm-sparc64/agp.h b/include/asm-sparc64/agp.h index ba05bdf9a211..58f8cb6ae767 100644 --- a/include/asm-sparc64/agp.h +++ b/include/asm-sparc64/agp.h | |||
| @@ -8,4 +8,14 @@ | |||
| 8 | #define flush_agp_mappings() | 8 | #define flush_agp_mappings() |
| 9 | #define flush_agp_cache() mb() | 9 | #define flush_agp_cache() mb() |
| 10 | 10 | ||
| 11 | /* Convert a physical address to an address suitable for the GART. */ | ||
| 12 | #define phys_to_gart(x) (x) | ||
| 13 | #define gart_to_phys(x) (x) | ||
| 14 | |||
| 15 | /* GATT allocation. Returns/accepts GATT kernel virtual address. */ | ||
| 16 | #define alloc_gatt_pages(order) \ | ||
| 17 | ((char *)__get_free_pages(GFP_KERNEL, (order))) | ||
| 18 | #define free_gatt_pages(table, order) \ | ||
| 19 | free_pages((unsigned long)(table), (order)) | ||
| 20 | |||
| 11 | #endif | 21 | #endif |
diff --git a/include/asm-x86_64/agp.h b/include/asm-x86_64/agp.h index 0bb9019d58aa..06c52ee9c06b 100644 --- a/include/asm-x86_64/agp.h +++ b/include/asm-x86_64/agp.h | |||
| @@ -19,4 +19,14 @@ int unmap_page_from_agp(struct page *page); | |||
| 19 | worth it. Would need a page for it. */ | 19 | worth it. Would need a page for it. */ |
| 20 | #define flush_agp_cache() asm volatile("wbinvd":::"memory") | 20 | #define flush_agp_cache() asm volatile("wbinvd":::"memory") |
| 21 | 21 | ||
| 22 | /* Convert a physical address to an address suitable for the GART. */ | ||
| 23 | #define phys_to_gart(x) (x) | ||
| 24 | #define gart_to_phys(x) (x) | ||
| 25 | |||
| 26 | /* GATT allocation. Returns/accepts GATT kernel virtual address. */ | ||
| 27 | #define alloc_gatt_pages(order) \ | ||
| 28 | ((char *)__get_free_pages(GFP_KERNEL, (order))) | ||
| 29 | #define free_gatt_pages(table, order) \ | ||
| 30 | free_pages((unsigned long)(table), (order)) | ||
| 31 | |||
| 22 | #endif | 32 | #endif |
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index d5a55bdb9c3c..b123cc08773d 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
| @@ -25,6 +25,8 @@ | |||
| 25 | #ifndef _LINUX_ACPI_H | 25 | #ifndef _LINUX_ACPI_H |
| 26 | #define _LINUX_ACPI_H | 26 | #define _LINUX_ACPI_H |
| 27 | 27 | ||
| 28 | #include <linux/config.h> | ||
| 29 | |||
| 28 | #ifdef CONFIG_ACPI | 30 | #ifdef CONFIG_ACPI |
| 29 | 31 | ||
| 30 | #ifndef _LINUX | 32 | #ifndef _LINUX |
diff --git a/include/linux/if_shaper.h b/include/linux/if_shaper.h index 0485b256d043..004e6f09a6e2 100644 --- a/include/linux/if_shaper.h +++ b/include/linux/if_shaper.h | |||
| @@ -23,7 +23,7 @@ struct shaper | |||
| 23 | __u32 shapeclock; | 23 | __u32 shapeclock; |
| 24 | unsigned long recovery; /* Time we can next clock a packet out on | 24 | unsigned long recovery; /* Time we can next clock a packet out on |
| 25 | an empty queue */ | 25 | an empty queue */ |
| 26 | unsigned long locked; | 26 | struct semaphore sem; |
| 27 | struct net_device_stats stats; | 27 | struct net_device_stats stats; |
| 28 | struct net_device *dev; | 28 | struct net_device *dev; |
| 29 | int (*hard_start_xmit) (struct sk_buff *skb, | 29 | int (*hard_start_xmit) (struct sk_buff *skb, |
| @@ -38,7 +38,6 @@ struct shaper | |||
| 38 | int (*hard_header_cache)(struct neighbour *neigh, struct hh_cache *hh); | 38 | int (*hard_header_cache)(struct neighbour *neigh, struct hh_cache *hh); |
| 39 | void (*header_cache_update)(struct hh_cache *hh, struct net_device *dev, unsigned char * haddr); | 39 | void (*header_cache_update)(struct hh_cache *hh, struct net_device *dev, unsigned char * haddr); |
| 40 | struct net_device_stats* (*get_stats)(struct net_device *dev); | 40 | struct net_device_stats* (*get_stats)(struct net_device *dev); |
| 41 | wait_queue_head_t wait_queue; | ||
| 42 | struct timer_list timer; | 41 | struct timer_list timer; |
| 43 | }; | 42 | }; |
| 44 | 43 | ||
diff --git a/include/linux/if_tr.h b/include/linux/if_tr.h index 6688b414c529..3fba9e2f5427 100644 --- a/include/linux/if_tr.h +++ b/include/linux/if_tr.h | |||
| @@ -19,6 +19,8 @@ | |||
| 19 | #ifndef _LINUX_IF_TR_H | 19 | #ifndef _LINUX_IF_TR_H |
| 20 | #define _LINUX_IF_TR_H | 20 | #define _LINUX_IF_TR_H |
| 21 | 21 | ||
| 22 | #include <asm/byteorder.h> /* For __be16 */ | ||
| 23 | |||
| 22 | /* IEEE 802.5 Token-Ring magic constants. The frame sizes omit the preamble | 24 | /* IEEE 802.5 Token-Ring magic constants. The frame sizes omit the preamble |
| 23 | and FCS/CRC (frame check sequence). */ | 25 | and FCS/CRC (frame check sequence). */ |
| 24 | #define TR_ALEN 6 /* Octets in one token-ring addr */ | 26 | #define TR_ALEN 6 /* Octets in one token-ring addr */ |
diff --git a/include/linux/libata.h b/include/linux/libata.h index e74f301e9bae..b009f801e7c5 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
| @@ -467,12 +467,34 @@ static inline u8 ata_chk_status(struct ata_port *ap) | |||
| 467 | return ap->ops->check_status(ap); | 467 | return ap->ops->check_status(ap); |
| 468 | } | 468 | } |
| 469 | 469 | ||
| 470 | |||
| 471 | /** | ||
| 472 | * ata_pause - Flush writes and pause 400 nanoseconds. | ||
| 473 | * @ap: Port to wait for. | ||
| 474 | * | ||
| 475 | * LOCKING: | ||
| 476 | * Inherited from caller. | ||
| 477 | */ | ||
| 478 | |||
| 470 | static inline void ata_pause(struct ata_port *ap) | 479 | static inline void ata_pause(struct ata_port *ap) |
| 471 | { | 480 | { |
| 472 | ata_altstatus(ap); | 481 | ata_altstatus(ap); |
| 473 | ndelay(400); | 482 | ndelay(400); |
| 474 | } | 483 | } |
| 475 | 484 | ||
| 485 | |||
| 486 | /** | ||
| 487 | * ata_busy_wait - Wait for a port status register | ||
| 488 | * @ap: Port to wait for. | ||
| 489 | * | ||
| 490 | * Waits up to max*10 microseconds for the selected bits in the port's | ||
| 491 | * status register to be cleared. | ||
| 492 | * Returns final value of status register. | ||
| 493 | * | ||
| 494 | * LOCKING: | ||
| 495 | * Inherited from caller. | ||
| 496 | */ | ||
| 497 | |||
| 476 | static inline u8 ata_busy_wait(struct ata_port *ap, unsigned int bits, | 498 | static inline u8 ata_busy_wait(struct ata_port *ap, unsigned int bits, |
| 477 | unsigned int max) | 499 | unsigned int max) |
| 478 | { | 500 | { |
| @@ -487,6 +509,18 @@ static inline u8 ata_busy_wait(struct ata_port *ap, unsigned int bits, | |||
| 487 | return status; | 509 | return status; |
| 488 | } | 510 | } |
| 489 | 511 | ||
| 512 | |||
| 513 | /** | ||
| 514 | * ata_wait_idle - Wait for a port to be idle. | ||
| 515 | * @ap: Port to wait for. | ||
| 516 | * | ||
| 517 | * Waits up to 10ms for port's BUSY and DRQ signals to clear. | ||
| 518 | * Returns final value of status register. | ||
| 519 | * | ||
| 520 | * LOCKING: | ||
| 521 | * Inherited from caller. | ||
| 522 | */ | ||
| 523 | |||
| 490 | static inline u8 ata_wait_idle(struct ata_port *ap) | 524 | static inline u8 ata_wait_idle(struct ata_port *ap) |
| 491 | { | 525 | { |
| 492 | u8 status = ata_busy_wait(ap, ATA_BUSY | ATA_DRQ, 1000); | 526 | u8 status = ata_busy_wait(ap, ATA_BUSY | ATA_DRQ, 1000); |
| @@ -525,6 +559,18 @@ static inline void ata_tf_init(struct ata_port *ap, struct ata_taskfile *tf, uns | |||
| 525 | tf->device = ATA_DEVICE_OBS | ATA_DEV1; | 559 | tf->device = ATA_DEVICE_OBS | ATA_DEV1; |
| 526 | } | 560 | } |
| 527 | 561 | ||
| 562 | |||
| 563 | /** | ||
| 564 | * ata_irq_on - Enable interrupts on a port. | ||
| 565 | * @ap: Port on which interrupts are enabled. | ||
| 566 | * | ||
| 567 | * Enable interrupts on a legacy IDE device using MMIO or PIO, | ||
| 568 | * wait for idle, clear any pending interrupts. | ||
| 569 | * | ||
| 570 | * LOCKING: | ||
| 571 | * Inherited from caller. | ||
| 572 | */ | ||
| 573 | |||
| 528 | static inline u8 ata_irq_on(struct ata_port *ap) | 574 | static inline u8 ata_irq_on(struct ata_port *ap) |
| 529 | { | 575 | { |
| 530 | struct ata_ioports *ioaddr = &ap->ioaddr; | 576 | struct ata_ioports *ioaddr = &ap->ioaddr; |
| @@ -544,6 +590,18 @@ static inline u8 ata_irq_on(struct ata_port *ap) | |||
| 544 | return tmp; | 590 | return tmp; |
| 545 | } | 591 | } |
| 546 | 592 | ||
| 593 | |||
| 594 | /** | ||
| 595 | * ata_irq_ack - Acknowledge a device interrupt. | ||
| 596 | * @ap: Port on which interrupts are enabled. | ||
| 597 | * | ||
| 598 | * Wait up to 10 ms for legacy IDE device to become idle (BUSY | ||
| 599 | * or BUSY+DRQ clear). Obtain dma status and port status from | ||
| 600 | * device. Clear the interrupt. Return port status. | ||
| 601 | * | ||
| 602 | * LOCKING: | ||
| 603 | */ | ||
| 604 | |||
| 547 | static inline u8 ata_irq_ack(struct ata_port *ap, unsigned int chk_drq) | 605 | static inline u8 ata_irq_ack(struct ata_port *ap, unsigned int chk_drq) |
| 548 | { | 606 | { |
| 549 | unsigned int bits = chk_drq ? ATA_BUSY | ATA_DRQ : ATA_BUSY; | 607 | unsigned int bits = chk_drq ? ATA_BUSY | ATA_DRQ : ATA_BUSY; |
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 470af8c1a4a0..ba5d1236aa17 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
| @@ -204,7 +204,7 @@ struct hh_cache | |||
| 204 | /* cached hardware header; allow for machine alignment needs. */ | 204 | /* cached hardware header; allow for machine alignment needs. */ |
| 205 | #define HH_DATA_MOD 16 | 205 | #define HH_DATA_MOD 16 |
| 206 | #define HH_DATA_OFF(__len) \ | 206 | #define HH_DATA_OFF(__len) \ |
| 207 | (HH_DATA_MOD - ((__len) & (HH_DATA_MOD - 1))) | 207 | (HH_DATA_MOD - (((__len - 1) & (HH_DATA_MOD - 1)) + 1)) |
| 208 | #define HH_DATA_ALIGN(__len) \ | 208 | #define HH_DATA_ALIGN(__len) \ |
| 209 | (((__len)+(HH_DATA_MOD-1))&~(HH_DATA_MOD - 1)) | 209 | (((__len)+(HH_DATA_MOD-1))&~(HH_DATA_MOD - 1)) |
| 210 | unsigned long hh_data[HH_DATA_ALIGN(LL_MAX_HEADER) / sizeof(long)]; | 210 | unsigned long hh_data[HH_DATA_ALIGN(LL_MAX_HEADER) / sizeof(long)]; |
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index b0d6134e1ee6..b8b4ebf9abf1 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h | |||
| @@ -874,6 +874,7 @@ | |||
| 874 | #define PCI_DEVICE_ID_APPLE_KL_USB_P 0x0026 | 874 | #define PCI_DEVICE_ID_APPLE_KL_USB_P 0x0026 |
| 875 | #define PCI_DEVICE_ID_APPLE_UNI_N_AGP_P 0x0027 | 875 | #define PCI_DEVICE_ID_APPLE_UNI_N_AGP_P 0x0027 |
| 876 | #define PCI_DEVICE_ID_APPLE_UNI_N_AGP15 0x002d | 876 | #define PCI_DEVICE_ID_APPLE_UNI_N_AGP15 0x002d |
| 877 | #define PCI_DEVICE_ID_APPLE_UNI_N_PCI15 0x002e | ||
| 877 | #define PCI_DEVICE_ID_APPLE_UNI_N_FW2 0x0030 | 878 | #define PCI_DEVICE_ID_APPLE_UNI_N_FW2 0x0030 |
| 878 | #define PCI_DEVICE_ID_APPLE_UNI_N_GMAC2 0x0032 | 879 | #define PCI_DEVICE_ID_APPLE_UNI_N_GMAC2 0x0032 |
| 879 | #define PCI_DEVIEC_ID_APPLE_UNI_N_ATA 0x0033 | 880 | #define PCI_DEVIEC_ID_APPLE_UNI_N_ATA 0x0033 |
| @@ -2382,6 +2383,8 @@ | |||
| 2382 | #define PCI_DEVICE_ID_INTEL_82915G_IG 0x2582 | 2383 | #define PCI_DEVICE_ID_INTEL_82915G_IG 0x2582 |
| 2383 | #define PCI_DEVICE_ID_INTEL_82915GM_HB 0x2590 | 2384 | #define PCI_DEVICE_ID_INTEL_82915GM_HB 0x2590 |
| 2384 | #define PCI_DEVICE_ID_INTEL_82915GM_IG 0x2592 | 2385 | #define PCI_DEVICE_ID_INTEL_82915GM_IG 0x2592 |
| 2386 | #define PCI_DEVICE_ID_INTEL_82945G_HB 0x2770 | ||
| 2387 | #define PCI_DEVICE_ID_INTEL_82945G_IG 0x2772 | ||
| 2385 | #define PCI_DEVICE_ID_INTEL_ICH6_0 0x2640 | 2388 | #define PCI_DEVICE_ID_INTEL_ICH6_0 0x2640 |
| 2386 | #define PCI_DEVICE_ID_INTEL_ICH6_1 0x2641 | 2389 | #define PCI_DEVICE_ID_INTEL_ICH6_1 0x2641 |
| 2387 | #define PCI_DEVICE_ID_INTEL_ICH6_2 0x2642 | 2390 | #define PCI_DEVICE_ID_INTEL_ICH6_2 0x2642 |
diff --git a/include/linux/signal.h b/include/linux/signal.h index 0a98f5ec5cae..7be18b5e2fb4 100644 --- a/include/linux/signal.h +++ b/include/linux/signal.h | |||
| @@ -231,10 +231,8 @@ extern int __group_send_sig_info(int, struct siginfo *, struct task_struct *); | |||
| 231 | extern long do_sigpending(void __user *, unsigned long); | 231 | extern long do_sigpending(void __user *, unsigned long); |
| 232 | extern int sigprocmask(int, sigset_t *, sigset_t *); | 232 | extern int sigprocmask(int, sigset_t *, sigset_t *); |
| 233 | 233 | ||
| 234 | #ifndef HAVE_ARCH_GET_SIGNAL_TO_DELIVER | ||
| 235 | struct pt_regs; | 234 | struct pt_regs; |
| 236 | extern int get_signal_to_deliver(siginfo_t *info, struct k_sigaction *return_ka, struct pt_regs *regs, void *cookie); | 235 | extern int get_signal_to_deliver(siginfo_t *info, struct k_sigaction *return_ka, struct pt_regs *regs, void *cookie); |
| 237 | #endif | ||
| 238 | 236 | ||
| 239 | #endif /* __KERNEL__ */ | 237 | #endif /* __KERNEL__ */ |
| 240 | 238 | ||
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index 23032d9d6071..a17745c80a91 100644 --- a/include/linux/sysctl.h +++ b/include/linux/sysctl.h | |||
| @@ -346,6 +346,7 @@ enum | |||
| 346 | NET_TCP_MODERATE_RCVBUF=106, | 346 | NET_TCP_MODERATE_RCVBUF=106, |
| 347 | NET_TCP_TSO_WIN_DIVISOR=107, | 347 | NET_TCP_TSO_WIN_DIVISOR=107, |
| 348 | NET_TCP_BIC_BETA=108, | 348 | NET_TCP_BIC_BETA=108, |
| 349 | NET_IPV4_ICMP_ERRORS_USE_INBOUND_IFADDR=109, | ||
| 349 | }; | 350 | }; |
| 350 | 351 | ||
| 351 | enum { | 352 | enum { |
diff --git a/include/linux/tc_ematch/tc_em_meta.h b/include/linux/tc_ematch/tc_em_meta.h index aa6b48bb4dcd..a6b2cc530af5 100644 --- a/include/linux/tc_ematch/tc_em_meta.h +++ b/include/linux/tc_ematch/tc_em_meta.h | |||
| @@ -56,6 +56,36 @@ enum | |||
| 56 | TCF_META_ID_TCCLASSID, | 56 | TCF_META_ID_TCCLASSID, |
| 57 | TCF_META_ID_RTCLASSID, | 57 | TCF_META_ID_RTCLASSID, |
| 58 | TCF_META_ID_RTIIF, | 58 | TCF_META_ID_RTIIF, |
| 59 | TCF_META_ID_SK_FAMILY, | ||
| 60 | TCF_META_ID_SK_STATE, | ||
| 61 | TCF_META_ID_SK_REUSE, | ||
| 62 | TCF_META_ID_SK_BOUND_IF, | ||
| 63 | TCF_META_ID_SK_REFCNT, | ||
| 64 | TCF_META_ID_SK_SHUTDOWN, | ||
| 65 | TCF_META_ID_SK_PROTO, | ||
| 66 | TCF_META_ID_SK_TYPE, | ||
| 67 | TCF_META_ID_SK_RCVBUF, | ||
| 68 | TCF_META_ID_SK_RMEM_ALLOC, | ||
| 69 | TCF_META_ID_SK_WMEM_ALLOC, | ||
| 70 | TCF_META_ID_SK_OMEM_ALLOC, | ||
| 71 | TCF_META_ID_SK_WMEM_QUEUED, | ||
| 72 | TCF_META_ID_SK_RCV_QLEN, | ||
| 73 | TCF_META_ID_SK_SND_QLEN, | ||
| 74 | TCF_META_ID_SK_ERR_QLEN, | ||
| 75 | TCF_META_ID_SK_FORWARD_ALLOCS, | ||
| 76 | TCF_META_ID_SK_SNDBUF, | ||
| 77 | TCF_META_ID_SK_ALLOCS, | ||
| 78 | TCF_META_ID_SK_ROUTE_CAPS, | ||
| 79 | TCF_META_ID_SK_HASHENT, | ||
| 80 | TCF_META_ID_SK_LINGERTIME, | ||
| 81 | TCF_META_ID_SK_ACK_BACKLOG, | ||
| 82 | TCF_META_ID_SK_MAX_ACK_BACKLOG, | ||
| 83 | TCF_META_ID_SK_PRIO, | ||
| 84 | TCF_META_ID_SK_RCVLOWAT, | ||
| 85 | TCF_META_ID_SK_RCVTIMEO, | ||
| 86 | TCF_META_ID_SK_SNDTIMEO, | ||
| 87 | TCF_META_ID_SK_SENDMSG_OFF, | ||
| 88 | TCF_META_ID_SK_WRITE_PENDING, | ||
| 59 | __TCF_META_ID_MAX | 89 | __TCF_META_ID_MAX |
| 60 | }; | 90 | }; |
| 61 | #define TCF_META_ID_MAX (__TCF_META_ID_MAX - 1) | 91 | #define TCF_META_ID_MAX (__TCF_META_ID_MAX - 1) |
diff --git a/include/linux/usb.h b/include/linux/usb.h index 41d1a644c9d4..2d1ac5058534 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h | |||
| @@ -796,6 +796,10 @@ typedef void (*usb_complete_t)(struct urb *, struct pt_regs *); | |||
| 796 | * of the iso_frame_desc array, and the number of errors is reported in | 796 | * of the iso_frame_desc array, and the number of errors is reported in |
| 797 | * error_count. Completion callbacks for ISO transfers will normally | 797 | * error_count. Completion callbacks for ISO transfers will normally |
| 798 | * (re)submit URBs to ensure a constant transfer rate. | 798 | * (re)submit URBs to ensure a constant transfer rate. |
| 799 | * | ||
| 800 | * Note that even fields marked "public" should not be touched by the driver | ||
| 801 | * when the urb is owned by the hcd, that is, since the call to | ||
| 802 | * usb_submit_urb() till the entry into the completion routine. | ||
| 799 | */ | 803 | */ |
| 800 | struct urb | 804 | struct urb |
| 801 | { | 805 | { |
| @@ -803,12 +807,12 @@ struct urb | |||
| 803 | struct kref kref; /* reference count of the URB */ | 807 | struct kref kref; /* reference count of the URB */ |
| 804 | spinlock_t lock; /* lock for the URB */ | 808 | spinlock_t lock; /* lock for the URB */ |
| 805 | void *hcpriv; /* private data for host controller */ | 809 | void *hcpriv; /* private data for host controller */ |
| 806 | struct list_head urb_list; /* list pointer to all active urbs */ | ||
| 807 | int bandwidth; /* bandwidth for INT/ISO request */ | 810 | int bandwidth; /* bandwidth for INT/ISO request */ |
| 808 | atomic_t use_count; /* concurrent submissions counter */ | 811 | atomic_t use_count; /* concurrent submissions counter */ |
| 809 | u8 reject; /* submissions will fail */ | 812 | u8 reject; /* submissions will fail */ |
| 810 | 813 | ||
| 811 | /* public, documented fields in the urb that can be used by drivers */ | 814 | /* public, documented fields in the urb that can be used by drivers */ |
| 815 | struct list_head urb_list; /* list head for use by the urb owner */ | ||
| 812 | struct usb_device *dev; /* (in) pointer to associated device */ | 816 | struct usb_device *dev; /* (in) pointer to associated device */ |
| 813 | unsigned int pipe; /* (in) pipe information */ | 817 | unsigned int pipe; /* (in) pipe information */ |
| 814 | int status; /* (return) non-ISO status */ | 818 | int status; /* (return) non-ISO status */ |
diff --git a/include/net/ip.h b/include/net/ip.h index 3f63992eb712..32360bbe143f 100644 --- a/include/net/ip.h +++ b/include/net/ip.h | |||
| @@ -163,6 +163,7 @@ DECLARE_SNMP_STAT(struct linux_mib, net_statistics); | |||
| 163 | 163 | ||
| 164 | extern int sysctl_local_port_range[2]; | 164 | extern int sysctl_local_port_range[2]; |
| 165 | extern int sysctl_ip_default_ttl; | 165 | extern int sysctl_ip_default_ttl; |
| 166 | extern int sysctl_ip_nonlocal_bind; | ||
| 166 | 167 | ||
| 167 | #ifdef CONFIG_INET | 168 | #ifdef CONFIG_INET |
| 168 | /* The function in 2.2 was invalid, producing wrong result for | 169 | /* The function in 2.2 was invalid, producing wrong result for |
