/* Blackfin Watchdog (WDOG) model.
- Copyright (C) 2010-2011 Free Software Foundation, Inc.
+ Copyright (C) 2010-2014 Free Software Foundation, Inc.
Contributed by Analog Devices, Inc.
This file is part of simulators.
#define mmr_base() offsetof(struct bfin_wdog, ctl)
#define mmr_offset(mmr) (offsetof(struct bfin_wdog, mmr) - mmr_base())
-static const char * const mmr_names[] = {
+static const char * const mmr_names[] =
+{
"WDOG_CTL", "WDOG_CNT", "WDOG_STAT",
};
#define mmr_name(off) mmr_names[(off) / 4]
return nr_bytes;
}
-static const struct hw_port_descriptor bfin_wdog_ports[] = {
+static const struct hw_port_descriptor bfin_wdog_ports[] =
+{
{ "reset", WDEV_RESET, 0, output_port, },
{ "nmi", WDEV_NMI, 0, output_port, },
{ "gpi", WDEV_GPI, 0, output_port, },
wdog->ctl = WDDIS;
}
-const struct hw_descriptor dv_bfin_wdog_descriptor[] = {
+const struct hw_descriptor dv_bfin_wdog_descriptor[] =
+{
{"bfin_wdog", bfin_wdog_finish,},
{NULL, NULL},
};