[lkml]   [2001]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: DOS2linux
    Alan Cox wrote:
    > Oh god, thats the deep magic EISA weirdness department

    *gnarf* ;-) Not good for a beginner like me I assume? :-(

    > Well actually its one of those things that needs writing cleanly but
    > currently appears in its own form in some EISA drivers

    Hmm... with 'writing cleanly' you mean that there should become things
    available like eisa_register_device() etc...?

    > EISA slots are I/O mapped at 0x1000, 0x2000, 0x3000, 0x4000 -> 0x8000
    > The ID port is at base+0xc80
    > Configuration data follows at base+0xc84, 0xc88 ...

    Yep, that was also what I figured out.

    > I would assume the 320 byte buffer is providing this same data block, and
    > maybe more but I don't know the details.

    That is also what I think, but the problem is that I don't know at
    which offset to look for that data...
    If you look at the code:

    static int getslotinfo( void )
    static char buff[320], *s=&buff[0]; int valid;

    int86x(0x15, &inregs, &outregs, &sregs);
    if(!valid) {[itconf]; DiSC_Id.dma=buff[dmachd]; }

    Would it help if i told you that itconf and dmachd are defined as (see )

    #define itconf 0xb2
    #define dmachd 0xc0

    So if my EISA board is at 0x1000, i should be able to read these
    values from 0x1000+0xb2 and 0x1000+0xc0 ??? And if 'yes', any idea
    about how to read them? (byte, word, long...? My guess would be as a
    byte, but I'm not sure...)

    > I thought EISA boards had gone away

    Unfortunately... the device I am trying to write a driver for is
    especially designed for our university. Not many of those boards
    exist in the world I guess :-(
    (I hope that last sentence didn't take away your interest in my
    project ;-)


    Ing. Bart Vandewoestyne
    Hugo Verrieststraat 48 GSM: +32 (0)478 397 697
    B-8550 Zwevegem
    "Any fool can know, the point is to understand." - Albert Einstein
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 12:58    [W:0.025 / U:0.808 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site