summaryrefslogtreecommitdiffstats
path: root/sys/dev/vge/if_vgevar.h
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2009-12-14 20:39:42 +0000
committeryongari <yongari@FreeBSD.org>2009-12-14 20:39:42 +0000
commit168c3be20e42c45d370fc8a0b8d094db9a495f92 (patch)
tree6204b84124e70902f202eec33bcffc7afacde04d /sys/dev/vge/if_vgevar.h
parent75979e374b2f91efdb436466469b6e0afc6953d8 (diff)
downloadFreeBSD-src-168c3be20e42c45d370fc8a0b8d094db9a495f92.zip
FreeBSD-src-168c3be20e42c45d370fc8a0b8d094db9a495f92.tar.gz
Save PHY address by reading VGE_MIICFG register. For PCIe
controllers(VT613x), we assume the PHY address is 1. Use the saved PHY address in MII register access routines and remove accessing VGE_MIICFG register. While I'm here save PCI express capability register which will be used in near future.
Diffstat (limited to 'sys/dev/vge/if_vgevar.h')
-rw-r--r--sys/dev/vge/if_vgevar.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/vge/if_vgevar.h b/sys/dev/vge/if_vgevar.h
index ddc7411..ffc60a1 100644
--- a/sys/dev/vge/if_vgevar.h
+++ b/sys/dev/vge/if_vgevar.h
@@ -141,8 +141,11 @@ struct vge_softc {
device_t vge_miibus;
uint8_t vge_type;
int vge_if_flags;
+ int vge_phyaddr;
int vge_flags;
+#define VGE_FLAG_PCIE 0x0001
#define VGE_FLAG_LINK 0x8000
+ int vge_expcap;
int vge_camidx;
struct mtx vge_mtx;
struct callout vge_watchdog;
OpenPOWER on IntegriCloud