~kris/9p

9hist

0959fea8c0c473b96ca9c0dc22db95f96da15067 — David du Colombier 30 years ago d945338
Plan 9 from Bell Labs 1996-04-20
2 files changed, 0 insertions(+), 22 deletions(-)

M pc/ether8390.c
M pc/etherif.h
M pc/ether8390.c => pc/ether8390.c +0 -21
@@ 207,27 207,6 @@ dp8390setea(Ether *ether)
	slowoutb(port+Cr, cr);
}

void
dp8390getea(Ether *ether)
{
	ulong port = ((Dp8390*)ether->ctlr)->dp8390;
	uchar cr;
	int i;

	/*
	 * Get the ethernet address from the chip.
	 * Take care to restore the command register
	 * afterwards. We don't care about multicast
	 * addresses as we never set the multicast
	 * enable.
	 */
	cr = slowinb(port+Cr) & ~Txp;
	slowoutb(port+Cr, Page1|(~(Ps1|Ps0) & cr));
	for(i = 0; i < sizeof(ether->ea); i++)
		ether->ea[i] = slowinb(port+Par0+i);
	slowoutb(port+Cr, cr);
}

void*
dp8390read(Dp8390 *dp8390, void *to, ulong from, ulong len)
{

M pc/etherif.h => pc/etherif.h +0 -1
@@ 49,7 49,6 @@ typedef struct {
extern int dp8390reset(Ether*);
extern void *dp8390read(Dp8390*, void*, ulong, ulong);
extern void *dp8390write(Dp8390*, ulong, void*, ulong);
extern void dp8390getea(Ether*);
extern void dp8390setea(Ether*);

#define NEXT(x, l)	(((x)+1)%(l))