diff options
| author | Akihiko Odaki <akihiko.odaki@daynix.com> | 2023-02-23 19:19:48 +0900 |
|---|---|---|
| committer | Jason Wang <jasowang@redhat.com> | 2023-03-10 15:35:38 +0800 |
| commit | b7728c9f62d8ee5c4772a08ebe2f21bd789c73f7 (patch) | |
| tree | f4af81c9544b06737f1cf66817798c7cdcf48d6b /hw/net/e1000x_common.h | |
| parent | 6684bef12e42838204a953d49fc2de34653f4bf8 (diff) | |
| download | focaccia-qemu-b7728c9f62d8ee5c4772a08ebe2f21bd789c73f7.tar.gz focaccia-qemu-b7728c9f62d8ee5c4772a08ebe2f21bd789c73f7.zip | |
e1000: Use hw/net/mii.h
hw/net/mii.h provides common definitions for MII. Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw/net/e1000x_common.h')
| -rw-r--r-- | hw/net/e1000x_common.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/net/e1000x_common.h b/hw/net/e1000x_common.h index bc1ee75b04..3501e4855a 100644 --- a/hw/net/e1000x_common.h +++ b/hw/net/e1000x_common.h @@ -152,16 +152,16 @@ static inline void e1000x_update_regs_on_link_down(uint32_t *mac, uint16_t *phy) { mac[STATUS] &= ~E1000_STATUS_LU; - phy[PHY_STATUS] &= ~MII_SR_LINK_STATUS; - phy[PHY_STATUS] &= ~MII_SR_AUTONEG_COMPLETE; - phy[PHY_LP_ABILITY] &= ~MII_LPAR_LPACK; + phy[MII_BMSR] &= ~MII_BMSR_LINK_ST; + phy[MII_BMSR] &= ~MII_BMSR_AN_COMP; + phy[MII_ANLPAR] &= ~MII_ANLPAR_ACK; } static inline void e1000x_update_regs_on_link_up(uint32_t *mac, uint16_t *phy) { mac[STATUS] |= E1000_STATUS_LU; - phy[PHY_STATUS] |= MII_SR_LINK_STATUS; + phy[MII_BMSR] |= MII_BMSR_LINK_ST; } void e1000x_update_rx_total_stats(uint32_t *mac, |