summaryrefslogtreecommitdiffstats
path: root/sys/dev/vr
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-07-02 04:17:16 +0000
committerpeter <peter@FreeBSD.org>1999-07-02 04:17:16 +0000
commit4bf50a5ad3199cc5461413cac1983bc1a244420f (patch)
treeaa0c83048648c9c8d7001e3e5f0f9fd4837554a5 /sys/dev/vr
parenta8f734fb29a19d5a698ad58e323c5bc287e273ca (diff)
downloadFreeBSD-src-4bf50a5ad3199cc5461413cac1983bc1a244420f.zip
FreeBSD-src-4bf50a5ad3199cc5461413cac1983bc1a244420f.tar.gz
Change the cast in pci_map_port() from u_short * to pci_port_t * so it
compiles cleanly on the Alpha. (On the alpha, the port type is an int, not a short). Cast a couple of pointers to ints via 'uintptr_t' rather than 'unsigned int' since uintptr_t is long (64 bit) on Alpha, as are pointers.
Diffstat (limited to 'sys/dev/vr')
-rw-r--r--sys/dev/vr/if_vr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/vr/if_vr.c b/sys/dev/vr/if_vr.c
index 725a9ee..1aca3f9 100644
--- a/sys/dev/vr/if_vr.c
+++ b/sys/dev/vr/if_vr.c
@@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: if_vr.c,v 1.10 1999/04/24 20:14:01 peter Exp $
+ * $Id: if_vr.c,v 1.11 1999/05/09 17:07:03 peter Exp $
*/
/*
@@ -97,7 +97,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: if_vr.c,v 1.10 1999/04/24 20:14:01 peter Exp $";
+ "$Id: if_vr.c,v 1.11 1999/05/09 17:07:03 peter Exp $";
#endif
/*
@@ -966,7 +966,7 @@ vr_attach(config_id, unit)
}
if (!pci_map_port(config_id, VR_PCI_LOIO,
- (u_int16_t *)(&sc->vr_bhandle))) {
+ (pci_port_t *)(&sc->vr_bhandle))) {
printf ("vr%d: couldn't map ports\n", unit);
goto fail;
}
OpenPOWER on IntegriCloud