if_ate.c (157562) | if_ate.c (158531) |
---|---|
1/*- 2 * Copyright (c) 2006 M. Warner Losh. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 19 unchanged lines hidden (view full) --- 28 * 9) atestop should maybe free the mbufs? 29 * 30 * 1) detach 31 * 2) Free dma setup 32 * 3) Turn on the clock in pmc and turn on pins? Turn off? 33 */ 34 35#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2006 M. Warner Losh. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 19 unchanged lines hidden (view full) --- 28 * 9) atestop should maybe free the mbufs? 29 * 30 * 1) detach 31 * 2) Free dma setup 32 * 3) Turn on the clock in pmc and turn on pins? Turn off? 33 */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/arm/at91/if_ate.c 157562 2006-04-06 04:30:23Z imp $"); | 36__FBSDID("$FreeBSD: head/sys/arm/at91/if_ate.c 158531 2006-05-13 23:41:16Z cognet $"); |
37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/bus.h> 41#include <sys/kernel.h> 42#include <sys/mbuf.h> 43#include <sys/malloc.h> 44#include <sys/module.h> --- 21 unchanged lines hidden (view full) --- 66#include <net/bpfdesc.h> 67 68#include <dev/mii/mii.h> 69#include <dev/mii/miivar.h> 70#include <arm/at91/if_atereg.h> 71 72#include "miibus_if.h" 73 | 37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/bus.h> 41#include <sys/kernel.h> 42#include <sys/mbuf.h> 43#include <sys/malloc.h> 44#include <sys/module.h> --- 21 unchanged lines hidden (view full) --- 66#include <net/bpfdesc.h> 67 68#include <dev/mii/mii.h> 69#include <dev/mii/miivar.h> 70#include <arm/at91/if_atereg.h> 71 72#include "miibus_if.h" 73 |
74#define ATE_MAX_TX_BUFFERS 2 /* We have ping-pong tx buffers */ | 74#define ATE_MAX_TX_BUFFERS 64 /* We have ping-pong tx buffers */ |
75#define ATE_MAX_RX_BUFFERS 64 76 77struct ate_softc 78{ 79 struct ifnet *ifp; /* ifnet pointer */ 80 struct mtx sc_mtx; /* basically a perimeter lock */ 81 device_t dev; /* Myself */ 82 device_t miibus; /* My child miibus */ --- 917 unchanged lines hidden --- | 75#define ATE_MAX_RX_BUFFERS 64 76 77struct ate_softc 78{ 79 struct ifnet *ifp; /* ifnet pointer */ 80 struct mtx sc_mtx; /* basically a perimeter lock */ 81 device_t dev; /* Myself */ 82 device_t miibus; /* My child miibus */ --- 917 unchanged lines hidden --- |