All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Blue Swirl <blauwirbel@gmail.com>
Cc: vgabios-developers@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 2/5] Add defines for PCI IDs.
Date: Mon, 10 May 2010 09:51:29 +0200	[thread overview]
Message-ID: <4BE7BB01.4080702@redhat.com> (raw)
In-Reply-To: <v2yf43fc5581005070832y4d4ef4d0y121adfef9bb79595@mail.gmail.com>

On 05/07/10 17:32, Blue Swirl wrote:
> On 5/7/10, Gerd Hoffmann<kraxel@redhat.com>  wrote:
>> This patch allows to set PCI vendor and device IDs using defines
>>   (PCI_VID and PCI_DID).  Use it for vgabios.bin.
>>
>>   Signed-off-by: Gerd Hoffmann<kraxel@redhat.com>
>>   ---
>>    Makefile  |    4 ++--
>>    vbe.c     |    6 +++++-
>>    vgabios.c |    5 +++++
>>    3 files changed, 12 insertions(+), 3 deletions(-)
>>
>>   diff --git a/Makefile b/Makefile
>>   index c3c744c..d440b93 100644
>>   --- a/Makefile
>>   +++ b/Makefile
>>   @@ -31,8 +31,8 @@ VGA_FILES := vgabios.c vgabios.h vgafonts.h vgatables.h
>>    VBE_FILES := vbe.h vbe.c vbetables.h
>>
>>    # build flags
>>   -vgabios.bin              : VGAFLAGS := -DVBE
>>   -vgabios.debug.bin        : VGAFLAGS := -DVBE -DDEBUG
>>   +vgabios.bin              : VGAFLAGS := -DVBE -DPCI_VID=0x1234
>>   +vgabios.debug.bin        : VGAFLAGS := -DVBE -DPCI_VID=0x1234 -DDEBUG
>
> -DPCI_DID missing...

Not needed here.

>>   @@ -210,8 +210,13 @@ vgabios_pci_data:
>>    .word 0x1013
>>    .word 0x00b8 // CLGD5446
>>    #else
>>   +#ifdef PCI_VID
>>   +.word PCI_VID
>>   +.word PCI_DID
>
> ... so this generates:
>   .word 0x1234
>   .word PCI_DID

The whole construct is wrapped into a #ifdef PCIBIOS (not visible in the 
patch as it would have needed more context).

cheers,
   Gerd

  reply	other threads:[~2010-05-10  8:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-07 10:09 [Qemu-devel] [PATCH 1/5] Makefile cleanup Gerd Hoffmann
2010-05-07 10:09 ` [Qemu-devel] [PATCH 2/5] Add defines for PCI IDs Gerd Hoffmann
2010-05-07 15:32   ` Blue Swirl
2010-05-10  7:51     ` Gerd Hoffmann [this message]
2010-05-07 10:09 ` [Qemu-devel] [PATCH 3/5] Add qemu stdvga pci bios Gerd Hoffmann
2010-05-07 10:09 ` [Qemu-devel] [PATCH 4/5] update pci_get_lfb_addr for vmware vga Gerd Hoffmann
2010-05-07 10:09 ` [Qemu-devel] [PATCH 5/5] Add qemu vmware vga pci bios Gerd Hoffmann
2010-05-07 14:38 ` [Qemu-devel] [PATCH 1/5] Makefile cleanup Isaku Yamahata
2010-05-20 12:57 ` [Qemu-devel] vgabios plans ( Re: [PATCH 1/5] Makefile cleanup) Gerd Hoffmann
2010-05-20 13:04   ` [Qemu-devel] " Anthony Liguori
2010-05-21 13:29     ` Gerd Hoffmann

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=4BE7BB01.4080702@redhat.com \
    --to=kraxel@redhat.com \
    --cc=blauwirbel@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=vgabios-developers@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.