All of lore.kernel.org
 help / color / mirror / Atom feed
* DMA_AUTOINIT missing in asm-sparc64/dma.h
@ 2004-06-26 10:11 Jeremy Huddleston
  2004-06-26 17:02 ` David S. Miller
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Jeremy Huddleston @ 2004-06-26 10:11 UTC (permalink / raw)
  To: sparclinux

[-- Attachment #1: Type: text/plain, Size: 2744 bytes --]

I was going to test out various PCI sound cards I've had lying around
when I noticed that DMA_AUTOINIT isn't defined in asm-sparc64/dma.h like
it is in other archs... most archs defined it as 2 while arm defines it
as 4.


  CC [M]  sound/oss/dmabuf.o
sound/oss/dmabuf.c: In function `sound_start_dma':
sound/oss/dmabuf.c:155: warning: implicit declaration of function
`disable_dma'
sound/oss/dmabuf.c:156: warning: implicit declaration of function
`clear_dma_ff'
sound/oss/dmabuf.c:157: warning: implicit declaration of function
`set_dma_mode'
sound/oss/dmabuf.c:158: warning: implicit declaration of function
`set_dma_addr'
sound/oss/dmabuf.c:159: warning: implicit declaration of function
`set_dma_count'
sound/oss/dmabuf.c:160: warning: implicit declaration of function
`enable_dma'
sound/oss/dmabuf.c: In function `DMAbuf_get_buffer_pointer':
sound/oss/dmabuf.c:653: warning: implicit declaration of function
`get_dma_residue'
sound/oss/dmabuf.c: In function `local_start_dma':
sound/oss/dmabuf.c:943: error: `DMA_AUTOINIT' undeclared (first use in
this function)
sound/oss/dmabuf.c:943: error: (Each undeclared identifier is reported
only once
sound/oss/dmabuf.c:943: error: for each function it appears in.)
make[2]: *** [sound/oss/dmabuf.o] Error 1
make[1]: *** [sound/oss] Error 2
make: *** [sound] Error 2

/usr/src/linux $ grep -nR DMA_AUTOINIT .
./arch/arm/kernel/dma-isa.c:31:#define ISA_DMA_AUTOINIT 0x10
./arch/arm/kernel/dma-isa.c:121:                if (dma->dma_mode &
DMA_AUTOINIT)
./arch/arm/kernel/dma-isa.c:122:                        mode |=
ISA_DMA_AUTOINIT;
./include/asm-ppc64/dma.h:150:#define DMA_AUTOINIT       0x10
./include/asm-m68k/apollodma.h:120:#define DMA_AUTOINIT 0x10
./include/asm-parisc/dma.h:43:#define DMA_AUTOINIT     0x10
./include/asm-mips/dma.h:151:#define DMA_AUTOINIT       0x10
./include/asm-ppc/dma.h:176:#define DMA_AUTOINIT                0x10
./include/asm-x86_64/dma.h:135:#define DMA_AUTOINIT     0x10
./include/asm-arm/dma.h:23:#define DMA_AUTOINIT  4
./include/asm-alpha/dma.h:197:#define DMA_AUTOINIT      0x10
./include/asm-i386/dma.h:135:#define DMA_AUTOINIT       0x10
./include/asm-arm26/dma.h:77:#define DMA_AUTOINIT        4
./include/asm-sh/mpc1211/dma.h:135:#define DMA_AUTOINIT 0x10
./include/asm/dma.h:135:#define DMA_AUTOINIT    0x10
./sound/oss/dmabuf.c:943:       sound_start_dma(dmap,
dmap->raw_buf_phys, dmap->bytes_in_use, dma_mode | DMA_AUTOINIT);
./sound/oss/os.h:48:#undef PSEUDO_DMA_AUTOINIT
./sound/pci/ice1712/ice1712.h:210:#define ICE1712_DMA_AUTOINIT         
0x10
./sound/pci/ice1712/ice1712.c:595:      outb(ICE1712_DMA_MODE_WRITE |
ICE1712_DMA_AUTOINIT, ice->ddma_port + 0x0b);
<./sound/isa snipped>

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-06-26 23:48 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-26 10:11 DMA_AUTOINIT missing in asm-sparc64/dma.h Jeremy Huddleston
2004-06-26 17:02 ` David S. Miller
2004-06-26 19:17 ` Jeremy Huddleston
2004-06-26 21:37 ` David S. Miller
2004-06-26 22:22 ` Jeremy Huddleston
2004-06-26 23:17 ` David S. Miller
2004-06-26 23:25 ` Jason Wever
2004-06-26 23:26 ` David S. Miller
2004-06-26 23:33 ` Jason Wever
2004-06-26 23:37 ` David S. Miller
2004-06-26 23:48 ` Jason Wever

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.