2008-04-04 Pavel Roskin <proski@gnu.org>

* commands/lspci.c (grub_pci_classes): Fix typos.
	(grub_lspci_iter): Don't print func twice.  Print vendor ID
	before device ID, as it's normally done.
This commit is contained in:
proski 2008-04-04 08:07:07 +00:00
parent 070e49e4e8
commit 4f657021a9
2 changed files with 11 additions and 7 deletions

View file

@ -1,5 +1,9 @@
2008-04-04 Pavel Roskin <proski@gnu.org>
* commands/lspci.c (grub_pci_classes): Fix typos.
(grub_lspci_iter): Don't print func twice. Print vendor ID
before device ID, as it's normally done.
* kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
Fix signedness warnings.
* kern/powerpc/ieee1275/openfw.c (grub_available_iterate):

View file

@ -32,7 +32,7 @@ struct grub_pci_classname
static const struct grub_pci_classname grub_pci_classes[] =
{
{ 0, 0, "" },
{ 1, 0, "SCSCI Controller" },
{ 1, 0, "SCSI Controller" },
{ 1, 1, "IDE Controller" },
{ 1, 2, "Floppy Controller" },
{ 1, 3, "IPI Controller" },
@ -74,7 +74,7 @@ static const struct grub_pci_classname grub_pci_classes[] =
{ 9, 4, "Gameport Controller" },
{ 9, 0x80, "Unknown Input Device" },
{ 10, 0, "Generic Docking Station" },
{ 10, 0x80, "Unkown Docking Station" },
{ 10, 0x80, "Unknown Docking Station" },
{ 11, 0, "80386 Processor" },
{ 11, 1, "80486 Processor" },
{ 11, 2, "Pentium Processor" },
@ -82,19 +82,19 @@ static const struct grub_pci_classname grub_pci_classes[] =
{ 11, 0x20, "PowerPC Processor" },
{ 11, 0x30, "MIPS Processor" },
{ 11, 0x40, "Co-Processor" },
{ 11, 0x80, "Unkown Processor" },
{ 11, 0x80, "Unknown Processor" },
{ 12, 0x80, "Serial Bus Controller" },
{ 13, 0x80, "Wireless Controller" },
{ 14, 0, "I2O" },
{ 15, 0, "iRDA Controller" },
{ 15, 0, "IrDA Controller" },
{ 15, 1, "Consumer IR" },
{ 15, 0x10, "RF-Controller" },
{ 15, 0x80, "Satellite Communication Controller" },
{ 16, 0, "Network Decryption" },
{ 16, 1, "Entertainment Decryption" },
{ 16, 0x80, "Unkown Decryption Controller" },
{ 16, 0x80, "Unknown Decryption Controller" },
{ 17, 0, "Digital IO Module" },
{ 17, 0x80, "Unkown Data Input System" },
{ 17, 0x80, "Unknown Data Input System" },
{ 0, 0, 0 },
};
@ -120,7 +120,7 @@ grub_lspci_iter (int bus, int dev, int func, grub_pci_id_t pciid)
const char *sclass;
grub_pci_address_t addr;
grub_printf ("%02x:%02x.%x %04x:%04x.%d", 0, dev, func, pciid >> 16, pciid & 0xFFFF, func);
grub_printf ("%02x:%02x.%x %04x:%04x", 0, dev, func, pciid & 0xFFFF, pciid >> 16);
addr = grub_pci_make_address (bus, dev, func, 2);
class = grub_pci_read (addr);