qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Sparc system patch 12


From: Filip Navara
Subject: Re: [Qemu-devel] Sparc system patch 12
Date: Tue, 26 Oct 2004 19:36:32 +0200
User-agent: Mozilla Thunderbird 0.8 (Windows/20040913)

Antony T Curtis wrote:

On Mon, 2004-10-25 at 17:59, Blue Swirl wrote:
Hi,

I got tired to debugging Linux/*BSD boot, it's much more fun to implement new stuff. New in this patch: * Cleanup: moved all static data to structs or sun4m.c. Merged lance and ledma structures.

BTW, the lance chip is an AMD PC-Net chip... I have already implemented
this chip quite a while ago. Patches are on the patch site.

If there is anything deficient in my PCNet implementation, I would like
to know.
Actually it's nice piece of work. Thanks for making it!!!

In order to compile/use it on Windows I had to

1) Add the subsystem & subventor IDs initialization to pci_pcnet_init:
   *(uint16_t *)&pci_conf[0x2c] = cpu_to_le16(0x1022);
   *(uint16_t *)&pci_conf[0x2e] = cpu_to_le16(0x2000);
2) Get rid of the sys/times.h, arpa/inet.h and net/ethernet.h includes in pcnet.c. I remove the #include lines and added this to the pcnet.h:
#define ETHER_ADDR_LEN 6

struct ether_header {
   uint8_t ether_dhost[6];
   uint8_t ether_shost[6];
   uint16_t ether_type;
};

It would be nice to see the patch included in official QEMU (with the modifications to make it compile on Win3

Regards,
Filip




reply via email to

[Prev in Thread] Current Thread [Next in Thread]