aboutsummaryrefslogtreecommitdiff
path: root/sim/mn10300/dv-mn103iop.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/mn10300/dv-mn103iop.c')
-rw-r--r--sim/mn10300/dv-mn103iop.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/sim/mn10300/dv-mn103iop.c b/sim/mn10300/dv-mn103iop.c
index 2d86bfb..515b977 100644
--- a/sim/mn10300/dv-mn103iop.c
+++ b/sim/mn10300/dv-mn103iop.c
@@ -87,7 +87,7 @@ enum {
};
typedef struct _mn10300_ioport {
- unsigned8 output, output_mode, control, pin;
+ uint8_t output, output_mode, control, pin;
struct hw_event *event;
} mn10300_ioport;
@@ -96,7 +96,7 @@ typedef struct _mn10300_ioport {
struct mn103iop {
struct mn103iop_block block[NR_BLOCKS];
mn10300_ioport port[NR_PORTS];
- unsigned8 p2ss, p4ss;
+ uint8_t p2ss, p4ss;
};
@@ -215,7 +215,7 @@ read_output_reg (struct hw *me,
{
if ( nr_bytes == 1 )
{
- *(unsigned8 *)dest = io_port->port[io_port_reg].output;
+ *(uint8_t *)dest = io_port->port[io_port_reg].output;
}
else
{
@@ -236,7 +236,7 @@ read_output_mode_reg (struct hw *me,
{
/* check if there are fields which can't be written and
take appropriate action depending what bits are set */
- *(unsigned8 *)dest = io_port->port[io_port_reg].output_mode;
+ *(uint8_t *)dest = io_port->port[io_port_reg].output_mode;
}
else
{
@@ -255,7 +255,7 @@ read_control_reg (struct hw *me,
{
if ( nr_bytes == 1 )
{
- *(unsigned8 *)dest = io_port->port[io_port_reg].control;
+ *(uint8_t *)dest = io_port->port[io_port_reg].control;
}
else
{
@@ -274,7 +274,7 @@ read_pin_reg (struct hw *me,
{
if ( nr_bytes == 1 )
{
- *(unsigned8 *)dest = io_port->port[io_port_reg].pin;
+ *(uint8_t *)dest = io_port->port[io_port_reg].pin;
}
else
{
@@ -296,11 +296,11 @@ read_dedicated_control_reg (struct hw *me,
/* select on io_port_reg: */
if ( io_port_reg == P2SS )
{
- *(unsigned8 *)dest = io_port->p2ss;
+ *(uint8_t *)dest = io_port->p2ss;
}
else
{
- *(unsigned8 *)dest = io_port->p4ss;
+ *(uint8_t *)dest = io_port->p4ss;
}
}
else
@@ -375,7 +375,7 @@ write_output_reg (struct hw *me,
const void *source,
unsigned nr_bytes)
{
- unsigned8 buf = *(unsigned8 *)source;
+ uint8_t buf = *(uint8_t *)source;
if ( nr_bytes == 1 )
{
if ( io_port_reg == 3 && (buf & 0xfc) != 0 )
@@ -402,7 +402,7 @@ write_output_mode_reg (struct hw *me,
const void *source,
unsigned nr_bytes)
{
- unsigned8 buf = *(unsigned8 *)source;
+ uint8_t buf = *(uint8_t *)source;
if ( nr_bytes == 1 )
{
/* check if there are fields which can't be written and
@@ -432,7 +432,7 @@ write_control_reg (struct hw *me,
const void *source,
unsigned nr_bytes)
{
- unsigned8 buf = *(unsigned8 *)source;
+ uint8_t buf = *(uint8_t *)source;
if ( nr_bytes == 1 )
{
if ( io_port_reg == 3 && (buf & 0xfc) != 0 )
@@ -459,7 +459,7 @@ write_dedicated_control_reg (struct hw *me,
const void *source,
unsigned nr_bytes)
{
- unsigned8 buf = *(unsigned8 *)source;
+ uint8_t buf = *(uint8_t *)source;
if ( nr_bytes == 1 )
{
/* select on io_port_reg: */