Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82987
b: refs/heads/master
c: ecb8a84
h: refs/heads/master
i:
  82985: d1c3f95
  82983: 5ff8418
v: v3
  • Loading branch information
Olof Johansson authored and Linus Torvalds committed Feb 5, 2008
1 parent dc2be56 commit d12c1f3
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7852375bbbfc7fb9c1117d73914aeb3baf917539
refs/heads/master: ecb8a8472f6d314096f20885722f2033d2071719
17 changes: 9 additions & 8 deletions trunk/drivers/char/pcmcia/cm4000_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,8 @@ static unsigned int calc_baudv(unsigned char fidi)
return (wcrcf / wbrcf);
}

static unsigned short io_read_num_rec_bytes(ioaddr_t iobase, unsigned short *s)
static unsigned short io_read_num_rec_bytes(unsigned int iobase,
unsigned short *s)
{
unsigned short tmp;

Expand Down Expand Up @@ -426,7 +427,7 @@ static struct card_fixup card_fixups[] = {
static void set_cardparameter(struct cm4000_dev *dev)
{
int i;
ioaddr_t iobase = dev->p_dev->io.BasePort1;
unsigned int iobase = dev->p_dev->io.BasePort1;
u_int8_t stopbits = 0x02; /* ISO default */

DEBUGP(3, dev, "-> set_cardparameter\n");
Expand Down Expand Up @@ -459,7 +460,7 @@ static int set_protocol(struct cm4000_dev *dev, struct ptsreq *ptsreq)
unsigned short num_bytes_read;
unsigned char pts_reply[4];
ssize_t rc;
ioaddr_t iobase = dev->p_dev->io.BasePort1;
unsigned int iobase = dev->p_dev->io.BasePort1;

rc = 0;

Expand Down Expand Up @@ -610,7 +611,7 @@ static int set_protocol(struct cm4000_dev *dev, struct ptsreq *ptsreq)
return rc;
}

static int io_detect_cm4000(ioaddr_t iobase, struct cm4000_dev *dev)
static int io_detect_cm4000(unsigned int iobase, struct cm4000_dev *dev)
{

/* note: statemachine is assumed to be reset */
Expand Down Expand Up @@ -671,7 +672,7 @@ static void terminate_monitor(struct cm4000_dev *dev)
static void monitor_card(unsigned long p)
{
struct cm4000_dev *dev = (struct cm4000_dev *) p;
ioaddr_t iobase = dev->p_dev->io.BasePort1;
unsigned int iobase = dev->p_dev->io.BasePort1;
unsigned short s;
struct ptsreq ptsreq;
int i, atrc;
Expand Down Expand Up @@ -933,7 +934,7 @@ static ssize_t cmm_read(struct file *filp, __user char *buf, size_t count,
loff_t *ppos)
{
struct cm4000_dev *dev = filp->private_data;
ioaddr_t iobase = dev->p_dev->io.BasePort1;
unsigned int iobase = dev->p_dev->io.BasePort1;
ssize_t rc;
int i, j, k;

Expand Down Expand Up @@ -1054,7 +1055,7 @@ static ssize_t cmm_write(struct file *filp, const char __user *buf,
size_t count, loff_t *ppos)
{
struct cm4000_dev *dev = (struct cm4000_dev *) filp->private_data;
ioaddr_t iobase = dev->p_dev->io.BasePort1;
unsigned int iobase = dev->p_dev->io.BasePort1;
unsigned short s;
unsigned char tmp;
unsigned char infolen;
Expand Down Expand Up @@ -1408,7 +1409,7 @@ static int cmm_ioctl(struct inode *inode, struct file *filp, unsigned int cmd,
unsigned long arg)
{
struct cm4000_dev *dev = filp->private_data;
ioaddr_t iobase = dev->p_dev->io.BasePort1;
unsigned int iobase = dev->p_dev->io.BasePort1;
struct pcmcia_device *link;
int size;
int rc;
Expand Down
14 changes: 7 additions & 7 deletions trunk/drivers/pcmcia/pcmcia_resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,23 +65,23 @@ extern int ds_pc_debug;
* Special stuff for managing IO windows, because they are scarce
*/

static int alloc_io_space(struct pcmcia_socket *s, u_int attr, ioaddr_t *base,
ioaddr_t num, u_int lines)
static int alloc_io_space(struct pcmcia_socket *s, u_int attr,
unsigned int *base, unsigned int num, u_int lines)
{
int i;
kio_addr_t try, align;
unsigned int try, align;

align = (*base) ? (lines ? 1<<lines : 0) : 1;
if (align && (align < num)) {
if (*base) {
ds_dbg(s, 0, "odd IO request: num %#x align %#lx\n",
ds_dbg(s, 0, "odd IO request: num %#x align %#x\n",
num, align);
align = 0;
} else
while (align && (align < num)) align <<= 1;
}
if (*base & ~(align-1)) {
ds_dbg(s, 0, "odd IO request: base %#x align %#lx\n",
ds_dbg(s, 0, "odd IO request: base %#x align %#x\n",
*base, align);
align = 0;
}
Expand Down Expand Up @@ -132,8 +132,8 @@ static int alloc_io_space(struct pcmcia_socket *s, u_int attr, ioaddr_t *base,
} /* alloc_io_space */


static void release_io_space(struct pcmcia_socket *s, ioaddr_t base,
ioaddr_t num)
static void release_io_space(struct pcmcia_socket *s, unsigned int base,
unsigned int num)
{
int i;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/scsi/pcmcia/fdomain_stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static int fdomain_config(struct pcmcia_device *link)
cisparse_t parse;
int i, last_ret, last_fn;
u_char tuple_data[64];
char str[16];
char str[22];
struct Scsi_Host *host;

DEBUG(0, "fdomain_config(0x%p)\n", link);
Expand Down
8 changes: 4 additions & 4 deletions trunk/include/pcmcia/cs.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ typedef struct config_req_t {

/* For RequestIO and ReleaseIO */
typedef struct io_req_t {
ioaddr_t BasePort1;
ioaddr_t NumPorts1;
u_int BasePort1;
u_int NumPorts1;
u_int Attributes1;
ioaddr_t BasePort2;
ioaddr_t NumPorts2;
u_int BasePort2;
u_int NumPorts2;
u_int Attributes2;
u_int IOAddrLines;
} io_req_t;
Expand Down

0 comments on commit d12c1f3

Please sign in to comment.