Changeset View
Changeset View
Standalone View
Standalone View
head/stand/efi/loader/framebuffer.c
Show First 20 Lines • Show All 238 Lines • ▼ Show 20 Lines | if (status != EFI_SUCCESS) { | ||||
free(buf); | free(buf); | ||||
return (NULL); | return (NULL); | ||||
} | } | ||||
bufsz /= sizeof(EFI_HANDLE); | bufsz /= sizeof(EFI_HANDLE); | ||||
/* Get the PCI I/O interface of the first handle that supports it. */ | /* Get the PCI I/O interface of the first handle that supports it. */ | ||||
pciio = NULL; | pciio = NULL; | ||||
for (hp = buf; hp < buf + bufsz; hp++) { | for (hp = buf; hp < buf + bufsz; hp++) { | ||||
status = BS->HandleProtocol(*hp, &pciio_guid, (void **)&pciio); | status = OpenProtocolByHandle(*hp, &pciio_guid, | ||||
(void **)&pciio); | |||||
if (status == EFI_SUCCESS) { | if (status == EFI_SUCCESS) { | ||||
free(buf); | free(buf); | ||||
return (pciio); | return (pciio); | ||||
} | } | ||||
} | } | ||||
free(buf); | free(buf); | ||||
return (NULL); | return (NULL); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 509 Lines • Show Last 20 Lines |