patch-2.3.18 linux/arch/sparc64/kernel/pci_impl.h
Next file: linux/arch/sparc64/kernel/pci_psycho.c
Previous file: linux/arch/sparc64/kernel/pci_common.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Fri Sep 10 11:06:19 1999
- Orig file:
v2.3.17/linux/arch/sparc64/kernel/pci_impl.h
- Orig date:
Tue Aug 31 17:29:13 1999
diff -u --recursive --new-file v2.3.17/linux/arch/sparc64/kernel/pci_impl.h linux/arch/sparc64/kernel/pci_impl.h
@@ -1,4 +1,4 @@
-/* $Id: pci_impl.h,v 1.1 1999/08/30 10:00:44 davem Exp $
+/* $Id: pci_impl.h,v 1.3 1999/09/10 10:40:44 davem Exp $
* pci_impl.h: Helper definitions for PCI controller support.
*
* Copyright (C) 1999 David S. Miller (davem@redhat.com)
@@ -8,7 +8,7 @@
#define PCI_IMPL_H
#include <linux/types.h>
-#include <asm/spinlock.h>
+#include <linux/spinlock.h>
#include <asm/io.h>
extern spinlock_t pci_controller_lock;
@@ -35,12 +35,12 @@
extern void pci_scan_for_parity_error(struct pci_controller_info *, struct pci_pbm_info *, struct pci_bus *);
/* IOMMU/DVMA initialization. */
-extern unsigned long pci_dvma_offset;
-extern unsigned long pci_dvma_mask;
#define PCI_DVMA_HASH_NONE ~0UL
-static __inline__ void set_dvma_hash(unsigned long paddr, unsigned long daddr)
+static __inline__ void set_dvma_hash(unsigned long dvma_offset,
+ unsigned long paddr,
+ unsigned long daddr)
{
- unsigned long dvma_addr = pci_dvma_offset + daddr;
+ unsigned long dvma_addr = dvma_offset + daddr;
unsigned long vaddr = (unsigned long)__va(paddr);
pci_dvma_v2p_hash[pci_dvma_ahashfn(paddr)] = dvma_addr - vaddr;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)