patch-2.4.0-test12 linux/arch/sparc/kernel/ioport.c
Next file: linux/arch/sparc/kernel/pcic.c
Previous file: linux/arch/sparc/config.in
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Mon Dec 11 12:37:02 2000
- Orig file:
v2.4.0-test11/linux/arch/sparc/kernel/ioport.c
- Orig date:
Tue Oct 31 12:42:26 2000
diff -u --recursive --new-file v2.4.0-test11/linux/arch/sparc/kernel/ioport.c linux/arch/sparc/kernel/ioport.c
@@ -1,4 +1,4 @@
-/* $Id: ioport.c,v 1.40 2000/10/10 09:44:46 anton Exp $
+/* $Id: ioport.c,v 1.42 2000/12/05 00:56:36 anton Exp $
* ioport.c: Simple io mapping allocator.
*
* Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
@@ -447,6 +447,7 @@
*/
void sbus_dma_sync_single(struct sbus_dev *sdev, u32 ba, long size, int direction)
{
+#if 0
unsigned long va;
struct resource *res;
@@ -461,6 +462,7 @@
* to a kernel near you. - Anton
*/
/* mmu_inval_dma_area(va, (size + PAGE_SIZE-1) & PAGE_MASK); */
+#endif
}
void sbus_dma_sync_sg(struct sbus_dev *sdev, struct scatterlist *sg, int n, int direction)
@@ -584,7 +586,8 @@
* Once the device is given the dma address, the device owns this memory
* until either pci_unmap_single or pci_dma_sync_single is performed.
*/
-dma_addr_t pci_map_single(struct pci_dev *hwdev, void *ptr, size_t size, int direction)
+dma_addr_t pci_map_single(struct pci_dev *hwdev, void *ptr, size_t size,
+ int direction)
{
if (direction == PCI_DMA_NONE)
BUG();
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)