diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-i386/signal.h | 31 | ||||
-rw-r--r-- | include/asm-powerpc/ppc-pci.h | 1 | ||||
-rw-r--r-- | include/asm-powerpc/vdso.h | 2 | ||||
-rw-r--r-- | include/asm-ppc/pgalloc.h | 2 | ||||
-rw-r--r-- | include/asm-ppc64/pci-bridge.h | 14 | ||||
-rw-r--r-- | include/linux/compat_ioctl.h | 67 |
6 files changed, 106 insertions, 11 deletions
diff --git a/include/asm-i386/signal.h b/include/asm-i386/signal.h index cbb47d34aa31..6ba29f145bf8 100644 --- a/include/asm-i386/signal.h +++ b/include/asm-i386/signal.h | |||
@@ -159,14 +159,37 @@ typedef struct sigaltstack { | |||
159 | 159 | ||
160 | #define __HAVE_ARCH_SIG_BITOPS | 160 | #define __HAVE_ARCH_SIG_BITOPS |
161 | 161 | ||
162 | static __inline__ void sigaddset(sigset_t *set, int _sig) | 162 | #define sigaddset(set,sig) \ |
163 | (__builtin_constant_p(sig) ? \ | ||
164 | __const_sigaddset((set),(sig)) : \ | ||
165 | __gen_sigaddset((set),(sig))) | ||
166 | |||
167 | static __inline__ void __gen_sigaddset(sigset_t *set, int _sig) | ||
163 | { | 168 | { |
164 | __asm__("btsl %1,%0" : "=m"(*set) : "Ir"(_sig - 1) : "cc"); | 169 | __asm__("btsl %1,%0" : "+m"(*set) : "Ir"(_sig - 1) : "cc"); |
165 | } | 170 | } |
166 | 171 | ||
167 | static __inline__ void sigdelset(sigset_t *set, int _sig) | 172 | static __inline__ void __const_sigaddset(sigset_t *set, int _sig) |
168 | { | 173 | { |
169 | __asm__("btrl %1,%0" : "=m"(*set) : "Ir"(_sig - 1) : "cc"); | 174 | unsigned long sig = _sig - 1; |
175 | set->sig[sig / _NSIG_BPW] |= 1 << (sig % _NSIG_BPW); | ||
176 | } | ||
177 | |||
178 | #define sigdelset(set,sig) \ | ||
179 | (__builtin_constant_p(sig) ? \ | ||
180 | __const_sigdelset((set),(sig)) : \ | ||
181 | __gen_sigdelset((set),(sig))) | ||
182 | |||
183 | |||
184 | static __inline__ void __gen_sigdelset(sigset_t *set, int _sig) | ||
185 | { | ||
186 | __asm__("btrl %1,%0" : "+m"(*set) : "Ir"(_sig - 1) : "cc"); | ||
187 | } | ||
188 | |||
189 | static __inline__ void __const_sigaddset(sigset_t *set, int _sig) | ||
190 | { | ||
191 | unsigned long sig = _sig - 1; | ||
192 | set->sig[sig / _NSIG_BPW] &= ~(1 << (sig % _NSIG_BPW)); | ||
170 | } | 193 | } |
171 | 194 | ||
172 | static __inline__ int __const_sigismember(sigset_t *set, int _sig) | 195 | static __inline__ int __const_sigismember(sigset_t *set, int _sig) |
diff --git a/include/asm-powerpc/ppc-pci.h b/include/asm-powerpc/ppc-pci.h index 9896fade98a7..2e36e5a7f4f3 100644 --- a/include/asm-powerpc/ppc-pci.h +++ b/include/asm-powerpc/ppc-pci.h | |||
@@ -14,7 +14,6 @@ | |||
14 | 14 | ||
15 | extern unsigned long isa_io_base; | 15 | extern unsigned long isa_io_base; |
16 | 16 | ||
17 | extern void pci_setup_pci_controller(struct pci_controller *hose); | ||
18 | extern void pci_setup_phb_io(struct pci_controller *hose, int primary); | 17 | extern void pci_setup_phb_io(struct pci_controller *hose, int primary); |
19 | extern void pci_setup_phb_io_dynamic(struct pci_controller *hose, int primary); | 18 | extern void pci_setup_phb_io_dynamic(struct pci_controller *hose, int primary); |
20 | 19 | ||
diff --git a/include/asm-powerpc/vdso.h b/include/asm-powerpc/vdso.h index 85d8a7be25c4..b9f9118b1607 100644 --- a/include/asm-powerpc/vdso.h +++ b/include/asm-powerpc/vdso.h | |||
@@ -11,7 +11,7 @@ | |||
11 | #define VDSO32_MBASE VDSO32_LBASE | 11 | #define VDSO32_MBASE VDSO32_LBASE |
12 | #define VDSO64_MBASE VDSO64_LBASE | 12 | #define VDSO64_MBASE VDSO64_LBASE |
13 | 13 | ||
14 | #define VDSO_VERSION_STRING LINUX_2.6.12 | 14 | #define VDSO_VERSION_STRING LINUX_2.6.15 |
15 | 15 | ||
16 | /* Define if 64 bits VDSO has procedure descriptors */ | 16 | /* Define if 64 bits VDSO has procedure descriptors */ |
17 | #undef VDS64_HAS_DESCRIPTORS | 17 | #undef VDS64_HAS_DESCRIPTORS |
diff --git a/include/asm-ppc/pgalloc.h b/include/asm-ppc/pgalloc.h index 931b6de7ef53..bdefd1c4a558 100644 --- a/include/asm-ppc/pgalloc.h +++ b/include/asm-ppc/pgalloc.h | |||
@@ -28,7 +28,7 @@ extern void pgd_free(pgd_t *pgd); | |||
28 | #define pmd_populate_kernel(mm, pmd, pte) \ | 28 | #define pmd_populate_kernel(mm, pmd, pte) \ |
29 | (pmd_val(*(pmd)) = (unsigned long)pte | _PMD_PRESENT) | 29 | (pmd_val(*(pmd)) = (unsigned long)pte | _PMD_PRESENT) |
30 | #define pmd_populate(mm, pmd, pte) \ | 30 | #define pmd_populate(mm, pmd, pte) \ |
31 | (pmd_val(*(pmd)) = (unsigned long)page_to_virt(pte) | _PMD_PRESENT) | 31 | (pmd_val(*(pmd)) = (unsigned long)lowmem_page_address(pte) | _PMD_PRESENT) |
32 | #endif | 32 | #endif |
33 | 33 | ||
34 | extern pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long addr); | 34 | extern pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long addr); |
diff --git a/include/asm-ppc64/pci-bridge.h b/include/asm-ppc64/pci-bridge.h index efbdaece0cf0..cf04327a597a 100644 --- a/include/asm-ppc64/pci-bridge.h +++ b/include/asm-ppc64/pci-bridge.h | |||
@@ -61,12 +61,14 @@ struct pci_dn { | |||
61 | int busno; /* for pci devices */ | 61 | int busno; /* for pci devices */ |
62 | int bussubno; /* for pci devices */ | 62 | int bussubno; /* for pci devices */ |
63 | int devfn; /* for pci devices */ | 63 | int devfn; /* for pci devices */ |
64 | |||
65 | #ifdef CONFIG_PPC_PSERIES | ||
64 | int eeh_mode; /* See eeh.h for possible EEH_MODEs */ | 66 | int eeh_mode; /* See eeh.h for possible EEH_MODEs */ |
65 | int eeh_config_addr; | 67 | int eeh_config_addr; |
66 | int eeh_check_count; /* # times driver ignored error */ | 68 | int eeh_check_count; /* # times driver ignored error */ |
67 | int eeh_freeze_count; /* # times this device froze up. */ | 69 | int eeh_freeze_count; /* # times this device froze up. */ |
68 | int eeh_is_bridge; /* device is pci-to-pci bridge */ | 70 | int eeh_is_bridge; /* device is pci-to-pci bridge */ |
69 | 71 | #endif | |
70 | int pci_ext_config_space; /* for pci devices */ | 72 | int pci_ext_config_space; /* for pci devices */ |
71 | struct pci_controller *phb; /* for pci devices */ | 73 | struct pci_controller *phb; /* for pci devices */ |
72 | struct iommu_table *iommu_table; /* for phb's or bridges */ | 74 | struct iommu_table *iommu_table; /* for phb's or bridges */ |
@@ -74,9 +76,9 @@ struct pci_dn { | |||
74 | struct device_node *node; /* back-pointer to the device_node */ | 76 | struct device_node *node; /* back-pointer to the device_node */ |
75 | #ifdef CONFIG_PPC_ISERIES | 77 | #ifdef CONFIG_PPC_ISERIES |
76 | struct list_head Device_List; | 78 | struct list_head Device_List; |
77 | int Irq; /* Assigned IRQ */ | 79 | int Irq; /* Assigned IRQ */ |
78 | int Flags; /* Possible flags(disable/bist)*/ | 80 | int Flags; /* Possible flags(disable/bist)*/ |
79 | u8 LogicalSlot; /* Hv Slot Index for Tces */ | 81 | u8 LogicalSlot; /* Hv Slot Index for Tces */ |
80 | #endif | 82 | #endif |
81 | u32 config_space[16]; /* saved PCI config space */ | 83 | u32 config_space[16]; /* saved PCI config space */ |
82 | }; | 84 | }; |
@@ -136,6 +138,10 @@ static inline struct pci_controller *pci_bus_to_host(struct pci_bus *bus) | |||
136 | return PCI_DN(busdn)->phb; | 138 | return PCI_DN(busdn)->phb; |
137 | } | 139 | } |
138 | 140 | ||
141 | extern struct pci_controller * | ||
142 | pcibios_alloc_controller(struct device_node *dev); | ||
143 | extern void pcibios_free_controller(struct pci_controller *phb); | ||
144 | |||
139 | /* Return values for ppc_md.pci_probe_mode function */ | 145 | /* Return values for ppc_md.pci_probe_mode function */ |
140 | #define PCI_PROBE_NONE -1 /* Don't look at this bus at all */ | 146 | #define PCI_PROBE_NONE -1 /* Don't look at this bus at all */ |
141 | #define PCI_PROBE_NORMAL 0 /* Do normal PCI probing */ | 147 | #define PCI_PROBE_NORMAL 0 /* Do normal PCI probing */ |
diff --git a/include/linux/compat_ioctl.h b/include/linux/compat_ioctl.h index 174f3379e5d9..119f9d064cc6 100644 --- a/include/linux/compat_ioctl.h +++ b/include/linux/compat_ioctl.h | |||
@@ -795,3 +795,70 @@ COMPATIBLE_IOCTL(HIDIOCGFLAG) | |||
795 | COMPATIBLE_IOCTL(HIDIOCSFLAG) | 795 | COMPATIBLE_IOCTL(HIDIOCSFLAG) |
796 | COMPATIBLE_IOCTL(HIDIOCGCOLLECTIONINDEX) | 796 | COMPATIBLE_IOCTL(HIDIOCGCOLLECTIONINDEX) |
797 | COMPATIBLE_IOCTL(HIDIOCGCOLLECTIONINFO) | 797 | COMPATIBLE_IOCTL(HIDIOCGCOLLECTIONINFO) |
798 | /* dvb */ | ||
799 | COMPATIBLE_IOCTL(AUDIO_STOP) | ||
800 | COMPATIBLE_IOCTL(AUDIO_PLAY) | ||
801 | COMPATIBLE_IOCTL(AUDIO_PAUSE) | ||
802 | COMPATIBLE_IOCTL(AUDIO_CONTINUE) | ||
803 | COMPATIBLE_IOCTL(AUDIO_SELECT_SOURCE) | ||
804 | COMPATIBLE_IOCTL(AUDIO_SET_MUTE) | ||
805 | COMPATIBLE_IOCTL(AUDIO_SET_AV_SYNC) | ||
806 | COMPATIBLE_IOCTL(AUDIO_SET_BYPASS_MODE) | ||
807 | COMPATIBLE_IOCTL(AUDIO_CHANNEL_SELECT) | ||
808 | COMPATIBLE_IOCTL(AUDIO_GET_STATUS) | ||
809 | COMPATIBLE_IOCTL(AUDIO_GET_CAPABILITIES) | ||
810 | COMPATIBLE_IOCTL(AUDIO_CLEAR_BUFFER) | ||
811 | COMPATIBLE_IOCTL(AUDIO_SET_ID) | ||
812 | COMPATIBLE_IOCTL(AUDIO_SET_MIXER) | ||
813 | COMPATIBLE_IOCTL(AUDIO_SET_STREAMTYPE) | ||
814 | COMPATIBLE_IOCTL(AUDIO_SET_EXT_ID) | ||
815 | COMPATIBLE_IOCTL(AUDIO_SET_ATTRIBUTES) | ||
816 | COMPATIBLE_IOCTL(AUDIO_SET_KARAOKE) | ||
817 | COMPATIBLE_IOCTL(DMX_START) | ||
818 | COMPATIBLE_IOCTL(DMX_STOP) | ||
819 | COMPATIBLE_IOCTL(DMX_SET_FILTER) | ||
820 | COMPATIBLE_IOCTL(DMX_SET_PES_FILTER) | ||
821 | COMPATIBLE_IOCTL(DMX_SET_BUFFER_SIZE) | ||
822 | COMPATIBLE_IOCTL(DMX_GET_PES_PIDS) | ||
823 | COMPATIBLE_IOCTL(DMX_GET_CAPS) | ||
824 | COMPATIBLE_IOCTL(DMX_SET_SOURCE) | ||
825 | COMPATIBLE_IOCTL(DMX_GET_STC) | ||
826 | COMPATIBLE_IOCTL(FE_GET_INFO) | ||
827 | COMPATIBLE_IOCTL(FE_DISEQC_RESET_OVERLOAD) | ||
828 | COMPATIBLE_IOCTL(FE_DISEQC_SEND_MASTER_CMD) | ||
829 | COMPATIBLE_IOCTL(FE_DISEQC_RECV_SLAVE_REPLY) | ||
830 | COMPATIBLE_IOCTL(FE_DISEQC_SEND_BURST) | ||
831 | COMPATIBLE_IOCTL(FE_SET_TONE) | ||
832 | COMPATIBLE_IOCTL(FE_SET_VOLTAGE) | ||
833 | COMPATIBLE_IOCTL(FE_ENABLE_HIGH_LNB_VOLTAGE) | ||
834 | COMPATIBLE_IOCTL(FE_READ_STATUS) | ||
835 | COMPATIBLE_IOCTL(FE_READ_BER) | ||
836 | COMPATIBLE_IOCTL(FE_READ_SIGNAL_STRENGTH) | ||
837 | COMPATIBLE_IOCTL(FE_READ_SNR) | ||
838 | COMPATIBLE_IOCTL(FE_READ_UNCORRECTED_BLOCKS) | ||
839 | COMPATIBLE_IOCTL(FE_SET_FRONTEND) | ||
840 | COMPATIBLE_IOCTL(FE_GET_FRONTEND) | ||
841 | COMPATIBLE_IOCTL(FE_GET_EVENT) | ||
842 | COMPATIBLE_IOCTL(FE_DISHNETWORK_SEND_LEGACY_CMD) | ||
843 | COMPATIBLE_IOCTL(VIDEO_STOP) | ||
844 | COMPATIBLE_IOCTL(VIDEO_PLAY) | ||
845 | COMPATIBLE_IOCTL(VIDEO_FREEZE) | ||
846 | COMPATIBLE_IOCTL(VIDEO_CONTINUE) | ||
847 | COMPATIBLE_IOCTL(VIDEO_SELECT_SOURCE) | ||
848 | COMPATIBLE_IOCTL(VIDEO_SET_BLANK) | ||
849 | COMPATIBLE_IOCTL(VIDEO_GET_STATUS) | ||
850 | COMPATIBLE_IOCTL(VIDEO_SET_DISPLAY_FORMAT) | ||
851 | COMPATIBLE_IOCTL(VIDEO_FAST_FORWARD) | ||
852 | COMPATIBLE_IOCTL(VIDEO_SLOWMOTION) | ||
853 | COMPATIBLE_IOCTL(VIDEO_GET_CAPABILITIES) | ||
854 | COMPATIBLE_IOCTL(VIDEO_CLEAR_BUFFER) | ||
855 | COMPATIBLE_IOCTL(VIDEO_SET_ID) | ||
856 | COMPATIBLE_IOCTL(VIDEO_SET_STREAMTYPE) | ||
857 | COMPATIBLE_IOCTL(VIDEO_SET_FORMAT) | ||
858 | COMPATIBLE_IOCTL(VIDEO_SET_SYSTEM) | ||
859 | COMPATIBLE_IOCTL(VIDEO_SET_HIGHLIGHT) | ||
860 | COMPATIBLE_IOCTL(VIDEO_SET_SPU) | ||
861 | COMPATIBLE_IOCTL(VIDEO_GET_NAVI) | ||
862 | COMPATIBLE_IOCTL(VIDEO_SET_ATTRIBUTES) | ||
863 | COMPATIBLE_IOCTL(VIDEO_GET_SIZE) | ||
864 | COMPATIBLE_IOCTL(VIDEO_GET_FRAME_RATE) | ||