summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_rl.c
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/pci/if_rl.c
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/pci/if_rl.c')
-rw-r--r--sys/pci/if_rl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/pci/if_rl.c b/sys/pci/if_rl.c
index 5b0ac24..4a2035a 100644
--- a/sys/pci/if_rl.c
+++ b/sys/pci/if_rl.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_rl.c,v 1.32 1999/06/19 20:01:32 wpaul Exp wpaul $
+ * $Id: if_rl.c,v 1.17 1999/06/19 20:17:37 wpaul Exp $
*/
/*
@@ -127,7 +127,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: if_rl.c,v 1.32 1999/06/19 20:01:32 wpaul Exp wpaul $";
+ "$Id: if_rl.c,v 1.17 1999/06/19 20:17:37 wpaul Exp $";
#endif
/*
@@ -1076,7 +1076,7 @@ rl_attach(config_id, unit)
}
if (!pci_map_port(config_id, RL_PCI_LOIO,
- (u_int16_t *)&(sc->rl_bhandle))) {
+ (pci_port_t *)&(sc->rl_bhandle))) {
printf ("rl%d: couldn't map ports\n", unit);
goto fail;
}
OpenPOWER on IntegriCloud