]> Git Repo - qemu.git/blame - hw/isa.h
hw/pl061.c: Support GPIOAMSEL register
[qemu.git] / hw / isa.h
CommitLineData
79383c9c
BS
1#ifndef HW_ISA_H
2#define HW_ISA_H
f915a115 3
87ecb68b
PB
4/* ISA bus */
5
32993977 6#include "ioport.h"
af956cad 7#include "memory.h"
f915a115
GH
8#include "qdev.h"
9
10typedef struct ISABus ISABus;
11typedef struct ISADevice ISADevice;
12typedef struct ISADeviceInfo ISADeviceInfo;
13
14struct ISADevice {
15 DeviceState qdev;
2091ba23 16 uint32_t isairq[2];
f915a115 17 int nirqs;
dee41d58
GN
18 uint16_t ioports[32];
19 int nioports;
f915a115
GH
20};
21
81a322d4 22typedef int (*isa_qdev_initfn)(ISADevice *dev);
f915a115
GH
23struct ISADeviceInfo {
24 DeviceInfo qdev;
25 isa_qdev_initfn init;
26};
27
28ISABus *isa_bus_new(DeviceState *dev);
2091ba23 29void isa_bus_irqs(qemu_irq *irqs);
ee951a37 30qemu_irq isa_get_irq(int isairq);
2e15e23b 31void isa_init_irq(ISADevice *dev, qemu_irq *p, int isairq);
dee41d58
GN
32void isa_init_ioport(ISADevice *dev, uint16_t ioport);
33void isa_init_ioport_range(ISADevice *dev, uint16_t start, uint16_t length);
f915a115 34void isa_qdev_register(ISADeviceInfo *info);
924f6d72 35ISADevice *isa_create(const char *name);
86f4a9a5 36ISADevice *isa_try_create(const char *name);
2e15e23b 37ISADevice *isa_create_simple(const char *name);
87ecb68b 38
c227f099 39extern target_phys_addr_t isa_mem_base;
87ecb68b 40
af956cad 41void isa_mmio_setup(MemoryRegion *mr, target_phys_addr_t size);
968d683c 42void isa_mmio_init(target_phys_addr_t base, target_phys_addr_t size);
87ecb68b
PB
43
44/* dma.c */
45int DMA_get_channel_mode (int nchan);
46int DMA_read_memory (int nchan, void *buf, int pos, int size);
47int DMA_write_memory (int nchan, void *buf, int pos, int size);
48void DMA_hold_DREQ (int nchan);
49void DMA_release_DREQ (int nchan);
50void DMA_schedule(int nchan);
4556bd8b 51void DMA_init(int high_page_enable, qemu_irq *cpu_request_exit);
87ecb68b
PB
52void DMA_register_channel (int nchan,
53 DMA_transfer_handler transfer_handler,
54 void *opaque);
79383c9c 55#endif
This page took 0.444393 seconds and 4 git commands to generate.