From b23345605d663a8880dc702f702f07772da4249e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20E=C3=9Fer?= Date: Fri, 19 Jan 1996 19:03:47 +0000 Subject: [PATCH] Fix bad typo: > was used instead of >> ... Submitted by: Matt Thomas --- sys/dev/pci/pcireg.h | 8 ++++---- sys/pci/pcireg.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sys/dev/pci/pcireg.h b/sys/dev/pci/pcireg.h index a1fbcdf0c18f..510a786be90b 100644 --- a/sys/dev/pci/pcireg.h +++ b/sys/dev/pci/pcireg.h @@ -1,6 +1,6 @@ /************************************************************************** ** -** $Id: pcireg.h,v 1.4 1995/02/02 22:01:40 se Exp $ +** $Id: pcireg.h,v 1.5 1995/03/21 23:01:04 se Exp $ ** ** Names for PCI configuration space registers. ** @@ -158,9 +158,9 @@ #define PCI_SECONDARY_BUS_MASK 0x0000ff00 #define PCI_PRIMARY_BUS_MASK 0x000000ff -#define PCI_SUBORDINATE_BUS_EXTRACT(x) (((x) > 16) & 0xff) -#define PCI_SECONDARY_BUS_EXTRACT(x) (((x) > 8) & 0xff) -#define PCI_PRIMARY_BUS_EXTRACT(x) (((x) ) & 0xff) +#define PCI_SUBORDINATE_BUS_EXTRACT(x) (((x) >> 16) & 0xff) +#define PCI_SECONDARY_BUS_EXTRACT(x) (((x) >> 8) & 0xff) +#define PCI_PRIMARY_BUS_EXTRACT(x) (((x) ) & 0xff) #define PCI_PRIMARY_BUS_INSERT(x, y) (((x) & ~PCI_PRIMARY_BUS_MASK) | ((y) << 0)) #define PCI_SECONDARY_BUS_INSERT(x, y) (((x) & ~PCI_SECONDARY_BUS_MASK) | ((y) << 8)) diff --git a/sys/pci/pcireg.h b/sys/pci/pcireg.h index a1fbcdf0c18f..510a786be90b 100644 --- a/sys/pci/pcireg.h +++ b/sys/pci/pcireg.h @@ -1,6 +1,6 @@ /************************************************************************** ** -** $Id: pcireg.h,v 1.4 1995/02/02 22:01:40 se Exp $ +** $Id: pcireg.h,v 1.5 1995/03/21 23:01:04 se Exp $ ** ** Names for PCI configuration space registers. ** @@ -158,9 +158,9 @@ #define PCI_SECONDARY_BUS_MASK 0x0000ff00 #define PCI_PRIMARY_BUS_MASK 0x000000ff -#define PCI_SUBORDINATE_BUS_EXTRACT(x) (((x) > 16) & 0xff) -#define PCI_SECONDARY_BUS_EXTRACT(x) (((x) > 8) & 0xff) -#define PCI_PRIMARY_BUS_EXTRACT(x) (((x) ) & 0xff) +#define PCI_SUBORDINATE_BUS_EXTRACT(x) (((x) >> 16) & 0xff) +#define PCI_SECONDARY_BUS_EXTRACT(x) (((x) >> 8) & 0xff) +#define PCI_PRIMARY_BUS_EXTRACT(x) (((x) ) & 0xff) #define PCI_PRIMARY_BUS_INSERT(x, y) (((x) & ~PCI_PRIMARY_BUS_MASK) | ((y) << 0)) #define PCI_SECONDARY_BUS_INSERT(x, y) (((x) & ~PCI_SECONDARY_BUS_MASK) | ((y) << 8))