Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ofw add OFW_PCI_PHYS_HI_BUS()



details:   https://anonhg.NetBSD.org/src/rev/d08d68aaa2f2
branches:  trunk
changeset: 503890:d08d68aaa2f2
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Feb 17 16:28:37 2001 +0000

description:
add OFW_PCI_PHYS_HI_BUS()

diffstat:

 sys/dev/ofw/ofw_pci.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 13fece77c7c9 -r d08d68aaa2f2 sys/dev/ofw/ofw_pci.h
--- a/sys/dev/ofw/ofw_pci.h     Sat Feb 17 16:11:00 2001 +0000
+++ b/sys/dev/ofw/ofw_pci.h     Sat Feb 17 16:28:37 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ofw_pci.h,v 1.3 2001/02/16 14:16:30 mrg Exp $  */
+/*     $NetBSD: ofw_pci.h,v 1.4 2001/02/17 16:28:37 mrg Exp $  */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -87,6 +87,8 @@
 #define        OFW_PCI_PHYS_HI_SPACE_MEM32     0x02000000
 #define        OFW_PCI_PHYS_HI_SPACE_MEM64     0x03000000
 
+#define OFW_PCI_PHYS_HI_BUS(hi) \
+       (((hi) & OFW_PCI_PHYS_HI_BUSMASK) >> OFW_PCI_PHYS_HI_BUSSHIFT)
 #define OFW_PCI_PHYS_HI_DEVICE(hi) \
        (((hi) & OFW_PCI_PHYS_HI_DEVICEMASK) >> OFW_PCI_PHYS_HI_DEVICESHIFT)
 #define OFW_PCI_PHYS_HI_FUNCTION(hi) \



Home | Main Index | Thread Index | Old Index