Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Change `nvram size' data type to `bus_size_t'.
details: https://anonhg.NetBSD.org/src/rev/dafc0f2638b8
branches: trunk
changeset: 499106:dafc0f2638b8
user: pk <pk%NetBSD.org@localhost>
date: Sat Nov 11 11:59:42 2000 +0000
description:
Change `nvram size' data type to `bus_size_t'.
diffstat:
sys/dev/ic/mk48txx.c | 12 ++++++------
sys/dev/ic/mk48txxreg.h | 4 ++--
2 files changed, 8 insertions(+), 8 deletions(-)
diffs (62 lines):
diff -r 79f81bba022b -r dafc0f2638b8 sys/dev/ic/mk48txx.c
--- a/sys/dev/ic/mk48txx.c Sat Nov 11 11:36:17 2000 +0000
+++ b/sys/dev/ic/mk48txx.c Sat Nov 11 11:59:42 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mk48txx.c,v 1.5 2000/11/11 11:03:31 pk Exp $ */
+/* $NetBSD: mk48txx.c,v 1.6 2000/11/11 11:59:42 pk Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -52,7 +52,7 @@
struct mk48txx {
bus_space_tag_t mk_bt; /* bus tag & handle */
bus_space_handle_t mk_bh; /* */
- u_int mk_nvramsz; /* Size of NVRAM on the chip */
+ bus_size_t mk_nvramsz; /* Size of NVRAM on the chip */
bus_size_t mk_clkoffset; /* Offset in NVRAM to clock bits */
u_int mk_year0; /* What year is represented on the system
by the chip's year counter at 0 */
@@ -67,7 +67,7 @@
struct {
const char *name;
- int nvramsz;
+ bus_size_t nvramsz;
bus_size_t clkoff;
int flags;
#define MK48TXX_EXT_REGISTERS 1 /* Has extended register set */
@@ -86,8 +86,8 @@
{
todr_chip_handle_t handle;
struct mk48txx *mk;
- int sz, nvramsz;
- bus_size_t clkoff;
+ bus_size_t nvramsz, clkoff;
+ int sz;
int i;
printf(": %s", model);
@@ -243,7 +243,7 @@
int
mk48txx_get_nvram_size(handle, vp)
todr_chip_handle_t handle;
- u_int *vp;
+ bus_size_t *vp;
{
struct mk48txx *mk = handle->cookie;
*vp = mk->mk_nvramsz;
diff -r 79f81bba022b -r dafc0f2638b8 sys/dev/ic/mk48txxreg.h
--- a/sys/dev/ic/mk48txxreg.h Sat Nov 11 11:36:17 2000 +0000
+++ b/sys/dev/ic/mk48txxreg.h Sat Nov 11 11:59:42 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mk48txxreg.h,v 1.3 2000/11/11 11:03:31 pk Exp $ */
+/* $NetBSD: mk48txxreg.h,v 1.4 2000/11/11 11:59:42 pk Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -86,4 +86,4 @@
const char *, int);
/* Retrieve size of the on-chip NVRAM area */
-int mk48txx_get_nvram_size(todr_chip_handle_t, u_int *);
+int mk48txx_get_nvram_size(todr_chip_handle_t, bus_size_t *);
Home |
Main Index |
Thread Index |
Old Index