Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/pci use PCI_ID_CODE instead of a local macro (...



details:   https://anonhg.NetBSD.org/src/rev/ec113ff651bc
branches:  trunk
changeset: 533248:ec113ff651bc
user:      drochner <drochner%NetBSD.org@localhost>
date:      Tue Jun 25 21:18:32 2002 +0000

description:
use PCI_ID_CODE instead of a local macro (cosmetics)

diffstat:

 sys/arch/i386/pci/pci_machdep.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (30 lines):

diff -r 9aaf04726cb2 -r ec113ff651bc sys/arch/i386/pci/pci_machdep.c
--- a/sys/arch/i386/pci/pci_machdep.c   Tue Jun 25 21:07:42 2002 +0000
+++ b/sys/arch/i386/pci/pci_machdep.c   Tue Jun 25 21:18:32 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pci_machdep.c,v 1.44 2002/02/28 21:48:06 thorpej Exp $ */
+/*     $NetBSD: pci_machdep.c,v 1.45 2002/06/25 21:18:32 drochner Exp $        */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -80,7 +80,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.44 2002/02/28 21:48:06 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.45 2002/06/25 21:18:32 drochner Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -130,10 +130,8 @@
 
 #define _m1tag(b, d, f) \
        (PCI_MODE1_ENABLE | ((b) << 16) | ((d) << 11) | ((f) << 8))
-#define _id(v, p) \
-       (((v) << PCI_VENDOR_SHIFT) | ((p) << PCI_PRODUCT_SHIFT))
 #define _qe(bus, dev, fcn, vend, prod) \
-       {_m1tag(bus, dev, fcn), _id(vend, prod)}
+       {_m1tag(bus, dev, fcn), PCI_ID_CODE(vend, prod)}
 struct {
        u_int32_t tag;
        pcireg_t id;



Home | Main Index | Thread Index | Old Index