#1332 XDMA doesn't like BOCHS DMA controller | Multiple sector setting

open
nobody
5
2015-02-10
2013-06-06
dos386
No

Testing image sent by mail.

Try to load XDMA 3.1 in BOCHS.

Expected effect: finding a usable controller
Observed effect: "BAD controller"

On real hardware, 4 from 5 PC's are OK, just 1 also says "BAD".

http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/dos/udma/xdma/

[code]
I_CtlE mov si,NEMsg ;BAAAD News! Point to error message.
I_PCEr jmp I_EOut ;Go display error message and exit.
I_GotD mov dword [NEMsg],"BAD " ;Change to "BAD controller" msg.
push bx ;Save PCI bus/device/function.
mov di,4 ;Get low-order PCI command byte.
call I_PCID
pop bx ;Reload PCI bus/device/function.
not cl ;Mask Bus-Master and I-O Space bits.
and cl,005h ;Is this how our controller is set up?
jnz I_CtlE ;No? Display error message and exit!
[/code]

Related

Code: code

Discussion

  • dos386

    dos386 - 2013-06-06
    I_CtlE  mov si,NEMsg     ;BAAAD News!  Point to error message.
    I_PCEr  jmp I_EOut       ;Go display error message and exit.
    I_GotD  mov dword [NEMsg],"BAD "  ;Change to "BAD controller" msg.
        push    bx       ;Save PCI bus/device/function.
        mov di,4         ;Get low-order PCI command byte.
        call    I_PCID
        pop bx      ;Reload PCI bus/device/function.
        not cl      ;Mask Bus-Master and I-O Space bits.
        and cl,005h     ;Is this how our controller is set up?
        jnz I_CtlE      ;No?  Display error message and exit!
    

    Additonally, the "Multiple sector setting" is invalid (ZERO) and can't be changed (use IDECHECK to test).

     
  • Volker Ruppert

    Volker Ruppert - 2014-07-27

    XDMA expects the "busmaster" command bit to be set by the PCI BIOS, but both the Bochs BIOS and SeaBIOS don't do that, since they use IDE in PIO mode only.
    The IDECHECK issue has not been tested yet.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks