janitor: add guards to headers
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
7edd63f1b1
commit
cb9c377f54
@ -1,3 +1,6 @@
|
|||||||
|
#ifndef GEN_ICOUNT_H
|
||||||
|
#define GEN_ICOUNT_H 1
|
||||||
|
|
||||||
#include "qemu-timer.h"
|
#include "qemu-timer.h"
|
||||||
|
|
||||||
/* Helpers for instruction counting code generation. */
|
/* Helpers for instruction counting code generation. */
|
||||||
@ -46,3 +49,5 @@ static inline void gen_io_end(void)
|
|||||||
tcg_gen_st_i32(tmp, cpu_env, offsetof(CPUArchState, can_do_io));
|
tcg_gen_st_i32(tmp, cpu_env, offsetof(CPUArchState, can_do_io));
|
||||||
tcg_temp_free_i32(tmp);
|
tcg_temp_free_i32(tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -22,6 +22,8 @@
|
|||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
#ifndef HOST_UTILS_H
|
||||||
|
#define HOST_UTILS_H 1
|
||||||
|
|
||||||
#include "compiler.h" /* QEMU_GNUC_PREREQ */
|
#include "compiler.h" /* QEMU_GNUC_PREREQ */
|
||||||
|
|
||||||
@ -234,3 +236,5 @@ static inline int ctpop64(uint64_t val)
|
|||||||
return val;
|
return val;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
* the COPYING file in the top-level directory.
|
* the COPYING file in the top-level directory.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
#ifndef HW_9PFS_VIRTIO9P_SYNTH_H
|
||||||
|
#define HW_9PFS_VIRTIO9P_SYNTH_H 1
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@ -48,3 +50,5 @@ extern int qemu_v9fs_synth_mkdir(V9fsSynthNode *parent, int mode,
|
|||||||
extern int qemu_v9fs_synth_add_file(V9fsSynthNode *parent, int mode,
|
extern int qemu_v9fs_synth_add_file(V9fsSynthNode *parent, int mode,
|
||||||
const char *name, v9fs_synth_read read,
|
const char *name, v9fs_synth_read read,
|
||||||
v9fs_synth_write write, void *arg);
|
v9fs_synth_write write, void *arg);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
#ifndef HW_AUDIODEV_H
|
||||||
|
#define HW_AUDIODEV_H 1
|
||||||
|
|
||||||
/* es1370.c */
|
/* es1370.c */
|
||||||
int es1370_init(PCIBus *bus);
|
int es1370_init(PCIBus *bus);
|
||||||
|
|
||||||
@ -18,3 +21,5 @@ int cs4231a_init(ISABus *bus);
|
|||||||
|
|
||||||
/* intel-hda.c + hda-audio.c */
|
/* intel-hda.c + hda-audio.c */
|
||||||
int intel_hda_and_codec_init(PCIBus *bus);
|
int intel_hda_and_codec_init(PCIBus *bus);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -21,6 +21,10 @@
|
|||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
#ifndef HW_BAUM_H
|
||||||
|
#define HW_BAUM_H 1
|
||||||
|
|
||||||
/* char device */
|
/* char device */
|
||||||
CharDriverState *chr_baum_init(QemuOpts *opts);
|
CharDriverState *chr_baum_init(QemuOpts *opts);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
5
hw/bt.h
5
hw/bt.h
@ -23,6 +23,9 @@
|
|||||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef HW_BT_H
|
||||||
|
#define HW_BT_H 1
|
||||||
|
|
||||||
#include "hw/irq.h"
|
#include "hw/irq.h"
|
||||||
|
|
||||||
/* BD Address */
|
/* BD Address */
|
||||||
@ -2183,3 +2186,5 @@ enum bt_sdp_attribute_id {
|
|||||||
SDP_ATTR_NORMALLY_CONNECTABLE = 0x020d,
|
SDP_ATTR_NORMALLY_CONNECTABLE = 0x020d,
|
||||||
SDP_ATTR_BOOT_DEVICE = 0x020e,
|
SDP_ATTR_BOOT_DEVICE = 0x020e,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#ifndef _CRIS_BOOT_H
|
||||||
|
#define HW_CRIS_BOOT_H 1
|
||||||
|
|
||||||
struct cris_load_info
|
struct cris_load_info
|
||||||
{
|
{
|
||||||
@ -9,3 +11,5 @@ struct cris_load_info
|
|||||||
};
|
};
|
||||||
|
|
||||||
void cris_load_image(CRISCPU *cpu, struct cris_load_info *li);
|
void cris_load_image(CRISCPU *cpu, struct cris_load_info *li);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -1,2 +1,7 @@
|
|||||||
|
#ifndef HW_EMPTY_SLOT_H
|
||||||
|
#define HW_EMPTY_SLOT_H 1
|
||||||
|
|
||||||
/* empty_slot.c */
|
/* empty_slot.c */
|
||||||
void empty_slot_init(hwaddr addr, uint64_t slot_size);
|
void empty_slot_init(hwaddr addr, uint64_t slot_size);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
#ifndef HW_ESCC_H
|
||||||
|
#define HW_ESCC_H 1
|
||||||
|
|
||||||
/* escc.c */
|
/* escc.c */
|
||||||
#define ESCC_SIZE 4
|
#define ESCC_SIZE 4
|
||||||
MemoryRegion *escc_init(hwaddr base, qemu_irq irqA, qemu_irq irqB,
|
MemoryRegion *escc_init(hwaddr base, qemu_irq irqA, qemu_irq irqB,
|
||||||
@ -6,3 +9,5 @@ MemoryRegion *escc_init(hwaddr base, qemu_irq irqA, qemu_irq irqB,
|
|||||||
|
|
||||||
void slavio_serial_ms_kbd_init(hwaddr base, qemu_irq irq,
|
void slavio_serial_ms_kbd_init(hwaddr base, qemu_irq irq,
|
||||||
int disabled, int clock, int it_shift);
|
int disabled, int clock, int it_shift);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -22,6 +22,9 @@
|
|||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef HW_EXTRAXFS_H
|
||||||
|
#define HW_EXTRAXFS_H 1
|
||||||
|
|
||||||
#include "net/net.h"
|
#include "net/net.h"
|
||||||
#include "etraxfs_dma.h"
|
#include "etraxfs_dma.h"
|
||||||
|
|
||||||
@ -44,3 +47,5 @@ etraxfs_eth_init(NICInfo *nd, hwaddr base, int phyaddr,
|
|||||||
sysbus_mmio_map(sysbus_from_qdev(dev), 0, base);
|
sysbus_mmio_map(sysbus_from_qdev(dev), 0, base);
|
||||||
return dev;
|
return dev;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
#ifndef HW_ETRAXFS_DMA_H
|
||||||
|
#define HW_ETRAXFS_DMA_H 1
|
||||||
|
|
||||||
struct dma_context_metadata {
|
struct dma_context_metadata {
|
||||||
/* data descriptor md */
|
/* data descriptor md */
|
||||||
uint16_t metadata;
|
uint16_t metadata;
|
||||||
@ -27,3 +30,5 @@ void etraxfs_dmac_connect_client(void *opaque, int c,
|
|||||||
struct etraxfs_dma_client *cl);
|
struct etraxfs_dma_client *cl);
|
||||||
int etraxfs_dmac_input(struct etraxfs_dma_client *client,
|
int etraxfs_dmac_input(struct etraxfs_dma_client *client,
|
||||||
void *buf, int len, int eop);
|
void *buf, int len, int eop);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
#ifndef HW_FLASH_H
|
||||||
|
#define HW_FLASH_H 1
|
||||||
|
|
||||||
/* NOR flash devices */
|
/* NOR flash devices */
|
||||||
|
|
||||||
#include "memory.h"
|
#include "memory.h"
|
||||||
@ -57,3 +60,5 @@ typedef struct {
|
|||||||
uint8_t ecc_digest(ECCState *s, uint8_t sample);
|
uint8_t ecc_digest(ECCState *s, uint8_t sample);
|
||||||
void ecc_reset(ECCState *s);
|
void ecc_reset(ECCState *s);
|
||||||
extern VMStateDescription vmstate_ecc_state;
|
extern VMStateDescription vmstate_ecc_state;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
#ifndef HW_LM32_H
|
||||||
|
#define HW_LM32_H 1
|
||||||
|
|
||||||
|
|
||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
|
|
||||||
@ -23,3 +26,5 @@ static inline DeviceState *lm32_juart_init(void)
|
|||||||
|
|
||||||
return dev;
|
return dev;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
#ifndef HW_MAC_DBDMA_H
|
||||||
|
#define HW_MAC_DBDMA_H 1
|
||||||
|
|
||||||
#include "memory.h"
|
#include "memory.h"
|
||||||
|
|
||||||
@ -42,3 +44,5 @@ void DBDMA_register_channel(void *dbdma, int nchan, qemu_irq irq,
|
|||||||
DBDMA_rw rw, DBDMA_flush flush,
|
DBDMA_rw rw, DBDMA_flush flush,
|
||||||
void *opaque);
|
void *opaque);
|
||||||
void* DBDMA_init (MemoryRegion **dbdma_mem);
|
void* DBDMA_init (MemoryRegion **dbdma_mem);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -1,2 +1,7 @@
|
|||||||
|
#ifndef HW_MSMOUSE_H
|
||||||
|
#define HW_MSMOUSE_H 1
|
||||||
|
|
||||||
/* msmouse.c */
|
/* msmouse.c */
|
||||||
CharDriverState *qemu_chr_open_msmouse(QemuOpts *opts);
|
CharDriverState *qemu_chr_open_msmouse(QemuOpts *opts);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
#ifndef HW_NE2000_H
|
||||||
|
#define HW_NE2000_H 1
|
||||||
|
|
||||||
#define NE2000_PMEM_SIZE (32*1024)
|
#define NE2000_PMEM_SIZE (32*1024)
|
||||||
#define NE2000_PMEM_START (16*1024)
|
#define NE2000_PMEM_START (16*1024)
|
||||||
#define NE2000_PMEM_END (NE2000_PMEM_SIZE+NE2000_PMEM_START)
|
#define NE2000_PMEM_END (NE2000_PMEM_SIZE+NE2000_PMEM_START)
|
||||||
@ -33,3 +36,5 @@ extern const VMStateDescription vmstate_ne2000;
|
|||||||
void ne2000_reset(NE2000State *s);
|
void ne2000_reset(NE2000State *s);
|
||||||
int ne2000_can_receive(NetClientState *nc);
|
int ne2000_can_receive(NetClientState *nc);
|
||||||
ssize_t ne2000_receive(NetClientState *nc, const uint8_t *buf, size_t size_);
|
ssize_t ne2000_receive(NetClientState *nc, const uint8_t *buf, size_t size_);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -7,6 +7,8 @@
|
|||||||
*
|
*
|
||||||
* QEMU-specific definitions belong in pci.h
|
* QEMU-specific definitions belong in pci.h
|
||||||
*/
|
*/
|
||||||
|
#ifndef HW_PCI_IDS_H
|
||||||
|
#define HW_PCI_IDS_H 1
|
||||||
|
|
||||||
/* Device classes and subclasses */
|
/* Device classes and subclasses */
|
||||||
|
|
||||||
@ -145,3 +147,5 @@
|
|||||||
|
|
||||||
#define PCI_VENDOR_ID_NEC 0x1033
|
#define PCI_VENDOR_ID_NEC 0x1033
|
||||||
#define PCI_DEVICE_ID_NEC_UPD720200 0x0194
|
#define PCI_DEVICE_ID_NEC_UPD720200 0x0194
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
#ifndef HW_PCMCIA_H
|
||||||
|
#define HW_PCMCIA_H 1
|
||||||
|
|
||||||
/* PCMCIA/Cardbus */
|
/* PCMCIA/Cardbus */
|
||||||
|
|
||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
@ -49,3 +52,5 @@ struct PCMCIACardState {
|
|||||||
|
|
||||||
/* dscm1xxxx.c */
|
/* dscm1xxxx.c */
|
||||||
PCMCIACardState *dscm1xxxx_init(DriveInfo *bdrv);
|
PCMCIACardState *dscm1xxxx_init(DriveInfo *bdrv);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
#ifndef HW_PCNET_H
|
||||||
|
#define HW_PCNET_H 1
|
||||||
|
|
||||||
#define PCNET_IOPORT_SIZE 0x20
|
#define PCNET_IOPORT_SIZE 0x20
|
||||||
#define PCNET_PNPMMIO_SIZE 0x20
|
#define PCNET_PNPMMIO_SIZE 0x20
|
||||||
|
|
||||||
@ -63,3 +66,5 @@ void pcnet_set_link_status(NetClientState *nc);
|
|||||||
void pcnet_common_cleanup(PCNetState *d);
|
void pcnet_common_cleanup(PCNetState *d);
|
||||||
int pcnet_common_init(DeviceState *dev, PCNetState *s, NetClientInfo *info);
|
int pcnet_common_init(DeviceState *dev, PCNetState *s, NetClientInfo *info);
|
||||||
extern const VMStateDescription vmstate_pcnet;
|
extern const VMStateDescription vmstate_pcnet;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
5
hw/ppc.h
5
hw/ppc.h
@ -1,3 +1,6 @@
|
|||||||
|
#ifndef HW_PPC_H
|
||||||
|
#define HW_PPC_H 1
|
||||||
|
|
||||||
void ppc_set_irq (CPUPPCState *env, int n_IRQ, int level);
|
void ppc_set_irq (CPUPPCState *env, int n_IRQ, int level);
|
||||||
|
|
||||||
/* PowerPC hardware exceptions management helpers */
|
/* PowerPC hardware exceptions management helpers */
|
||||||
@ -90,3 +93,5 @@ enum {
|
|||||||
|
|
||||||
/* ppc_booke.c */
|
/* ppc_booke.c */
|
||||||
void ppc_booke_timers_init(CPUPPCState *env, uint32_t freq, uint32_t flags);
|
void ppc_booke_timers_init(CPUPPCState *env, uint32_t freq, uint32_t flags);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
|
#ifndef HW_QDEV_ADDR_H
|
||||||
|
#define HW_QDEV_ADDR_H 1
|
||||||
|
|
||||||
#define DEFINE_PROP_TADDR(_n, _s, _f, _d) \
|
#define DEFINE_PROP_TADDR(_n, _s, _f, _d) \
|
||||||
DEFINE_PROP_DEFAULT(_n, _s, _f, _d, qdev_prop_taddr, hwaddr)
|
DEFINE_PROP_DEFAULT(_n, _s, _f, _d, qdev_prop_taddr, hwaddr)
|
||||||
|
|
||||||
extern PropertyInfo qdev_prop_taddr;
|
extern PropertyInfo qdev_prop_taddr;
|
||||||
void qdev_prop_set_taddr(DeviceState *dev, const char *name, hwaddr value);
|
void qdev_prop_set_taddr(DeviceState *dev, const char *name, hwaddr value);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
5
hw/qxl.h
5
hw/qxl.h
@ -1,3 +1,6 @@
|
|||||||
|
#ifndef HW_QXL_H
|
||||||
|
#define HW_QXL_H 1
|
||||||
|
|
||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
|
|
||||||
#include "ui/console.h"
|
#include "ui/console.h"
|
||||||
@ -158,3 +161,5 @@ void qxl_render_update(PCIQXLDevice *qxl);
|
|||||||
int qxl_render_cursor(PCIQXLDevice *qxl, QXLCommandExt *ext);
|
int qxl_render_cursor(PCIQXLDevice *qxl, QXLCommandExt *ext);
|
||||||
void qxl_render_update_area_done(PCIQXLDevice *qxl, QXLCookie *cookie);
|
void qxl_render_update_area_done(PCIQXLDevice *qxl, QXLCookie *cookie);
|
||||||
void qxl_render_update_area_bh(void *opaque);
|
void qxl_render_update_area_bh(void *opaque);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -16,6 +16,8 @@
|
|||||||
* You should have received a copy of the GNU Lesser General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
#ifndef HW_S390_VIRTIO_BUS_H
|
||||||
|
#define HW_S390_VIRTIO_BUS_H 1
|
||||||
|
|
||||||
#include "virtio-blk.h"
|
#include "virtio-blk.h"
|
||||||
#include "virtio-net.h"
|
#include "virtio-net.h"
|
||||||
@ -100,3 +102,5 @@ VirtIOS390Device *s390_virtio_bus_find_mem(VirtIOS390Bus *bus, ram_addr_t mem);
|
|||||||
void s390_virtio_device_sync(VirtIOS390Device *dev);
|
void s390_virtio_device_sync(VirtIOS390Device *dev);
|
||||||
void s390_virtio_reset_idx(VirtIOS390Device *dev);
|
void s390_virtio_reset_idx(VirtIOS390Device *dev);
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
* This header file contains public constants and structures used by
|
* This header file contains public constants and structures used by
|
||||||
* the scsi code for linux.
|
* the scsi code for linux.
|
||||||
*/
|
*/
|
||||||
|
#ifndef HW_SCSI_DEFS_H
|
||||||
|
#define HW_SCSI_DEFS_H 1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SCSI opcodes
|
* SCSI opcodes
|
||||||
@ -301,3 +303,5 @@
|
|||||||
#define MMC_PROFILE_HDDVD_R_DL 0x0058
|
#define MMC_PROFILE_HDDVD_R_DL 0x0058
|
||||||
#define MMC_PROFILE_HDDVD_RW_DL 0x005A
|
#define MMC_PROFILE_HDDVD_RW_DL 0x005A
|
||||||
#define MMC_PROFILE_INVALID 0xFFFF
|
#define MMC_PROFILE_INVALID 0xFFFF
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -22,6 +22,8 @@
|
|||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
#ifndef HW_SERIAL_H
|
||||||
|
#define HW_SERIAL_H 1
|
||||||
|
|
||||||
#include "hw.h"
|
#include "hw.h"
|
||||||
#include "sysemu.h"
|
#include "sysemu.h"
|
||||||
@ -97,3 +99,5 @@ SerialState *serial_mm_init(MemoryRegion *address_space,
|
|||||||
|
|
||||||
/* serial-isa.c */
|
/* serial-isa.c */
|
||||||
bool serial_isa_init(ISABus *bus, int index, CharDriverState *chr);
|
bool serial_isa_init(ISABus *bus, int index, CharDriverState *chr);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -18,6 +18,10 @@
|
|||||||
* with this program; if not, see <http://www.gnu.org/licenses/>.
|
* with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef HW_SOC_DMA_H
|
||||||
|
#define HW_SOC_DMA_H 1
|
||||||
|
|
||||||
|
|
||||||
#include "memory.h"
|
#include "memory.h"
|
||||||
#include "hw/irq.h"
|
#include "hw/irq.h"
|
||||||
|
|
||||||
@ -108,3 +112,5 @@ static inline void soc_dma_port_add_fifo_out(struct soc_dma_s *dma,
|
|||||||
{
|
{
|
||||||
return soc_dma_port_add_fifo(dma, virt_base, fn, opaque, 1);
|
return soc_dma_port_add_fifo(dma, virt_base, fn, opaque, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
#ifndef HW_USB_EHCI_H
|
||||||
|
#define HW_USB_EHCI_H 1
|
||||||
|
|
||||||
#include "hw/hw.h"
|
#include "hw/hw.h"
|
||||||
#include "qemu-timer.h"
|
#include "qemu-timer.h"
|
||||||
@ -318,3 +320,5 @@ struct EHCIState {
|
|||||||
extern const VMStateDescription vmstate_ehci;
|
extern const VMStateDescription vmstate_ehci;
|
||||||
|
|
||||||
void usb_ehci_initfn(EHCIState *s, DeviceState *dev);
|
void usb_ehci_initfn(EHCIState *s, DeviceState *dev);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
#ifndef HW_VGA_INT_H
|
||||||
|
#define HW_VGA_INT_H 1
|
||||||
|
|
||||||
#include <hw/hw.h>
|
#include <hw/hw.h>
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
@ -212,3 +214,5 @@ extern const uint8_t gr_mask[16];
|
|||||||
#define VGABIOS_CIRRUS_FILENAME "vgabios-cirrus.bin"
|
#define VGABIOS_CIRRUS_FILENAME "vgabios-cirrus.bin"
|
||||||
|
|
||||||
extern const MemoryRegionOps vga_mem_ops;
|
extern const MemoryRegionOps vga_mem_ops;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
#ifndef HW_XILINX_H
|
||||||
|
#define HW_XILINX_H 1
|
||||||
|
|
||||||
|
|
||||||
#include "stream.h"
|
#include "stream.h"
|
||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
#include "net/net.h"
|
#include "net/net.h"
|
||||||
@ -90,3 +94,5 @@ xilinx_axiethernetdma_init(DeviceState *dev, StreamSlave *peer,
|
|||||||
sysbus_connect_irq(sysbus_from_qdev(dev), 0, irq);
|
sysbus_connect_irq(sysbus_from_qdev(dev), 0, irq);
|
||||||
sysbus_connect_irq(sysbus_from_qdev(dev), 1, irq2);
|
sysbus_connect_irq(sysbus_from_qdev(dev), 1, irq2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
5
iov.h
5
iov.h
@ -11,6 +11,9 @@
|
|||||||
* the COPYING file in the top-level directory.
|
* the COPYING file in the top-level directory.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef IOV_H
|
||||||
|
#define IOV_H
|
||||||
|
|
||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -95,3 +98,5 @@ void iov_hexdump(const struct iovec *iov, const unsigned int iov_cnt,
|
|||||||
unsigned iov_copy(struct iovec *dst_iov, unsigned int dst_iov_cnt,
|
unsigned iov_copy(struct iovec *dst_iov, unsigned int dst_iov_cnt,
|
||||||
const struct iovec *iov, unsigned int iov_cnt,
|
const struct iovec *iov, unsigned int iov_cnt,
|
||||||
size_t offset, size_t bytes);
|
size_t offset, size_t bytes);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
#ifndef CRIS_SYSCALL_H
|
||||||
|
#define CRIS_SYSCALL_H 1
|
||||||
|
|
||||||
|
|
||||||
#define UNAME_MACHINE "cris"
|
#define UNAME_MACHINE "cris"
|
||||||
|
|
||||||
@ -34,3 +37,5 @@ struct target_pt_regs {
|
|||||||
unsigned long exs;
|
unsigned long exs;
|
||||||
unsigned long eda;
|
unsigned long eda;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
#ifndef MICROBLAZE_SYSCALLS_H
|
||||||
|
#define MICROBLAZE_SYSCALLS_H 1
|
||||||
|
|
||||||
|
|
||||||
#define UNAME_MACHINE "microblaze"
|
#define UNAME_MACHINE "microblaze"
|
||||||
|
|
||||||
/* We use microblaze_reg_t to keep things similar to the kernel sources. */
|
/* We use microblaze_reg_t to keep things similar to the kernel sources. */
|
||||||
@ -43,3 +47,5 @@ struct target_pt_regs {
|
|||||||
microblaze_reg_t fsr;
|
microblaze_reg_t fsr;
|
||||||
uint32_t kernel_mode;
|
uint32_t kernel_mode;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -4,6 +4,10 @@
|
|||||||
most of them stay the same, so we handle it by putting ifdefs if
|
most of them stay the same, so we handle it by putting ifdefs if
|
||||||
necessary */
|
necessary */
|
||||||
|
|
||||||
|
#ifndef SYSCALL_DEFS_H
|
||||||
|
#define SYSCALL_DEFS_H 1
|
||||||
|
|
||||||
|
|
||||||
#include "syscall_nr.h"
|
#include "syscall_nr.h"
|
||||||
|
|
||||||
#define SOCKOP_socket 1
|
#define SOCKOP_socket 1
|
||||||
@ -2425,3 +2429,5 @@ struct target_ucred {
|
|||||||
uint32_t uid;
|
uint32_t uid;
|
||||||
uint32_t gid;
|
uint32_t gid;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
/* bootp/dhcp defines */
|
/* bootp/dhcp defines */
|
||||||
|
#ifndef SLIRP_BOOTP_H
|
||||||
|
#define SLIRP_BOOTP_H 1
|
||||||
|
|
||||||
#define BOOTP_SERVER 67
|
#define BOOTP_SERVER 67
|
||||||
#define BOOTP_CLIENT 68
|
#define BOOTP_CLIENT 68
|
||||||
@ -120,3 +122,5 @@ typedef struct {
|
|||||||
#define NB_BOOTP_CLIENTS 16
|
#define NB_BOOTP_CLIENTS 16
|
||||||
|
|
||||||
void bootp_input(struct mbuf *m);
|
void bootp_input(struct mbuf *m);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
* Please read the file COPYRIGHT for the
|
* Please read the file COPYRIGHT for the
|
||||||
* terms and conditions of the copyright.
|
* terms and conditions of the copyright.
|
||||||
*/
|
*/
|
||||||
|
#ifndef SLIRP_MAIN_H
|
||||||
|
#define SLIRP_MAIN_H 1
|
||||||
|
|
||||||
#ifdef HAVE_SYS_SELECT_H
|
#ifdef HAVE_SYS_SELECT_H
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
@ -45,3 +47,5 @@ extern int tcp_keepintvl;
|
|||||||
|
|
||||||
int if_encap(Slirp *slirp, struct mbuf *ifm);
|
int if_encap(Slirp *slirp, struct mbuf *ifm);
|
||||||
ssize_t slirp_send(struct socket *so, const void *buf, size_t len, int flags);
|
ssize_t slirp_send(struct socket *so, const void *buf, size_t len, int flags);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
/* tftp defines */
|
/* tftp defines */
|
||||||
|
#ifndef SLIRP_TFTP_H
|
||||||
|
#define SLIRP_TFTP_H 1
|
||||||
|
|
||||||
#define TFTP_SESSIONS_MAX 3
|
#define TFTP_SESSIONS_MAX 3
|
||||||
|
|
||||||
@ -43,3 +45,5 @@ struct tftp_session {
|
|||||||
};
|
};
|
||||||
|
|
||||||
void tftp_input(struct mbuf *m);
|
void tftp_input(struct mbuf *m);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
*
|
*
|
||||||
* This code is licensed under the GPL
|
* This code is licensed under the GPL
|
||||||
*/
|
*/
|
||||||
|
#ifndef SOFTMMU_SEMI_H
|
||||||
|
#define SOFTMMU_SEMI_H 1
|
||||||
|
|
||||||
static inline uint32_t softmmu_tget32(CPUArchState *env, uint32_t addr)
|
static inline uint32_t softmmu_tget32(CPUArchState *env, uint32_t addr)
|
||||||
{
|
{
|
||||||
@ -71,3 +73,5 @@ static void softmmu_unlock_user(CPUArchState *env, void *p, target_ulong addr,
|
|||||||
free(p);
|
free(p);
|
||||||
}
|
}
|
||||||
#define unlock_user(s, args, len) softmmu_unlock_user(env, s, args, len)
|
#define unlock_user(s, args, len) softmmu_unlock_user(env, s, args, len)
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
* You should have received a copy of the GNU Lesser General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
#ifndef CRISV32_DECODE_H
|
||||||
|
#define CRISV32_DECODE_H 1
|
||||||
|
|
||||||
/* Convenient binary macros. */
|
/* Convenient binary macros. */
|
||||||
#define HEX__(n) 0x##n##LU
|
#define HEX__(n) 0x##n##LU
|
||||||
@ -126,3 +128,5 @@
|
|||||||
|
|
||||||
#define DEC_FTAG_FIDX_D_M {B8(10101011), B8(11111111)}
|
#define DEC_FTAG_FIDX_D_M {B8(10101011), B8(11111111)}
|
||||||
#define DEC_FTAG_FIDX_I_M {B8(11010011), B8(11111111)}
|
#define DEC_FTAG_FIDX_I_M {B8(11010011), B8(11111111)}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
#ifndef TCG_TARGET_ARM
|
||||||
#define TCG_TARGET_ARM 1
|
#define TCG_TARGET_ARM 1
|
||||||
|
|
||||||
#undef TCG_TARGET_WORDS_BIGENDIAN
|
#undef TCG_TARGET_WORDS_BIGENDIAN
|
||||||
@ -91,3 +92,5 @@ static inline void flush_icache_range(tcg_target_ulong start,
|
|||||||
__asm __volatile__ ("swi 0x9f0002" : : "r" (_beg), "r" (_end), "r" (_flg));
|
__asm __volatile__ ("swi 0x9f0002" : : "r" (_beg), "r" (_end), "r" (_flg));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef TCG_TARGET_HPPA
|
||||||
#define TCG_TARGET_HPPA 1
|
#define TCG_TARGET_HPPA 1
|
||||||
|
|
||||||
#if TCG_TARGET_REG_BITS != 32
|
#if TCG_TARGET_REG_BITS != 32
|
||||||
@ -119,3 +120,5 @@ static inline void flush_icache_range(tcg_target_ulong start,
|
|||||||
start += 32;
|
start += 32;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
#ifndef TCG_TARGET_I386
|
||||||
#define TCG_TARGET_I386 1
|
#define TCG_TARGET_I386 1
|
||||||
|
|
||||||
//#define TCG_TARGET_WORDS_BIGENDIAN
|
//#define TCG_TARGET_WORDS_BIGENDIAN
|
||||||
@ -135,3 +136,5 @@ static inline void flush_icache_range(tcg_target_ulong start,
|
|||||||
tcg_target_ulong stop)
|
tcg_target_ulong stop)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
#ifndef TCG_TARGET_IA64
|
||||||
#define TCG_TARGET_IA64 1
|
#define TCG_TARGET_IA64 1
|
||||||
|
|
||||||
/* We only map the first 64 registers */
|
/* We only map the first 64 registers */
|
||||||
@ -158,3 +159,5 @@ static inline void flush_icache_range(tcg_target_ulong start,
|
|||||||
}
|
}
|
||||||
asm volatile (";;sync.i;;srlz.i;;");
|
asm volatile (";;sync.i;;srlz.i;;");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
#ifndef TCG_TARGET_MIPS
|
||||||
#define TCG_TARGET_MIPS 1
|
#define TCG_TARGET_MIPS 1
|
||||||
|
|
||||||
#ifdef __MIPSEB__
|
#ifdef __MIPSEB__
|
||||||
@ -127,3 +128,5 @@ static inline void flush_icache_range(tcg_target_ulong start,
|
|||||||
{
|
{
|
||||||
cacheflush ((void *)start, stop-start, ICACHE);
|
cacheflush ((void *)start, stop-start, ICACHE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
#ifndef TCG_TARGET_PPC
|
||||||
#define TCG_TARGET_PPC 1
|
#define TCG_TARGET_PPC 1
|
||||||
|
|
||||||
#define TCG_TARGET_WORDS_BIGENDIAN
|
#define TCG_TARGET_WORDS_BIGENDIAN
|
||||||
@ -99,3 +100,5 @@ typedef enum {
|
|||||||
#define tcg_qemu_tb_exec(env, tb_ptr) \
|
#define tcg_qemu_tb_exec(env, tb_ptr) \
|
||||||
((long __attribute__ ((longcall)) \
|
((long __attribute__ ((longcall)) \
|
||||||
(*)(void *, void *))code_gen_prologue)(env, tb_ptr)
|
(*)(void *, void *))code_gen_prologue)(env, tb_ptr)
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
#ifndef TCG_TARGET_PPC64
|
||||||
#define TCG_TARGET_PPC64 1
|
#define TCG_TARGET_PPC64 1
|
||||||
|
|
||||||
#define TCG_TARGET_WORDS_BIGENDIAN
|
#define TCG_TARGET_WORDS_BIGENDIAN
|
||||||
@ -109,3 +110,5 @@ typedef enum {
|
|||||||
#define TCG_AREG0 TCG_REG_R27
|
#define TCG_AREG0 TCG_REG_R27
|
||||||
|
|
||||||
#define TCG_TARGET_EXTEND_ARGS 1
|
#define TCG_TARGET_EXTEND_ARGS 1
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
#ifndef TCG_TARGET_S390
|
||||||
#define TCG_TARGET_S390 1
|
#define TCG_TARGET_S390 1
|
||||||
|
|
||||||
#define TCG_TARGET_WORDS_BIGENDIAN
|
#define TCG_TARGET_WORDS_BIGENDIAN
|
||||||
@ -103,3 +104,5 @@ static inline void flush_icache_range(tcg_target_ulong start,
|
|||||||
tcg_target_ulong stop)
|
tcg_target_ulong stop)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
#ifndef TCG_TARGET_SPARC
|
||||||
#define TCG_TARGET_SPARC 1
|
#define TCG_TARGET_SPARC 1
|
||||||
|
|
||||||
#define TCG_TARGET_WORDS_BIGENDIAN
|
#define TCG_TARGET_WORDS_BIGENDIAN
|
||||||
@ -138,3 +139,5 @@ static inline void flush_icache_range(tcg_target_ulong start,
|
|||||||
for (; p < stop; p += 8)
|
for (; p < stop; p += 8)
|
||||||
__asm__ __volatile__("flush\t%0" : : "r" (p));
|
__asm__ __volatile__("flush\t%0" : : "r" (p));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
#ifndef CRISUTILS_H
|
||||||
|
#define CRISUTILS_H 1
|
||||||
|
|
||||||
static char *tst_cc_loc = NULL;
|
static char *tst_cc_loc = NULL;
|
||||||
|
|
||||||
#define cris_tst_cc_init() \
|
#define cris_tst_cc_init() \
|
||||||
@ -69,3 +72,5 @@ static inline void cris_tst_cc(const int n, const int z,
|
|||||||
if (c) cris_tst_cc_c1(); else cris_tst_cc_c0();
|
if (c) cris_tst_cc_c1(); else cris_tst_cc_c0();
|
||||||
asm volatile ("" : : "g" (_err));
|
asm volatile ("" : : "g" (_err));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -22,6 +22,9 @@
|
|||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef QEMU_CURSES_KEYS_H
|
||||||
|
#define QEMU_CURSES_KEYS_H 1
|
||||||
|
|
||||||
#include <curses.h>
|
#include <curses.h>
|
||||||
#include "keymaps.h"
|
#include "keymaps.h"
|
||||||
|
|
||||||
@ -507,3 +510,5 @@ static const name2keysym_t name2keysym[] = {
|
|||||||
|
|
||||||
{ NULL, 0 },
|
{ NULL, 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -9,6 +9,8 @@
|
|||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
*/
|
*/
|
||||||
|
#ifndef D3DES_H
|
||||||
|
#define D3DES_H 1
|
||||||
|
|
||||||
/* d3des.h -
|
/* d3des.h -
|
||||||
*
|
*
|
||||||
@ -49,3 +51,5 @@ void des(unsigned char *, unsigned char *);
|
|||||||
|
|
||||||
/* d3des.h V5.09 rwo 9208.04 15:06 Graven Imagery
|
/* d3des.h V5.09 rwo 9208.04 15:06 Graven Imagery
|
||||||
********************************************************************/
|
********************************************************************/
|
||||||
|
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user