if_devar.h (47530) | if_devar.h (48645) |
---|---|
1/* $NetBSD: if_devar.h,v 1.31 1998/09/29 22:40:52 matt Exp $ */ | 1/* $NetBSD: if_devar.h,v 1.31 1998/09/29 22:40:52 matt Exp $ */ |
2/* $Id: if_devar.h,v 1.12 1998/11/06 02:13:14 peter Exp $ */ | 2/* $Id: if_devar.h,v 1.13 1999/05/26 23:05:23 gallatin Exp $ */ |
3 4/*- 5 * Copyright (c) 1994-1997 Matt Thomas (matt@3am-software.com) 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: --- 945 unchanged lines hidden (view full) --- 956#else 957typedef int ioctl_cmd_t; 958#endif 959#if defined(TULIP_HDR_DATA) 960static tulip_softc_t *tulips[TULIP_MAX_DEVICES]; 961#endif 962#if BSD >= 199506 963#define TULIP_IFP_TO_SOFTC(ifp) ((tulip_softc_t *)((ifp)->if_softc)) | 3 4/*- 5 * Copyright (c) 1994-1997 Matt Thomas (matt@3am-software.com) 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: --- 945 unchanged lines hidden (view full) --- 956#else 957typedef int ioctl_cmd_t; 958#endif 959#if defined(TULIP_HDR_DATA) 960static tulip_softc_t *tulips[TULIP_MAX_DEVICES]; 961#endif 962#if BSD >= 199506 963#define TULIP_IFP_TO_SOFTC(ifp) ((tulip_softc_t *)((ifp)->if_softc)) |
964#if NBPFILTER > 0 | 964#if NBPF > 0 |
965#define TULIP_BPF_MTAP(sc, m) bpf_mtap(&(sc)->tulip_if, m) 966#define TULIP_BPF_TAP(sc, p, l) bpf_tap(&(sc)->tulip_if, p, l) 967#define TULIP_BPF_ATTACH(sc) bpfattach(&(sc)->tulip_if, DLT_EN10MB, sizeof(struct ether_header)) 968#endif 969#define tulip_intrfunc_t void 970#define TULIP_VOID_INTRFUNC 971#define IFF_NOTRAILERS 0 972#define CLBYTES PAGE_SIZE --- 137 unchanged lines hidden (view full) --- 1110#ifndef TULUP_RESTORESPL 1111#define TULIP_RESTORESPL(s) splx(s) 1112#endif 1113 1114/* 1115 * While I think FreeBSD's 2.2 change to the bpf is a nice simplification, 1116 * it does add yet more conditional code to this driver. Sigh. 1117 */ | 965#define TULIP_BPF_MTAP(sc, m) bpf_mtap(&(sc)->tulip_if, m) 966#define TULIP_BPF_TAP(sc, p, l) bpf_tap(&(sc)->tulip_if, p, l) 967#define TULIP_BPF_ATTACH(sc) bpfattach(&(sc)->tulip_if, DLT_EN10MB, sizeof(struct ether_header)) 968#endif 969#define tulip_intrfunc_t void 970#define TULIP_VOID_INTRFUNC 971#define IFF_NOTRAILERS 0 972#define CLBYTES PAGE_SIZE --- 137 unchanged lines hidden (view full) --- 1110#ifndef TULUP_RESTORESPL 1111#define TULIP_RESTORESPL(s) splx(s) 1112#endif 1113 1114/* 1115 * While I think FreeBSD's 2.2 change to the bpf is a nice simplification, 1116 * it does add yet more conditional code to this driver. Sigh. 1117 */ |
1118#if !defined(TULIP_BPF_MTAP) && NBPFILTER > 0 | 1118#if !defined(TULIP_BPF_MTAP) && NBPF > 0 |
1119#define TULIP_BPF_MTAP(sc, m) bpf_mtap((sc)->tulip_bpf, m) 1120#define TULIP_BPF_TAP(sc, p, l) bpf_tap((sc)->tulip_bpf, p, l) 1121#define TULIP_BPF_ATTACH(sc) bpfattach(&(sc)->tulip_bpf, &(sc)->tulip_if, DLT_EN10MB, sizeof(struct ether_header)) 1122#endif 1123 1124#if defined(TULIP_PERFSTATS) 1125#define TULIP_PERFMERGE(sc, member) \ 1126 do { (sc)->tulip_perfstats[TULIP_PERF_TOTAL].member \ --- 61 unchanged lines hidden --- | 1119#define TULIP_BPF_MTAP(sc, m) bpf_mtap((sc)->tulip_bpf, m) 1120#define TULIP_BPF_TAP(sc, p, l) bpf_tap((sc)->tulip_bpf, p, l) 1121#define TULIP_BPF_ATTACH(sc) bpfattach(&(sc)->tulip_bpf, &(sc)->tulip_if, DLT_EN10MB, sizeof(struct ether_header)) 1122#endif 1123 1124#if defined(TULIP_PERFSTATS) 1125#define TULIP_PERFMERGE(sc, member) \ 1126 do { (sc)->tulip_perfstats[TULIP_PERF_TOTAL].member \ --- 61 unchanged lines hidden --- |