if_my.c (97641) | if_my.c (106588) |
---|---|
1/* 2 * Copyright (c) 2002 Myson Technology Inc. 3 * 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 --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * 26 * Written by: yen_cw@myson.com.tw available at: http://www.myson.com.tw/ 27 * | 1/* 2 * Copyright (c) 2002 Myson Technology Inc. 3 * 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 --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * 26 * Written by: yen_cw@myson.com.tw available at: http://www.myson.com.tw/ 27 * |
28 * $FreeBSD: head/sys/dev/my/if_my.c 97641 2002-05-30 23:41:51Z julian $ | 28 * $FreeBSD: head/sys/dev/my/if_my.c 106588 2002-11-07 22:21:10Z jhb $ |
29 * 30 * Myson fast ethernet PCI NIC driver 31 */ 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/sockio.h> 35#include <sys/mbuf.h> 36#include <sys/malloc.h> --- 935 unchanged lines hidden (view full) --- 972 M_DEVBUF, M_NOWAIT); 973 if (sc->my_ldata_ptr == NULL) { 974 free(sc, M_DEVBUF); 975 printf("my%d: no memory for list buffers!\n", unit); 976 error = ENXIO; 977 goto fail; 978 } 979 sc->my_ldata = (struct my_list_data *) sc->my_ldata_ptr; | 29 * 30 * Myson fast ethernet PCI NIC driver 31 */ 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/sockio.h> 35#include <sys/mbuf.h> 36#include <sys/malloc.h> --- 935 unchanged lines hidden (view full) --- 972 M_DEVBUF, M_NOWAIT); 973 if (sc->my_ldata_ptr == NULL) { 974 free(sc, M_DEVBUF); 975 printf("my%d: no memory for list buffers!\n", unit); 976 error = ENXIO; 977 goto fail; 978 } 979 sc->my_ldata = (struct my_list_data *) sc->my_ldata_ptr; |
980 round = (unsigned int)sc->my_ldata_ptr & 0xF; | 980 round = (uintptr_t)sc->my_ldata_ptr & 0xF; |
981 roundptr = sc->my_ldata_ptr; 982 for (i = 0; i < 8; i++) { 983 if (round % 8) { 984 round++; 985 roundptr++; 986 } else 987 break; 988 } --- 895 unchanged lines hidden --- | 981 roundptr = sc->my_ldata_ptr; 982 for (i = 0; i < 8; i++) { 983 if (round % 8) { 984 round++; 985 roundptr++; 986 } else 987 break; 988 } --- 895 unchanged lines hidden --- |