Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hp700/hp700 u_intXX_t -> uintXX_t
details: https://anonhg.NetBSD.org/src/rev/f5888eff5f4e
branches: trunk
changeset: 777577:f5888eff5f4e
user: skrll <skrll%NetBSD.org@localhost>
date: Thu Feb 23 21:38:53 2012 +0000
description:
u_intXX_t -> uintXX_t
Same code before and after.
diffstat:
sys/arch/hp700/hp700/disksubr.c | 6 +-
sys/arch/hp700/hp700/machdep.c | 8 +-
sys/arch/hp700/hp700/machdep.h | 4 +-
sys/arch/hp700/hp700/mainbus.c | 228 ++++++++++++++++++++--------------------
4 files changed, 123 insertions(+), 123 deletions(-)
diffs (truncated from 565 to 300 lines):
diff -r 02aaaf9d3f14 -r f5888eff5f4e sys/arch/hp700/hp700/disksubr.c
--- a/sys/arch/hp700/hp700/disksubr.c Thu Feb 23 21:07:35 2012 +0000
+++ b/sys/arch/hp700/hp700/disksubr.c Thu Feb 23 21:38:53 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disksubr.c,v 1.26 2009/05/08 09:33:58 skrll Exp $ */
+/* $NetBSD: disksubr.c,v 1.27 2012/02/23 21:38:53 skrll Exp $ */
/* $OpenBSD: disksubr.c,v 1.6 2000/10/18 21:00:34 mickey Exp $ */
@@ -68,7 +68,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.26 2009/05/08 09:33:58 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.27 2012/02/23 21:38:53 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -92,7 +92,7 @@
{
struct disklabel *dlp;
const char *msg = NULL;
- u_int16_t cksum;
+ uint16_t cksum;
/* don't read the on-disk label if we are in spoofed-only mode */
if (spoofonly)
diff -r 02aaaf9d3f14 -r f5888eff5f4e sys/arch/hp700/hp700/machdep.c
--- a/sys/arch/hp700/hp700/machdep.c Thu Feb 23 21:07:35 2012 +0000
+++ b/sys/arch/hp700/hp700/machdep.c Thu Feb 23 21:38:53 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.107 2012/02/05 08:24:43 skrll Exp $ */
+/* $NetBSD: machdep.c,v 1.108 2012/02/23 21:38:53 skrll Exp $ */
/*-
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.107 2012/02/05 08:24:43 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.108 2012/02/23 21:38:53 skrll Exp $");
#include "opt_cputype.h"
#include "opt_ddb.h"
@@ -152,7 +152,7 @@
/*
* things to not kill
*/
-volatile u_int8_t *machine_ledaddr;
+volatile uint8_t *machine_ledaddr;
int machine_ledword, machine_leds;
/*
@@ -1457,7 +1457,7 @@
/* NOTREACHED */
}
-u_int32_t dumpmag = 0x8fca0101; /* magic number */
+uint32_t dumpmag = 0x8fca0101; /* magic number */
int dumpsize = 0; /* pages */
long dumplo = 0; /* blocks */
diff -r 02aaaf9d3f14 -r f5888eff5f4e sys/arch/hp700/hp700/machdep.h
--- a/sys/arch/hp700/hp700/machdep.h Thu Feb 23 21:07:35 2012 +0000
+++ b/sys/arch/hp700/hp700/machdep.h Thu Feb 23 21:38:53 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.h,v 1.8 2009/11/03 05:07:25 snj Exp $ */
+/* $NetBSD: machdep.h,v 1.9 2012/02/23 21:38:53 skrll Exp $ */
/* $OpenBSD: cpufunc.h,v 1.17 2000/05/15 17:22:40 mickey Exp $ */
@@ -95,7 +95,7 @@
/* Blinking the LEDs. */
#ifdef USELEDS
#define _HP700_LED_FREQ (16)
-extern volatile u_int8_t *machine_ledaddr;
+extern volatile uint8_t *machine_ledaddr;
extern int machine_ledword, machine_leds;
extern int _hp700_led_on_cycles[];
#define hp700_led_blink(i) \
diff -r 02aaaf9d3f14 -r f5888eff5f4e sys/arch/hp700/hp700/mainbus.c
--- a/sys/arch/hp700/hp700/mainbus.c Thu Feb 23 21:07:35 2012 +0000
+++ b/sys/arch/hp700/hp700/mainbus.c Thu Feb 23 21:38:53 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mainbus.c,v 1.80 2012/01/09 15:15:40 martin Exp $ */
+/* $NetBSD: mainbus.c,v 1.81 2012/02/23 21:38:53 skrll Exp $ */
/*-
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.80 2012/01/09 15:15:40 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.81 2012/02/23 21:38:53 skrll Exp $");
#include "locators.h"
#include "power.h"
@@ -118,38 +118,38 @@
/* from machdep.c */
extern struct extent *hp700_io_extent;
-u_int8_t mbus_r1(void *, bus_space_handle_t, bus_size_t);
-u_int16_t mbus_r2(void *, bus_space_handle_t, bus_size_t);
-u_int32_t mbus_r4(void *, bus_space_handle_t, bus_size_t);
-u_int64_t mbus_r8(void *, bus_space_handle_t, bus_size_t);
-void mbus_w1(void *, bus_space_handle_t, bus_size_t, u_int8_t);
-void mbus_w2(void *, bus_space_handle_t, bus_size_t, u_int16_t);
-void mbus_w4(void *, bus_space_handle_t, bus_size_t, u_int32_t);
-void mbus_w8(void *, bus_space_handle_t, bus_size_t, u_int64_t);
-void mbus_rm_1(void *, bus_space_handle_t, bus_size_t, u_int8_t *, bus_size_t);
-void mbus_rm_2(void *, bus_space_handle_t, bus_size_t, u_int16_t *, bus_size_t);
-void mbus_rm_4(void *, bus_space_handle_t, bus_size_t, u_int32_t *, bus_size_t);
-void mbus_rm_8(void *, bus_space_handle_t, bus_size_t, u_int64_t *, bus_size_t);
-void mbus_wm_1(void *, bus_space_handle_t, bus_size_t, const u_int8_t *, bus_size_t);
-void mbus_wm_2(void *, bus_space_handle_t, bus_size_t, const u_int16_t *, bus_size_t);
-void mbus_wm_4(void *, bus_space_handle_t, bus_size_t, const u_int32_t *, bus_size_t);
-void mbus_wm_8(void *, bus_space_handle_t, bus_size_t, const u_int64_t *, bus_size_t);
-void mbus_rr_1(void *, bus_space_handle_t, bus_size_t, u_int8_t *, bus_size_t);
-void mbus_rr_2(void *, bus_space_handle_t, bus_size_t, u_int16_t *, bus_size_t);
-void mbus_rr_4(void *, bus_space_handle_t, bus_size_t, u_int32_t *, bus_size_t);
-void mbus_rr_8(void *, bus_space_handle_t, bus_size_t, u_int64_t *, bus_size_t);
-void mbus_wr_1(void *, bus_space_handle_t, bus_size_t, const u_int8_t *, bus_size_t);
-void mbus_wr_2(void *, bus_space_handle_t, bus_size_t, const u_int16_t *, bus_size_t);
-void mbus_wr_4(void *, bus_space_handle_t, bus_size_t, const u_int32_t *, bus_size_t);
-void mbus_wr_8(void *, bus_space_handle_t, bus_size_t, const u_int64_t *, bus_size_t);
-void mbus_sm_1(void *, bus_space_handle_t, bus_size_t, u_int8_t, bus_size_t);
-void mbus_sm_2(void *, bus_space_handle_t, bus_size_t, u_int16_t, bus_size_t);
-void mbus_sm_4(void *, bus_space_handle_t, bus_size_t, u_int32_t, bus_size_t);
-void mbus_sm_8(void *, bus_space_handle_t, bus_size_t, u_int64_t, bus_size_t);
-void mbus_sr_1(void *, bus_space_handle_t, bus_size_t, u_int8_t, bus_size_t);
-void mbus_sr_2(void *, bus_space_handle_t, bus_size_t, u_int16_t, bus_size_t);
-void mbus_sr_4(void *, bus_space_handle_t, bus_size_t, u_int32_t, bus_size_t);
-void mbus_sr_8(void *, bus_space_handle_t, bus_size_t, u_int64_t, bus_size_t);
+uint8_t mbus_r1(void *, bus_space_handle_t, bus_size_t);
+uint16_t mbus_r2(void *, bus_space_handle_t, bus_size_t);
+uint32_t mbus_r4(void *, bus_space_handle_t, bus_size_t);
+uint64_t mbus_r8(void *, bus_space_handle_t, bus_size_t);
+void mbus_w1(void *, bus_space_handle_t, bus_size_t, uint8_t);
+void mbus_w2(void *, bus_space_handle_t, bus_size_t, uint16_t);
+void mbus_w4(void *, bus_space_handle_t, bus_size_t, uint32_t);
+void mbus_w8(void *, bus_space_handle_t, bus_size_t, uint64_t);
+void mbus_rm_1(void *, bus_space_handle_t, bus_size_t, uint8_t *, bus_size_t);
+void mbus_rm_2(void *, bus_space_handle_t, bus_size_t, uint16_t *, bus_size_t);
+void mbus_rm_4(void *, bus_space_handle_t, bus_size_t, uint32_t *, bus_size_t);
+void mbus_rm_8(void *, bus_space_handle_t, bus_size_t, uint64_t *, bus_size_t);
+void mbus_wm_1(void *, bus_space_handle_t, bus_size_t, const uint8_t *, bus_size_t);
+void mbus_wm_2(void *, bus_space_handle_t, bus_size_t, const uint16_t *, bus_size_t);
+void mbus_wm_4(void *, bus_space_handle_t, bus_size_t, const uint32_t *, bus_size_t);
+void mbus_wm_8(void *, bus_space_handle_t, bus_size_t, const uint64_t *, bus_size_t);
+void mbus_rr_1(void *, bus_space_handle_t, bus_size_t, uint8_t *, bus_size_t);
+void mbus_rr_2(void *, bus_space_handle_t, bus_size_t, uint16_t *, bus_size_t);
+void mbus_rr_4(void *, bus_space_handle_t, bus_size_t, uint32_t *, bus_size_t);
+void mbus_rr_8(void *, bus_space_handle_t, bus_size_t, uint64_t *, bus_size_t);
+void mbus_wr_1(void *, bus_space_handle_t, bus_size_t, const uint8_t *, bus_size_t);
+void mbus_wr_2(void *, bus_space_handle_t, bus_size_t, const uint16_t *, bus_size_t);
+void mbus_wr_4(void *, bus_space_handle_t, bus_size_t, const uint32_t *, bus_size_t);
+void mbus_wr_8(void *, bus_space_handle_t, bus_size_t, const uint64_t *, bus_size_t);
+void mbus_sm_1(void *, bus_space_handle_t, bus_size_t, uint8_t, bus_size_t);
+void mbus_sm_2(void *, bus_space_handle_t, bus_size_t, uint16_t, bus_size_t);
+void mbus_sm_4(void *, bus_space_handle_t, bus_size_t, uint32_t, bus_size_t);
+void mbus_sm_8(void *, bus_space_handle_t, bus_size_t, uint64_t, bus_size_t);
+void mbus_sr_1(void *, bus_space_handle_t, bus_size_t, uint8_t, bus_size_t);
+void mbus_sr_2(void *, bus_space_handle_t, bus_size_t, uint16_t, bus_size_t);
+void mbus_sr_4(void *, bus_space_handle_t, bus_size_t, uint32_t, bus_size_t);
+void mbus_sr_8(void *, bus_space_handle_t, bus_size_t, uint64_t, bus_size_t);
void mbus_cp_1(void *, bus_space_handle_t, bus_size_t, bus_space_handle_t, bus_size_t, bus_size_t);
void mbus_cp_2(void *, bus_space_handle_t, bus_size_t, bus_space_handle_t, bus_size_t, bus_size_t);
void mbus_cp_4(void *, bus_space_handle_t, bus_size_t, bus_space_handle_t, bus_size_t, bus_size_t);
@@ -361,163 +361,163 @@
return -1;
}
-u_int8_t
+uint8_t
mbus_r1(void *v, bus_space_handle_t h, bus_size_t o)
{
- return *((volatile u_int8_t *)(h + o));
+ return *((volatile uint8_t *)(h + o));
}
-u_int16_t
+uint16_t
mbus_r2(void *v, bus_space_handle_t h, bus_size_t o)
{
- return *((volatile u_int16_t *)(h + o));
+ return *((volatile uint16_t *)(h + o));
}
-u_int32_t
+uint32_t
mbus_r4(void *v, bus_space_handle_t h, bus_size_t o)
{
- return *((volatile u_int32_t *)(h + o));
+ return *((volatile uint32_t *)(h + o));
}
-u_int64_t
+uint64_t
mbus_r8(void *v, bus_space_handle_t h, bus_size_t o)
{
- return *((volatile u_int64_t *)(h + o));
+ return *((volatile uint64_t *)(h + o));
}
void
-mbus_w1(void *v, bus_space_handle_t h, bus_size_t o, u_int8_t vv)
+mbus_w1(void *v, bus_space_handle_t h, bus_size_t o, uint8_t vv)
{
- *((volatile u_int8_t *)(h + o)) = vv;
+ *((volatile uint8_t *)(h + o)) = vv;
}
void
-mbus_w2(void *v, bus_space_handle_t h, bus_size_t o, u_int16_t vv)
+mbus_w2(void *v, bus_space_handle_t h, bus_size_t o, uint16_t vv)
{
- *((volatile u_int16_t *)(h + o)) = vv;
+ *((volatile uint16_t *)(h + o)) = vv;
}
void
-mbus_w4(void *v, bus_space_handle_t h, bus_size_t o, u_int32_t vv)
+mbus_w4(void *v, bus_space_handle_t h, bus_size_t o, uint32_t vv)
{
- *((volatile u_int32_t *)(h + o)) = vv;
+ *((volatile uint32_t *)(h + o)) = vv;
}
void
-mbus_w8(void *v, bus_space_handle_t h, bus_size_t o, u_int64_t vv)
+mbus_w8(void *v, bus_space_handle_t h, bus_size_t o, uint64_t vv)
{
- *((volatile u_int64_t *)(h + o)) = vv;
+ *((volatile uint64_t *)(h + o)) = vv;
}
void
-mbus_rm_1(void *v, bus_space_handle_t h, bus_size_t o, u_int8_t *a, bus_size_t c)
+mbus_rm_1(void *v, bus_space_handle_t h, bus_size_t o, uint8_t *a, bus_size_t c)
{
h += o;
while (c--)
- *(a++) = *(volatile u_int8_t *)h;
+ *(a++) = *(volatile uint8_t *)h;
}
void
-mbus_rm_2(void *v, bus_space_handle_t h, bus_size_t o, u_int16_t *a, bus_size_t c)
+mbus_rm_2(void *v, bus_space_handle_t h, bus_size_t o, uint16_t *a, bus_size_t c)
{
h += o;
while (c--)
- *(a++) = *(volatile u_int16_t *)h;
+ *(a++) = *(volatile uint16_t *)h;
}
void
-mbus_rm_4(void *v, bus_space_handle_t h, bus_size_t o, u_int32_t *a, bus_size_t c)
+mbus_rm_4(void *v, bus_space_handle_t h, bus_size_t o, uint32_t *a, bus_size_t c)
{
h += o;
while (c--)
- *(a++) = *(volatile u_int32_t *)h;
+ *(a++) = *(volatile uint32_t *)h;
}
void
-mbus_rm_8(void *v, bus_space_handle_t h, bus_size_t o, u_int64_t *a, bus_size_t c)
+mbus_rm_8(void *v, bus_space_handle_t h, bus_size_t o, uint64_t *a, bus_size_t c)
{
h += o;
while (c--)
- *(a++) = *(volatile u_int64_t *)h;
+ *(a++) = *(volatile uint64_t *)h;
}
void
-mbus_wm_1(void *v, bus_space_handle_t h, bus_size_t o, const u_int8_t *a, bus_size_t c)
+mbus_wm_1(void *v, bus_space_handle_t h, bus_size_t o, const uint8_t *a, bus_size_t c)
{
h += o;
while (c--)
- *(volatile u_int8_t *)h = *(a++);
+ *(volatile uint8_t *)h = *(a++);
}
void
-mbus_wm_2(void *v, bus_space_handle_t h, bus_size_t o, const u_int16_t *a, bus_size_t c)
+mbus_wm_2(void *v, bus_space_handle_t h, bus_size_t o, const uint16_t *a, bus_size_t c)
{
h += o;
while (c--)
- *(volatile u_int16_t *)h = *(a++);
+ *(volatile uint16_t *)h = *(a++);
}
void
Home |
Main Index |
Thread Index |
Old Index