diff options
Diffstat (limited to 'sys/dev/ic/gemvar.h')
-rw-r--r-- | sys/dev/ic/gemvar.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/dev/ic/gemvar.h b/sys/dev/ic/gemvar.h index 78aaee66420..f3e8b8f17e4 100644 --- a/sys/dev/ic/gemvar.h +++ b/sys/dev/ic/gemvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: gemvar.h,v 1.7 2002/03/14 01:26:54 millert Exp $ */ +/* $OpenBSD: gemvar.h,v 1.8 2002/06/07 23:44:05 drahn Exp $ */ /* $NetBSD: gemvar.h,v 1.1 2001/09/16 00:11:43 eeh Exp $ */ /* @@ -144,6 +144,14 @@ struct gem_softc { int sc_mif_config; /* Selected MII reg setting */ int sc_pci; /* XXXXX -- PCI buses are LE. */ + u_int sc_variant; /* which GEM are we dealing with? */ +#define GEM_UNKNOWN 0 /* don't know */ +#define GEM_SUN_GEM 1 /* Sun GEM variant */ +#define GEM_APPLE_GMAC 2 /* Apple GMAC variant */ + + u_int sc_flags; /* */ +#define GEM_GIGABIT 0x0001 /* has a gigabit PHY */ + void *sc_sdhook; /* shutdown hook */ void *sc_powerhook; /* power management hook */ @@ -182,6 +190,7 @@ struct gem_softc { u_int32_t sc_setup_fsls; /* FS|LS on setup descriptor */ int sc_rxptr; /* next ready RX descriptor/descsoft */ + int sc_rxfifosize; /* ========== */ int sc_inited; |