if_wl.c (106937) | if_wl.c (108470) |
---|---|
1/* $FreeBSD: head/sys/dev/wl/if_wl.c 106937 2002-11-14 23:54:55Z sam $ */ | 1/* $FreeBSD: head/sys/dev/wl/if_wl.c 108470 2002-12-30 21:18:15Z schweikh $ */ |
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 --- 900 unchanged lines hidden (view full) --- 910 * to the "if" (network interface) layer. NOTE: we currently 911 * don't handle trailer protocols, so if that is needed, it will 912 * (at least in part) be added here. For simplicities sake, this 913 * routine copies the receive buffers from the board into a local (stack) 914 * buffer until the frame has been copied from the board. Once in 915 * the local buffer, the contents are copied to an mbuf chain that 916 * is then enqueued onto the appropriate "if" queue. 917 * | 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 --- 900 unchanged lines hidden (view full) --- 910 * to the "if" (network interface) layer. NOTE: we currently 911 * don't handle trailer protocols, so if that is needed, it will 912 * (at least in part) be added here. For simplicities sake, this 913 * routine copies the receive buffers from the board into a local (stack) 914 * buffer until the frame has been copied from the board. Once in 915 * the local buffer, the contents are copied to an mbuf chain that 916 * is then enqueued onto the appropriate "if" queue. 917 * |
918 * input : board number, and an frame descriptor address | 918 * input : board number, and a frame descriptor address |
919 * output : the packet is put into an mbuf chain, and passed up 920 * assumes : if any errors occur, packet is "dropped on the floor" 921 * 922 */ 923static int 924wlread(int unit, u_short fd_p) 925{ 926 register struct wl_softc *sc = WLSOFTC(unit); --- 1574 unchanged lines hidden --- | 919 * output : the packet is put into an mbuf chain, and passed up 920 * assumes : if any errors occur, packet is "dropped on the floor" 921 * 922 */ 923static int 924wlread(int unit, u_short fd_p) 925{ 926 register struct wl_softc *sc = WLSOFTC(unit); --- 1574 unchanged lines hidden --- |