ia64/xen-unstable
changeset 18128:770ca32e1925
Fix a typo in the macro PCI_BDF2()
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Tue Jul 22 08:01:56 2008 +0100 (2008-07-22) |
parents | aa4d69e16f0e |
children | 0bf73f557f41 |
files | xen/include/xen/pci.h |
line diff
1.1 --- a/xen/include/xen/pci.h Tue Jul 22 08:00:43 2008 +0100 1.2 +++ b/xen/include/xen/pci.h Tue Jul 22 08:01:56 2008 +0100 1.3 @@ -24,10 +24,10 @@ 1.4 #define PCI_BUS(bdf) (((bdf) >> 8) & 0xff) 1.5 #define PCI_SLOT(bdf) (((bdf) >> 3) & 0x1f) 1.6 #define PCI_FUNC(bdf) ((bdf) & 0x07) 1.7 -#define PCI_DEVFN(d,f) (((d & 0x1f) << 3) | (f & 0x07)) 1.8 +#define PCI_DEVFN(d,f) ((((d) & 0x1f) << 3) | ((f) & 0x07)) 1.9 #define PCI_DEVFN2(bdf) ((bdf) & 0xff) 1.10 -#define PCI_BDF(b,d,f) (((b * 0xff) << 8) | PCI_DEVFN(d,f)) 1.11 -#define PCI_BDF2(b,df) (((b & 0xff) << 8) | (df & 0xff)) 1.12 +#define PCI_BDF(b,d,f) ((((b) & 0xff) << 8) | PCI_DEVFN(d,f)) 1.13 +#define PCI_BDF2(b,df) ((((b) & 0xff) << 8) | ((df) & 0xff)) 1.14 1.15 struct pci_dev { 1.16 struct list_head alldevs_list;