From 4bf50a5ad3199cc5461413cac1983bc1a244420f Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 2 Jul 1999 04:17:16 +0000 Subject: 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. --- sys/pci/if_vr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/pci/if_vr.c') diff --git a/sys/pci/if_vr.c b/sys/pci/if_vr.c index 725a9ee..1aca3f9 100644 --- a/sys/pci/if_vr.c +++ b/sys/pci/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; } -- cgit v1.1