qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Re: [PATCH 05/20] eepro100: Add all supported devices t


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] Re: [PATCH 05/20] eepro100: Add all supported devices to pci.c
Date: Thu, 04 Mar 2010 09:56:28 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Thunderbird/3.0.3

On 03/03/10 19:53, Stefan Weil wrote:
This would indeed simplify the code.

Although I don't like tricky programming like DO_UPCAST
(because I saw too much code where tricky programming
was faulty programming),

Yea, when coding C++ in C you need little tricks now and then ;)

You need that in one place only though, nic_init() can store a pointer in EEPRO100State and everybody can take the direct route then ...

qdev has aliases. You can add .qdev.alias = "eepro100" to one of the
variants, then the eepro100 name will work as well.

Good idea. To keep the number of aliases small, I plan to
add only one or two aliases: e100 (eepro100 only if a second
alias is possible).

You can have one alias only.

Why? e100 is the current linux driver name.

Reasonable choice, lines up with e1000.

eepro100 was the former linux driver name.

And leaked into a bunch of places (like qemu source code) because of that. Probably only developers recognize the name though.

The marketing name was Intel EtherExpress Pro 100.
I agree that it would help people to see this name,
so I suggest adding it to qemu-doc.texi.

Maybe .desc too ?

cheers,
  Gerd




reply via email to

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