Make it compile (for alpha). The porting author might want to look
at this more closely than I have.
This commit is contained in:
parent
5e3caa8b52
commit
7c3d7f0df5
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mlx_pci.c,v 1.1 2001/02/04 17:05:12 ad Exp $ */
|
||||
/* $NetBSD: mlx_pci.c,v 1.2 2001/02/18 21:02:54 mjacob Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -414,7 +414,8 @@ mlx_v4_submit(struct mlx_softc *mlx, struct mlx_ccb *mc)
|
|||
if ((mlx_inl(mlx, MLX_V4REG_IDB) & MLX_V4_IDB_FULL) == 0) {
|
||||
/* Copy mailbox data to window. */
|
||||
bus_space_write_region_4(mlx->mlx_iot, mlx->mlx_ioh,
|
||||
MLX_V4REG_MAILBOX, mc->mc_mbox, MLX_V4_MAILBOX_LEN >> 2);
|
||||
MLX_V4REG_MAILBOX, (const u_int32_t *)mc->mc_mbox,
|
||||
MLX_V4_MAILBOX_LEN >> 2);
|
||||
bus_space_barrier(mlx->mlx_iot, mlx->mlx_ioh,
|
||||
MLX_V4REG_MAILBOX, MLX_V4_MAILBOX_LEN,
|
||||
BUS_SPACE_BARRIER_WRITE);
|
||||
|
@ -525,7 +526,8 @@ mlx_v5_submit(struct mlx_softc *mlx, struct mlx_ccb *mc)
|
|||
if ((mlx_inb(mlx, MLX_V5REG_IDB) & MLX_V5_IDB_EMPTY) != 0) {
|
||||
/* Copy mailbox data to window. */
|
||||
bus_space_write_region_4(mlx->mlx_iot, mlx->mlx_ioh,
|
||||
MLX_V5REG_MAILBOX, mc->mc_mbox, MLX_V5_MAILBOX_LEN >> 2);
|
||||
MLX_V5REG_MAILBOX, (const u_int32_t *)mc->mc_mbox,
|
||||
MLX_V5_MAILBOX_LEN >> 2);
|
||||
bus_space_barrier(mlx->mlx_iot, mlx->mlx_ioh,
|
||||
MLX_V5REG_MAILBOX, MLX_V5_MAILBOX_LEN,
|
||||
BUS_SPACE_BARRIER_WRITE);
|
||||
|
|
Loading…
Reference in New Issue