summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_stereg.h
diff options
context:
space:
mode:
authorambrisko <ambrisko@FreeBSD.org>2002-08-19 16:54:26 +0000
committerambrisko <ambrisko@FreeBSD.org>2002-08-19 16:54:26 +0000
commitd0709eea67e0ae904f80928991bf3ce66b3fcbc4 (patch)
tree3b28a452672adda5c0d4512889bd87ef39d14e41 /sys/pci/if_stereg.h
parent1a7cd1a210c4be2ec85df8513276938c23be1b95 (diff)
downloadFreeBSD-src-d0709eea67e0ae904f80928991bf3ce66b3fcbc4.zip
FreeBSD-src-d0709eea67e0ae904f80928991bf3ce66b3fcbc4.tar.gz
Don't read the PCI config space during mii operations. Instead save whether
or not we have to limit the PHY detection in the softc structure. Then just check the flag. Suggested by: jdp Reviewed by: jdp MFC after: 3 days
Diffstat (limited to 'sys/pci/if_stereg.h')
-rw-r--r--sys/pci/if_stereg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/pci/if_stereg.h b/sys/pci/if_stereg.h
index c55af97..9ff620e 100644
--- a/sys/pci/if_stereg.h
+++ b/sys/pci/if_stereg.h
@@ -525,6 +525,7 @@ struct ste_softc {
struct ste_chain_data ste_cdata;
struct callout_handle ste_stat_ch;
struct mtx ste_mtx;
+ u_int8_t ste_one_phy;
};
#define STE_LOCK(_sc) mtx_lock(&(_sc)->ste_mtx)
OpenPOWER on IntegriCloud