tusb6010: move declarations to new file tusb6010.h

Avoid #include hell.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Avi Kivity 2011-08-15 17:17:22 +03:00 committed by Anthony Liguori
parent fc2bf44972
commit d09871f69c
4 changed files with 27 additions and 8 deletions

View File

@ -47,13 +47,6 @@ void *tahvo_init(qemu_irq irq, int betty);
void retu_key_event(void *retu, int state); void retu_key_event(void *retu, int state);
/* tusb6010.c */
typedef struct TUSBState TUSBState;
TUSBState *tusb6010_init(qemu_irq intr);
int tusb6010_sync_io(TUSBState *s);
int tusb6010_async_io(TUSBState *s);
void tusb6010_power(TUSBState *s, int on);
/* tc6393xb.c */ /* tc6393xb.c */
typedef struct TC6393xbState TC6393xbState; typedef struct TC6393xbState TC6393xbState;
#define TC6393XB_RAM 0x110000 /* amount of ram for Video and USB */ #define TC6393XB_RAM 0x110000 /* amount of ram for Video and USB */

View File

@ -32,6 +32,7 @@
#include "bt.h" #include "bt.h"
#include "loader.h" #include "loader.h"
#include "blockdev.h" #include "blockdev.h"
#include "tusb6010.h"
/* Nokia N8x0 support */ /* Nokia N8x0 support */
struct n800_s { struct n800_s {

View File

@ -23,7 +23,7 @@
#include "usb.h" #include "usb.h"
#include "omap.h" #include "omap.h"
#include "irq.h" #include "irq.h"
#include "devices.h" #include "tusb6010.h"
struct TUSBState { struct TUSBState {
int iomemtype[2]; int iomemtype[2];

25
hw/tusb6010.h Normal file
View File

@ -0,0 +1,25 @@
/*
* tusb6010 interfaces
*
* Copyright 2011 Red Hat, Inc. and/or its affiliates
*
* Authors:
* Avi Kivity <avi@redhat.com>
*
* Derived from hw/devices.h.
*
* This work is licensed under the terms of the GNU GPL, version 2. See
* the COPYING file in the top-level directory.
*
*/
#ifndef TUSB6010_H
#define TUSB6010_H
typedef struct TUSBState TUSBState;
TUSBState *tusb6010_init(qemu_irq intr);
int tusb6010_sync_io(TUSBState *s);
int tusb6010_async_io(TUSBState *s);
void tusb6010_power(TUSBState *s, int on);
#endif