[cdi-devel] [PATCH 5/5] e1000: Add model for qemu e1000e emulation

Kevin Wolf ·

We have done everything to support qemu's e1000e emulation now. The only
missing part is fixing qemu so that it doesn't zero the buffer address
in descriptors after using them. The spec is explicit that the CDI
driver is right here and qemu isn't.

Signed-off-by: Kevin Wolf <kevin at tyndur.org>
---
 e1000/device.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/e1000/device.c b/e1000/device.c
index 49f1553..d006fdd 100644
--- a/e1000/device.c
+++ b/e1000/device.c
@@ -447,6 +447,14 @@ static struct e1000_model models[] = {
         .eerd_addr_sh   = EERD_E1000_ADDR_SHIFT,
     }, {
         .vendor_id      = 0x8086,
+        .device_id      = 0x10d3,
+        .tctl_flags     = TCTL_COLL_DIST_E1000E | TCTL_RRTHRESH,
+        .eeprom_read    = e1000_read_eerd,
+        .eerd_start     = EERD_E1000E_START,
+        .eerd_done      = EERD_E1000E_DONE,
+        .eerd_addr_sh   = EERD_E1000E_ADDR_SHIFT,
+    }, {
+        .vendor_id      = 0x8086,
         .device_id      = 0x10f5,
         .tctl_flags     = TCTL_COLL_DIST_E1000E | TCTL_RRTHRESH,
         .eeprom_read    = e1000e_read_flash,
-- 
2.1.4