summaryrefslogtreecommitdiff
path: root/os/pc/ether8390.h
diff options
context:
space:
mode:
authorKonstantin Kirik (snegovick) <snegovick@uprojects.org>2025-12-28 12:27:31 +0300
committerKonstantin Kirik (snegovick) <snegovick@uprojects.org>2025-12-28 12:27:31 +0300
commit78ee7d5717807e6ac779293d0d3c78341de6130a (patch)
treea43e3b0f61318ac45e6d907c7cc5bad2c6d7f497 /os/pc/ether8390.h
parentbdaf46cf45bbb59261da245d548a179d95a42768 (diff)
Move existing boards into subdits split per arch
Diffstat (limited to 'os/pc/ether8390.h')
-rw-r--r--os/pc/ether8390.h74
1 files changed, 0 insertions, 74 deletions
diff --git a/os/pc/ether8390.h b/os/pc/ether8390.h
deleted file mode 100644
index b5bf6e55..00000000
--- a/os/pc/ether8390.h
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * Ctlr for the boards using the National Semiconductor DP8390
- * and SMC 83C90 Network Interface Controller.
- * Common code is in ether8390.c.
- */
-typedef struct {
- Lock;
-
- ulong port; /* I/O address of 8390 */
- ulong data; /* I/O data port if no shared memory */
-
- uchar width; /* data transfer width in bytes */
- uchar ram; /* true if card has shared memory */
- uchar dummyrr; /* do dummy remote read */
-
- uchar nxtpkt; /* receive: software bndry */
- uchar pstart;
- uchar pstop;
-
- int txbusy; /* transmit */
- uchar tstart; /* 8390 ring addresses */
-
- uchar mar[8]; /* shadow multicast address registers */
- int mref[64]; /* reference counts for multicast groups */
-} Dp8390;
-
-#define Dp8390BufSz 256
-
-extern int dp8390reset(Ether*);
-extern void *dp8390read(Dp8390*, void*, ulong, ulong);
-extern void dp8390getea(Ether*, uchar*);
-extern void dp8390setea(Ether*);
-
-/*
- * x86-specific code.
- */
-#define regr(c, r) inb((c)->port+(r))
-#define regw(c, r, v) outb((c)->port+(r), (v))
-
-static void
-rdread(Dp8390* ctlr, void* to, int len)
-{
- switch(ctlr->width){
- default:
- panic("dp8390 rdread: width %d\n", ctlr->width);
- break;
-
- case 2:
- inss(ctlr->data, to, len/2);
- break;
-
- case 1:
- insb(ctlr->data, to, len);
- break;
- }
-}
-
-static void
-rdwrite(Dp8390* ctlr, void* from, int len)
-{
- switch(ctlr->width){
- default:
- panic("dp8390 rdwrite: width %d\n", ctlr->width);
- break;
-
- case 2:
- outss(ctlr->data, from, len/2);
- break;
-
- case 1:
- outsb(ctlr->data, from, len);
- break;
- }
-}