patch e1000: add phy specific status register
Hi,
at least one OS try to read phy specific status register and emits a message if it can't be read. This patch gives a value to this register.
Tristan.
hw/e1000.c renamed from home/gingold/src/qemu/hw/e1000.c +2 -1
@@ -137,7 +137,7 @@ [PHY_CTRL] = PHY_RW, [PHY_1000T_CTRL] = PHY_RW, [PHY_LP_ABILITY] = PHY_R, [PHY_1000T_STATUS] = PHY_R, [PHY_AUTONEG_ADV] = PHY_RW, [M88E1000_RX_ERR_CNTR] = PHY_R, - [PHY_ID2] = PHY_R, + [PHY_ID2] = PHY_R, [PHY_SPEC_STATUS] = PHY_R }; static void
@@ -901,6 +901,7 @@ [PHY_1000T_CTRL] = 0x0e00, [M88E1000_PHY_SPEC_CTRL] = 0x360, [M88E1000_EXT_PHY_SPEC_CTRL] = 0x0d60, [PHY_AUTONEG_ADV] = 0xde1, [PHY_LP_ABILITY] = 0x1e0, [PHY_1000T_STATUS] = 0x3c00, + [PHY_SPEC_STATUS] = 0xac00, };static uint32_t mac_reg_init[] = {
hw/e1000_hw.h renamed from home/gingold/src/qemu/hw/e1000_hw.h +1 -0
@@ -332,6 +332,7 @@#define PHY_1000T_CTRL 0x09/* 1000Base-T Control Reg */ #define PHY_1000T_STATUS 0x0A/* 1000Base-T Status Reg */ #define PHY_EXT_STATUS 0x0F/* Extended Status Reg */ +#define PHY_SPEC_STATUS 0x11/* Phy Specific Status Reg */ #define MAX_PHY_REG_ADDRESS 0x1F/* 5 bit address bus (0-0x1F) */ #define MAX_PHY_MULTI_PAGE_REG 0xF/* Registers equal on all pages */