2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>

* video/sm712.c (grub_video_sm712_setup): Use GRUB_PCI_REG_CLASS.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-01-20 20:49:18 +01:00
parent 449193d59e
commit fdb1b2ea4e
2 changed files with 3 additions and 2 deletions

View file

@ -48,6 +48,7 @@
* loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS. * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
* loader/i386/efi/xnu.c (find_framebuf): Likewise. * loader/i386/efi/xnu.c (find_framebuf): Likewise.
* video/efi_uga.c (find_framebuf): Likewise. * video/efi_uga.c (find_framebuf): Likewise.
* video/sm712.c (grub_video_sm712_setup): Likewise.
* util/pci.c (grub_pci_make_address): Use byte-addressed configuration * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
space. space.

View file

@ -74,7 +74,7 @@ grub_video_sm712_setup (unsigned int width, unsigned int height,
grub_pci_address_t addr; grub_pci_address_t addr;
grub_uint32_t class; grub_uint32_t class;
addr = grub_pci_make_address (dev, 2); addr = grub_pci_make_address (dev, GRUB_PCI_REG_CLASS);
class = grub_pci_read (addr); class = grub_pci_read (addr);
if (((class >> 16) & 0xffff) != 0x0300 || pciid != 0x0712126f) if (((class >> 16) & 0xffff) != 0x0300 || pciid != 0x0712126f)
@ -82,7 +82,7 @@ grub_video_sm712_setup (unsigned int width, unsigned int height,
found = 1; found = 1;
addr = grub_pci_make_address (dev, 4); addr = grub_pci_make_address (dev, GRUB_PCI_REG_ADDRESS_REG0);
framebuffer.base = grub_pci_read (addr); framebuffer.base = grub_pci_read (addr);
framebuffer.dev = dev; framebuffer.dev = dev;