Use more proper macro.

This commit is contained in:
tsutsui 2006-07-21 18:11:01 +00:00
parent 3c612311d0
commit a75de8e2db
5 changed files with 15 additions and 30 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: grf_dv.c,v 1.33 2006/07/21 10:01:39 tsutsui Exp $ */
/* $NetBSD: grf_dv.c,v 1.34 2006/07/21 18:11:01 tsutsui Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@ -117,7 +117,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: grf_dv.c,v 1.33 2006/07/21 10:01:39 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: grf_dv.c,v 1.34 2006/07/21 18:11:01 tsutsui Exp $");
#include "opt_compat_hpux.h"
@ -681,10 +681,7 @@ dvboxcnattach(bus_space_tag_t bst, bus_addr_t addr, int scode)
return 1;
}
if (DIO_ISDIOII(scode))
size = DIOII_SIZE(va);
else
size = DIOCSIZE;
size = DIO_SIZE(scode, va);
bus_space_unmap(bst, bsh, PAGE_SIZE);
if (bus_space_map(bst, addr, size, 0, &bsh))

View File

@ -1,4 +1,4 @@
/* $NetBSD: grf_gb.c,v 1.32 2006/07/21 10:01:39 tsutsui Exp $ */
/* $NetBSD: grf_gb.c,v 1.33 2006/07/21 18:11:01 tsutsui Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@ -121,7 +121,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: grf_gb.c,v 1.32 2006/07/21 10:01:39 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: grf_gb.c,v 1.33 2006/07/21 18:11:01 tsutsui Exp $");
#include "opt_compat_hpux.h"
@ -629,10 +629,7 @@ gboxcnattach(bus_space_tag_t bst, bus_addr_t addr, int scode)
return 1;
}
if (DIO_ISDIOII(scode))
size = DIOII_SIZE(va);
else
size = DIOCSIZE;
size = DIO_SIZE(scode, va);
bus_space_unmap(bst, bsh, PAGE_SIZE);
if (bus_space_map(bst, addr, size, 0, &bsh))

View File

@ -1,4 +1,4 @@
/* $NetBSD: grf_hy.c,v 1.30 2006/07/21 10:01:39 tsutsui Exp $ */
/* $NetBSD: grf_hy.c,v 1.31 2006/07/21 18:11:01 tsutsui Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@ -120,7 +120,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: grf_hy.c,v 1.30 2006/07/21 10:01:39 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: grf_hy.c,v 1.31 2006/07/21 18:11:01 tsutsui Exp $");
#include "opt_compat_hpux.h"
@ -771,10 +771,7 @@ hypercnattach(bus_space_tag_t bst, bus_addr_t addr, int scode)
return 1;
}
if (DIO_ISDIOII(scode))
size = DIOII_SIZE(va);
else
size = DIOCSIZE;
size = DIO_SIZE(scode, va);
bus_space_unmap(bst, bsh, PAGE_SIZE);
if (bus_space_map(bst, addr, size, 0, &bsh))

View File

@ -1,4 +1,4 @@
/* $NetBSD: grf_rb.c,v 1.33 2006/07/21 10:01:39 tsutsui Exp $ */
/* $NetBSD: grf_rb.c,v 1.34 2006/07/21 18:11:01 tsutsui Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@ -117,7 +117,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: grf_rb.c,v 1.33 2006/07/21 10:01:39 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: grf_rb.c,v 1.34 2006/07/21 18:11:01 tsutsui Exp $");
#include "opt_compat_hpux.h"
@ -628,10 +628,7 @@ rboxcnattach(bus_space_tag_t bst, bus_addr_t addr, int scode)
return 1;
}
if (DIO_ISDIOII(scode))
size = DIOII_SIZE(va);
else
size = DIOCSIZE;
size = DIO_SIZE(scode, va);
bus_space_unmap(bst, bsh, PAGE_SIZE);
if (bus_space_map(bst, addr, size, 0, &bsh))

View File

@ -1,4 +1,4 @@
/* $NetBSD: grf_tc.c,v 1.35 2006/07/21 10:01:39 tsutsui Exp $ */
/* $NetBSD: grf_tc.c,v 1.36 2006/07/21 18:11:01 tsutsui Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@ -117,7 +117,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: grf_tc.c,v 1.35 2006/07/21 10:01:39 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: grf_tc.c,v 1.36 2006/07/21 18:11:01 tsutsui Exp $");
#include "opt_compat_hpux.h"
@ -752,10 +752,7 @@ topcatcnattach(bus_space_tag_t bst, bus_addr_t addr, int scode)
return 1;
}
if (DIO_ISDIOII(scode))
size = DIOII_SIZE(va);
else
size = DIOCSIZE;
size = DIO_SIZE(scode, va);
bus_space_unmap(bst, bsh, PAGE_SIZE);
if (bus_space_map(bst, addr, size, 0, &bsh))