From bd7a6d7b3181390be80c2d5284c2be7f1a288a13 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Wed, 18 Jun 2025 00:59:51 -0700 Subject: [PATCH] nvnet: Make phy registers 16b --- hw/xbox/mcpx/nvnet/nvnet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xbox/mcpx/nvnet/nvnet.c b/hw/xbox/mcpx/nvnet/nvnet.c index 129b9f2d9f..378b0c4dd8 100644 --- a/hw/xbox/mcpx/nvnet/nvnet.c +++ b/hw/xbox/mcpx/nvnet/nvnet.c @@ -479,9 +479,9 @@ static ssize_t nvnet_receive(NetClientState *nc, return nvnet_receive_iov(nc, &iov, 1); } -static uint32_t nvnet_phy_reg_read(NvNetState *s, uint8_t reg) +static uint16_t nvnet_phy_reg_read(NvNetState *s, uint8_t reg) { - uint32_t value; + uint16_t value; switch (reg) { case MII_BMSR: @@ -505,7 +505,7 @@ static uint32_t nvnet_phy_reg_read(NvNetState *s, uint8_t reg) return value; } -static void nvnet_phy_reg_write(NvNetState *s, uint8_t reg, uint32_t value) +static void nvnet_phy_reg_write(NvNetState *s, uint8_t reg, uint16_t value) { trace_nvnet_mii_write(PHY_ADDR, reg, nvnet_get_mii_reg_name(reg), value); }