Re: Solaris DDI/DMA example driver

From: William D. Waddington (william.waddington_at_beezmo.com)
Date: 04/17/04

  • Next message: Goshiwen: "how to access files on another workstation"
    Date: Sat, 17 Apr 2004 17:01:45 GMT
    
    

    On Sat, 17 Apr 2004 16:21:44 GMT, kilian@raceme.UUCP (Alan Kilian) wrote:

    >
    >Does anyone have an example driver that uses the DDI/DDK driver routines to do
    >DMA to a device on the PCI bus?
    >
    >I have DMA reads working, but I can't seem to get DMA writes working.
    >
    >I suspect something simple and a peek at another driver's xxxwrite() routine
    >may be the bit I need.
    >
    >Thanks,
    > -Alan

    You are welcome to take a look at mine. The x86 versions do DMA chaining,
    the SPARC versions don't. Take a look at the strategy() code. Unfortunately,
    there is a whole lot of code here that supports compatibility with earlier versions,
    so there may be too much to dig through. These are Sol 7 drivers that haven't
    been re-compiled for 8, 9 or 10 (and probably won't w/out some cleanup) but the
    binaries do run on 7, 8, 9 - and probably 10. They are for our DR11 and hardcopy
    PLX-9080 based boards.

    I don't know if Phil's generic base Pci driver includes DMA examples, but maybe
    another of his drivers does. They are sure to be easier to read than mine :)

    Waddington: http://www.tahomatech.com/downloads/drivers/solaris_7/pci/

    Philip Brown: http://www.bolthole.com/solaris/drivers/

    Good Luck,
    Bill

    --------------------------------------------
    William D Waddington
    Bainbridge Island, WA, USA
    william.waddington@beezmo.com
    --------------------------------------------
    "Even bugs...are unexpected signposts on
    the long road of creativity..." - Ken Burtch


  • Next message: Goshiwen: "how to access files on another workstation"

    Relevant Pages

    • dma timeout
      ... my *old hdd* got up with dma mode. ... PIIX4: IDE controller at PCI slot 00:04.1 ... ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 ... hda: attached ide-disk driver. ...
      (Debian-User)
    • Re: [RFC v2 2/5] dmaengine: Add slave DMA interface
      ... DMA engine driver is free to decide on its own. ... with, than slave transfers, which may be quite slow depending on the ...
      (Linux-Kernel)
    • Re: [PATCH] Blackfin: blackfin on-chip SPI controller driver
      ... patch, rather than initial-plus-cleanups. ... Please put this in Kconfig up with the other SPI controller drivers, ... relevant points in the driver. ... place to reverse any DMA mappings ... ...
      (Linux-Kernel)
    • [PATCH] (Longhaul 1/5) PCI: Protect bus master DMA from Longhaul by rw semaphores
      ... I'm trying not to break DMA. ... Current version of longhaul simply clears bus master bit on every device. ... they can easily saturate the PCI bus all the time). ... It is always possible to add support for longhaul to driver. ...
      (Linux-Kernel)
    • [PATCH RFC v5] net: add PCINet driver
      ... PCI bus as its transport mechanism. ... RFC v4 -> RFC v5: ... use seperate DMA channels for RX and TX ... Thanks to all of those who have posted comments about the driver. ...
      (Linux-Kernel)