Fixed compilation error
[bochs-mirror.git] / plugin.h
blob52d99bedebd1e508bb48bc59d82769880b5aca04
1 /////////////////////////////////////////////////////////////////////////
2 // $Id: plugin.h,v 1.63 2008/11/18 20:55:59 sshwarts Exp $
3 /////////////////////////////////////////////////////////////////////////
4 //
5 // This file provides macros and types needed for plugins. It is based on
6 // the plugin.h file from plex86, but with significant changes to make
7 // it work in Bochs.
8 // Plex86 is Copyright (C) 1999-2000 The plex86 developers team
9 //
10 /////////////////////////////////////////////////////////////////////////
12 #ifndef __PLUGIN_H
13 #define __PLUGIN_H
15 #include "extplugin.h"
17 class bx_devices_c;
18 BOCHSAPI extern logfunctions *pluginlog;
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
24 #define BX_PLUGIN_UNMAPPED "unmapped"
25 #define BX_PLUGIN_BIOSDEV "biosdev"
26 #define BX_PLUGIN_CMOS "cmos"
27 #define BX_PLUGIN_VGA "vga"
28 #define BX_PLUGIN_FLOPPY "floppy"
29 #define BX_PLUGIN_PARALLEL "parallel"
30 #define BX_PLUGIN_SERIAL "serial"
31 #define BX_PLUGIN_KEYBOARD "keyboard"
32 #define BX_PLUGIN_BUSMOUSE "busmouse"
33 #define BX_PLUGIN_HARDDRV "harddrv"
34 #define BX_PLUGIN_DMA "dma"
35 #define BX_PLUGIN_PIC "pic"
36 #define BX_PLUGIN_PCI "pci"
37 #define BX_PLUGIN_PCI2ISA "pci2isa"
38 #define BX_PLUGIN_PCI_IDE "pci_ide"
39 #define BX_PLUGIN_SB16 "sb16"
40 #define BX_PLUGIN_NE2K "ne2k"
41 #define BX_PLUGIN_EXTFPUIRQ "extfpuirq"
42 #define BX_PLUGIN_PCIVGA "pcivga"
43 #define BX_PLUGIN_PCIDEV "pcidev"
44 #define BX_PLUGIN_PCIUSB "pciusb"
45 #define BX_PLUGIN_PCIPNIC "pcipnic"
46 #define BX_PLUGIN_GAMEPORT "gameport"
47 #define BX_PLUGIN_SPEAKER "speaker"
48 #define BX_PLUGIN_ACPI "acpi"
51 #define BX_REGISTER_DEVICE_DEVMODEL(a,b,c,d) pluginRegisterDeviceDevmodel(a,b,c,d)
53 #if BX_PLUGINS
55 #define DEV_init_devices() {bx_devices.init(BX_MEM(0)); }
56 #define DEV_reset_devices(type) {bx_devices.reset(type); }
57 #define DEV_register_state() {bx_devices.register_state(); }
58 #define DEV_after_restore_state() {bx_devices.after_restore_state(); }
59 #define PLUG_load_plugin(name,type) {bx_load_plugin(#name,type);}
60 #define PLUG_unload_plugin(name) {bx_unload_plugin(#name);}
62 #define DEV_register_ioread_handler(b,c,d,e,f) pluginRegisterIOReadHandler(b,c,d,e,f)
63 #define DEV_register_iowrite_handler(b,c,d,e,f) pluginRegisterIOWriteHandler(b,c,d,e,f)
64 #define DEV_unregister_ioread_handler(b,c,d,e) pluginUnregisterIOReadHandler(b,c,d,e)
65 #define DEV_unregister_iowrite_handler(b,c,d,e) pluginUnregisterIOWriteHandler(b,c,d,e)
66 #define DEV_register_ioread_handler_range(b,c,d,e,f,g) pluginRegisterIOReadHandlerRange(b,c,d,e,f,g)
67 #define DEV_register_iowrite_handler_range(b,c,d,e,f,g) pluginRegisterIOWriteHandlerRange(b,c,d,e,f,g)
68 #define DEV_unregister_ioread_handler_range(b,c,d,e,f) pluginUnregisterIOReadHandlerRange(b,c,d,e,f)
69 #define DEV_unregister_iowrite_handler_range(b,c,d,e,f) pluginUnregisterIOWriteHandlerRange(b,c,d,e,f)
70 #define DEV_register_default_ioread_handler(b,c,d,e) pluginRegisterDefaultIOReadHandler(b,c,d,e)
71 #define DEV_register_default_iowrite_handler(b,c,d,e) pluginRegisterDefaultIOWriteHandler(b,c,d,e)
73 #define DEV_register_irq(b,c) pluginRegisterIRQ(b,c)
74 #define DEV_unregister_irq(b,c) pluginUnregisterIRQ(b,c)
76 #else
78 #define DEV_init_devices() {bx_devices.init(BX_MEM(0)); }
79 #define DEV_reset_devices(type) {bx_devices.reset(type); }
80 #define DEV_register_state() {bx_devices.register_state(); }
81 #define DEV_after_restore_state() {bx_devices.after_restore_state(); }
82 // When plugins are off, PLUG_load_plugin will call the plugin_init function
83 // directly.
84 #define PLUG_load_plugin(name,type) {lib##name##_LTX_plugin_init(NULL,type,0,NULL);}
85 #define PLUG_unload_plugin(name) {lib##name##_LTX_plugin_fini();}
86 #define DEV_register_ioread_handler(b,c,d,e,f) bx_devices.register_io_read_handler(b,c,d,e,f)
87 #define DEV_register_iowrite_handler(b,c,d,e,f) bx_devices.register_io_write_handler(b,c,d,e,f)
88 #define DEV_unregister_ioread_handler(b,c,d,e) bx_devices.unregister_io_read_handler(b,c,d,e)
89 #define DEV_unregister_iowrite_handler(b,c,d,e) bx_devices.unregister_io_write_handler(b,c,d,e)
90 #define DEV_register_ioread_handler_range(b,c,d,e,f,g) bx_devices.register_io_read_handler_range(b,c,d,e,f,g)
91 #define DEV_register_iowrite_handler_range(b,c,d,e,f,g) bx_devices.register_io_write_handler_range(b,c,d,e,f,g)
92 #define DEV_unregister_ioread_handler_range(b,c,d,e,f) bx_devices.unregister_io_read_handler_range(b,c,d,e,f)
93 #define DEV_unregister_iowrite_handler_range(b,c,d,e,f) bx_devices.unregister_io_write_handler_range(b,c,d,e,f)
94 #define DEV_register_default_ioread_handler(b,c,d,e) bx_devices.register_default_io_read_handler(b,c,d,e)
95 #define DEV_register_default_iowrite_handler(b,c,d,e) bx_devices.register_default_io_write_handler(b,c,d,e)
96 #define DEV_register_irq(b,c) bx_devices.register_irq(b,c)
97 #define DEV_unregister_irq(b,c) bx_devices.unregister_irq(b,c)
99 #endif // #if BX_PLUGINS
101 #define DEV_ioapic_present() (bx_devices.ioapic != NULL)
103 // FIXME Do we really need pluginRegisterTimer ?
104 #define DEV_register_timer(a,b,c,d,e,f) bx_pc_system.register_timer(a,b,c,d,e,f)
106 ///////// CMOS macros
107 #define DEV_cmos_get_reg(a) (bx_devices.pluginCmosDevice->get_reg(a))
108 #define DEV_cmos_set_reg(a,b) (bx_devices.pluginCmosDevice->set_reg(a,b))
109 #define DEV_cmos_checksum() (bx_devices.pluginCmosDevice->checksum_cmos())
110 #define DEV_cmos_get_timeval() (bx_devices.pluginCmosDevice->get_timeval())
111 #define DEV_cmos_present() (bx_devices.pluginCmosDevice != &bx_devices.stubCmos)
113 ///////// keyboard macros
114 #define DEV_mouse_motion(dx, dy, state) \
115 (bx_devices.pluginKeyboard->mouse_motion(dx, dy, 0, state))
116 #define DEV_mouse_motion_ext(dx, dy, dz, state) \
117 (bx_devices.pluginKeyboard->mouse_motion(dx, dy, dz, state))
118 #define DEV_kbd_gen_scancode(key) \
119 (bx_devices.pluginKeyboard->gen_scancode(key))
120 #define DEV_kbd_paste_bytes(bytes, count) \
121 (bx_devices.pluginKeyboard->paste_bytes(bytes,count))
123 ///////// hard drive macros
124 #define DEV_hd_read_handler(a, b, c) \
125 (bx_devices.pluginHardDrive->virt_read_handler(b, c))
126 #define DEV_hd_write_handler(a, b, c, d) \
127 (bx_devices.pluginHardDrive->virt_write_handler(b, c, d))
128 #define DEV_hd_get_first_cd_handle() \
129 (bx_devices.pluginHardDrive->get_first_cd_handle())
130 #define DEV_hd_get_device_handle(a,b) \
131 (bx_devices.pluginHardDrive->get_device_handle(a,b))
132 #define DEV_hd_get_cd_media_status(handle) \
133 (bx_devices.pluginHardDrive->get_cd_media_status(handle))
134 #define DEV_hd_set_cd_media_status(handle, status) \
135 (bx_devices.pluginHardDrive->set_cd_media_status(handle, status))
136 #define DEV_hd_present() (bx_devices.pluginHardDrive != &bx_devices.stubHardDrive)
137 #define DEV_hd_bmdma_read_sector(a,b,c) bx_devices.pluginHardDrive->bmdma_read_sector(a,b,c)
138 #define DEV_hd_bmdma_write_sector(a,b) bx_devices.pluginHardDrive->bmdma_write_sector(a,b)
139 #define DEV_hd_bmdma_complete(a) bx_devices.pluginHardDrive->bmdma_complete(a)
141 #define DEV_bulk_io_quantum_requested() (bx_devices.bulkIOQuantumsRequested)
142 #define DEV_bulk_io_quantum_transferred() (bx_devices.bulkIOQuantumsTransferred)
143 #define DEV_bulk_io_host_addr() (bx_devices.bulkIOHostAddr)
145 ///////// FLOPPY macros
146 #define DEV_floppy_get_media_status(drive) bx_devices.pluginFloppyDevice->get_media_status(drive)
147 #define DEV_floppy_set_media_status(drive, status) bx_devices.pluginFloppyDevice->set_media_status(drive, status)
148 #define DEV_floppy_present() (bx_devices.pluginFloppyDevice != &bx_devices.stubFloppy)
150 ///////// DMA macros
151 #define DEV_dma_register_8bit_channel(channel, dmaRead, dmaWrite, name) \
152 (bx_devices.pluginDmaDevice->registerDMA8Channel(channel, dmaRead, dmaWrite, name))
153 #define DEV_dma_register_16bit_channel(channel, dmaRead, dmaWrite, name) \
154 (bx_devices.pluginDmaDevice->registerDMA16Channel(channel, dmaRead, dmaWrite, name))
155 #define DEV_dma_unregister_channel(channel) \
156 (bx_devices.pluginDmaDevice->unregisterDMAChannel(channel))
157 #define DEV_dma_set_drq(channel, val) \
158 (bx_devices.pluginDmaDevice->set_DRQ(channel, val))
159 #define DEV_dma_get_tc() \
160 (bx_devices.pluginDmaDevice->get_TC())
161 #define DEV_dma_raise_hlda() \
162 (bx_devices.pluginDmaDevice->raise_HLDA())
164 ///////// PIC macros
165 #define DEV_pic_lower_irq(b) (bx_devices.pluginPicDevice->lower_irq(b))
166 #define DEV_pic_raise_irq(b) (bx_devices.pluginPicDevice->raise_irq(b))
167 #define DEV_pic_set_mode(a,b) (bx_devices.pluginPicDevice->set_mode(a,b))
168 #define DEV_pic_iac() (bx_devices.pluginPicDevice->IAC())
169 #define DEV_pic_show_pic_state() (bx_devices.pluginPicDevice->show_pic_state())
171 ///////// VGA macros
172 #define DEV_vga_mem_read(addr) (bx_devices.pluginVgaDevice->mem_read(addr))
173 #define DEV_vga_mem_write(addr, val) (bx_devices.pluginVgaDevice->mem_write(addr, val))
174 #define DEV_vga_redraw_area(left, top, right, bottom) \
175 (bx_devices.pluginVgaDevice->redraw_area(left, top, right, bottom))
176 #define DEV_vga_get_text_snapshot(rawsnap, height, width) \
177 (bx_devices.pluginVgaDevice->get_text_snapshot(rawsnap, height, width))
178 #define DEV_vga_refresh() \
179 (bx_devices.pluginVgaDevice->trigger_timer(bx_devices.pluginVgaDevice))
180 #define DEV_vga_get_actl_pal_idx(index) (bx_devices.pluginVgaDevice->get_actl_palette_idx(index))
181 #define DEV_vga_dump_status() (bx_devices.pluginVgaDevice->dump_status())
183 ///////// PCI macros
184 #define DEV_register_pci_handlers(a,b,c,d) \
185 (bx_devices.pluginPciBridge->register_pci_handlers(a,b,c,d))
186 #define DEV_is_pci_device(name) bx_devices.pluginPciBridge->is_pci_device(name)
187 #define DEV_pci_set_irq(a,b,c) bx_devices.pluginPci2IsaBridge->pci_set_irq(a,b,c)
188 #define DEV_pci_set_base_mem(a,b,c,d,e,f) \
189 (bx_devices.pluginPciBridge->pci_set_base_mem(a,b,c,d,e,f))
190 #define DEV_pci_set_base_io(a,b,c,d,e,f,g,h) \
191 (bx_devices.pluginPciBridge->pci_set_base_io(a,b,c,d,e,f,g,h))
192 #define DEV_pci_rd_memtype(addr) bx_devices.pluginPciBridge->rd_memType(addr)
193 #define DEV_pci_wr_memtype(addr) bx_devices.pluginPciBridge->wr_memType(addr)
194 #define DEV_pci_print_i440fx_state() bx_devices.pluginPciBridge->print_i440fx_state()
195 #define DEV_ide_bmdma_present() bx_devices.pluginPciIdeController->bmdma_present()
196 #define DEV_ide_bmdma_set_irq(a) bx_devices.pluginPciIdeController->bmdma_set_irq(a)
197 #define DEV_acpi_generate_smi(a) bx_devices.pluginACPIController->generate_smi(a)
199 ///////// NE2000 macro
200 #define DEV_ne2k_print_info(file,page,reg,brief) \
201 bx_devices.pluginNE2kDevice->print_info(file,page,reg,brief)
203 ///////// Speaker macros
204 #define DEV_speaker_beep_on(frequency) bx_devices.pluginSpeaker->beep_on(frequency)
205 #define DEV_speaker_beep_off() bx_devices.pluginSpeaker->beep_off()
207 ///////// Serial macro
208 #define DEV_serial_mouse_enq(dx, dy, dz, state) \
209 (bx_devices.pluginSerialDevice->serial_mouse_enq(dx, dy, dz, state))
211 ///////// BUS mouse macro
212 #define DEV_bus_mouse_enq(dx, dy, dz, state) \
213 (bx_devices.pluginBusMouse->bus_mouse_enq(dx, dy, 0, state))
215 ///////// USB device macros
216 #if BX_SUPPORT_PCIUSB
217 #define DEV_usb_mouse_enq(dx, dy, dz, state) \
218 (bx_devices.pluginPciUSBAdapter->usb_mouse_enq(dx, dy, dz, state))
219 #define DEV_usb_mouse_enabled_changed(enable) \
220 (bx_devices.pluginPciUSBAdapter->usb_mouse_enabled_changed(enable))
221 #define DEV_usb_key_enq(scan_code) \
222 (bx_devices.pluginPciUSBAdapter->usb_key_enq(scan_code))
223 #define DEV_usb_keyboard_connected() \
224 (bx_devices.pluginPciUSBAdapter->usb_keyboard_connected())
225 #define DEV_usb_mouse_connected() \
226 (bx_devices.pluginPciUSBAdapter->usb_mouse_connected())
227 #endif
229 //////// Memory macros
230 #define DEV_register_memory_handlers(param,rh,wh,b,e) \
231 bx_devices.mem->registerMemoryHandlers(param,rh,wh,b,e)
232 #define DEV_unregister_memory_handlers(rh,wh,b,e) \
233 bx_devices.mem->unregisterMemoryHandlers(rh,wh,b,e)
236 #if BX_HAVE_DLFCN_H
237 #include <dlfcn.h>
238 #endif
240 typedef Bit32u (*ioReadHandler_t)(void *, Bit32u, unsigned);
241 typedef void (*ioWriteHandler_t)(void *, Bit32u, Bit32u, unsigned);
243 extern plugin_t *plugins;
245 typedef struct _device_t
247 const char *name;
248 plugin_t *plugin;
250 class bx_devmodel_c *devmodel; // BBD hack
252 struct _device_t *next;
253 } device_t;
256 extern device_t *devices;
258 void plugin_startup(void);
259 void plugin_load(char *name, char *args, plugintype_t);
260 plugin_t *plugin_unload(plugin_t *plugin);
261 void plugin_init_all(void);
262 void plugin_fini_all(void);
264 /* === Device Stuff === */
265 typedef void (*deviceInitMem_t)(BX_MEM_C *);
266 typedef void (*deviceInitDev_t)(void);
267 typedef void (*deviceReset_t)(unsigned);
269 BOCHSAPI void pluginRegisterDeviceDevmodel(plugin_t *plugin, plugintype_t type, bx_devmodel_c *dev, const char *name);
270 BOCHSAPI bx_bool pluginDevicePresent(char *name);
272 /* === IO port stuff === */
273 BOCHSAPI extern int (*pluginRegisterIOReadHandler)(void *thisPtr, ioReadHandler_t callback,
274 unsigned base, const char *name, Bit8u mask);
275 BOCHSAPI extern int (*pluginRegisterIOWriteHandler)(void *thisPtr, ioWriteHandler_t callback,
276 unsigned base, const char *name, Bit8u mask);
277 BOCHSAPI extern int (*pluginUnregisterIOReadHandler)(void *thisPtr, ioReadHandler_t callback,
278 unsigned base, Bit8u mask);
279 BOCHSAPI extern int (*pluginUnregisterIOWriteHandler)(void *thisPtr, ioWriteHandler_t callback,
280 unsigned base, Bit8u mask);
281 BOCHSAPI extern int (*pluginRegisterIOReadHandlerRange)(void *thisPtr, ioReadHandler_t callback,
282 unsigned base, unsigned end, const char *name, Bit8u mask);
283 BOCHSAPI extern int (*pluginRegisterIOWriteHandlerRange)(void *thisPtr, ioWriteHandler_t callback,
284 unsigned base, unsigned end, const char *name, Bit8u mask);
285 BOCHSAPI extern int (*pluginUnregisterIOReadHandlerRange)(void *thisPtr, ioReadHandler_t callback,
286 unsigned begin, unsigned end, Bit8u mask);
287 BOCHSAPI extern int (*pluginUnregisterIOWriteHandlerRange)(void *thisPtr, ioWriteHandler_t callback,
288 unsigned begin, unsigned end, Bit8u mask);
289 BOCHSAPI extern int (*pluginRegisterDefaultIOReadHandler)(void *thisPtr, ioReadHandler_t callback,
290 const char *name, Bit8u mask);
291 BOCHSAPI extern int (*pluginRegisterDefaultIOWriteHandler)(void *thisPtr, ioWriteHandler_t callback,
292 const char *name, Bit8u mask);
294 /* === A20 enable line stuff === */
295 BOCHSAPI extern unsigned (*pluginGetA20E)(void);
296 BOCHSAPI extern void (*pluginSetA20E)(unsigned val);
298 /* === IRQ stuff === */
299 BOCHSAPI extern void (*pluginRegisterIRQ)(unsigned irq, const char *name);
300 BOCHSAPI extern void (*pluginUnregisterIRQ)(unsigned irq, const char *name);
302 /* === Floppy stuff ===*/
303 BOCHSAPI extern unsigned (* pluginFloppyGetMediaStatus)(unsigned drive);
304 BOCHSAPI extern unsigned (* pluginFloppySetMediaStatus)(unsigned drive, unsigned status);
306 /* === VGA stuff === */
307 BOCHSAPI extern void (* pluginVGARedrawArea)(unsigned x0, unsigned y0,
308 unsigned width, unsigned height);
309 BOCHSAPI extern Bit8u (* pluginVGAMemRead)(Bit32u addr);
310 BOCHSAPI extern void (* pluginVGAMemWrite)(Bit32u addr, Bit8u value);
311 BOCHSAPI extern void (* pluginVGAGetTextSnapshot)(Bit8u **text_snapshot,
312 unsigned *txHeight, unsigned *txWidth);
313 BOCHSAPI extern void (* pluginVGARefresh)(void *);
314 BOCHSAPI extern void (* pluginVGASetUpdateInterval)(unsigned);
315 BOCHSAPI extern Bit8u (* pluginVGAGetActlPaletteIdx)(Bit8u index);
317 /* === Timer stuff === */
318 BOCHSAPI extern int (*pluginRegisterTimer)(void *this_ptr, void (*funct)(void *),
319 Bit32u useconds, bx_bool continuous,
320 bx_bool active, const char *name);
322 BOCHSAPI extern void (*pluginActivateTimer)(unsigned id, Bit32u usec, bx_bool continuous);
323 BOCHSAPI extern void (*pluginDeactivateTimer)(unsigned id);
325 /* === HRQ stuff === */
326 BOCHSAPI extern void (*pluginSetHRQ)(unsigned val);
327 BOCHSAPI extern void (*pluginSetHRQHackCallback)(void (*callback)(void));
329 /* === PCI stuff === */
330 BOCHSAPI extern bx_bool (*pluginRegisterPCIDevice)(void *this_ptr,
331 Bit32u (*bx_pci_read_handler)(void *, Bit8u, unsigned),
332 void(*bx_pci_write_handler)(void *, Bit8u, Bit32u, unsigned),
333 Bit8u *devfunc, const char *name, const char *descr);
334 BOCHSAPI extern Bit8u (*pluginRd_memType)(Bit32u addr);
335 BOCHSAPI extern Bit8u (*pluginWr_memType)(Bit32u addr);
337 void plugin_abort(void);
339 int bx_load_plugin(const char *name, plugintype_t type);
340 extern void bx_unload_plugin(const char *name);
341 extern void bx_init_plugins(void);
342 extern void bx_reset_plugins(unsigned);
343 extern void bx_unload_plugins(void);
344 extern void bx_plugins_register_state(void);
345 extern void bx_plugins_after_restore_state(void);
347 // every plugin must define these, within the extern"C" block, so that
348 // a non-mangled function symbol is available in the shared library.
349 void plugin_fini(void);
350 int plugin_init(plugin_t *plugin, plugintype_t type, int argc, char *argv[]);
352 // still in extern "C"
353 #define DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(mod) \
354 int lib##mod##_LTX_plugin_init(plugin_t *plugin, plugintype_t type, int argc, char *argv[]); \
355 void lib##mod##_LTX_plugin_fini(void);
357 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(harddrv)
358 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(keyboard)
359 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(busmouse)
360 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(serial)
361 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(unmapped)
362 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(biosdev)
363 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(cmos)
364 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(dma)
365 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(pic)
366 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(vga)
367 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(floppy)
368 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(parallel)
369 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(pci)
370 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(pci2isa)
371 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(pci_ide)
372 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(pcivga)
373 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(pcidev)
374 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(pciusb)
375 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(pcipnic)
376 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(sb16)
377 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(ne2k)
378 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(extfpuirq)
379 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(gameport)
380 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(speaker)
381 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(acpi)
382 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(amigaos)
383 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(beos)
384 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(carbon)
385 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(macintosh)
386 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(nogui)
387 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(rfb)
388 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(sdl)
389 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(svga)
390 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(term)
391 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(win32)
392 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(wx)
393 DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(x)
396 #ifdef __cplusplus
398 #endif
400 #endif /* __PLUGIN_H */