aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/pcmcia
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/pcmcia')
-rw-r--r--drivers/char/pcmcia/cm4000_cs.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/char/pcmcia/cm4000_cs.c b/drivers/char/pcmcia/cm4000_cs.c
index 02518da6a386..454d7324ba40 100644
--- a/drivers/char/pcmcia/cm4000_cs.c
+++ b/drivers/char/pcmcia/cm4000_cs.c
@@ -308,7 +308,8 @@ static unsigned int calc_baudv(unsigned char fidi)
308 return (wcrcf / wbrcf); 308 return (wcrcf / wbrcf);
309} 309}
310 310
311static unsigned short io_read_num_rec_bytes(ioaddr_t iobase, unsigned short *s) 311static unsigned short io_read_num_rec_bytes(unsigned int iobase,
312 unsigned short *s)
312{ 313{
313 unsigned short tmp; 314 unsigned short tmp;
314 315
@@ -426,7 +427,7 @@ static struct card_fixup card_fixups[] = {
426static void set_cardparameter(struct cm4000_dev *dev) 427static void set_cardparameter(struct cm4000_dev *dev)
427{ 428{
428 int i; 429 int i;
429 ioaddr_t iobase = dev->p_dev->io.BasePort1; 430 unsigned int iobase = dev->p_dev->io.BasePort1;
430 u_int8_t stopbits = 0x02; /* ISO default */ 431 u_int8_t stopbits = 0x02; /* ISO default */
431 432
432 DEBUGP(3, dev, "-> set_cardparameter\n"); 433 DEBUGP(3, dev, "-> set_cardparameter\n");
@@ -459,7 +460,7 @@ static int set_protocol(struct cm4000_dev *dev, struct ptsreq *ptsreq)
459 unsigned short num_bytes_read; 460 unsigned short num_bytes_read;
460 unsigned char pts_reply[4]; 461 unsigned char pts_reply[4];
461 ssize_t rc; 462 ssize_t rc;
462 ioaddr_t iobase = dev->p_dev->io.BasePort1; 463 unsigned int iobase = dev->p_dev->io.BasePort1;
463 464
464 rc = 0; 465 rc = 0;
465 466
@@ -610,7 +611,7 @@ exit_setprotocol:
610 return rc; 611 return rc;
611} 612}
612 613
613static int io_detect_cm4000(ioaddr_t iobase, struct cm4000_dev *dev) 614static int io_detect_cm4000(unsigned int iobase, struct cm4000_dev *dev)
614{ 615{
615 616
616 /* note: statemachine is assumed to be reset */ 617 /* note: statemachine is assumed to be reset */
@@ -671,7 +672,7 @@ static void terminate_monitor(struct cm4000_dev *dev)
671static void monitor_card(unsigned long p) 672static void monitor_card(unsigned long p)
672{ 673{
673 struct cm4000_dev *dev = (struct cm4000_dev *) p; 674 struct cm4000_dev *dev = (struct cm4000_dev *) p;
674 ioaddr_t iobase = dev->p_dev->io.BasePort1; 675 unsigned int iobase = dev->p_dev->io.BasePort1;
675 unsigned short s; 676 unsigned short s;
676 struct ptsreq ptsreq; 677 struct ptsreq ptsreq;
677 int i, atrc; 678 int i, atrc;
@@ -933,7 +934,7 @@ static ssize_t cmm_read(struct file *filp, __user char *buf, size_t count,
933 loff_t *ppos) 934 loff_t *ppos)
934{ 935{
935 struct cm4000_dev *dev = filp->private_data; 936 struct cm4000_dev *dev = filp->private_data;
936 ioaddr_t iobase = dev->p_dev->io.BasePort1; 937 unsigned int iobase = dev->p_dev->io.BasePort1;
937 ssize_t rc; 938 ssize_t rc;
938 int i, j, k; 939 int i, j, k;
939 940
@@ -1054,7 +1055,7 @@ static ssize_t cmm_write(struct file *filp, const char __user *buf,
1054 size_t count, loff_t *ppos) 1055 size_t count, loff_t *ppos)
1055{ 1056{
1056 struct cm4000_dev *dev = (struct cm4000_dev *) filp->private_data; 1057 struct cm4000_dev *dev = (struct cm4000_dev *) filp->private_data;
1057 ioaddr_t iobase = dev->p_dev->io.BasePort1; 1058 unsigned int iobase = dev->p_dev->io.BasePort1;
1058 unsigned short s; 1059 unsigned short s;
1059 unsigned char tmp; 1060 unsigned char tmp;
1060 unsigned char infolen; 1061 unsigned char infolen;
@@ -1408,7 +1409,7 @@ static int cmm_ioctl(struct inode *inode, struct file *filp, unsigned int cmd,
1408 unsigned long arg) 1409 unsigned long arg)
1409{ 1410{
1410 struct cm4000_dev *dev = filp->private_data; 1411 struct cm4000_dev *dev = filp->private_data;
1411 ioaddr_t iobase = dev->p_dev->io.BasePort1; 1412 unsigned int iobase = dev->p_dev->io.BasePort1;
1412 struct pcmcia_device *link; 1413 struct pcmcia_device *link;
1413 int size; 1414 int size;
1414 int rc; 1415 int rc;