diff options
| author | Bruce Evans <bde@FreeBSD.org> | 1998-08-10 17:21:49 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 1998-08-10 17:21:49 +0000 |
| commit | b97fc9487396ea5f41fd28ea6266057508425646 (patch) | |
| tree | 10a626ad9980389a258aa59b7d8e4ff1c9217938 /sys/dev/isp | |
| parent | 1fb5b23952fb2df3fe92127cf59f28f461aa8536 (diff) | |
Notes
Diffstat (limited to 'sys/dev/isp')
| -rw-r--r-- | sys/dev/isp/isp_pci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c index fd9778ef3fa4f..e01fce80f8ae2 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 { |
