diff options
author | Per Fogelstrom <pefo@cvs.openbsd.org> | 1998-03-16 09:38:53 +0000 |
---|---|---|
committer | Per Fogelstrom <pefo@cvs.openbsd.org> | 1998-03-16 09:38:53 +0000 |
commit | a963ca51673d0d081904efce31dd28f05d83e730 (patch) | |
tree | f51de935de8777cae9204bbaa29b11aa7007425d /sys/arch/arc/pci/pci_machdep.h | |
parent | c1aa08ed9b8f4b392adef8685e4f55ff3b189dbb (diff) |
DDB.
Support for Algorithmics R5000/R10000 evaluation board. So far only the
RM5260 is supported. RM5270 - RM7000 later. R5000 and R10000 depending
on access to cpu modules.
vm_machdep.c moved to arch/mips/mips.
Diffstat (limited to 'sys/arch/arc/pci/pci_machdep.h')
-rw-r--r-- | sys/arch/arc/pci/pci_machdep.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/arc/pci/pci_machdep.h b/sys/arch/arc/pci/pci_machdep.h index 5543d2c1f7e..dfeb5995c67 100644 --- a/sys/arch/arc/pci/pci_machdep.h +++ b/sys/arch/arc/pci/pci_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.h,v 1.2 1997/04/19 17:20:02 pefo Exp $ */ +/* $OpenBSD: pci_machdep.h,v 1.3 1998/03/16 09:38:49 pefo Exp $ */ /* * Copyright (c) 1996 Carnegie-Mellon University. @@ -61,6 +61,7 @@ struct arc_pci_chipset { int, int (*)(void *), void *, char *)); void (*pc_intr_disestablish) __P((void *, void *)); int (*pc_ether_hw_addr) __P((u_int8_t *)); + void (*pc_flush_cache) __P((vm_offset_t, int)); }; /* @@ -88,6 +89,10 @@ struct arc_pci_chipset { (*(c)->pc_intr_disestablish)((c)->pc_intr_v, (iv)) #define pci_ether_hw_addr(c, p) \ (*(c)->pc_ether_hw_addr)((p)) +#define pci_flush_cache(p, s) \ + (*(c)->pc_flush_cache)((p, s)) -vm_offset_t vtophys __P((void *)); +vm_offset_t vtophysaddr __P((struct device *, vm_offset_t)); +#define TULIP_KVATOPHYS(sc, va) vtophysaddr(&sc->tulip_dev, (vm_offset_t)va) +#define NCR_KVATOPHYS(sc, va) vtophysaddr(&sc->sc_dev, (vm_offset_t)va) |