]> xenbits.xensource.com Git - qemu-upstream-4.6-testing.git/commitdiff
misc: Replace 'struct QEMUTimer' by 'QEMUTimer'
authorStefan Weil <sw@weilnetz.de>
Sun, 1 Dec 2013 07:49:47 +0000 (08:49 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 2 Dec 2013 17:03:39 +0000 (21:03 +0400)
Most code already used QEMUTimer without the redundant 'struct' keyword.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
12 files changed:
hw/char/cadence_uart.c
hw/ppc/ppc.c
hw/ppc/ppc405_uc.c
hw/ppc/ppc_booke.c
hw/timer/m48t59.c
include/hw/char/serial.h
include/hw/ppc/ppc.h
target-alpha/cpu-qom.h
target-mips/cpu.h
target-openrisc/cpu.h
target-sparc/cpu.h
ui/console.c

index f8ccbdd13a6d336d2dc9d4e9d40c8dfdeadcb980..f18db53bca11250e8839319371fdd1d39443a504 100644 (file)
@@ -120,8 +120,8 @@ typedef struct {
     uint64_t char_tx_time;
     CharDriverState *chr;
     qemu_irq irq;
-    struct QEMUTimer *fifo_trigger_handle;
-    struct QEMUTimer *tx_time_handle;
+    QEMUTimer *fifo_trigger_handle;
+    QEMUTimer *tx_time_handle;
 } UartState;
 
 static void uart_update_status(UartState *s)
index bf2d3d4b350430b98bb358cd648d9d0cf61f42f8..114be64480a086f852e6a3d5938d258307affdef 100644 (file)
@@ -684,7 +684,7 @@ static inline void cpu_ppc_hdecr_excp(PowerPCCPU *cpu)
 }
 
 static void __cpu_ppc_store_decr(PowerPCCPU *cpu, uint64_t *nextp,
-                                 struct QEMUTimer *timer,
+                                 QEMUTimer *timer,
                                  void (*raise_excp)(PowerPCCPU *),
                                  uint32_t decr, uint32_t value,
                                  int is_excp)
@@ -856,9 +856,9 @@ typedef struct ppc40x_timer_t ppc40x_timer_t;
 struct ppc40x_timer_t {
     uint64_t pit_reload;  /* PIT auto-reload value        */
     uint64_t fit_next;    /* Tick for next FIT interrupt  */
-    struct QEMUTimer *fit_timer;
+    QEMUTimer *fit_timer;
     uint64_t wdt_next;    /* Tick for next WDT interrupt  */
-    struct QEMUTimer *wdt_timer;
+    QEMUTimer *wdt_timer;
 
     /* 405 have the PIT, 440 have a DECR.  */
     unsigned int decr_excp;
index 6d6a7f12033bedd71776f67a55f5e2eaeb2e1350..8109f9220046dc762e6bc3e6a366335bd3b39fea 100644 (file)
@@ -1234,7 +1234,7 @@ struct ppc4xx_gpt_t {
     MemoryRegion iomem;
     int64_t tb_offset;
     uint32_t tb_freq;
-    struct QEMUTimer *timer;
+    QEMUTimer *timer;
     qemu_irq irqs[5];
     uint32_t oe;
     uint32_t ol;
index b421620708eec9829382c280fa15befb25dbbdf2..d8399602d63c8e5802b1c2b076c64e6b7bf0ec70 100644 (file)
@@ -64,10 +64,10 @@ typedef struct booke_timer_t booke_timer_t;
 struct booke_timer_t {
 
     uint64_t fit_next;
-    struct QEMUTimer *fit_timer;
+    QEMUTimer *fit_timer;
 
     uint64_t wdt_next;
-    struct QEMUTimer *wdt_timer;
+    QEMUTimer *wdt_timer;
 
     uint32_t flags;
 };
index d3d78ec5a87903a30ca7f9e0567acd204566d402..be0592b53dcb8d4f0cb4bb18092faa262e66aa19 100644 (file)
@@ -61,8 +61,8 @@ struct M48t59State {
     time_t   stop_time;
     /* Alarm & watchdog */
     struct tm alarm;
-    struct QEMUTimer *alrm_timer;
-    struct QEMUTimer *wd_timer;
+    QEMUTimer *alrm_timer;
+    QEMUTimer *wd_timer;
     /* NVRAM storage */
     uint8_t *buffer;
     /* Model parameters */
index 85f58acd51c679f8a4d634d59b4a88109ca1e495..f431764bf5f14a841660d12cc6c183dc31df2424 100644 (file)
@@ -65,13 +65,13 @@ struct SerialState {
     /* Interrupt trigger level for recv_fifo */
     uint8_t recv_fifo_itl;
 
-    struct QEMUTimer *fifo_timeout_timer;
+    QEMUTimer *fifo_timeout_timer;
     int timeout_ipending;           /* timeout interrupt pending state */
 
     uint64_t char_transmit_time;    /* time to transmit a char in ticks */
     int poll_msl;
 
-    struct QEMUTimer *modem_status_poll;
+    QEMUTimer *modem_status_poll;
     MemoryRegion io;
 };
 
index 132ab97b58f5b75646c4d61408f1ef417169239b..835418aeb02c5a2e095d903bc3f9ac74148924e9 100644 (file)
@@ -24,10 +24,10 @@ struct ppc_tb_t {
     /* Decrementer management */
     uint64_t decr_next;    /* Tick for next decr interrupt    */
     uint32_t decr_freq;    /* decrementer frequency           */
-    struct QEMUTimer *decr_timer;
+    QEMUTimer *decr_timer;
     /* Hypervisor decrementer management */
     uint64_t hdecr_next;    /* Tick for next hdecr interrupt  */
-    struct QEMUTimer *hdecr_timer;
+    QEMUTimer *hdecr_timer;
     uint64_t purr_load;
     uint64_t purr_start;
     void *opaque;
index 2ebc9bcacbf9c27604532e4c9d95ecd083797034..198f1b13a37b0081f66d2d10be92293e57fb2ded 100644 (file)
@@ -62,7 +62,7 @@ typedef struct AlphaCPU {
     CPUAlphaState env;
 
     /* This alarm doesn't exist in real hardware; we wish it did.  */
-    struct QEMUTimer *alarm_timer;
+    QEMUTimer *alarm_timer;
 } AlphaCPU;
 
 static inline AlphaCPU *alpha_env_get_cpu(CPUAlphaState *env)
index a29c82faf16b911053a12b4a5d4c6c708cb54574..9caf4474b9731114d47b3f9389e1f8a16eca0d42 100644 (file)
@@ -476,7 +476,7 @@ struct CPUMIPSState {
 
     const mips_def_t *cpu_model;
     void *irq[8];
-    struct QEMUTimer *timer; /* Internal timer */
+    QEMUTimer *timer; /* Internal timer */
 };
 
 #include "cpu-qom.h"
index 0f9efdf6def3e571e6992dc13be533cd0d4783d6..51d6afd1532b4d53d6f379de0516ae2d1c3798a9 100644 (file)
@@ -307,7 +307,7 @@ typedef struct CPUOpenRISCState {
 #ifndef CONFIG_USER_ONLY
     CPUOpenRISCTLBContext * tlb;
 
-    struct QEMUTimer *timer;
+    QEMUTimer *timer;
     uint32_t ttmr;          /* Timer tick mode register */
     uint32_t ttcr;          /* Timer tick count register */
 
index 41194ec06bbbc4100eb585b827fd4aff268182ff..c519063ba9b3b7e59b111778e470352439859ce4 100644 (file)
@@ -370,7 +370,7 @@ struct CPUTimer
     uint32_t    disabled;
     uint64_t    disabled_mask;
     int64_t     clock_offset;
-    struct QEMUTimer  *qtimer;
+    QEMUTimer  *qtimer;
 };
 
 typedef struct CPUTimer CPUTimer;
index 586fc6d6f101f2776171061c2e16488624ad0031..502e1600ab9d70b216be849ea7a9d353861385c1 100644 (file)
@@ -161,7 +161,7 @@ struct QemuConsole {
 };
 
 struct DisplayState {
-    struct QEMUTimer *gui_timer;
+    QEMUTimer *gui_timer;
     uint64_t last_update;
     uint64_t update_interval;
     bool refreshing;