*** 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;
/** 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 */);
*** 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;
_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);
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);
{
struct nic *nic = netif->state;
- outputf("NIC: Transmit packet");
+// outputf("NIC: Transmit packet");
nic->transmit(p);