use bus_space_read_region_1() when reading bios from pci rom
authorjsg <jsg@openbsd.org>
Tue, 14 Dec 2021 12:48:15 +0000 (12:48 +0000)
committerjsg <jsg@openbsd.org>
Tue, 14 Dec 2021 12:48:15 +0000 (12:48 +0000)
commitce0b60d530f60b736ec74e80445fb8420f399197
treef313e0799a8551721278d7a634b2fd536201d674
parent75657dc71465268086218d4328cc00208976c675
use bus_space_read_region_1() when reading bios from pci rom

Avoids 'BIOS signature incorrect 0 0' warning seen on sparc64
(where pci is mapped little endian) reported by Ted Bullock.
sys/dev/pci/drm/amd/amdgpu/amdgpu_bios.c
sys/dev/pci/drm/radeon/radeon_bios.c