fix compilation on not-yeeloong
This commit is contained in:
parent
2226d68df1
commit
7eaef0ed51
1 changed files with 3 additions and 1 deletions
|
@ -49,7 +49,7 @@ grub_dma_get_phys (struct grub_pci_dma_chunk *ch)
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
||||||
void *
|
volatile void *
|
||||||
grub_dma_get_virt (struct grub_pci_dma_chunk *ch)
|
grub_dma_get_virt (struct grub_pci_dma_chunk *ch)
|
||||||
{
|
{
|
||||||
return (void *) ch;
|
return (void *) ch;
|
||||||
|
@ -91,6 +91,7 @@ grub_pci_iterate (grub_pci_iteratefunc_t hook)
|
||||||
if (id >> 16 == 0xFFFF)
|
if (id >> 16 == 0xFFFF)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
#ifdef GRUB_MACHINE_MIPS_YEELOONG
|
||||||
/* Skip ghosts. */
|
/* Skip ghosts. */
|
||||||
if (id == GRUB_YEELOONG_OHCI_PCIID
|
if (id == GRUB_YEELOONG_OHCI_PCIID
|
||||||
&& dev.function == GRUB_YEELOONG_OHCI_GHOST_FUNCTION)
|
&& dev.function == GRUB_YEELOONG_OHCI_GHOST_FUNCTION)
|
||||||
|
@ -98,6 +99,7 @@ grub_pci_iterate (grub_pci_iteratefunc_t hook)
|
||||||
if (id == GRUB_YEELOONG_EHCI_PCIID
|
if (id == GRUB_YEELOONG_EHCI_PCIID
|
||||||
&& dev.function == GRUB_YEELOONG_EHCI_GHOST_FUNCTION)
|
&& dev.function == GRUB_YEELOONG_EHCI_GHOST_FUNCTION)
|
||||||
continue;
|
continue;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (hook (dev, id))
|
if (hook (dev, id))
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue