if (mode >= 2 && !(priv->ctr & 0x20)) {
/* This mode resets the FIFO, so we may
* have to wait for it to drain first. */
- long expire = jiffies + p->physport->cad->timeout;
+ unsigned long expire = jiffies + p->physport->cad->timeout;
int counter;
switch (mode) {
case ECR_PPF: /* Parallel Port FIFO mode */
int ret = 0;
const unsigned char *bufp = buf;
size_t left = length;
- long expire = jiffies + port->physport->cad->timeout;
+ unsigned long expire = jiffies + port->physport->cad->timeout;
const int fifo = FIFO (port);
int poll_for = 8; /* 80 usecs */
const struct parport_pc_private *priv = port->physport->private_data;
parport_pc_data_forward (port); /* Must be in PS2 mode */
while (left) {
- long expire = jiffies + port->physport->cad->timeout;
+ unsigned long expire = jiffies + port->physport->cad->timeout;
size_t count = left;
{
size_t written;
int r;
- long int expire;
+ unsigned long expire;
const struct parport_pc_private *priv = port->physport->private_data;
/* Special case: a timeout of zero means we cannot call schedule().
{
size_t written;
int r;
- long int expire;
+ unsigned long expire;
const struct parport_pc_private *priv = port->physport->private_data;
/* Special case: a timeout of zero means we cannot call schedule().
/* Do the transfer. */
while (left > fifofull) {
int ret;
- long int expire = jiffies + port->cad->timeout;
+ unsigned long expire = jiffies + port->cad->timeout;
unsigned char ecrval = inb (ECONTROL (port));
if (need_resched() && time_before (jiffies, expire))