diff options
author | Adrian Bunk <bunk@stusta.de> | 2007-02-12 03:53:18 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-12 12:48:34 -0500 |
commit | fc238b3791447b93c69cd50a99dfcaad6162afba (patch) | |
tree | ff98e02c355cfdf0f496e17cfaf81daf5f915270 /drivers/isdn/sc/card.h | |
parent | b19a8f0472cf2fc401c47f585fcd42e770124e06 (diff) |
[PATCH] drivers/isdn/sc/: proper prototypes
Add proper prototypes in a header file for global code under
drivers/isdn/sc/.
Since the GNU C compiler is now able do tell us that caller and callee
disagreed about the number of arguments of setup_buffers(), this patch
also fixes this bug.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Cc: Karsten Keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/isdn/sc/card.h')
-rw-r--r-- | drivers/isdn/sc/card.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/drivers/isdn/sc/card.h b/drivers/isdn/sc/card.h index 8e44928cdf1c..4fbfa825c3a2 100644 --- a/drivers/isdn/sc/card.h +++ b/drivers/isdn/sc/card.h | |||
@@ -26,7 +26,9 @@ | |||
26 | #include <linux/timer.h> | 26 | #include <linux/timer.h> |
27 | #include <linux/time.h> | 27 | #include <linux/time.h> |
28 | #include <linux/isdnif.h> | 28 | #include <linux/isdnif.h> |
29 | #include <linux/irqreturn.h> | ||
29 | #include "message.h" | 30 | #include "message.h" |
31 | #include "scioc.h" | ||
30 | 32 | ||
31 | /* | 33 | /* |
32 | * Amount of time to wait for a reset to complete | 34 | * Amount of time to wait for a reset to complete |
@@ -98,4 +100,32 @@ typedef struct { | |||
98 | spinlock_t lock; /* local lock */ | 100 | spinlock_t lock; /* local lock */ |
99 | } board; | 101 | } board; |
100 | 102 | ||
103 | |||
104 | extern board *sc_adapter[]; | ||
105 | extern int cinst; | ||
106 | |||
107 | void memcpy_toshmem(int card, void *dest, const void *src, size_t n); | ||
108 | void memcpy_fromshmem(int card, void *dest, const void *src, size_t n); | ||
109 | int get_card_from_id(int driver); | ||
110 | int indicate_status(int card, int event, ulong Channel, char *Data); | ||
111 | irqreturn_t interrupt_handler(int interrupt, void *cardptr); | ||
112 | int sndpkt(int devId, int channel, struct sk_buff *data); | ||
113 | void rcvpkt(int card, RspMessage *rcvmsg); | ||
114 | int command(isdn_ctrl *cmd); | ||
115 | int reset(int card); | ||
116 | int startproc(int card); | ||
117 | int send_and_receive(int card, unsigned int procid, unsigned char type, | ||
118 | unsigned char class, unsigned char code, | ||
119 | unsigned char link, unsigned char data_len, | ||
120 | unsigned char *data, RspMessage *mesgdata, int timeout); | ||
121 | void flushreadfifo (int card); | ||
122 | int sendmessage(int card, unsigned int procid, unsigned int type, | ||
123 | unsigned int class, unsigned int code, unsigned int link, | ||
124 | unsigned int data_len, unsigned int *data); | ||
125 | int receivemessage(int card, RspMessage *rspmsg); | ||
126 | int sc_ioctl(int card, scs_ioctl *data); | ||
127 | int setup_buffers(int card, int c); | ||
128 | void check_reset(unsigned long data); | ||
129 | void check_phystat(unsigned long data); | ||
130 | |||
101 | #endif /* CARD_H */ | 131 | #endif /* CARD_H */ |