NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/42114: iwn0: could not lock memory
On Sep 25, 11:18pm, demelier.david%gmail.com@localhost (David DEMELIER) wrote:
-- Subject: Re: kern/42114: iwn0: could not lock memory
| Maybe this :
|
| /*
| * Grab exclusive access to NIC memory.
| */
| static void
| iwn_mem_lock(struct iwn_softc *sc)
| {
| uint32_t tmp;
| int ntries;
|
| tmp =3D IWN_READ(sc, IWN_GPIO_CTL);
| IWN_WRITE(sc, IWN_GPIO_CTL, tmp | IWN_GPIO_MAC);
|
| /* spin until we actually get the lock */
| for (ntries =3D 0; ntries < 1000; ntries++) {
| if ((IWN_READ(sc, IWN_GPIO_CTL) &
| (IWN_GPIO_CLOCK | IWN_GPIO_SLEEP)) =3D=3D IWN_GPIO_CLOCK)
| break;
| DELAY(10);
| }
| if (ntries =3D=3D 1000)
| aprint_error_dev(sc->sc_dev, "could not lock memory\n");
| }
|
| in /usr/src/sys/dev/pci/if_iwn.c
That code does not exist anymore...
christos
Home |
Main Index |
Thread Index |
Old Index