patch-2.2.17 linux/arch/sparc64/kernel/psycho.c
Next file: linux/arch/sparc64/kernel/rtrap.S
Previous file: linux/arch/sparc64/kernel/power.c
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Mon Sep 4 18:39:16 2000
- Orig file:
v2.2.16/arch/sparc64/kernel/psycho.c
- Orig date:
Mon Sep 4 18:37:51 2000
diff -u --recursive --new-file v2.2.16/arch/sparc64/kernel/psycho.c linux/arch/sparc64/kernel/psycho.c
@@ -1,4 +1,4 @@
-/* $Id: psycho.c,v 1.85.2.9 2000/05/01 06:33:49 davem Exp $
+/* $Id: psycho.c,v 1.85.2.10 2000/06/14 07:41:19 davem Exp $
* psycho.c: Ultra/AX U2P PCI controller support.
*
* Copyright (C) 1997 David S. Miller (davem@caipfs.rutgers.edu)
@@ -37,6 +37,12 @@
unsigned long pci_dvma_v2p_hash[PCI_DVMA_HASHSZ];
unsigned long pci_dvma_p2v_hash[PCI_DVMA_HASHSZ];
+/* If this is non-NULL it points to Sabre's DMA write-sync register
+ * which is used by drivers of devices behind bridges other than APB
+ * to synchronize DMA write streams with interrupt delivery.
+ */
+volatile u64 *pci_dma_wsync = NULL;
+
#ifndef CONFIG_PCI
int pcibios_present(void)
@@ -299,6 +305,8 @@
prom_printf("SABRE: Error, cannot map SABRE main registers.\n");
prom_halt();
}
+
+ pci_dma_wsync = &sabre->psycho_regs->pci_dma_wsync;
printk("PCI: Found SABRE, main regs at %p CTRL[%016lx]\n",
sabre->psycho_regs, sabre->psycho_regs->control);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)