From a0102ef78051c1bc4b8c00cbb57027d221b97ca2 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Thu, 4 May 1995 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1995-05-04 --- pc/devether.c | 9 +++++++-- pc/ether509.c | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pc/devether.c b/pc/devether.c index dc59f7758406b3aa5a705200ba5e003a32982935..a4585056295de7e7c93e01f6d2a37929920781c4 100644 --- a/pc/devether.c +++ b/pc/devether.c @@ -209,8 +209,13 @@ etherreset(void) ctlr->irq = 9; setvec(Int0vec+ctlr->irq, ctlr->interrupt, ctlr); - print("ether%d: %s: port %lux irq %d addr %lux size %d:", - ctlrno, ctlr->type, ctlr->port, ctlr->irq, ctlr->mem, ctlr->size); + print("ether%d: %s: port 0x%lux irq %d", + ctlrno, ctlr->type, ctlr->port, ctlr->irq); + if(ctlr->mem) + print(" addr 0x%lux", ctlr->mem); + if(ctlr->mem) + print(" size %d", ctlr->size); + print(": ea"); for(i = 0; i < sizeof(ctlr->ea); i++) print(" %2.2ux", ctlr->ea[i]); print("\n"); diff --git a/pc/ether509.c b/pc/ether509.c index de9e09c80552155471d956416b1bb202744c5ae1..0b523a8e35119494a92a573b5305d4fdd6664ba7 100644 --- a/pc/ether509.c +++ b/pc/ether509.c @@ -68,6 +68,7 @@ enum { TxComplete = 0x0004, /* TX Complete */ TxAvailable = 0x0008, /* TX Available */ RxComplete = 0x0010, /* RX Complete */ + Update = 0x0080, /* Update Statistics */ AllIntr = 0x00FE, /* All Interrupt Bits */ CmdInProgress = 0x1000, /* Command In Progress */