Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422661AbWJXVql (ORCPT ); Tue, 24 Oct 2006 17:46:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1422659AbWJXVql (ORCPT ); Tue, 24 Oct 2006 17:46:41 -0400 Received: from smtp.osdl.org ([65.172.181.4]:33507 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S1422658AbWJXVqk (ORCPT ); Tue, 24 Oct 2006 17:46:40 -0400 Date: Tue, 24 Oct 2006 14:46:20 -0700 From: Stephen Hemminger To: driver-support@fabric7.com Cc: schidambaram@fabric7.com, Jeff Garzik , KERNEL Linux , NETDEV Linux Subject: Re: [PATCH 1/1] Fabric7 VIOC: Ethtool Message-ID: <20061024144620.4c9892f6@dxpl.pdx.osdl.net> In-Reply-To: <1161725441.8112.11.camel@rh234.mv.fabric7.com> References: <1161725441.8112.11.camel@rh234.mv.fabric7.com> X-Mailer: Sylpheed-Claws 2.5.5 (GTK+ 2.8.20; x86_64-redhat-linux-gnu) X-Face: &@E+xe?c%:&e4D{>f1O<&U>2qwRREG5!}7R4;D<"NO^UI2mJ[eEOA2*3>(`Th.yP,VDPo9$ /`~cw![cmj~~jWe?AHY7D1S+\}5brN0k*NE?pPh_'_d>6;XGG[\KDRViCfumZT3@[ Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2550 Lines: 82 On Tue, 24 Oct 2006 14:30:41 -0700 Sriram Chidambaram wrote: > Ethtool patch for Fabric7 VIOC Device Driver. > > Signed-off-by: Fabric7 Driver-Support > --- > Makefile.am | 2 +- > ethtool-util.h | 2 ++ > ethtool.c | 1 + > vioc.c | 35 +++++++++++++++++++++++++++++++++++ > 4 files changed, 39 insertions(+), 1 deletions(-) > > diff --git a/Makefile.am b/Makefile.am > index 97ad512..240979e 100644 > --- a/Makefile.am > +++ b/Makefile.am > @@ -7,7 +7,7 @@ sbin_PROGRAMS = ethtool > ethtool_SOURCES = ethtool.c ethtool-copy.h ethtool-util.h \ > amd8111e.c de2104x.c e100.c e1000.c \ > fec_8xx.c ibm_emac.c ixgb.c natsemi.c \ > - pcnet32.c realtek.c tg3.c marvell.c > + pcnet32.c realtek.c tg3.c marvell.c vioc.c > > dist-hook: > cp $(top_srcdir)/ethtool.spec $(distdir) > diff --git a/ethtool-util.h b/ethtool-util.h > index 0909a5a..dcb0c1c 100644 > --- a/ethtool-util.h > +++ b/ethtool-util.h > @@ -54,4 +54,6 @@ int skge_dump_regs(struct ethtool_drvinf > /* SysKonnect Gigabit (Yukon2) */ > int sky2_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs); > > +/* Fabric7 VIOC */ > +int vioc_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs); > #endif > diff --git a/ethtool.c b/ethtool.c > index b783248..6e68009 100644 > --- a/ethtool.c > +++ b/ethtool.c > @@ -958,6 +958,7 @@ static struct { > { "tg3", tg3_dump_regs }, > { "skge", skge_dump_regs }, > { "sky2", sky2_dump_regs }, > + { "vioc", vioc_dump_regs }, > }; > > static int dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs) > diff --git a/vioc.c b/vioc.c > new file mode 100644 > index 0000000..b58dd40 > --- /dev/null > +++ b/vioc.c > @@ -0,0 +1,35 @@ > +/* Copyright 2006 Fabric7 Systems, Inc */ > + > +#include > +#include > +#include "ethtool-util.h" > + > +struct regs_line { > + u32 addr; > + u32 data; > +}; > + > +#define VIOC_REGS_LINE_SIZE sizeof(struct regs_line) > + > +int vioc_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs) > +{ > + unsigned int i; > + unsigned int num_regs; > + struct regs_line *reg_info = (struct regs_line *) regs->data; > + > + printf("%s: Enter\n", __FUNCTION__); Leftover debug? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/