diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2001-09-16 03:19:31 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2001-09-16 03:19:31 +0000 |
commit | ac10cf98a24f56b85d55f400aa8936fef30b6ffb (patch) | |
tree | 10302136bbb2b914cce6f530995cc632111481bd /sys/arch/macppc/dev/if_bmreg.h | |
parent | f5b0c4fcddc711521da893f4b61dc8d0799b471b (diff) |
Update the bmac (if_bm) to a newer version from NetBSD.
Now uses mii/mii_bitbang.
Driver still has performance issues, It does not transfer
as fast data as it should. No worse than before.
Need to investigate a dhclient reported error:
'ip length 331 disagrees with bytes recieved 336'. only on if_bm.
Diffstat (limited to 'sys/arch/macppc/dev/if_bmreg.h')
-rw-r--r-- | sys/arch/macppc/dev/if_bmreg.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/macppc/dev/if_bmreg.h b/sys/arch/macppc/dev/if_bmreg.h index 8506808e952..40638f9edfc 100644 --- a/sys/arch/macppc/dev/if_bmreg.h +++ b/sys/arch/macppc/dev/if_bmreg.h @@ -1,5 +1,5 @@ -/* $OpenBSD: if_bmreg.h,v 1.1 2001/09/01 15:50:00 drahn Exp $ */ -/* $NetBSD: if_bmreg.h,v 1.1 1999/01/01 01:27:52 tsubai Exp $ */ +/* $OpenBSD: if_bmreg.h,v 1.2 2001/09/16 03:19:30 drahn Exp $ */ +/* $NetBSD: if_bmreg.h,v 1.2 2000/01/25 14:38:50 tsubai Exp $ */ /* * Copyright 1991-1998 by Open Software Foundation, Inc. @@ -53,6 +53,10 @@ #define ClkBit 0x0008 #define CHIPID 0x0170 #define MIFCSR 0x0180 +#define MIFDC 0x0001 /* MII clock */ +#define MIFDO 0x0002 /* MII data out */ +#define MIFDIR 0x0004 /* MII direction (1: write) */ +#define MIFDI 0x0008 /* MII data in */ #define SROMCSR 0x0190 #define TXPNTR 0x01A0 #define RXPNTR 0x01B0 @@ -83,6 +87,7 @@ #define TXCFG 0x0430 #define TxMACEnable 0x0001 #define TxThreshold 0x0004 +#define TxFullDuplex 0x0200 #define IPG1 0x0440 #define IPG2 0x0450 #define ALIMIT 0x0460 |