kernels/linux-2.4.0/drivers/block/cciss.c
/*
 *   Wait polling for a command to complete.
 *   The memory mapped FIFO is polled for the completion.
 *   Used only at init time, interrupts disabled.
 */
Wait polling for a command to complete.
The memory mapped FIFO is polled for the completion.
Used only at init time, interrupts disabled.
Wait polling for a command to complete . The memory mapped FIFO is polled for the completion . Used only at init time interrupts disabled .
static unsigned long pollcomplete(int ctlr)
{
        unsigned long done;
        int i;
        for (i = 200000; i > 0; i--) {
                done = hba[ctlr]->access.command_completed(hba[ctlr]);
                if (done == FIFO_EMPTY) {
                        udelay(10);     
                } else
                        return (done);
        }
        return 1;
}
static unsigned long pollcomplete ( int ctlr ) { unsigned long done ; int i ; for ( i = 200000 ; i > 0 ; i -- ) { done = hba [ ctlr ] -> access . command_completed ( hba [ ctlr ] ) ; if ( done == FIFO_EMPTY ) { udelay ( 10 ) ; } else return ( done ) ; } return 1 ; }
Wait polling for a command to complete.
Wait polling for a command to complete .
/* Wait (up to 2 seconds) for a command to complete */ /* a short fixed delay */ /* Invalid address to tell caller we ran out of time */