From c9fa7a702af3390f5a6272650f74e50de2a5b400 Mon Sep 17 00:00:00 2001 From: mrg Date: Tue, 14 Aug 2001 11:55:38 +0000 Subject: [PATCH] add (u_long) casts for sparc64. --- sys/dev/ic/hd64570.c | 4 ++-- sys/dev/pci/if_ntwoc_pci.c | 4 ++-- sys/dev/pci/if_ti.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/dev/ic/hd64570.c b/sys/dev/ic/hd64570.c index b091a4a88f08..611e3ae37f1f 100644 --- a/sys/dev/ic/hd64570.c +++ b/sys/dev/ic/hd64570.c @@ -1,4 +1,4 @@ -/* $NetBSD: hd64570.c,v 1.18 2001/07/07 15:53:18 thorpej Exp $ */ +/* $NetBSD: hd64570.c,v 1.19 2001/08/14 11:55:38 mrg Exp $ */ /* * Copyright (c) 1999 Christian E. Hopps @@ -184,7 +184,7 @@ static void sca_frame_print(sca_port_t *, sca_desc_t *, u_int8_t *); #define sca_write_1(sc, reg, val) (sc)->sc_write_1(sc, reg, val) #define sca_write_2(sc, reg, val) (sc)->sc_write_2(sc, reg, val) -#define sca_page_addr(sc, addr) ((bus_addr_t)(addr) & (sc)->scu_pagemask) +#define sca_page_addr(sc, addr) ((bus_addr_t)(u_long)(addr) & (sc)->scu_pagemask) static inline void msci_write_1(sca_port_t *scp, u_int reg, u_int8_t val) diff --git a/sys/dev/pci/if_ntwoc_pci.c b/sys/dev/pci/if_ntwoc_pci.c index 840d4bf3d18e..859eb026a3e2 100644 --- a/sys/dev/pci/if_ntwoc_pci.c +++ b/sys/dev/pci/if_ntwoc_pci.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_ntwoc_pci.c,v 1.4 2000/12/28 22:59:13 sommerfeld Exp $ */ +/* $NetBSD: if_ntwoc_pci.c,v 1.5 2001/08/14 11:55:38 mrg Exp $ */ /* * Copyright (c) 1998 Vixie Enterprises @@ -718,7 +718,7 @@ ntwoc_pci_setup_dma(struct sca_softc *sc) */ if (sc->scu_allocsize != addroff) printf("ERROR: scu_allocsize != addroff: %lu != %lu\n", - sc->scu_allocsize, addroff); + (u_long)sc->scu_allocsize, addroff); } #if __NetBSD_Version__ >= 104160000 diff --git a/sys/dev/pci/if_ti.c b/sys/dev/pci/if_ti.c index e3cdaa6360c1..848e359ea82a 100644 --- a/sys/dev/pci/if_ti.c +++ b/sys/dev/pci/if_ti.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_ti.c,v 1.40 2001/07/19 16:36:15 thorpej Exp $ */ +/* $NetBSD: if_ti.c,v 1.41 2001/08/14 11:55:38 mrg Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -1690,7 +1690,7 @@ static void ti_attach(parent, self, aux) } } if (nolinear == 0) - sc->ti_vhandle = (void *)(sc->ti_bhandle); /* XXX XXX XXX */ + sc->ti_vhandle = (void *)(u_long)(sc->ti_bhandle); /* XXX XXX XXX */ else sc->ti_vhandle = NULL;