[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH v2 04/11] hw/devices: Move Blizzard declarations into
From: |
Philippe Mathieu-Daudé |
Subject: |
[Qemu-ppc] [PATCH v2 04/11] hw/devices: Move Blizzard declarations into a new header |
Date: |
Tue, 5 Feb 2019 00:18:08 +0100 |
Add an entries the Blizzard device in MAINTAINERS.
Reviewed-by: Thomas Huth <address@hidden>
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
MAINTAINERS | 2 ++
hw/arm/nseries.c | 1 +
hw/display/blizzard.c | 2 +-
include/hw/devices.h | 7 -------
include/hw/display/blizzard.h | 22 ++++++++++++++++++++++
5 files changed, 26 insertions(+), 8 deletions(-)
create mode 100644 include/hw/display/blizzard.h
diff --git a/MAINTAINERS b/MAINTAINERS
index 52058a8983..a21e7b546b 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -648,10 +648,12 @@ M: Peter Maydell <address@hidden>
L: address@hidden
S: Odd Fixes
F: hw/arm/nseries.c
+F: hw/display/blizzard.c
F: hw/input/lm832x.c
F: hw/input/tsc2005.c
F: hw/misc/cbus.c
F: hw/timer/twl92230.c
+F: include/hw/display/blizzard.h
Palm
M: Andrzej Zaborowski <address@hidden>
diff --git a/hw/arm/nseries.c b/hw/arm/nseries.c
index 906b7ca22d..9521be1cef 100644
--- a/hw/arm/nseries.c
+++ b/hw/arm/nseries.c
@@ -31,6 +31,7 @@
#include "hw/boards.h"
#include "hw/i2c/i2c.h"
#include "hw/devices.h"
+#include "hw/display/blizzard.h"
#include "hw/block/flash.h"
#include "hw/hw.h"
#include "hw/bt.h"
diff --git a/hw/display/blizzard.c b/hw/display/blizzard.c
index 291abe6fca..471bd0ed99 100644
--- a/hw/display/blizzard.c
+++ b/hw/display/blizzard.c
@@ -21,7 +21,7 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "ui/console.h"
-#include "hw/devices.h"
+#include "hw/display/blizzard.h"
#include "ui/pixel_ops.h"
typedef void (*blizzard_fn_t)(uint8_t *, const uint8_t *, unsigned int);
diff --git a/include/hw/devices.h b/include/hw/devices.h
index 1e2141caad..77d6611302 100644
--- a/include/hw/devices.h
+++ b/include/hw/devices.h
@@ -29,13 +29,6 @@ void tsc2005_set_transform(void *opaque, MouseTransformInfo
*info);
/* stellaris_input.c */
void stellaris_gamepad_init(int n, qemu_irq *irq, const int *keycode);
-/* blizzard.c */
-void *s1d13745_init(qemu_irq gpio_int);
-void s1d13745_write(void *opaque, int dc, uint16_t value);
-void s1d13745_write_block(void *opaque, int dc,
- void *buf, size_t len, int pitch);
-uint16_t s1d13745_read(void *opaque, int dc);
-
/* cbus.c */
typedef struct {
qemu_irq clk;
diff --git a/include/hw/display/blizzard.h b/include/hw/display/blizzard.h
new file mode 100644
index 0000000000..ef72bbc186
--- /dev/null
+++ b/include/hw/display/blizzard.h
@@ -0,0 +1,22 @@
+/*
+ * Epson S1D13744/S1D13745 (Blizzard/Hailstorm/Tornado) LCD/TV controller.
+ *
+ * Copyright (C) 2008 Nokia Corporation
+ * Written by Andrzej Zaborowski
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ */
+
+#ifndef HW_DISPLAY_BLIZZARD_H
+#define HW_DISPLAY_BLIZZARD_H
+
+#include "hw/irq.h"
+
+void *s1d13745_init(qemu_irq gpio_int);
+void s1d13745_write(void *opaque, int dc, uint16_t value);
+void s1d13745_write_block(void *opaque, int dc,
+ void *buf, size_t len, int pitch);
+uint16_t s1d13745_read(void *opaque, int dc);
+
+#endif
--
2.20.1
- [Qemu-ppc] [PATCH v2 00/11] hw: Remove "hw/devices.h", Philippe Mathieu-Daudé, 2019/02/04
- [Qemu-ppc] [PATCH v2 01/11] hw/arm/aspeed: Use TYPE_TMP105/TYPE_PCA9552 instead of hardcoded string, Philippe Mathieu-Daudé, 2019/02/04
- [Qemu-ppc] [PATCH v2 02/11] hw: Remove unused 'hw/devices.h' include, Philippe Mathieu-Daudé, 2019/02/04
- [Qemu-ppc] [PATCH v2 03/11] hw/devices: Move TC6393XB declarations into a new header, Philippe Mathieu-Daudé, 2019/02/04
- [Qemu-ppc] [PATCH v2 04/11] hw/devices: Move Blizzard declarations into a new header,
Philippe Mathieu-Daudé <=
- [Qemu-ppc] [PATCH v2 05/11] hw/devices: Move CBus declarations into a new header, Philippe Mathieu-Daudé, 2019/02/04
- [Qemu-ppc] [PATCH v2 06/11] hw/devices: Move Gamepad declarations into a new header, Philippe Mathieu-Daudé, 2019/02/04
- [Qemu-ppc] [PATCH v2 07/11] hw/devices: Move TI touchscreen declarations into a new header, Philippe Mathieu-Daudé, 2019/02/04
- [Qemu-ppc] [PATCH v2 08/11] hw/devices: Move LAN9118 declarations into a new header, Philippe Mathieu-Daudé, 2019/02/04
- [Qemu-ppc] [PATCH v2 09/11] hw/net/ne2000-isa: Add guards to the header, Philippe Mathieu-Daudé, 2019/02/04
- [Qemu-ppc] [PATCH v2 10/11] hw/net/lan9118: Export TYPE_LAN9118 and use it instead of hardcoded string, Philippe Mathieu-Daudé, 2019/02/04
- [Qemu-ppc] [PATCH v2 11/11] hw/devices: Move SMSC 91C111 declaration into a new header, Philippe Mathieu-Daudé, 2019/02/04
- Re: [Qemu-ppc] [PATCH v2 00/11] hw: Remove "hw/devices.h", Philippe Mathieu-Daudé, 2019/02/12