Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Move the declaration of pci_conf_hook down to <machine/p...



details:   https://anonhg.NetBSD.org/src/rev/c9044704ba90
branches:  trunk
changeset: 522117:c9044704ba90
user:      kleink <kleink%NetBSD.org@localhost>
date:      Mon Feb 11 17:24:00 2002 +0000

description:
Move the declaration of pci_conf_hook down to <machine/pci_machdep.h>;
a port may choose to implement it not as a function but i.e. as a
pci_chipset_tag_t function vector.

diffstat:

 sys/arch/walnut/include/pci_machdep.h |  3 ++-
 sys/dev/pci/pciconf.h                 |  8 +-------
 2 files changed, 3 insertions(+), 8 deletions(-)

diffs (36 lines):

diff -r 9b7ece616250 -r c9044704ba90 sys/arch/walnut/include/pci_machdep.h
--- a/sys/arch/walnut/include/pci_machdep.h     Mon Feb 11 17:22:39 2002 +0000
+++ b/sys/arch/walnut/include/pci_machdep.h     Mon Feb 11 17:24:00 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pci_machdep.h,v 1.1 2001/06/13 06:01:57 simonb Exp $   */
+/*     $NetBSD: pci_machdep.h,v 1.2 2002/02/11 17:24:01 kleink Exp $   */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All rights reserved.
@@ -76,6 +76,7 @@
 void           *pci_intr_establish(pci_chipset_tag_t, pci_intr_handle_t,
                    int, int (*)(void *), void *);
 void           pci_intr_disestablish(pci_chipset_tag_t, void *);
+int            pci_conf_hook(pci_chipset_tag_t, int, int, int, int);
 
 void           pci_machdep_init(void);
 /*
diff -r 9b7ece616250 -r c9044704ba90 sys/dev/pci/pciconf.h
--- a/sys/dev/pci/pciconf.h     Mon Feb 11 17:22:39 2002 +0000
+++ b/sys/dev/pci/pciconf.h     Mon Feb 11 17:24:00 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pciconf.h,v 1.5 2001/11/28 23:48:34 thorpej Exp $      */
+/*     $NetBSD: pciconf.h,v 1.6 2002/02/11 17:24:00 kleink Exp $       */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -55,9 +55,3 @@
 #define PCI_CONF_ENABLE_BM     0x20
 
 #define PCI_CONF_ALL           0x3f
-
-#ifdef __HAVE_PCI_CONF_HOOK
-/* Defined in machdep code. returns 0 if it's*/
-/* args: chipset_tag, bus,dev, function, id */
-int    pci_conf_hook(pci_chipset_tag_t, int, int, int, int);
-#endif



Home | Main Index | Thread Index | Old Index