if_wl.c (108533) | if_wl.c (109623) |
---|---|
1/* $FreeBSD: head/sys/dev/wl/if_wl.c 108533 2003-01-01 18:49:04Z schweikh $ */ | 1/* $FreeBSD: head/sys/dev/wl/if_wl.c 109623 2003-01-21 08:56:16Z alfred $ */ |
2/* 3 * Redistribution and use in source and binary forms, with or without 4 * modification, are permitted provided that the following conditions 5 * are met: 6 * 1. Redistributions of source code must retain all copyright 7 * notices, this list of conditions and the following disclaimer. 8 * 2. The names of the authors may not be used to endorse or promote products 9 * derived from this software without specific prior written permission --- 951 unchanged lines hidden (view full) --- 961 962 outw(PIOR1(base), fd.rbd_offset); 963 insw(PIOP1(base), &rbd, sizeof(rbd_t)/2); 964 bytes_in_msg = rbd.status & RBD_SW_COUNT; 965 966 /* 967 * Allocate a cluster'd mbuf to receive the packet. 968 */ | 2/* 3 * Redistribution and use in source and binary forms, with or without 4 * modification, are permitted provided that the following conditions 5 * are met: 6 * 1. Redistributions of source code must retain all copyright 7 * notices, this list of conditions and the following disclaimer. 8 * 2. The names of the authors may not be used to endorse or promote products 9 * derived from this software without specific prior written permission --- 951 unchanged lines hidden (view full) --- 961 962 outw(PIOR1(base), fd.rbd_offset); 963 insw(PIOP1(base), &rbd, sizeof(rbd_t)/2); 964 bytes_in_msg = rbd.status & RBD_SW_COUNT; 965 966 /* 967 * Allocate a cluster'd mbuf to receive the packet. 968 */ |
969 m = m_getcl(M_DONTWAIT, MT_DATA, M_PKTHDR); | 969 m = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR); |
970 if (m == NULL) { 971 if (wlhwrst(unit) != TRUE) { 972 sc->hacr &= ~HACR_INTRON; 973 CMD(unit); /* turn off interrupts */ 974 printf("wl%d read(): hwrst trouble.\n", unit); 975 } 976 return 0; 977 } --- 1523 unchanged lines hidden --- | 970 if (m == NULL) { 971 if (wlhwrst(unit) != TRUE) { 972 sc->hacr &= ~HACR_INTRON; 973 CMD(unit); /* turn off interrupts */ 974 printf("wl%d read(): hwrst trouble.\n", unit); 975 } 976 return 0; 977 } --- 1523 unchanged lines hidden --- |