summaryrefslogtreecommitdiffstats
path: root/sys/dev/isp
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-08-10 17:21:49 +0000
committerbde <bde@FreeBSD.org>1998-08-10 17:21:49 +0000
commitd09c7eccb228027516b5db0d20d6eb3a3d6a5263 (patch)
treebbff64fe46338c0c5ffd53ec805c064c23dfd9b9 /sys/dev/isp
parentfd093a92abf593af9ca5e35b48ea1e8ec4468072 (diff)
downloadFreeBSD-src-d09c7eccb228027516b5db0d20d6eb3a3d6a5263.zip
FreeBSD-src-d09c7eccb228027516b5db0d20d6eb3a3d6a5263.tar.gz
Use [u]intptr_t instead of [unsigned] long to convert and/or represent
pointers. This finishes fixing conversions between pointers and integers of possibly different sizes in GENERIC.
Diffstat (limited to 'sys/dev/isp')
-rw-r--r--sys/dev/isp/isp_pci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c
index fd9778e..e01fce8 100644
--- a/sys/dev/isp/isp_pci.c
+++ b/sys/dev/isp/isp_pci.c
@@ -1,5 +1,5 @@
/* $FreeBSD$ */
-/* $Id: isp_pci.c,v 1.1 1998/04/22 18:10:34 mjacob Exp $ */
+/* $Id: isp_pci.c,v 1.2 1998/07/13 09:53:09 bde Exp $ */
/*
* PCI specific probe and attach routines for Qlogic ISP SCSI adapters.
* FreeBSD Version.
@@ -126,10 +126,10 @@ typedef int bus_space_tag_t;
typedef u_long bus_space_handle_t;
#define bus_space_read_2(st, sh, offset) \
(st == I386_BUS_SPACE_IO)? \
- inw((u_int16_t)sh + offset) : *((u_int16_t *) sh)
+ inw((u_int16_t)sh + offset) : *((u_int16_t *)(uintptr_t)sh)
#define bus_space_write_2(st, sh, offset, val) \
if (st == I386_BUS_SPACE_IO) outw((u_int16_t)sh + offset, val); else \
- *((u_int16_t *) sh) = val
+ *((u_int16_t *)(uintptr_t)sh) = val
struct isp_pcisoftc {
OpenPOWER on IntegriCloud