Skip to content
Commit 635a4c42 authored by Reinoud Zandijk's avatar Reinoud Zandijk Committed by Tom Rini
Browse files

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: default avatarReinoud Zandijk <reinoud@NetBSD.org>
Tested-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
parent 194f73f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment