From: Blue Swirl <blauwirbel@gmail.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: Ian Molton <ian.molton@collabora.co.uk>,
qemu-devel@nongnu.org, Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [Qemu-devel] [FOR 0.12 PATCH] qdev: Replace device names containing whitespace
Date: Sat, 12 Dec 2009 10:58:53 +0200 [thread overview]
Message-ID: <f43fc5580912120058g3a7d6ae9r85936a4d66c12562@mail.gmail.com> (raw)
In-Reply-To: <m3ein4zdmx.fsf@crossbow.pond.sub.org>
On Wed, Dec 9, 2009 at 11:43 AM, Markus Armbruster <armbru@redhat.com> wrote:
> Ian Molton <ian.molton@collabora.co.uk> writes:
>
>> Markus Armbruster wrote:
>>
>>> The place for verbose device names is DeviceInfo member desc. The
>>> name should be short & sweet.
>>
>> Agreed, however...
>>
>> Why do these (maybe others) get caps in their names? they dont look
>> right to me, compared to the others with nice names like usb-serial,
>> piix-ide, or cirrus-vga.
>>
>>> - sysbus_register_dev("Uni-north main", sizeof(UNINState),
>>> + sysbus_register_dev("Uni-north-main", sizeof(UNINState),
>>> pci_unin_main_init_device);
>>> pci_qdev_register(&unin_main_pci_host_info);
>>> - sysbus_register_dev("DEC 21154", sizeof(UNINState),
>>> + sysbus_register_dev("DEC-21154", sizeof(UNINState),
>>> pci_dec_21154_init_device);
>>> pci_qdev_register(&dec_21154_pci_host_info);
>>> - sysbus_register_dev("Uni-north AGP", sizeof(UNINState),
>>> + sysbus_register_dev("Uni-north-AGP", sizeof(UNINState),
>>> pci_unin_agp_init_device);
>>> pci_qdev_register(&unin_agp_pci_host_info);
>>> - sysbus_register_dev("Uni-north internal", sizeof(UNINState),
>>> + sysbus_register_dev("Uni-north-internal", sizeof(UNINState),
>>> pci_unin_internal_init_device);
>>> pci_qdev_register(&unin_internal_pci_host_info);
>>> }
>
> I can downcase them. Blue Swirl, any objections?
>
I'd prefer the same names that are used by the device tree, like uni-n
and uni-north-agp. Though the bridge is name poorly, just
"pci-bridge".
For example:
http://penguinppc.org/historical/dev-trees-html/imac_400_1.html
next prev parent reply other threads:[~2009-12-12 8:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-08 20:45 [Qemu-devel] [FOR 0.12 PATCH] qdev: Replace device names containing whitespace Markus Armbruster
2009-12-09 7:40 ` [Qemu-devel] " Gerd Hoffmann
2009-12-09 8:09 ` Markus Armbruster
2009-12-09 9:28 ` [Qemu-devel] " Ian Molton
2009-12-09 9:43 ` Markus Armbruster
2009-12-12 8:58 ` Blue Swirl [this message]
2009-12-12 18:04 ` Markus Armbruster
2009-12-13 7:11 ` Blue Swirl
2009-12-14 9:41 ` [FOR 0.12 PATCH] qdev: Improve uni-north device names (was: [Qemu-devel] [FOR 0.12 PATCH] qdev: Replace device names containing whitespace) Markus Armbruster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f43fc5580912120058g3a7d6ae9r85936a4d66c12562@mail.gmail.com \
--to=blauwirbel@gmail.com \
--cc=armbru@redhat.com \
--cc=ian.molton@collabora.co.uk \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).