diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-ia64/hw_irq.h | 1 | ||||
-rw-r--r-- | include/asm-ia64/sn/xp.h | 1 | ||||
-rw-r--r-- | include/asm-sparc64/seccomp.h | 21 | ||||
-rw-r--r-- | include/asm-v850/checksum.h | 11 | ||||
-rw-r--r-- | include/asm-v850/mmu.h | 17 | ||||
-rw-r--r-- | include/linux/usb.h | 8 | ||||
-rw-r--r-- | include/linux/usb_cdc.h | 13 | ||||
-rw-r--r-- | include/linux/usb_gadget.h | 12 |
8 files changed, 53 insertions, 31 deletions
diff --git a/include/asm-ia64/hw_irq.h b/include/asm-ia64/hw_irq.h index cd4e06b74a..041ab8c51a 100644 --- a/include/asm-ia64/hw_irq.h +++ b/include/asm-ia64/hw_irq.h | |||
@@ -81,7 +81,6 @@ extern __u8 isa_irq_to_vector_map[16]; | |||
81 | 81 | ||
82 | extern struct hw_interrupt_type irq_type_ia64_lsapic; /* CPU-internal interrupt controller */ | 82 | extern struct hw_interrupt_type irq_type_ia64_lsapic; /* CPU-internal interrupt controller */ |
83 | 83 | ||
84 | extern int assign_irq_vector_nopanic (int irq); /* allocate a free vector without panic */ | ||
85 | extern int assign_irq_vector (int irq); /* allocate a free vector */ | 84 | extern int assign_irq_vector (int irq); /* allocate a free vector */ |
86 | extern void free_irq_vector (int vector); | 85 | extern void free_irq_vector (int vector); |
87 | extern void ia64_send_ipi (int cpu, int vector, int delivery_mode, int redirect); | 86 | extern void ia64_send_ipi (int cpu, int vector, int delivery_mode, int redirect); |
diff --git a/include/asm-ia64/sn/xp.h b/include/asm-ia64/sn/xp.h index 9902185c02..1df1c9f61a 100644 --- a/include/asm-ia64/sn/xp.h +++ b/include/asm-ia64/sn/xp.h | |||
@@ -16,7 +16,6 @@ | |||
16 | #define _ASM_IA64_SN_XP_H | 16 | #define _ASM_IA64_SN_XP_H |
17 | 17 | ||
18 | 18 | ||
19 | #include <linux/version.h> | ||
20 | #include <linux/cache.h> | 19 | #include <linux/cache.h> |
21 | #include <linux/hardirq.h> | 20 | #include <linux/hardirq.h> |
22 | #include <asm/sn/types.h> | 21 | #include <asm/sn/types.h> |
diff --git a/include/asm-sparc64/seccomp.h b/include/asm-sparc64/seccomp.h new file mode 100644 index 0000000000..7fcd996819 --- /dev/null +++ b/include/asm-sparc64/seccomp.h | |||
@@ -0,0 +1,21 @@ | |||
1 | #ifndef _ASM_SECCOMP_H | ||
2 | |||
3 | #include <linux/thread_info.h> /* already defines TIF_32BIT */ | ||
4 | |||
5 | #ifndef TIF_32BIT | ||
6 | #error "unexpected TIF_32BIT on sparc64" | ||
7 | #endif | ||
8 | |||
9 | #include <linux/unistd.h> | ||
10 | |||
11 | #define __NR_seccomp_read __NR_read | ||
12 | #define __NR_seccomp_write __NR_write | ||
13 | #define __NR_seccomp_exit __NR_exit | ||
14 | #define __NR_seccomp_sigreturn __NR_rt_sigreturn | ||
15 | |||
16 | #define __NR_seccomp_read_32 __NR_read | ||
17 | #define __NR_seccomp_write_32 __NR_write | ||
18 | #define __NR_seccomp_exit_32 __NR_exit | ||
19 | #define __NR_seccomp_sigreturn_32 __NR_sigreturn | ||
20 | |||
21 | #endif /* _ASM_SECCOMP_H */ | ||
diff --git a/include/asm-v850/checksum.h b/include/asm-v850/checksum.h index d3aedb7bfc..4df5e71098 100644 --- a/include/asm-v850/checksum.h +++ b/include/asm-v850/checksum.h | |||
@@ -1,8 +1,8 @@ | |||
1 | /* | 1 | /* |
2 | * include/asm-v850/checksum.h -- Checksum ops | 2 | * include/asm-v850/checksum.h -- Checksum ops |
3 | * | 3 | * |
4 | * Copyright (C) 2001 NEC Corporation | 4 | * Copyright (C) 2001,2005 NEC Corporation |
5 | * Copyright (C) 2001 Miles Bader <miles@gnu.org> | 5 | * Copyright (C) 2001,2005 Miles Bader <miles@gnu.org> |
6 | * | 6 | * |
7 | * This file is subject to the terms and conditions of the GNU General | 7 | * This file is subject to the terms and conditions of the GNU General |
8 | * Public License. See the file COPYING in the main directory of this | 8 | * Public License. See the file COPYING in the main directory of this |
@@ -36,8 +36,8 @@ extern unsigned int csum_partial (const unsigned char * buff, int len, | |||
36 | * here even more important to align src and dst on a 32-bit (or even | 36 | * here even more important to align src and dst on a 32-bit (or even |
37 | * better 64-bit) boundary | 37 | * better 64-bit) boundary |
38 | */ | 38 | */ |
39 | extern unsigned csum_partial_copy (const char *src, char *dst, int len, | 39 | extern unsigned csum_partial_copy (const unsigned char *src, |
40 | unsigned sum); | 40 | unsigned char *dst, int len, unsigned sum); |
41 | 41 | ||
42 | 42 | ||
43 | /* | 43 | /* |
@@ -46,7 +46,8 @@ extern unsigned csum_partial_copy (const char *src, char *dst, int len, | |||
46 | * here even more important to align src and dst on a 32-bit (or even | 46 | * here even more important to align src and dst on a 32-bit (or even |
47 | * better 64-bit) boundary | 47 | * better 64-bit) boundary |
48 | */ | 48 | */ |
49 | extern unsigned csum_partial_copy_from_user (const char *src, char *dst, | 49 | extern unsigned csum_partial_copy_from_user (const unsigned char *src, |
50 | unsigned char *dst, | ||
50 | int len, unsigned sum, | 51 | int len, unsigned sum, |
51 | int *csum_err); | 52 | int *csum_err); |
52 | 53 | ||
diff --git a/include/asm-v850/mmu.h b/include/asm-v850/mmu.h index e30a52becf..267768c66e 100644 --- a/include/asm-v850/mmu.h +++ b/include/asm-v850/mmu.h | |||
@@ -1,22 +1,11 @@ | |||
1 | /* Copyright (C) 2002, David McCullough <davidm@snapgear.com> */ | 1 | /* Copyright (C) 2002, 2005, David McCullough <davidm@snapgear.com> */ |
2 | 2 | ||
3 | #ifndef __V850_MMU_H__ | 3 | #ifndef __V850_MMU_H__ |
4 | #define __V850_MMU_H__ | 4 | #define __V850_MMU_H__ |
5 | 5 | ||
6 | struct mm_rblock_struct { | ||
7 | int size; | ||
8 | int refcount; | ||
9 | void *kblock; | ||
10 | }; | ||
11 | |||
12 | struct mm_tblock_struct { | ||
13 | struct mm_rblock_struct *rblock; | ||
14 | struct mm_tblock_struct *next; | ||
15 | }; | ||
16 | |||
17 | typedef struct { | 6 | typedef struct { |
18 | struct mm_tblock_struct tblock; | 7 | struct vm_list_struct *vmlist; |
19 | unsigned long end_brk; | 8 | unsigned long end_brk; |
20 | } mm_context_t; | 9 | } mm_context_t; |
21 | 10 | ||
22 | #endif /* __V850_MMU_H__ */ | 11 | #endif /* __V850_MMU_H__ */ |
diff --git a/include/linux/usb.h b/include/linux/usb.h index eb282b5815..7246377929 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h | |||
@@ -938,17 +938,17 @@ static inline void usb_fill_int_urb (struct urb *urb, | |||
938 | } | 938 | } |
939 | 939 | ||
940 | extern void usb_init_urb(struct urb *urb); | 940 | extern void usb_init_urb(struct urb *urb); |
941 | extern struct urb *usb_alloc_urb(int iso_packets, int mem_flags); | 941 | extern struct urb *usb_alloc_urb(int iso_packets, unsigned mem_flags); |
942 | extern void usb_free_urb(struct urb *urb); | 942 | extern void usb_free_urb(struct urb *urb); |
943 | #define usb_put_urb usb_free_urb | 943 | #define usb_put_urb usb_free_urb |
944 | extern struct urb *usb_get_urb(struct urb *urb); | 944 | extern struct urb *usb_get_urb(struct urb *urb); |
945 | extern int usb_submit_urb(struct urb *urb, int mem_flags); | 945 | extern int usb_submit_urb(struct urb *urb, unsigned mem_flags); |
946 | extern int usb_unlink_urb(struct urb *urb); | 946 | extern int usb_unlink_urb(struct urb *urb); |
947 | extern void usb_kill_urb(struct urb *urb); | 947 | extern void usb_kill_urb(struct urb *urb); |
948 | 948 | ||
949 | #define HAVE_USB_BUFFERS | 949 | #define HAVE_USB_BUFFERS |
950 | void *usb_buffer_alloc (struct usb_device *dev, size_t size, | 950 | void *usb_buffer_alloc (struct usb_device *dev, size_t size, |
951 | int mem_flags, dma_addr_t *dma); | 951 | unsigned mem_flags, dma_addr_t *dma); |
952 | void usb_buffer_free (struct usb_device *dev, size_t size, | 952 | void usb_buffer_free (struct usb_device *dev, size_t size, |
953 | void *addr, dma_addr_t dma); | 953 | void *addr, dma_addr_t dma); |
954 | 954 | ||
@@ -1055,7 +1055,7 @@ int usb_sg_init ( | |||
1055 | struct scatterlist *sg, | 1055 | struct scatterlist *sg, |
1056 | int nents, | 1056 | int nents, |
1057 | size_t length, | 1057 | size_t length, |
1058 | int mem_flags | 1058 | unsigned mem_flags |
1059 | ); | 1059 | ); |
1060 | void usb_sg_cancel (struct usb_sg_request *io); | 1060 | void usb_sg_cancel (struct usb_sg_request *io); |
1061 | void usb_sg_wait (struct usb_sg_request *io); | 1061 | void usb_sg_wait (struct usb_sg_request *io); |
diff --git a/include/linux/usb_cdc.h b/include/linux/usb_cdc.h index f22d6beecc..ba617c3724 100644 --- a/include/linux/usb_cdc.h +++ b/include/linux/usb_cdc.h | |||
@@ -34,6 +34,7 @@ | |||
34 | #define USB_CDC_ACM_TYPE 0x02 /* acm_descriptor */ | 34 | #define USB_CDC_ACM_TYPE 0x02 /* acm_descriptor */ |
35 | #define USB_CDC_UNION_TYPE 0x06 /* union_desc */ | 35 | #define USB_CDC_UNION_TYPE 0x06 /* union_desc */ |
36 | #define USB_CDC_COUNTRY_TYPE 0x07 | 36 | #define USB_CDC_COUNTRY_TYPE 0x07 |
37 | #define USB_CDC_NETWORK_TERMINAL_TYPE 0x0a /* network_terminal_desc */ | ||
37 | #define USB_CDC_ETHERNET_TYPE 0x0f /* ether_desc */ | 38 | #define USB_CDC_ETHERNET_TYPE 0x0f /* ether_desc */ |
38 | #define USB_CDC_WHCM_TYPE 0x11 | 39 | #define USB_CDC_WHCM_TYPE 0x11 |
39 | #define USB_CDC_MDLM_TYPE 0x12 /* mdlm_desc */ | 40 | #define USB_CDC_MDLM_TYPE 0x12 /* mdlm_desc */ |
@@ -83,6 +84,18 @@ struct usb_cdc_union_desc { | |||
83 | /* ... and there could be other slave interfaces */ | 84 | /* ... and there could be other slave interfaces */ |
84 | } __attribute__ ((packed)); | 85 | } __attribute__ ((packed)); |
85 | 86 | ||
87 | /* "Network Channel Terminal Functional Descriptor" from CDC spec 5.2.3.11 */ | ||
88 | struct usb_cdc_network_terminal_desc { | ||
89 | __u8 bLength; | ||
90 | __u8 bDescriptorType; | ||
91 | __u8 bDescriptorSubType; | ||
92 | |||
93 | __u8 bEntityId; | ||
94 | __u8 iName; | ||
95 | __u8 bChannelIndex; | ||
96 | __u8 bPhysicalInterface; | ||
97 | } __attribute__ ((packed)); | ||
98 | |||
86 | /* "Ethernet Networking Functional Descriptor" from CDC spec 5.2.3.16 */ | 99 | /* "Ethernet Networking Functional Descriptor" from CDC spec 5.2.3.16 */ |
87 | struct usb_cdc_ether_desc { | 100 | struct usb_cdc_ether_desc { |
88 | __u8 bLength; | 101 | __u8 bLength; |
diff --git a/include/linux/usb_gadget.h b/include/linux/usb_gadget.h index b00f127cb4..71e6086073 100644 --- a/include/linux/usb_gadget.h +++ b/include/linux/usb_gadget.h | |||
@@ -107,18 +107,18 @@ struct usb_ep_ops { | |||
107 | int (*disable) (struct usb_ep *ep); | 107 | int (*disable) (struct usb_ep *ep); |
108 | 108 | ||
109 | struct usb_request *(*alloc_request) (struct usb_ep *ep, | 109 | struct usb_request *(*alloc_request) (struct usb_ep *ep, |
110 | int gfp_flags); | 110 | unsigned gfp_flags); |
111 | void (*free_request) (struct usb_ep *ep, struct usb_request *req); | 111 | void (*free_request) (struct usb_ep *ep, struct usb_request *req); |
112 | 112 | ||
113 | void *(*alloc_buffer) (struct usb_ep *ep, unsigned bytes, | 113 | void *(*alloc_buffer) (struct usb_ep *ep, unsigned bytes, |
114 | dma_addr_t *dma, int gfp_flags); | 114 | dma_addr_t *dma, unsigned gfp_flags); |
115 | void (*free_buffer) (struct usb_ep *ep, void *buf, dma_addr_t dma, | 115 | void (*free_buffer) (struct usb_ep *ep, void *buf, dma_addr_t dma, |
116 | unsigned bytes); | 116 | unsigned bytes); |
117 | // NOTE: on 2.6, drivers may also use dma_map() and | 117 | // NOTE: on 2.6, drivers may also use dma_map() and |
118 | // dma_sync_single_*() to directly manage dma overhead. | 118 | // dma_sync_single_*() to directly manage dma overhead. |
119 | 119 | ||
120 | int (*queue) (struct usb_ep *ep, struct usb_request *req, | 120 | int (*queue) (struct usb_ep *ep, struct usb_request *req, |
121 | int gfp_flags); | 121 | unsigned gfp_flags); |
122 | int (*dequeue) (struct usb_ep *ep, struct usb_request *req); | 122 | int (*dequeue) (struct usb_ep *ep, struct usb_request *req); |
123 | 123 | ||
124 | int (*set_halt) (struct usb_ep *ep, int value); | 124 | int (*set_halt) (struct usb_ep *ep, int value); |
@@ -214,7 +214,7 @@ usb_ep_disable (struct usb_ep *ep) | |||
214 | * Returns the request, or null if one could not be allocated. | 214 | * Returns the request, or null if one could not be allocated. |
215 | */ | 215 | */ |
216 | static inline struct usb_request * | 216 | static inline struct usb_request * |
217 | usb_ep_alloc_request (struct usb_ep *ep, int gfp_flags) | 217 | usb_ep_alloc_request (struct usb_ep *ep, unsigned gfp_flags) |
218 | { | 218 | { |
219 | return ep->ops->alloc_request (ep, gfp_flags); | 219 | return ep->ops->alloc_request (ep, gfp_flags); |
220 | } | 220 | } |
@@ -254,7 +254,7 @@ usb_ep_free_request (struct usb_ep *ep, struct usb_request *req) | |||
254 | */ | 254 | */ |
255 | static inline void * | 255 | static inline void * |
256 | usb_ep_alloc_buffer (struct usb_ep *ep, unsigned len, dma_addr_t *dma, | 256 | usb_ep_alloc_buffer (struct usb_ep *ep, unsigned len, dma_addr_t *dma, |
257 | int gfp_flags) | 257 | unsigned gfp_flags) |
258 | { | 258 | { |
259 | return ep->ops->alloc_buffer (ep, len, dma, gfp_flags); | 259 | return ep->ops->alloc_buffer (ep, len, dma, gfp_flags); |
260 | } | 260 | } |
@@ -330,7 +330,7 @@ usb_ep_free_buffer (struct usb_ep *ep, void *buf, dma_addr_t dma, unsigned len) | |||
330 | * reported when the usb peripheral is disconnected. | 330 | * reported when the usb peripheral is disconnected. |
331 | */ | 331 | */ |
332 | static inline int | 332 | static inline int |
333 | usb_ep_queue (struct usb_ep *ep, struct usb_request *req, int gfp_flags) | 333 | usb_ep_queue (struct usb_ep *ep, struct usb_request *req, unsigned gfp_flags) |
334 | { | 334 | { |
335 | return ep->ops->queue (ep, req, gfp_flags); | 335 | return ep->ops->queue (ep, req, gfp_flags); |
336 | } | 336 | } |