if_anreg.h (74698) | if_anreg.h (77217) |
---|---|
1/* 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. 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 --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 * | 1/* 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. 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 --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 * |
32 * $FreeBSD: head/sys/dev/an/if_anreg.h 74698 2001-03-23 17:46:32Z archie $ | 32 * $FreeBSD: head/sys/dev/an/if_anreg.h 77217 2001-05-26 09:27:08Z phk $ |
33 */ 34 35#define AN_TIMEOUT 65536 36 | 33 */ 34 35#define AN_TIMEOUT 65536 36 |
37/* Default network name: ANY */ 38#define AN_DEFAULT_NETNAME "ANY" | 37/* Default network name: <empty string> */ 38#define AN_DEFAULT_NETNAME "" |
39 40/* The nodename must be less than 16 bytes */ 41#define AN_DEFAULT_NODENAME "FreeBSD" 42 43#define AN_DEFAULT_IBSS "FreeBSD IBSS" 44 45/* 46 * register space access macros --- 794 unchanged lines hidden (view full) --- 841#ifdef ANCACHE 842 int an_sigitems; 843 struct an_sigcache an_sigcache[MAXANCACHE]; 844 int an_nextitem; 845#endif 846 struct callout_handle an_stat_ch; 847 struct mtx an_mtx; 848 device_t an_dev; | 39 40/* The nodename must be less than 16 bytes */ 41#define AN_DEFAULT_NODENAME "FreeBSD" 42 43#define AN_DEFAULT_IBSS "FreeBSD IBSS" 44 45/* 46 * register space access macros --- 794 unchanged lines hidden (view full) --- 841#ifdef ANCACHE 842 int an_sigitems; 843 struct an_sigcache an_sigcache[MAXANCACHE]; 844 int an_nextitem; 845#endif 846 struct callout_handle an_stat_ch; 847 struct mtx an_mtx; 848 device_t an_dev; |
849 struct ifmedia an_ifmedia; |
|
849}; 850 851#define AN_LOCK(_sc) mtx_lock(&(_sc)->an_mtx) 852#define AN_UNLOCK(_sc) mtx_unlock(&(_sc)->an_mtx) 853 854void an_release_resources __P((device_t)); 855int an_alloc_port __P((device_t, int, int)); 856int an_alloc_memory __P((device_t, int, int)); --- 45 unchanged lines hidden --- | 850}; 851 852#define AN_LOCK(_sc) mtx_lock(&(_sc)->an_mtx) 853#define AN_UNLOCK(_sc) mtx_unlock(&(_sc)->an_mtx) 854 855void an_release_resources __P((device_t)); 856int an_alloc_port __P((device_t, int, int)); 857int an_alloc_memory __P((device_t, int, int)); --- 45 unchanged lines hidden --- |