Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev instead of ifnet use ethercom.
details: https://anonhg.NetBSD.org/src/rev/e8d7329d8590
branches: trunk
changeset: 785850:e8d7329d8590
user: christos <christos%NetBSD.org@localhost>
date: Wed Apr 03 14:20:02 2013 +0000
description:
instead of ifnet use ethercom.
diffstat:
sys/dev/cardbus/if_athn_cardbus.c | 5 +++--
sys/dev/ic/aic79xx_inline.h | 4 ++--
sys/dev/ic/aic79xx_osm.h | 30 +++++++++++++++++++++++++-----
sys/dev/ic/arn5008.c | 5 +++--
sys/dev/ic/arn5416.c | 5 +++--
sys/dev/ic/arn9003.c | 5 +++--
sys/dev/ic/arn9280.c | 5 +++--
sys/dev/ic/arn9285.c | 5 +++--
sys/dev/ic/arn9287.c | 5 +++--
sys/dev/ic/arn9380.c | 5 +++--
sys/dev/ic/athnvar.h | 5 +++--
sys/dev/pci/if_athn_pci.c | 5 +++--
12 files changed, 57 insertions(+), 27 deletions(-)
diffs (truncated from 323 to 300 lines):
diff -r 75072b2faa5c -r e8d7329d8590 sys/dev/cardbus/if_athn_cardbus.c
--- a/sys/dev/cardbus/if_athn_cardbus.c Wed Apr 03 03:24:27 2013 +0000
+++ b/sys/dev/cardbus/if_athn_cardbus.c Wed Apr 03 14:20:02 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_athn_cardbus.c,v 1.1 2013/03/30 02:53:00 christos Exp $ */
+/* $NetBSD: if_athn_cardbus.c,v 1.2 2013/04/03 14:20:02 christos Exp $ */
/* $OpenBSD: if_athn_cardbus.c,v 1.13 2011/01/08 10:02:32 damien Exp $ */
/*-
@@ -22,7 +22,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_athn_cardbus.c,v 1.1 2013/03/30 02:53:00 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_athn_cardbus.c,v 1.2 2013/04/03 14:20:02 christos Exp $");
#include "opt_inet.h"
@@ -40,6 +40,7 @@
#include <sys/intr.h>
#include <net/if.h>
+#include <net/if_ether.h>
#include <net/if_media.h>
#include <net80211/ieee80211_var.h>
diff -r 75072b2faa5c -r e8d7329d8590 sys/dev/ic/aic79xx_inline.h
--- a/sys/dev/ic/aic79xx_inline.h Wed Apr 03 03:24:27 2013 +0000
+++ b/sys/dev/ic/aic79xx_inline.h Wed Apr 03 14:20:02 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aic79xx_inline.h,v 1.19 2009/09/05 12:39:25 tsutsui Exp $ */
+/* $NetBSD: aic79xx_inline.h,v 1.20 2013/04/03 14:20:02 christos Exp $ */
/*
* Inline routines shareable across OS platforms.
@@ -854,7 +854,7 @@
u_int retval;
retval = 0;
- ahd_dmamap_sync(ahd, ahd->parent_dmat /*shared_data_dmat*/, ahd->shared_data_map.dmamap,
+ ahd_dmamap_sync1(ahd, ahd->parent_dmat /*shared_data_dmat*/, ahd->shared_data_map.dmamap,
/*offset*/ahd->qoutfifonext, /*len*/2,
BUS_DMASYNC_POSTREAD);
if ((ahd->qoutfifo[ahd->qoutfifonext]
diff -r 75072b2faa5c -r e8d7329d8590 sys/dev/ic/aic79xx_osm.h
--- a/sys/dev/ic/aic79xx_osm.h Wed Apr 03 03:24:27 2013 +0000
+++ b/sys/dev/ic/aic79xx_osm.h Wed Apr 03 14:20:02 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aic79xx_osm.h,v 1.21 2010/11/13 13:52:00 uebayasi Exp $ */
+/* $NetBSD: aic79xx_osm.h,v 1.22 2013/04/03 14:20:02 christos Exp $ */
/*
* NetBSD platform specific driver option settings, data structures,
@@ -32,9 +32,9 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $NetBSD: aic79xx_osm.h,v 1.21 2010/11/13 13:52:00 uebayasi Exp $
+ * $NetBSD: aic79xx_osm.h,v 1.22 2013/04/03 14:20:02 christos Exp $
*
- * //depot/aic7xxx/freebsd/dev/aic7xxx/aic79xx_osm.h#19 $$NetBSD: aic79xx_osm.h,v 1.21 2010/11/13 13:52:00 uebayasi Exp $
+ * //depot/aic7xxx/freebsd/dev/aic7xxx/aic79xx_osm.h#19 $$NetBSD: aic79xx_osm.h,v 1.22 2013/04/03 14:20:02 christos Exp $
*
* $FreeBSD: src/sys/dev/aic7xxx/aic79xx_osm.h,v 1.9 2003/05/26 21:43:29 gibbs Exp $
*/
@@ -129,8 +129,28 @@
bus_dmamap_unload(tag, map)
/* XXX Need to update Bus DMA for partial map syncs */
-#define ahd_dmamap_sync(ahd, dma_tag, dmamap, offset, len, op) \
- bus_dmamap_sync(dma_tag, dmamap, offset, len, op)
+#define ahd_dmamap_sync(ahd, dma_tag, dmamap, offset, len, op) \
+ do { \
+ if (((op) & (BUS_DMASYNC_PREWRITE|BUS_DMASYNC_POSTREAD)) != 0)\
+ if ((offset) >= (dmamap)->dm_mapsize) { \
+ printf("%s, %d: %s: %x >= %x[%x]\n", __FILE__, \
+ __LINE__, __func__, (int)(offset), \
+ (int)(dmamap)->dm_mapsize, (int)(len)); \
+ return; \
+ } \
+ bus_dmamap_sync(dma_tag, dmamap, offset, len, op); \
+ } while (/*CONSTCOND*/0)
+#define ahd_dmamap_sync1(ahd, dma_tag, dmamap, offset, len, op) \
+ do { \
+ if (((op) & (BUS_DMASYNC_PREWRITE|BUS_DMASYNC_POSTREAD)) != 0)\
+ if ((offset) >= (dmamap)->dm_mapsize) { \
+ printf("%s, %d: %s: %x >= %x[%x]\n", __FILE__, \
+ __LINE__, __func__, (int)(offset), \
+ (int)(dmamap)->dm_mapsize, (int)(len)); \
+ return 0; \
+ } \
+ bus_dmamap_sync(dma_tag, dmamap, offset, len, op); \
+ } while (/*CONSTCOND*/0)
/************************ Tunable Driver Parameters **************************/
/*
diff -r 75072b2faa5c -r e8d7329d8590 sys/dev/ic/arn5008.c
--- a/sys/dev/ic/arn5008.c Wed Apr 03 03:24:27 2013 +0000
+++ b/sys/dev/ic/arn5008.c Wed Apr 03 14:20:02 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arn5008.c,v 1.1 2013/03/30 02:53:00 christos Exp $ */
+/* $NetBSD: arn5008.c,v 1.2 2013/04/03 14:20:02 christos Exp $ */
/* $OpenBSD: ar5008.c,v 1.21 2012/08/25 12:14:31 kettenis Exp $ */
/*-
@@ -24,7 +24,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arn5008.c,v 1.1 2013/03/30 02:53:00 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arn5008.c,v 1.2 2013/04/03 14:20:02 christos Exp $");
#include <sys/param.h>
#include <sys/sockio.h>
@@ -45,6 +45,7 @@
#include <net/if.h>
#include <net/if_arp.h>
#include <net/if_dl.h>
+#include <net/if_ether.h>
#include <net/if_media.h>
#include <net/if_types.h>
diff -r 75072b2faa5c -r e8d7329d8590 sys/dev/ic/arn5416.c
--- a/sys/dev/ic/arn5416.c Wed Apr 03 03:24:27 2013 +0000
+++ b/sys/dev/ic/arn5416.c Wed Apr 03 14:20:02 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arn5416.c,v 1.1 2013/03/30 02:53:00 christos Exp $ */
+/* $NetBSD: arn5416.c,v 1.2 2013/04/03 14:20:02 christos Exp $ */
/* $OpenBSD: ar5416.c,v 1.12 2012/06/10 21:23:36 kettenis Exp $ */
/*-
@@ -24,7 +24,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arn5416.c,v 1.1 2013/03/30 02:53:00 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arn5416.c,v 1.2 2013/04/03 14:20:02 christos Exp $");
#include <sys/param.h>
#include <sys/sockio.h>
@@ -46,6 +46,7 @@
#include <net/if.h>
#include <net/if_arp.h>
#include <net/if_dl.h>
+#include <net/if_ether.h>
#include <net/if_media.h>
#include <net/if_types.h>
diff -r 75072b2faa5c -r e8d7329d8590 sys/dev/ic/arn9003.c
--- a/sys/dev/ic/arn9003.c Wed Apr 03 03:24:27 2013 +0000
+++ b/sys/dev/ic/arn9003.c Wed Apr 03 14:20:02 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arn9003.c,v 1.1 2013/03/30 02:53:01 christos Exp $ */
+/* $NetBSD: arn9003.c,v 1.2 2013/04/03 14:20:02 christos Exp $ */
/* $OpenBSD: ar9003.c,v 1.25 2012/10/20 09:53:32 stsp Exp $ */
/*-
@@ -24,7 +24,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arn9003.c,v 1.1 2013/03/30 02:53:01 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arn9003.c,v 1.2 2013/04/03 14:20:02 christos Exp $");
#include <sys/param.h>
#include <sys/sockio.h>
@@ -46,6 +46,7 @@
#include <net/if.h>
#include <net/if_arp.h>
#include <net/if_dl.h>
+#include <net/if_ether.h>
#include <net/if_media.h>
#include <net/if_types.h>
diff -r 75072b2faa5c -r e8d7329d8590 sys/dev/ic/arn9280.c
--- a/sys/dev/ic/arn9280.c Wed Apr 03 03:24:27 2013 +0000
+++ b/sys/dev/ic/arn9280.c Wed Apr 03 14:20:02 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arn9280.c,v 1.1 2013/03/30 02:53:01 christos Exp $ */
+/* $NetBSD: arn9280.c,v 1.2 2013/04/03 14:20:02 christos Exp $ */
/* $OpenBSD: ar9280.c,v 1.18 2012/06/10 21:23:36 kettenis Exp $ */
/*-
@@ -24,7 +24,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arn9280.c,v 1.1 2013/03/30 02:53:01 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arn9280.c,v 1.2 2013/04/03 14:20:02 christos Exp $");
#include <sys/param.h>
#include <sys/sockio.h>
@@ -46,6 +46,7 @@
#include <net/if.h>
#include <net/if_arp.h>
#include <net/if_dl.h>
+#include <net/if_ether.h>
#include <net/if_media.h>
#include <net/if_types.h>
diff -r 75072b2faa5c -r e8d7329d8590 sys/dev/ic/arn9285.c
--- a/sys/dev/ic/arn9285.c Wed Apr 03 03:24:27 2013 +0000
+++ b/sys/dev/ic/arn9285.c Wed Apr 03 14:20:02 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arn9285.c,v 1.1 2013/03/30 02:53:01 christos Exp $ */
+/* $NetBSD: arn9285.c,v 1.2 2013/04/03 14:20:02 christos Exp $ */
/* $OpenBSD: ar9285.c,v 1.19 2012/06/10 21:23:36 kettenis Exp $ */
/*-
@@ -24,7 +24,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arn9285.c,v 1.1 2013/03/30 02:53:01 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arn9285.c,v 1.2 2013/04/03 14:20:02 christos Exp $");
#ifndef _MODULE
#include "athn_usb.h"
@@ -50,6 +50,7 @@
#include <net/if.h>
#include <net/if_arp.h>
#include <net/if_dl.h>
+#include <net/if_ether.h>
#include <net/if_media.h>
#include <net/if_types.h>
diff -r 75072b2faa5c -r e8d7329d8590 sys/dev/ic/arn9287.c
--- a/sys/dev/ic/arn9287.c Wed Apr 03 03:24:27 2013 +0000
+++ b/sys/dev/ic/arn9287.c Wed Apr 03 14:20:02 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arn9287.c,v 1.1 2013/03/30 02:53:01 christos Exp $ */
+/* $NetBSD: arn9287.c,v 1.2 2013/04/03 14:20:02 christos Exp $ */
/* $OpenBSD: ar9287.c,v 1.17 2012/06/10 21:23:36 kettenis Exp $ */
/*-
@@ -24,7 +24,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arn9287.c,v 1.1 2013/03/30 02:53:01 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arn9287.c,v 1.2 2013/04/03 14:20:02 christos Exp $");
#include <sys/param.h>
#include <sys/sockio.h>
@@ -46,6 +46,7 @@
#include <net/if.h>
#include <net/if_arp.h>
#include <net/if_dl.h>
+#include <net/if_ether.h>
#include <net/if_media.h>
#include <net/if_types.h>
diff -r 75072b2faa5c -r e8d7329d8590 sys/dev/ic/arn9380.c
--- a/sys/dev/ic/arn9380.c Wed Apr 03 03:24:27 2013 +0000
+++ b/sys/dev/ic/arn9380.c Wed Apr 03 14:20:02 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arn9380.c,v 1.1 2013/03/30 02:53:02 christos Exp $ */
+/* $NetBSD: arn9380.c,v 1.2 2013/04/03 14:20:02 christos Exp $ */
/* $OpenBSD: ar9380.c,v 1.17 2012/10/20 09:54:20 stsp Exp $ */
/*-
@@ -24,7 +24,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arn9380.c,v 1.1 2013/03/30 02:53:02 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arn9380.c,v 1.2 2013/04/03 14:20:02 christos Exp $");
#include <sys/param.h>
#include <sys/sockio.h>
@@ -44,6 +44,7 @@
#include <net/if.h>
#include <net/if_arp.h>
#include <net/if_dl.h>
+#include <net/if_ether.h>
#include <net/if_media.h>
#include <net/if_types.h>
diff -r 75072b2faa5c -r e8d7329d8590 sys/dev/ic/athnvar.h
--- a/sys/dev/ic/athnvar.h Wed Apr 03 03:24:27 2013 +0000
+++ b/sys/dev/ic/athnvar.h Wed Apr 03 14:20:02 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: athnvar.h,v 1.2 2013/03/30 14:14:30 christos Exp $ */
+/* $NetBSD: athnvar.h,v 1.3 2013/04/03 14:20:03 christos Exp $ */
/* $OpenBSD: athnvar.h,v 1.33 2012/10/20 09:54:20 stsp Exp $ */
/*-
@@ -455,7 +455,8 @@
device_suspensor_t sc_suspensor;
pmf_qual_t sc_qual;
struct ieee80211com sc_ic;
- struct ifnet sc_if;
+ struct ethercom sc_ec;
+#define sc_if sc_ec.ec_if
#if 0
int (*sc_enable)(struct athn_softc *);
diff -r 75072b2faa5c -r e8d7329d8590 sys/dev/pci/if_athn_pci.c
--- a/sys/dev/pci/if_athn_pci.c Wed Apr 03 03:24:27 2013 +0000
+++ b/sys/dev/pci/if_athn_pci.c Wed Apr 03 14:20:02 2013 +0000
Home |
Main Index |
Thread Index |
Old Index