aboutsummaryrefslogtreecommitdiff
path: root/sim/common/hw-device.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-04-02 05:30:16 +0000
committerMike Frysinger <vapier@gentoo.org>2011-04-02 05:30:16 +0000
commit12c4cbd553579257a4902267b2301984434cec7b (patch)
treeb6228ef9e739eb92a626f7d837f223f812ec2b28 /sim/common/hw-device.h
parent4368ebebd815a95ace43dba87fbe800a37d314cf (diff)
downloadgdb-12c4cbd553579257a4902267b2301984434cec7b.zip
gdb-12c4cbd553579257a4902267b2301984434cec7b.tar.gz
gdb-12c4cbd553579257a4902267b2301984434cec7b.tar.bz2
sim: fix up style a bit
This touches up the code a bit to match GNU style. No functional changes. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sim/common/hw-device.h')
-rw-r--r--sim/common/hw-device.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/sim/common/hw-device.h b/sim/common/hw-device.h
index 4bfc991..3240cae 100644
--- a/sim/common/hw-device.h
+++ b/sim/common/hw-device.h
@@ -294,7 +294,8 @@ typedef unsigned (hw_dma_write_buffer_method)
The number of words determined by the number of {address,size}
cells attributes of the device. */
-typedef struct _hw_unit {
+typedef struct _hw_unit
+{
int nr_cells;
unsigned_cell cells[4]; /* unused cells are zero */
} hw_unit;
@@ -399,7 +400,8 @@ extern char *hw_strdup (struct hw *me, const char *str);
*/
-typedef enum {
+typedef enum
+{
hw_ioctl_break, /* unsigned_word requested_break */
hw_ioctl_set_trace, /* void */
hw_ioctl_create_stack, /* unsigned_word *sp, char **argv, char **envp */
@@ -475,7 +477,8 @@ struct hw_instance_data;
/* Finally the hardware device - keep your grubby little mits off of
these internals! :-) */
-struct hw {
+struct hw
+{
/* our relatives */
struct hw *parent_of_hw;