Re: [PARPORT] Paraller port in ECP mode (fwd)

From: Damian Parus (halley@hybride.pl)
Date: Mon Mar 31 2003 - 03:25:27 EST

  • Next message: Tim Waugh: "Re: [PARPORT] [PATCH] to drivers/parport/ieee1284_ops.c to fix timing dependent printer hang"

    > The kernel actually contains code to do DMA output to the parallel port,
    > no need to rewrite that support yourself.

    Thx, but how can I write i.e. 100 bytes to port? outb function send one
    byte, and now I must call 100 times outb function to send all data. In DMA
    mode I can put buffer address to send...

    Greets,
    d.

    >
    > Blaise
    >
    > Quoted from Damian Parus on Fri, Mar 28, 2003 at 08:51:24AM +0100.
    > >
    > > Hello
    > >
    > > I must write program which send data to paraller port via DMA. I switch in
    > > bios paraller port mode to ECP, but how i must send data to port? I know
    > > that i must use set_dma_addr(), enable_dma() etc functions, but, for
    > > example, which dma channel I must use? Wihich address must be in
    > > set_dma_addr()? And finally, wihich function I must use to write to port
    > > :)? Only write to memory? Maybe someone have source of program for
    > > example?
    > >
    > > Sorry for my english, is not very well, but I'm from Poland and... I know,
    > > I know, I should learn :(
    > >
    > > Thanks for help,
    > > Damian Parus
    > >
    > > PS. Sorry for my second email (possibly) but I'm not sure that I Was send
    > > that previous time... Sorry.
    > >
    > >
    > > -- To unsubscribe, send mail to: linux-parport-request@torque.net --
    > > -- with the single word "unsubscribe" in the body of the message. --
    > >
    >
    > --
    > Blaise Gassend gassend@alum.mit.edu
    > MIT Laboratory for Computer Science (617) 253-7343
    > Room NE43-212, Cambridge, MA 02141 http://blaisegassend.com
    >

    -- To unsubscribe, send mail to: linux-parport-request@torque.net --
    -- with the single word "unsubscribe" in the body of the message. --



    This archive was generated by hypermail 2b29 : Mon Mar 31 2003 - 03:34:09 EST