ssi: Move ssi.h into a separate directory

Move the ssi.h include file into the ssi directory.

While touching the code also fix the typdef lines as
checkpatch complains.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Reviewed-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
Alistair Francis 2016-01-21 14:15:03 +00:00 committed by Peter Maydell
parent d857c4c023
commit 8fd06719e7
18 changed files with 23 additions and 21 deletions

View file

@ -13,7 +13,7 @@
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "hw/char/serial.h" #include "hw/char/serial.h"
#include "hw/i2c/i2c.h" #include "hw/i2c/i2c.h"
#include "hw/ssi.h" #include "hw/ssi/ssi.h"
#include "sysemu/char.h" #include "sysemu/char.h"
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "sysemu/blockdev.h" #include "sysemu/blockdev.h"

View file

@ -17,7 +17,7 @@
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "hw/pcmcia.h" #include "hw/pcmcia.h"
#include "hw/i2c/i2c.h" #include "hw/i2c/i2c.h"
#include "hw/ssi.h" #include "hw/ssi/ssi.h"
#include "hw/block/flash.h" #include "hw/block/flash.h"
#include "qemu/timer.h" #include "qemu/timer.h"
#include "hw/devices.h" #include "hw/devices.h"

View file

@ -9,7 +9,7 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "hw/sysbus.h" #include "hw/sysbus.h"
#include "hw/ssi.h" #include "hw/ssi/ssi.h"
#include "hw/arm/arm.h" #include "hw/arm/arm.h"
#include "hw/devices.h" #include "hw/devices.h"
#include "qemu/timer.h" #include "qemu/timer.h"

View file

@ -35,7 +35,7 @@
#include "hw/arm/arm.h" #include "hw/arm/arm.h"
#include "sysemu/char.h" #include "sysemu/char.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "hw/ssi.h" #include "hw/ssi/ssi.h"
//#define DEBUG //#define DEBUG

View file

@ -20,7 +20,7 @@
#include "hw/pcmcia.h" #include "hw/pcmcia.h"
#include "hw/boards.h" #include "hw/boards.h"
#include "hw/i2c/i2c.h" #include "hw/i2c/i2c.h"
#include "hw/ssi.h" #include "hw/ssi/ssi.h"
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "hw/sysbus.h" #include "hw/sysbus.h"
#include "exec/address-spaces.h" #include "exec/address-spaces.h"

View file

@ -26,7 +26,7 @@
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "hw/loader.h" #include "hw/loader.h"
#include "hw/misc/zynq-xadc.h" #include "hw/misc/zynq-xadc.h"
#include "hw/ssi.h" #include "hw/ssi/ssi.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#define NUM_SPI_FLASHES 4 #define NUM_SPI_FLASHES 4

View file

@ -17,7 +17,7 @@
#include "hw/arm/arm.h" #include "hw/arm/arm.h"
#include "hw/devices.h" #include "hw/devices.h"
#include "hw/i2c/i2c.h" #include "hw/i2c/i2c.h"
#include "hw/ssi.h" #include "hw/ssi/ssi.h"
#include "hw/boards.h" #include "hw/boards.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "hw/block/flash.h" #include "hw/block/flash.h"

View file

@ -25,7 +25,7 @@
#include "hw/hw.h" #include "hw/hw.h"
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "sysemu/blockdev.h" #include "sysemu/blockdev.h"
#include "hw/ssi.h" #include "hw/ssi/ssi.h"
#ifndef M25P80_ERR_DEBUG #ifndef M25P80_ERR_DEBUG
#define M25P80_ERR_DEBUG 0 #define M25P80_ERR_DEBUG 0

View file

@ -10,7 +10,7 @@
* GNU GPL, version 2 or (at your option) any later version. * GNU GPL, version 2 or (at your option) any later version.
*/ */
#include "hw/ssi.h" #include "hw/ssi/ssi.h"
#include "ui/console.h" #include "ui/console.h"
typedef struct { typedef struct {

View file

@ -10,7 +10,7 @@
/* The controller can support a variety of different displays, but we only /* The controller can support a variety of different displays, but we only
implement one. Most of the commends relating to brightness and geometry implement one. Most of the commends relating to brightness and geometry
setup are ignored. */ setup are ignored. */
#include "hw/ssi.h" #include "hw/ssi/ssi.h"
#include "ui/console.h" #include "ui/console.h"
//#define DEBUG_SSD0323 1 //#define DEBUG_SSD0323 1

View file

@ -35,7 +35,7 @@
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "hw/char/serial.h" #include "hw/char/serial.h"
#include "exec/address-spaces.h" #include "exec/address-spaces.h"
#include "hw/ssi.h" #include "hw/ssi/ssi.h"
#include "boot.h" #include "boot.h"

View file

@ -10,7 +10,7 @@
* GNU GPL, version 2 or (at your option) any later version. * GNU GPL, version 2 or (at your option) any later version.
*/ */
#include "hw/ssi.h" #include "hw/ssi/ssi.h"
typedef struct { typedef struct {
SSISlave parent_obj; SSISlave parent_obj;

View file

@ -12,7 +12,7 @@
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "sysemu/blockdev.h" #include "sysemu/blockdev.h"
#include "hw/ssi.h" #include "hw/ssi/ssi.h"
#include "hw/sd/sd.h" #include "hw/sd/sd.h"
//#define DEBUG_SSI_SD 1 //#define DEBUG_SSI_SD 1

View file

@ -8,7 +8,7 @@
*/ */
#include "hw/sysbus.h" #include "hw/sysbus.h"
#include "hw/ssi.h" #include "hw/ssi/ssi.h"
//#define DEBUG_PL022 1 //#define DEBUG_PL022 1

View file

@ -12,7 +12,7 @@
* GNU GPL, version 2 or (at your option) any later version. * GNU GPL, version 2 or (at your option) any later version.
*/ */
#include "hw/ssi.h" #include "hw/ssi/ssi.h"
struct SSIBus { struct SSIBus {
BusState parent_obj; BusState parent_obj;

View file

@ -29,7 +29,7 @@
#include "qemu/log.h" #include "qemu/log.h"
#include "qemu/fifo8.h" #include "qemu/fifo8.h"
#include "hw/ssi.h" #include "hw/ssi/ssi.h"
#ifdef XILINX_SPI_ERR_DEBUG #ifdef XILINX_SPI_ERR_DEBUG
#define DB_PRINT(...) do { \ #define DB_PRINT(...) do { \

View file

@ -27,7 +27,7 @@
#include "hw/ptimer.h" #include "hw/ptimer.h"
#include "qemu/log.h" #include "qemu/log.h"
#include "qemu/fifo8.h" #include "qemu/fifo8.h"
#include "hw/ssi.h" #include "hw/ssi/ssi.h"
#include "qemu/bitops.h" #include "qemu/bitops.h"
#ifndef XILINX_SPIPS_ERR_DEBUG #ifndef XILINX_SPIPS_ERR_DEBUG

View file

@ -14,6 +14,8 @@
#include "hw/qdev.h" #include "hw/qdev.h"
typedef struct SSISlave SSISlave; typedef struct SSISlave SSISlave;
typedef struct SSISlaveClass SSISlaveClass;
typedef enum SSICSMode SSICSMode;
#define TYPE_SSI_SLAVE "ssi-slave" #define TYPE_SSI_SLAVE "ssi-slave"
#define SSI_SLAVE(obj) \ #define SSI_SLAVE(obj) \
@ -25,14 +27,14 @@ typedef struct SSISlave SSISlave;
#define SSI_GPIO_CS "ssi-gpio-cs" #define SSI_GPIO_CS "ssi-gpio-cs"
typedef enum { enum SSICSMode {
SSI_CS_NONE = 0, SSI_CS_NONE = 0,
SSI_CS_LOW, SSI_CS_LOW,
SSI_CS_HIGH, SSI_CS_HIGH,
} SSICSMode; };
/* Slave devices. */ /* Slave devices. */
typedef struct SSISlaveClass { struct SSISlaveClass {
DeviceClass parent_class; DeviceClass parent_class;
int (*init)(SSISlave *dev); int (*init)(SSISlave *dev);
@ -55,7 +57,7 @@ typedef struct SSISlaveClass {
* always be called for the device for every txrx access to the parent bus * always be called for the device for every txrx access to the parent bus
*/ */
uint32_t (*transfer_raw)(SSISlave *dev, uint32_t val); uint32_t (*transfer_raw)(SSISlave *dev, uint32_t val);
} SSISlaveClass; };
struct SSISlave { struct SSISlave {
DeviceState parent_obj; DeviceState parent_obj;