diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2003-12-06 14:40:34 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2003-12-06 14:40:34 +0000 |
commit | e9b9added1d94fa4fa8ea5a018e1aa548a0cbc4e (patch) | |
tree | 017f5da9a9ec10184b4bf87be38256a0021de2cf /sys/dev/pci | |
parent | 1b25afb8138fe6359c42307db1dd62544c8428a4 (diff) |
Mark u_int64_t constants with ULL to make gcc3 happy.
ok drahn@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/isp_pci.c | 6 | ||||
-rw-r--r-- | sys/dev/pci/pcireg.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/isp_pci.c b/sys/dev/pci/isp_pci.c index 195753c7fb5..937609b72e0 100644 --- a/sys/dev/pci/isp_pci.c +++ b/sys/dev/pci/isp_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isp_pci.c,v 1.34 2003/06/26 00:47:47 mickey Exp $ */ +/* $OpenBSD: isp_pci.c,v 1.35 2003/12/06 14:40:33 grange Exp $ */ /* * PCI specific probe and attach routines for Qlogic ISP SCSI adapters. * @@ -681,8 +681,8 @@ isp_pci_attach(struct device *parent, struct device *self, void *aux) printf(": %s\n", intrstr); if (IS_FC(isp)) { - DEFAULT_NODEWWN(isp) = 0x400000007F000003; - DEFAULT_PORTWWN(isp) = 0x400000007F000003; + DEFAULT_NODEWWN(isp) = 0x400000007F000003ULL; + DEFAULT_PORTWWN(isp) = 0x400000007F000003ULL; } isp->isp_confopts = self->dv_cfdata->cf_flags; diff --git a/sys/dev/pci/pcireg.h b/sys/dev/pci/pcireg.h index e70882fea25..e5061ddd0b8 100644 --- a/sys/dev/pci/pcireg.h +++ b/sys/dev/pci/pcireg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pcireg.h,v 1.25 2003/11/16 20:30:06 avsm Exp $ */ +/* $OpenBSD: pcireg.h,v 1.26 2003/12/06 14:40:33 grange Exp $ */ /* $NetBSD: pcireg.h,v 1.26 2000/05/10 16:58:42 thorpej Exp $ */ /* @@ -413,7 +413,7 @@ typedef u_int8_t pci_revision_t; ((mr) & PCI_MAPREG_MEM64_ADDR_MASK) #define PCI_MAPREG_MEM64_SIZE(mr) \ (PCI_MAPREG_MEM64_ADDR(mr) & -PCI_MAPREG_MEM64_ADDR(mr)) -#define PCI_MAPREG_MEM64_ADDR_MASK 0xfffffffffffffff0 +#define PCI_MAPREG_MEM64_ADDR_MASK 0xfffffffffffffff0ULL #define PCI_MAPREG_IO_ADDR(mr) \ ((mr) & PCI_MAPREG_IO_ADDR_MASK) |