summaryrefslogtreecommitdiff
path: root/lib/lz4_wrapper.c
diff options
context:
space:
mode:
authorReinoud Zandijk <reinoud@NetBSD.org>2021-02-24 19:44:42 +0300
committerTom Rini <trini@konsulko.com>2021-04-20 14:31:12 +0300
commit0a527fda7821c133ff34132b50e29e2b707db3f0 (patch)
treeae11525516541be71466e06d800c11ee9486a7b1 /lib/lz4_wrapper.c
parent57c675d699d524985f625bc0d4e72a55a97ebe8e (diff)
downloadu-boot-0a527fda7821c133ff34132b50e29e2b707db3f0.tar.xz
Fix IDE commands issued, fix endian issues, fix non MMIO
Fixes IDE issues found on the Malta board under Qemu: 1) DMA implied commands were sent to the controller in stead of the PIO variants. The rest of the code is DMA free and written for PIO operation. 2) direct pointer access was used to read and write the registers instead of the inb/inw/outb/outw functions/macros. Registers don't have to be memory mapped and ATA_CURR_BASE() does not have to return an offset from address zero. 3) Endian isues in ide_ident() and reading/writing data in general. Names were corrupted and sizes misreported. Tested malta_defconfig and maltael_defconfig to work again in Qemu. Signed-off-by: Reinoud Zandijk <reinoud@NetBSD.org> Tested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib/lz4_wrapper.c')
0 files changed, 0 insertions, 0 deletions