10 typedef struct ISABus ISABus
;
11 typedef struct ISADevice ISADevice
;
12 typedef struct ISADeviceInfo ISADeviceInfo
;
21 typedef int (*isa_qdev_initfn
)(ISADevice
*dev
);
22 struct ISADeviceInfo
{
27 ISABus
*isa_bus_new(DeviceState
*dev
, MemoryRegion
*address_space_io
);
28 void isa_bus_irqs(qemu_irq
*irqs
);
29 qemu_irq
isa_get_irq(int isairq
);
30 void isa_init_irq(ISADevice
*dev
, qemu_irq
*p
, int isairq
);
31 void isa_qdev_register(ISADeviceInfo
*info
);
32 MemoryRegion
*isa_address_space(ISADevice
*dev
);
33 ISADevice
*isa_create(const char *name
);
34 ISADevice
*isa_try_create(const char *name
);
35 ISADevice
*isa_create_simple(const char *name
);
38 * isa_register_ioport: Install an I/O port region on the ISA bus.
40 * Register an I/O port region via memory_region_add_subregion
41 * inside the ISA I/O address space.
43 * @dev: the ISADevice against which these are registered; may be NULL.
44 * @io: the #MemoryRegion being registered.
45 * @start: the base I/O port.
47 void isa_register_ioport(ISADevice
*dev
, MemoryRegion
*io
, uint16_t start
);
50 * isa_register_portio_list: Initialize a set of ISA io ports
52 * Several ISA devices have many dis-joint I/O ports. Worse, these I/O
53 * ports can be interleaved with I/O ports from other devices. This
54 * function makes it easy to create multiple MemoryRegions for a single
55 * device and use the legacy portio routines.
57 * @dev: the ISADevice against which these are registered; may be NULL.
58 * @start: the base I/O port against which the portio->offset is applied.
59 * @portio: the ports, sorted by offset.
60 * @opaque: passed into the old_portio callbacks.
61 * @name: passed into memory_region_init_io.
63 void isa_register_portio_list(ISADevice
*dev
, uint16_t start
,
64 const MemoryRegionPortio
*portio
,
65 void *opaque
, const char *name
);
67 extern target_phys_addr_t isa_mem_base
;
69 void isa_mmio_setup(MemoryRegion
*mr
, target_phys_addr_t size
);
70 void isa_mmio_init(target_phys_addr_t base
, target_phys_addr_t size
);
73 int DMA_get_channel_mode (int nchan
);
74 int DMA_read_memory (int nchan
, void *buf
, int pos
, int size
);
75 int DMA_write_memory (int nchan
, void *buf
, int pos
, int size
);
76 void DMA_hold_DREQ (int nchan
);
77 void DMA_release_DREQ (int nchan
);
78 void DMA_schedule(int nchan
);
79 void DMA_init(int high_page_enable
, qemu_irq
*cpu_request_exit
);
80 void DMA_register_channel (int nchan
,
81 DMA_transfer_handler transfer_handler
,