Patchwork [v2] Added read access to several e1000 hw registers

login
register
mail settings
Submitter Kay Ackermann
Date Nov. 4, 2009, 1:32 p.m.
Message ID <709776689.20091104143229@uni-ulm.de>
Download mbox | patch
Permalink /patch/37576/
State New
Headers show

Comments

Kay Ackermann - Nov. 4, 2009, 1:32 p.m.
The e1000 hardware allows read access to several registers which qemu doesn't allow yet.

Signed-off-by: Kay Ackermann <Kay.Ackermann@uni-ulm.de>
---
hw/e1000.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/e1000.c b/hw/e1000.c
index 028afd1..3987e70 100644
--- a/hw/e1000.c
+++ b/hw/e1000.c
@@ -789,6 +789,8 @@  static uint32_t (*macreg_readops[])(E1000State *, int) = {
getreg(MANC), getreg(MDIC), getreg(SWSM), getreg(STATUS),
getreg(TORL), getreg(TOTL), getreg(IMS), getreg(TCTL),
getreg(RDH), getreg(RDT), getreg(VET), getreg(ICS),
+ getreg(TDBAL), getreg(TDBAH), getreg(RDBAH), getreg(RDBAL),
+ getreg(TDLEN), getreg(RDLEN),

[TOTH] = mac_read_clr8, [TORH] = mac_read_clr8, [GPRC] = mac_read_clr4,
[GPTC] = mac_read_clr4, [TPR] = mac_read_clr4, [TPT] = mac_read_clr4,