cvs commit: src/sys/i386/isa isa_dma.c

Poul-Henning Kamp phk at FreeBSD.org
Mon Jul 5 13:37:42 PDT 2004


phk         2004-07-05 20:37:42 UTC

  FreeBSD src repository

  Modified files:
    sys/i386/isa         isa_dma.c 
  Log:
  Something funny happened on the way to the floppy driver today...
  
  When two drivers share an ISA DMA channel, they both call isa_dmainit()
  and the second call fails if DIAGNOSTIC is on.
  
  If isa_dmainit() was already called successfully, just return silently.
  
  This only works if both drivers agree on the bounce buffer size,
  but since sharing DMA is usually only possible on very special
  hardware and then typically only for devices of the same type (which
  would have multiple instances of the same device driver), this is
  not a problem in practice.
  
  Revision  Changes    Path
  1.16      +11 -3     src/sys/i386/isa/isa_dma.c


More information about the cvs-src mailing list