Skip to content

Commit

Permalink
chardev: move headers to include/chardev
Browse files Browse the repository at this point in the history
So they are all in one place. The following patch will move serial &
parallel declarations to the respective headers.

Signed-off-by: Marc-André Lureau <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
  • Loading branch information
elmarco committed Jun 2, 2017
1 parent f664b88 commit 8228e35
Show file tree
Hide file tree
Showing 98 changed files with 117 additions and 116 deletions.
1 change: 1 addition & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -1238,6 +1238,7 @@ M: Paolo Bonzini <[email protected]>
M: Marc-André Lureau <[email protected]>
S: Maintained
F: chardev/
F: include/chardev/
F: backends/msmouse.c
F: backends/testdev.c

Expand Down
2 changes: 1 addition & 1 deletion backends/baum.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "qemu-common.h"
#include "sysemu/char.h"
#include "chardev/char.h"
#include "qemu/timer.h"
#include "hw/usb.h"
#include "ui/console.h"
Expand Down
2 changes: 1 addition & 1 deletion backends/msmouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "sysemu/char.h"
#include "chardev/char.h"
#include "ui/console.h"
#include "ui/input.h"

Expand Down
2 changes: 1 addition & 1 deletion backends/rng-egd.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#include "qemu/osdep.h"
#include "sysemu/rng.h"
#include "sysemu/char.h"
#include "chardev/char.h"
#include "qapi/error.h"
#include "qapi/qmp/qerror.h"

Expand Down
2 changes: 1 addition & 1 deletion backends/testdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "sysemu/char.h"
#include "chardev/char.h"

#define BUF_SIZE 32

Expand Down
2 changes: 1 addition & 1 deletion backends/wctablet.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "sysemu/char.h"
#include "chardev/char.h"
#include "ui/console.h"
#include "ui/input.h"
#include "trace.h"
Expand Down
2 changes: 1 addition & 1 deletion chardev/char-console.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "char-win.h"
#include "chardev/char-win.h"

static void qemu_chr_open_win_con(Chardev *chr,
ChardevBackend *backend,
Expand Down
6 changes: 3 additions & 3 deletions chardev/char-fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
#include "qemu/sockets.h"
#include "qapi/error.h"
#include "qemu-common.h"
#include "sysemu/char.h"
#include "chardev/char.h"
#include "io/channel-file.h"

#include "char-fd.h"
#include "char-io.h"
#include "chardev/char-fd.h"
#include "chardev/char-io.h"

/* Called with chr_write_lock held. */
static int fd_chr_write(Chardev *chr, const uint8_t *buf, int len)
Expand Down
6 changes: 3 additions & 3 deletions chardev/char-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "qemu-common.h"
#include "sysemu/char.h"
#include "chardev/char.h"

#ifdef _WIN32
#include "char-win.h"
#include "chardev/char-win.h"
#else
#include "char-fd.h"
#include "chardev/char-fd.h"
#endif

static void qmp_chardev_open_file(Chardev *chr,
Expand Down
2 changes: 1 addition & 1 deletion chardev/char-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "char-io.h"
#include "chardev/char-io.h"

typedef struct IOWatchPoll {
GSource parent;
Expand Down
4 changes: 2 additions & 2 deletions chardev/char-mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "qemu-common.h"
#include "sysemu/char.h"
#include "chardev/char.h"
#include "sysemu/block-backend.h"
#include "char-mux.h"
#include "chardev/char-mux.h"

/* MUX driver for serial I/O splitting */

Expand Down
2 changes: 1 addition & 1 deletion chardev/char-null.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "sysemu/char.h"
#include "chardev/char.h"

static void null_chr_open(Chardev *chr,
ChardevBackend *backend,
Expand Down
6 changes: 3 additions & 3 deletions chardev/char-parallel.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "sysemu/char.h"
#include "chardev/char.h"
#include "qapi/error.h"
#include <sys/ioctl.h>

Expand All @@ -41,8 +41,8 @@
#endif
#endif

#include "char-fd.h"
#include "char-parallel.h"
#include "chardev/char-fd.h"
#include "chardev/char-parallel.h"

#if defined(__linux__)

Expand Down
6 changes: 3 additions & 3 deletions chardev/char-pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
*/
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "sysemu/char.h"
#include "chardev/char.h"

#ifdef _WIN32
#include "char-win.h"
#include "chardev/char-win.h"
#else
#include "char-fd.h"
#include "chardev/char-fd.h"
#endif

#ifdef _WIN32
Expand Down
4 changes: 2 additions & 2 deletions chardev/char-pty.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "qemu-common.h"
#include "sysemu/char.h"
#include "chardev/char.h"
#include "io/channel-file.h"
#include "qemu/sockets.h"
#include "qemu/error-report.h"

#include "char-io.h"
#include "chardev/char-io.h"

#if defined(__linux__) || defined(__sun__) || defined(__FreeBSD__) \
|| defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) \
Expand Down
2 changes: 1 addition & 1 deletion chardev/char-ringbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "sysemu/char.h"
#include "chardev/char.h"
#include "qmp-commands.h"
#include "qemu/base64.h"

Expand Down
6 changes: 3 additions & 3 deletions chardev/char-serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
#include "qapi/error.h"

#ifdef _WIN32
#include "char-win.h"
#include "chardev/char-win.h"
#else
#include <sys/ioctl.h>
#include <termios.h>
#include "char-fd.h"
#include "chardev/char-fd.h"
#endif

#include "char-serial.h"
#include "chardev/char-serial.h"

#ifdef _WIN32

Expand Down
4 changes: 2 additions & 2 deletions chardev/char-socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "sysemu/char.h"
#include "chardev/char.h"
#include "io/channel-socket.h"
#include "io/channel-tls.h"
#include "qemu/error-report.h"
#include "qapi/error.h"
#include "qapi/clone-visitor.h"

#include "char-io.h"
#include "chardev/char-io.h"

/***********************************************************/
/* TCP Net console */
Expand Down
8 changes: 4 additions & 4 deletions chardev/char-stdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
#include "qemu/sockets.h"
#include "qapi/error.h"
#include "qemu-common.h"
#include "sysemu/char.h"
#include "chardev/char.h"

#ifdef _WIN32
#include "char-win.h"
#include "char-win-stdio.h"
#include "chardev/char-win.h"
#include "chardev/char-win-stdio.h"
#else
#include <termios.h>
#include "char-fd.h"
#include "chardev/char-fd.h"
#endif

#ifndef _WIN32
Expand Down
4 changes: 2 additions & 2 deletions chardev/char-udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "sysemu/char.h"
#include "chardev/char.h"
#include "io/channel-socket.h"
#include "qapi/error.h"

#include "char-io.h"
#include "chardev/char-io.h"

/***********************************************************/
/* UDP Net console */
Expand Down
4 changes: 2 additions & 2 deletions chardev/char-win-stdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
*/
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "char-win.h"
#include "char-win-stdio.h"
#include "chardev/char-win.h"
#include "chardev/char-win-stdio.h"

typedef struct {
Chardev parent;
Expand Down
2 changes: 1 addition & 1 deletion chardev/char-win.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qapi/error.h"
#include "char-win.h"
#include "chardev/char-win.h"

static void win_chr_read(Chardev *chr, DWORD len)
{
Expand Down
10 changes: 5 additions & 5 deletions chardev/char.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@
#include "sysemu/sysemu.h"
#include "qemu/config-file.h"
#include "qemu/error-report.h"
#include "sysemu/char.h"
#include "chardev/char.h"
#include "qmp-commands.h"
#include "qapi-visit.h"
#include "sysemu/replay.h"
#include "qemu/help_option.h"

#include "char-mux.h"
#include "char-io.h"
#include "char-parallel.h"
#include "char-serial.h"
#include "chardev/char-mux.h"
#include "chardev/char-io.h"
#include "chardev/char-parallel.h"
#include "chardev/char-serial.h"

/***********************************************************/
/* character device */
Expand Down
2 changes: 1 addition & 1 deletion gdbstub.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "qemu.h"
#else
#include "monitor/monitor.h"
#include "sysemu/char.h"
#include "chardev/char.h"
#include "sysemu/sysemu.h"
#include "exec/gdbstub.h"
#endif
Expand Down
2 changes: 1 addition & 1 deletion hmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "hmp.h"
#include "net/net.h"
#include "net/eth.h"
#include "sysemu/char.h"
#include "chardev/char.h"
#include "sysemu/block-backend.h"
#include "sysemu/sysemu.h"
#include "qemu/config-file.h"
Expand Down
2 changes: 1 addition & 1 deletion hw/arm/fsl-imx25.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "sysemu/sysemu.h"
#include "exec/address-spaces.h"
#include "hw/boards.h"
#include "sysemu/char.h"
#include "chardev/char.h"

static void fsl_imx25_init(Object *obj)
{
Expand Down
2 changes: 1 addition & 1 deletion hw/arm/fsl-imx31.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "sysemu/sysemu.h"
#include "exec/address-spaces.h"
#include "hw/boards.h"
#include "sysemu/char.h"
#include "chardev/char.h"

static void fsl_imx31_init(Object *obj)
{
Expand Down
2 changes: 1 addition & 1 deletion hw/arm/fsl-imx6.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "qemu-common.h"
#include "hw/arm/fsl-imx6.h"
#include "sysemu/sysemu.h"
#include "sysemu/char.h"
#include "chardev/char.h"
#include "qemu/error-report.h"

#define NAME_SIZE 20
Expand Down
2 changes: 1 addition & 1 deletion hw/arm/omap2.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "hw/arm/omap.h"
#include "sysemu/sysemu.h"
#include "qemu/timer.h"
#include "sysemu/char.h"
#include "chardev/char.h"
#include "hw/block/flash.h"
#include "hw/arm/soc_dma.h"
#include "hw/sysbus.h"
Expand Down
2 changes: 1 addition & 1 deletion hw/arm/pxa2xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "hw/char/serial.h"
#include "hw/i2c/i2c.h"
#include "hw/ssi/ssi.h"
#include "sysemu/char.h"
#include "chardev/char.h"
#include "sysemu/block-backend.h"
#include "sysemu/blockdev.h"
#include "qemu/cutils.h"
Expand Down
2 changes: 1 addition & 1 deletion hw/arm/strongarm.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "strongarm.h"
#include "qemu/error-report.h"
#include "hw/arm/arm.h"
#include "sysemu/char.h"
#include "chardev/char.h"
#include "sysemu/sysemu.h"
#include "hw/ssi/ssi.h"
#include "qemu/cutils.h"
Expand Down
2 changes: 1 addition & 1 deletion hw/bt/hci-csr.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "sysemu/char.h"
#include "chardev/char.h"
#include "qemu/timer.h"
#include "qemu/bswap.h"
#include "hw/irq.h"
Expand Down
2 changes: 1 addition & 1 deletion hw/char/cadence_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "sysemu/char.h"
#include "chardev/char.h"
#include "qemu/timer.h"
#include "qemu/log.h"
#include "hw/char/cadence_uart.h"
Expand Down
2 changes: 1 addition & 1 deletion hw/char/debugcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "hw/hw.h"
#include "sysemu/char.h"
#include "chardev/char.h"
#include "hw/isa/isa.h"
#include "hw/i386/pc.h"

Expand Down
Loading

0 comments on commit 8228e35

Please sign in to comment.