patch-pre2.0.6 linux/drivers/isdn/pcbit/drv.c

Next file: linux/drivers/isdn/teles/buffers.c
Previous file: linux/drivers/isdn/isdn_tty.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file pre2.0.5/linux/drivers/isdn/pcbit/drv.c linux/drivers/isdn/pcbit/drv.c
@@ -52,9 +52,9 @@
  */
 
 int pcbit_command(isdn_ctrl* ctl);
-int pcbit_stat(u_char* buf, int len, int user);
+int pcbit_stat(u_char* buf, int len, int user, int, int);
 int pcbit_xmit(int driver, int chan, struct sk_buff *skb);
-int pcbit_writecmd(const u_char*, int, int);
+int pcbit_writecmd(const u_char*, int, int, int, int);
 
 static int set_protocol_running(struct pcbit_dev * dev);
 
@@ -390,19 +390,16 @@
 }
 
 
-int pcbit_writecmd(const u_char* buf, int len, int user)
+int pcbit_writecmd(const u_char* buf, int len, int user, int driver, int channel)
 {
 	struct pcbit_dev * dev;
-	int board, i, j;
+	int i, j;
 	const u_char * loadbuf;
 	u_char * ptr = NULL;
 
 	int errstat;
 
-	/* we should have the driver id as input here too - let's say it's 0 */
-	board = 0;
-
-	dev = dev_pcbit[board];
+	dev = finddev(driver);
 
 	if (!dev)
 	{
@@ -760,7 +757,7 @@
 (flag ? memcpy_tofs(d, s, len) : memcpy(d, s, len))
 
 
-int pcbit_stat(u_char* buf, int len, int user)
+int pcbit_stat(u_char* buf, int len, int user, int driver, int channel)
 {
 	int stat_count;
 	stat_count = stat_end - stat_st;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this