changelog shortlog tags branches changeset file revisions annotate raw help

Mercurial > hg > plan9front / sys/src/9/port/ethermii.h

revision 7318: 386fe43162b4
parent 7305: 617312eef5e1
     1.1--- a/sys/src/9/port/ethermii.h
     1.2+++ b/sys/src/9/port/ethermii.h
     1.3@@ -13,6 +13,8 @@ enum {					/* registers */
     1.4 	Annprr		= 0x08,		/* AN Next Page RX */
     1.5 	Mscr		= 0x09,		/* MASTER-SLAVE Control */
     1.6 	Mssr		= 0x0A,		/* MASTER-SLAVE Status */
     1.7+	Mmdctrl		= 0x0D,		/* MMD Access Control */
     1.8+	Mmddata		= 0x0E,		/* MMD Access Data Register */
     1.9 	Esr		= 0x0F,		/* Extended Status */
    1.10 
    1.11 	NMiiPhyr	= 32,
    1.12@@ -94,6 +96,7 @@ typedef struct Mii {
    1.13 
    1.14 typedef struct MiiPhy {
    1.15 	Mii*	mii;
    1.16+	u32int	id;
    1.17 	int	oui;
    1.18 	int	phyno;
    1.19 
    1.20@@ -114,3 +117,6 @@ extern int miimir(Mii*, int);
    1.21 extern int miimiw(Mii*, int, int);
    1.22 extern int miireset(Mii*);
    1.23 extern int miistatus(Mii*);
    1.24+
    1.25+extern int miimmdr(Mii*, int, int);
    1.26+extern int miimmdw(Mii*, int, int, int);