From: Joshua Wise Date: Sat, 6 Dec 2008 12:10:18 +0000 (-0500) Subject: Be more quiet about this whole transmit and receive business. This time, we actually... X-Git-Url: http://git.joshuawise.com/netwatch.git/commitdiff_plain/bc9e1044fd166db4e75cdc39b2aaa17d942b3ca4 Be more quiet about this whole transmit and receive business. This time, we actually *are* spending a lot of time in the serial console. --- diff --git a/net/3c90x.c b/net/3c90x.c index 74035e0..936f297 100644 --- a/net/3c90x.c +++ b/net/3c90x.c @@ -454,8 +454,7 @@ static void a3c90x_reset(void) *** size - size of the non-header part of the packet that needs transmitted; *** pkt - the pointer to the packet data itself. ***/ -static void -a3c90x_transmit(struct pbuf *p) +static void _transmit(struct pbuf *p) { unsigned char status; static struct pbuf *oldpbuf = NULL; @@ -494,8 +493,6 @@ a3c90x_transmit(struct pbuf *p) /** set notification for transmission completion (bit 15) **/ txdesc.hdr = (len) | 0x8000; - outputf("3c90x: Sending %d byte %d seg packet", len, n); - /** Send the packet **/ outl(INF_3C90X.IOAddr + regDnListPtr_l, v2p(&txdesc)); _issue_command(INF_3C90X.IOAddr, cmdStallCtl, 3 /* Unstall download */); @@ -580,7 +577,7 @@ static void _setup_recv(struct nic *nic) *** copy the packet to nic->packet if it gets a packet and set the size *** in nic->packetlen. Return 1 if a packet was found. ***/ -static struct pbuf * a3c90x_poll(struct nic *nic) +static struct pbuf * _recv(struct nic *nic) { int errcode; struct pbuf *p; @@ -925,8 +922,8 @@ static int a3c90x_probe(struct pci_dev * pci, void * data) _issue_command(INF_3C90X.IOAddr, cmdAcknowledgeInterrupt, 0x661); /* * Set our exported functions **/ - nic.recv = a3c90x_poll; - nic.transmit = a3c90x_transmit; + nic.recv = _recv; + nic.transmit = _transmit; memcpy(nic.hwaddr, INF_3C90X.HWAddr, 6); eth_register(&nic); diff --git a/net/net.c b/net/net.c index 3e6130f..5d0c75b 100644 --- a/net/net.c +++ b/net/net.c @@ -46,7 +46,7 @@ void eth_poll() if ((p = _nic->recv(_nic)) != NULL) { - outputf("NIC: Packet: %d bytes", p->tot_len); +// outputf("NIC: Packet: %d bytes", p->tot_len); LINK_STATS_INC(link.recv); @@ -74,7 +74,7 @@ static err_t _transmit(struct netif *netif, struct pbuf *p) { struct nic *nic = netif->state; - outputf("NIC: Transmit packet"); +// outputf("NIC: Transmit packet"); nic->transmit(p);