if_xl.c (0dcfaeeec59ddcdd8bf730ce15ae6f6504b507e9) if_xl.c (3cb589872cc58c5da7e4beda4aebfeaba60abe9f)
1/*-
2 * Copyright (c) 1997, 1998, 1999
3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 320 unchanged lines hidden (view full) ---

329}
330
331/*
332 * Murphy's law says that it's possible the chip can wedge and
333 * the 'command in progress' bit may never clear. Hence, we wait
334 * only a finite amount of time to avoid getting caught in an
335 * infinite loop. Normally this delay routine would be a macro,
336 * but it isn't called during normal operation so we can afford
1/*-
2 * Copyright (c) 1997, 1998, 1999
3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 320 unchanged lines hidden (view full) ---

329}
330
331/*
332 * Murphy's law says that it's possible the chip can wedge and
333 * the 'command in progress' bit may never clear. Hence, we wait
334 * only a finite amount of time to avoid getting caught in an
335 * infinite loop. Normally this delay routine would be a macro,
336 * but it isn't called during normal operation so we can afford
337 * to make it a function. Supress warning when card gone.
337 * to make it a function. Suppress warning when card gone.
338 */
339static void
340xl_wait(struct xl_softc *sc)
341{
342 register int i;
343
344 for (i = 0; i < XL_TIMEOUT; i++) {
345 if ((CSR_READ_2(sc, XL_STATUS) & XL_STAT_CMDBUSY) == 0)

--- 3065 unchanged lines hidden ---
338 */
339static void
340xl_wait(struct xl_softc *sc)
341{
342 register int i;
343
344 for (i = 0; i < XL_TIMEOUT; i++) {
345 if ((CSR_READ_2(sc, XL_STATUS) & XL_STAT_CMDBUSY) == 0)

--- 3065 unchanged lines hidden ---