2002-10-25 01:07:56 +04:00
|
|
|
/////////////////////////////////////////////////////////////////////////
|
2011-02-25 01:05:47 +03:00
|
|
|
// $Id$
|
2009-01-10 14:30:20 +03:00
|
|
|
/////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2017-01-13 21:09:51 +03:00
|
|
|
// Copyright (C) 2002-2017 The Bochs Project
|
2009-01-10 14:30:20 +03:00
|
|
|
//
|
|
|
|
// This library is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
|
|
// License as published by the Free Software Foundation; either
|
|
|
|
// version 2 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This library is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
// License along with this library; if not, write to the Free Software
|
2009-08-22 23:30:23 +04:00
|
|
|
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
2009-01-10 14:30:20 +03:00
|
|
|
//
|
2002-10-25 01:07:56 +04:00
|
|
|
/////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// This file provides macros and types needed for plugins. It is based on
|
|
|
|
// the plugin.h file from plex86, but with significant changes to make
|
2008-02-06 01:57:43 +03:00
|
|
|
// it work in Bochs.
|
2002-10-25 01:07:56 +04:00
|
|
|
// Plex86 is Copyright (C) 1999-2000 The plex86 developers team
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __PLUGIN_H
|
|
|
|
#define __PLUGIN_H
|
|
|
|
|
|
|
|
#include "extplugin.h"
|
|
|
|
|
|
|
|
class bx_devices_c;
|
|
|
|
BOCHSAPI extern logfunctions *pluginlog;
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2003-01-06 05:20:47 +03:00
|
|
|
#define BX_PLUGIN_UNMAPPED "unmapped"
|
2008-11-18 23:55:59 +03:00
|
|
|
#define BX_PLUGIN_BIOSDEV "biosdev"
|
2003-01-06 05:20:47 +03:00
|
|
|
#define BX_PLUGIN_CMOS "cmos"
|
|
|
|
#define BX_PLUGIN_VGA "vga"
|
2012-01-25 01:58:24 +04:00
|
|
|
#define BX_PLUGIN_CIRRUS "svga_cirrus"
|
2003-01-06 05:20:47 +03:00
|
|
|
#define BX_PLUGIN_FLOPPY "floppy"
|
|
|
|
#define BX_PLUGIN_PARALLEL "parallel"
|
|
|
|
#define BX_PLUGIN_SERIAL "serial"
|
|
|
|
#define BX_PLUGIN_KEYBOARD "keyboard"
|
2004-12-11 11:35:33 +03:00
|
|
|
#define BX_PLUGIN_BUSMOUSE "busmouse"
|
2003-01-06 05:20:47 +03:00
|
|
|
#define BX_PLUGIN_HARDDRV "harddrv"
|
2011-01-13 01:34:42 +03:00
|
|
|
#define BX_PLUGIN_HDIMAGE "hdimage"
|
2003-01-06 05:20:47 +03:00
|
|
|
#define BX_PLUGIN_DMA "dma"
|
|
|
|
#define BX_PLUGIN_PIC "pic"
|
2009-01-11 21:46:01 +03:00
|
|
|
#define BX_PLUGIN_PIT "pit"
|
2003-01-06 05:20:47 +03:00
|
|
|
#define BX_PLUGIN_PCI "pci"
|
|
|
|
#define BX_PLUGIN_PCI2ISA "pci2isa"
|
2004-06-10 00:55:58 +04:00
|
|
|
#define BX_PLUGIN_PCI_IDE "pci_ide"
|
2003-01-06 05:20:47 +03:00
|
|
|
#define BX_PLUGIN_SB16 "sb16"
|
2011-03-12 20:37:26 +03:00
|
|
|
#define BX_PLUGIN_ES1370 "es1370"
|
2003-01-06 05:20:47 +03:00
|
|
|
#define BX_PLUGIN_NE2K "ne2k"
|
|
|
|
#define BX_PLUGIN_EXTFPUIRQ "extfpuirq"
|
2004-01-15 05:08:37 +03:00
|
|
|
#define BX_PLUGIN_PCIDEV "pcidev"
|
2009-01-19 12:48:12 +03:00
|
|
|
#define BX_PLUGIN_USB_UHCI "usb_uhci"
|
|
|
|
#define BX_PLUGIN_USB_OHCI "usb_ohci"
|
2015-12-06 23:03:42 +03:00
|
|
|
#define BX_PLUGIN_USB_EHCI "usb_ehci"
|
2011-07-04 23:42:47 +04:00
|
|
|
#define BX_PLUGIN_USB_XHCI "usb_xhci"
|
2004-01-13 22:21:21 +03:00
|
|
|
#define BX_PLUGIN_PCIPNIC "pcipnic"
|
2011-12-14 00:53:44 +04:00
|
|
|
#define BX_PLUGIN_E1000 "e1000"
|
2003-06-21 16:55:19 +04:00
|
|
|
#define BX_PLUGIN_GAMEPORT "gameport"
|
2004-02-02 22:42:21 +03:00
|
|
|
#define BX_PLUGIN_SPEAKER "speaker"
|
2006-09-24 20:58:13 +04:00
|
|
|
#define BX_PLUGIN_ACPI "acpi"
|
2008-12-30 21:11:13 +03:00
|
|
|
#define BX_PLUGIN_IODEBUG "iodebug"
|
2009-02-22 13:44:50 +03:00
|
|
|
#define BX_PLUGIN_IOAPIC "ioapic"
|
2017-04-17 10:26:00 +03:00
|
|
|
#define BX_PLUGIN_HPET "hpet"
|
2012-09-15 01:50:50 +04:00
|
|
|
#define BX_PLUGIN_VOODOO "voodoo"
|
2003-01-11 01:43:54 +03:00
|
|
|
|
2002-10-25 01:07:56 +04:00
|
|
|
|
|
|
|
#define BX_REGISTER_DEVICE_DEVMODEL(a,b,c,d) pluginRegisterDeviceDevmodel(a,b,c,d)
|
2011-12-23 16:01:58 +04:00
|
|
|
#define BX_UNREGISTER_DEVICE_DEVMODEL(a) pluginUnregisterDeviceDevmodel(a)
|
2011-12-25 12:52:34 +04:00
|
|
|
#define PLUG_device_present(a) pluginDevicePresent(a)
|
2002-10-25 01:07:56 +04:00
|
|
|
|
|
|
|
#if BX_PLUGINS
|
|
|
|
|
2009-01-05 00:46:20 +03:00
|
|
|
#define PLUG_load_plugin(name,type) {bx_load_plugin(#name,type);}
|
2017-02-18 19:28:04 +03:00
|
|
|
#define PLUG_load_gui_plugin(name) bx_load_plugin(name,PLUGTYPE_GUI)
|
2011-12-23 16:01:58 +04:00
|
|
|
#define PLUG_load_opt_plugin(name) bx_load_plugin(name,PLUGTYPE_OPTIONAL)
|
2017-02-24 23:02:18 +03:00
|
|
|
#define PLUG_load_snd_plugin(name) bx_load_plugin(name,PLUGTYPE_SOUND)
|
2017-03-12 10:48:08 +03:00
|
|
|
#define PLUG_load_net_plugin(name) bx_load_plugin(name,PLUGTYPE_NETWORK)
|
2017-05-28 11:13:06 +03:00
|
|
|
#define PLUG_load_usb_plugin(name) bx_load_plugin(name,PLUGTYPE_USBDEV)
|
2017-10-10 21:06:16 +03:00
|
|
|
#define PLUG_load_vga_plugin(name) bx_load_plugin(name,PLUGTYPE_VGA)
|
2009-01-05 00:46:20 +03:00
|
|
|
#define PLUG_load_user_plugin(name) {bx_load_plugin(name,PLUGTYPE_USER);}
|
|
|
|
#define PLUG_unload_plugin(name) {bx_unload_plugin(#name,1);}
|
2011-12-25 12:52:34 +04:00
|
|
|
#define PLUG_unload_opt_plugin(name) bx_unload_plugin(name,1)
|
2017-03-17 23:53:31 +03:00
|
|
|
#define PLUG_unload_snd_plugin(name) bx_unload_plugin(name,0)
|
|
|
|
#define PLUG_unload_net_plugin(name) bx_unload_plugin(name,0)
|
2017-05-28 11:13:06 +03:00
|
|
|
#define PLUG_unload_usb_plugin(name) bx_unload_plugin(name,0)
|
2009-01-05 00:46:20 +03:00
|
|
|
#define PLUG_unload_user_plugin(name) {bx_unload_plugin(name,1);}
|
2002-10-25 01:07:56 +04:00
|
|
|
|
|
|
|
#define DEV_register_ioread_handler(b,c,d,e,f) pluginRegisterIOReadHandler(b,c,d,e,f)
|
|
|
|
#define DEV_register_iowrite_handler(b,c,d,e,f) pluginRegisterIOWriteHandler(b,c,d,e,f)
|
2004-01-15 05:08:37 +03:00
|
|
|
#define DEV_unregister_ioread_handler(b,c,d,e) pluginUnregisterIOReadHandler(b,c,d,e)
|
|
|
|
#define DEV_unregister_iowrite_handler(b,c,d,e) pluginUnregisterIOWriteHandler(b,c,d,e)
|
|
|
|
#define DEV_register_ioread_handler_range(b,c,d,e,f,g) pluginRegisterIOReadHandlerRange(b,c,d,e,f,g)
|
|
|
|
#define DEV_register_iowrite_handler_range(b,c,d,e,f,g) pluginRegisterIOWriteHandlerRange(b,c,d,e,f,g)
|
|
|
|
#define DEV_unregister_ioread_handler_range(b,c,d,e,f) pluginUnregisterIOReadHandlerRange(b,c,d,e,f)
|
|
|
|
#define DEV_unregister_iowrite_handler_range(b,c,d,e,f) pluginUnregisterIOWriteHandlerRange(b,c,d,e,f)
|
2002-10-25 01:07:56 +04:00
|
|
|
#define DEV_register_default_ioread_handler(b,c,d,e) pluginRegisterDefaultIOReadHandler(b,c,d,e)
|
|
|
|
#define DEV_register_default_iowrite_handler(b,c,d,e) pluginRegisterDefaultIOWriteHandler(b,c,d,e)
|
|
|
|
|
|
|
|
#define DEV_register_irq(b,c) pluginRegisterIRQ(b,c)
|
|
|
|
#define DEV_unregister_irq(b,c) pluginUnregisterIRQ(b,c)
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
// When plugins are off, PLUG_load_plugin will call the plugin_init function
|
|
|
|
// directly.
|
2017-01-28 12:52:09 +03:00
|
|
|
#define PLUG_load_plugin(name,type) {lib##name##_LTX_plugin_init(NULL,type);}
|
2017-02-24 22:45:23 +03:00
|
|
|
#define PLUG_load_gui_plugin(name) bx_load_plugin2(name,PLUGTYPE_GUI)
|
|
|
|
#define PLUG_load_opt_plugin(name) bx_load_plugin2(name,PLUGTYPE_OPTIONAL)
|
|
|
|
#define PLUG_load_snd_plugin(name) bx_load_plugin2(name,PLUGTYPE_SOUND)
|
2017-03-12 10:48:08 +03:00
|
|
|
#define PLUG_load_net_plugin(name) bx_load_plugin2(name,PLUGTYPE_NETWORK)
|
2017-05-28 11:13:06 +03:00
|
|
|
#define PLUG_load_usb_plugin(name) bx_load_plugin2(name,PLUGTYPE_USBDEV)
|
2017-10-10 21:06:16 +03:00
|
|
|
#define PLUG_load_vga_plugin(name) bx_load_plugin2(name,PLUGTYPE_VGA)
|
2011-12-25 12:52:34 +04:00
|
|
|
#define PLUG_unload_plugin(name) {lib##name##_LTX_plugin_fini();}
|
|
|
|
#define PLUG_unload_opt_plugin(name) bx_unload_opt_plugin(name,1);
|
2017-02-24 22:45:23 +03:00
|
|
|
|
2003-07-31 16:04:48 +04:00
|
|
|
#define DEV_register_ioread_handler(b,c,d,e,f) bx_devices.register_io_read_handler(b,c,d,e,f)
|
|
|
|
#define DEV_register_iowrite_handler(b,c,d,e,f) bx_devices.register_io_write_handler(b,c,d,e,f)
|
2004-01-24 21:04:18 +03:00
|
|
|
#define DEV_unregister_ioread_handler(b,c,d,e) bx_devices.unregister_io_read_handler(b,c,d,e)
|
|
|
|
#define DEV_unregister_iowrite_handler(b,c,d,e) bx_devices.unregister_io_write_handler(b,c,d,e)
|
|
|
|
#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)
|
|
|
|
#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)
|
|
|
|
#define DEV_unregister_ioread_handler_range(b,c,d,e,f) bx_devices.unregister_io_read_handler_range(b,c,d,e,f)
|
|
|
|
#define DEV_unregister_iowrite_handler_range(b,c,d,e,f) bx_devices.unregister_io_write_handler_range(b,c,d,e,f)
|
2003-07-31 16:04:48 +04:00
|
|
|
#define DEV_register_default_ioread_handler(b,c,d,e) bx_devices.register_default_io_read_handler(b,c,d,e)
|
|
|
|
#define DEV_register_default_iowrite_handler(b,c,d,e) bx_devices.register_default_io_write_handler(b,c,d,e)
|
2002-10-25 01:07:56 +04:00
|
|
|
#define DEV_register_irq(b,c) bx_devices.register_irq(b,c)
|
|
|
|
#define DEV_unregister_irq(b,c) bx_devices.unregister_irq(b,c)
|
|
|
|
|
|
|
|
#endif // #if BX_PLUGINS
|
|
|
|
|
2009-01-11 11:48:47 +03:00
|
|
|
///////// Common device macros
|
|
|
|
#define DEV_init_devices() {bx_devices.init(BX_MEM(0)); }
|
|
|
|
#define DEV_reset_devices(type) {bx_devices.reset(type); }
|
|
|
|
#define DEV_register_state() {bx_devices.register_state(); }
|
|
|
|
#define DEV_after_restore_state() {bx_devices.after_restore_state(); }
|
2002-10-25 01:07:56 +04:00
|
|
|
#define DEV_register_timer(a,b,c,d,e,f) bx_pc_system.register_timer(a,b,c,d,e,f)
|
2009-03-03 21:29:51 +03:00
|
|
|
|
|
|
|
///////// Removable devices macros
|
|
|
|
#define DEV_optional_key_enq(a) (bx_devices.optional_key_enq(a))
|
|
|
|
#define DEV_register_removable_keyboard(a,b) (bx_devices.register_removable_keyboard(a,b))
|
|
|
|
#define DEV_unregister_removable_keyboard(a) (bx_devices.unregister_removable_keyboard(a))
|
2009-03-03 23:34:50 +03:00
|
|
|
#define DEV_register_default_mouse(a,b,c) (bx_devices.register_default_mouse(a,b,c))
|
2009-03-03 00:21:16 +03:00
|
|
|
#define DEV_register_removable_mouse(a,b,c) (bx_devices.register_removable_mouse(a,b,c))
|
|
|
|
#define DEV_unregister_removable_mouse(a) (bx_devices.unregister_removable_mouse(a))
|
2002-10-25 01:07:56 +04:00
|
|
|
|
2009-02-22 13:44:50 +03:00
|
|
|
///////// I/O APIC macros
|
2009-02-23 21:38:25 +03:00
|
|
|
#define DEV_ioapic_present() (bx_devices.pluginIOAPIC != &bx_devices.stubIOAPIC)
|
2012-11-25 23:06:03 +04:00
|
|
|
#define DEV_ioapic_set_enabled(a,b) (bx_devices.pluginIOAPIC->set_enabled(a,b))
|
2009-02-22 13:44:50 +03:00
|
|
|
#define DEV_ioapic_receive_eoi(a) (bx_devices.pluginIOAPIC->receive_eoi(a))
|
|
|
|
#define DEV_ioapic_set_irq_level(a,b) (bx_devices.pluginIOAPIC->set_irq_level(a,b))
|
|
|
|
|
2002-10-25 01:07:56 +04:00
|
|
|
///////// CMOS macros
|
|
|
|
#define DEV_cmos_get_reg(a) (bx_devices.pluginCmosDevice->get_reg(a))
|
|
|
|
#define DEV_cmos_set_reg(a,b) (bx_devices.pluginCmosDevice->set_reg(a,b))
|
|
|
|
#define DEV_cmos_checksum() (bx_devices.pluginCmosDevice->checksum_cmos())
|
2017-04-15 23:31:07 +03:00
|
|
|
#define DEV_cmos_enable_irq(a) (bx_devices.pluginCmosDevice->enable_irq(a))
|
|
|
|
|
|
|
|
///////// PIT macro
|
|
|
|
#define DEV_pit_enable_irq(a) (bx_devices.pluginPitDevice->enable_irq(a))
|
2002-10-25 01:07:56 +04:00
|
|
|
|
|
|
|
///////// keyboard macros
|
2017-04-01 00:32:58 +03:00
|
|
|
#define DEV_kbd_gen_scancode(key) (bx_devices.gen_scancode(key))
|
2002-10-25 01:07:56 +04:00
|
|
|
#define DEV_kbd_paste_bytes(bytes, count) \
|
|
|
|
(bx_devices.pluginKeyboard->paste_bytes(bytes,count))
|
2017-04-22 18:32:07 +03:00
|
|
|
#define DEV_kbd_release_keys() (bx_devices.release_keys())
|
2002-10-25 01:07:56 +04:00
|
|
|
|
2017-03-30 21:08:15 +03:00
|
|
|
///////// mouse macros
|
|
|
|
#define DEV_mouse_enabled_changed(en) (bx_devices.mouse_enabled_changed(en))
|
|
|
|
#define DEV_mouse_motion(dx, dy, dz, bs, absxy) (bx_devices.mouse_motion(dx, dy, dz, bs, absxy))
|
|
|
|
|
2002-10-25 01:07:56 +04:00
|
|
|
///////// hard drive macros
|
|
|
|
#define DEV_hd_read_handler(a, b, c) \
|
|
|
|
(bx_devices.pluginHardDrive->virt_read_handler(b, c))
|
|
|
|
#define DEV_hd_write_handler(a, b, c, d) \
|
|
|
|
(bx_devices.pluginHardDrive->virt_write_handler(b, c, d))
|
|
|
|
#define DEV_hd_get_first_cd_handle() \
|
|
|
|
(bx_devices.pluginHardDrive->get_first_cd_handle())
|
|
|
|
#define DEV_hd_get_cd_media_status(handle) \
|
|
|
|
(bx_devices.pluginHardDrive->get_cd_media_status(handle))
|
|
|
|
#define DEV_hd_set_cd_media_status(handle, status) \
|
|
|
|
(bx_devices.pluginHardDrive->set_cd_media_status(handle, status))
|
2005-10-30 17:14:03 +03:00
|
|
|
#define DEV_hd_bmdma_read_sector(a,b,c) bx_devices.pluginHardDrive->bmdma_read_sector(a,b,c)
|
2005-02-08 21:32:27 +03:00
|
|
|
#define DEV_hd_bmdma_write_sector(a,b) bx_devices.pluginHardDrive->bmdma_write_sector(a,b)
|
|
|
|
#define DEV_hd_bmdma_complete(a) bx_devices.pluginHardDrive->bmdma_complete(a)
|
2011-01-13 01:34:42 +03:00
|
|
|
#define DEV_hdimage_init_image(a,b,c) bx_devices.pluginHDImageCtl->init_image(a,b,c)
|
2011-07-17 21:23:12 +04:00
|
|
|
#define DEV_hdimage_init_cdrom(a) bx_devices.pluginHDImageCtl->init_cdrom(a)
|
2002-10-25 01:07:56 +04:00
|
|
|
|
|
|
|
#define DEV_bulk_io_quantum_requested() (bx_devices.bulkIOQuantumsRequested)
|
|
|
|
#define DEV_bulk_io_quantum_transferred() (bx_devices.bulkIOQuantumsTransferred)
|
|
|
|
#define DEV_bulk_io_host_addr() (bx_devices.bulkIOHostAddr)
|
|
|
|
|
2011-01-19 00:04:44 +03:00
|
|
|
///////// FLOPPY macro
|
2002-10-25 01:07:56 +04:00
|
|
|
#define DEV_floppy_set_media_status(drive, status) bx_devices.pluginFloppyDevice->set_media_status(drive, status)
|
|
|
|
|
|
|
|
///////// DMA macros
|
|
|
|
#define DEV_dma_register_8bit_channel(channel, dmaRead, dmaWrite, name) \
|
|
|
|
(bx_devices.pluginDmaDevice->registerDMA8Channel(channel, dmaRead, dmaWrite, name))
|
|
|
|
#define DEV_dma_register_16bit_channel(channel, dmaRead, dmaWrite, name) \
|
|
|
|
(bx_devices.pluginDmaDevice->registerDMA16Channel(channel, dmaRead, dmaWrite, name))
|
|
|
|
#define DEV_dma_unregister_channel(channel) \
|
|
|
|
(bx_devices.pluginDmaDevice->unregisterDMAChannel(channel))
|
|
|
|
#define DEV_dma_set_drq(channel, val) \
|
|
|
|
(bx_devices.pluginDmaDevice->set_DRQ(channel, val))
|
|
|
|
#define DEV_dma_get_tc() \
|
|
|
|
(bx_devices.pluginDmaDevice->get_TC())
|
|
|
|
#define DEV_dma_raise_hlda() \
|
|
|
|
(bx_devices.pluginDmaDevice->raise_HLDA())
|
|
|
|
|
|
|
|
///////// PIC macros
|
|
|
|
#define DEV_pic_lower_irq(b) (bx_devices.pluginPicDevice->lower_irq(b))
|
|
|
|
#define DEV_pic_raise_irq(b) (bx_devices.pluginPicDevice->raise_irq(b))
|
2004-07-06 23:59:10 +04:00
|
|
|
#define DEV_pic_set_mode(a,b) (bx_devices.pluginPicDevice->set_mode(a,b))
|
2002-10-25 01:07:56 +04:00
|
|
|
#define DEV_pic_iac() (bx_devices.pluginPicDevice->IAC())
|
|
|
|
|
|
|
|
///////// VGA macros
|
|
|
|
#define DEV_vga_mem_read(addr) (bx_devices.pluginVgaDevice->mem_read(addr))
|
|
|
|
#define DEV_vga_mem_write(addr, val) (bx_devices.pluginVgaDevice->mem_write(addr, val))
|
|
|
|
#define DEV_vga_redraw_area(left, top, right, bottom) \
|
2017-10-10 21:06:16 +03:00
|
|
|
(bx_devices.pluginVgaDevice->vga_redraw_area(left, top, right, bottom))
|
2002-10-25 01:07:56 +04:00
|
|
|
#define DEV_vga_get_text_snapshot(rawsnap, height, width) \
|
|
|
|
(bx_devices.pluginVgaDevice->get_text_snapshot(rawsnap, height, width))
|
2012-10-28 12:23:39 +04:00
|
|
|
#define DEV_vga_refresh(a) \
|
|
|
|
(bx_devices.pluginVgaDevice->refresh_display(bx_devices.pluginVgaDevice,a))
|
2012-10-25 19:53:04 +04:00
|
|
|
#define DEV_vga_set_override(a,b) (bx_devices.pluginVgaDevice->set_override(a,b))
|
2002-10-25 01:07:56 +04:00
|
|
|
|
2002-11-03 20:17:11 +03:00
|
|
|
///////// PCI macros
|
2006-03-08 00:11:20 +03:00
|
|
|
#define DEV_register_pci_handlers(a,b,c,d) \
|
2012-11-08 23:12:26 +04:00
|
|
|
(bx_devices.register_pci_handlers(a,b,c,d))
|
2012-11-09 17:30:52 +04:00
|
|
|
#define DEV_pci_get_confAddr() bx_devices.pci_get_confAddr()
|
2004-07-04 21:10:05 +04:00
|
|
|
#define DEV_pci_set_irq(a,b,c) bx_devices.pluginPci2IsaBridge->pci_set_irq(a,b,c)
|
2004-07-12 00:38:48 +04:00
|
|
|
#define DEV_pci_set_base_mem(a,b,c,d,e,f) \
|
2012-11-08 23:12:26 +04:00
|
|
|
(bx_devices.pci_set_base_mem(a,b,c,d,e,f))
|
2004-07-12 00:38:48 +04:00
|
|
|
#define DEV_pci_set_base_io(a,b,c,d,e,f,g,h) \
|
2012-11-08 23:12:26 +04:00
|
|
|
(bx_devices.pci_set_base_io(a,b,c,d,e,f,g,h))
|
2005-02-08 21:32:27 +03:00
|
|
|
#define DEV_ide_bmdma_present() bx_devices.pluginPciIdeController->bmdma_present()
|
2005-09-05 22:32:23 +04:00
|
|
|
#define DEV_ide_bmdma_set_irq(a) bx_devices.pluginPciIdeController->bmdma_set_irq(a)
|
2014-01-19 22:13:12 +04:00
|
|
|
#define DEV_ide_bmdma_start_transfer(a) \
|
|
|
|
bx_devices.pluginPciIdeController->bmdma_start_transfer(a)
|
2007-08-04 12:57:42 +04:00
|
|
|
#define DEV_acpi_generate_smi(a) bx_devices.pluginACPIController->generate_smi(a)
|
2002-11-03 20:17:11 +03:00
|
|
|
|
2004-12-03 00:34:26 +03:00
|
|
|
///////// Speaker macros
|
2004-02-02 22:42:21 +03:00
|
|
|
#define DEV_speaker_beep_on(frequency) bx_devices.pluginSpeaker->beep_on(frequency)
|
|
|
|
#define DEV_speaker_beep_off() bx_devices.pluginSpeaker->beep_off()
|
|
|
|
|
2011-02-15 00:14:20 +03:00
|
|
|
///////// Memory macros
|
2006-02-27 22:04:01 +03:00
|
|
|
#define DEV_register_memory_handlers(param,rh,wh,b,e) \
|
|
|
|
bx_devices.mem->registerMemoryHandlers(param,rh,wh,b,e)
|
2011-06-29 23:48:46 +04:00
|
|
|
#define DEV_unregister_memory_handlers(param,b,e) \
|
|
|
|
bx_devices.mem->unregisterMemoryHandlers(param,b,e)
|
2012-01-19 22:32:11 +04:00
|
|
|
#define DEV_mem_set_memory_type(a,b,c) \
|
|
|
|
bx_devices.mem->set_memory_type((memory_area_t)a,b,c)
|
2012-12-02 23:59:23 +04:00
|
|
|
#define DEV_mem_set_bios_write(a) bx_devices.mem->set_bios_write(a)
|
2002-10-25 01:07:56 +04:00
|
|
|
|
2017-05-28 11:13:06 +03:00
|
|
|
///////// USB device macro
|
|
|
|
#define DEV_usb_init_device(a,b,c,d) (usbdev_type)bx_usbdev_ctl.init_device(a,b,(void**)c,d)
|
2010-12-06 21:51:13 +03:00
|
|
|
|
2013-06-24 23:19:12 +04:00
|
|
|
///////// Sound module macros
|
2017-02-20 21:21:19 +03:00
|
|
|
#define DEV_sound_get_waveout(a) (bx_soundmod_ctl.get_waveout(a))
|
|
|
|
#define DEV_sound_get_wavein() (bx_soundmod_ctl.get_wavein())
|
|
|
|
#define DEV_sound_get_midiout(a) (bx_soundmod_ctl.get_midiout(a))
|
2011-02-15 00:14:20 +03:00
|
|
|
|
2011-08-16 21:27:27 +04:00
|
|
|
///////// Networking module macro
|
2011-12-17 12:22:33 +04:00
|
|
|
#define DEV_net_init_module(a,b,c,d) \
|
2017-03-12 10:48:08 +03:00
|
|
|
((eth_pktmover_c*)bx_netmod_ctl.init_module(a,(void*)b,(void*)c,d))
|
2011-08-16 21:27:27 +04:00
|
|
|
|
2011-03-31 20:54:06 +04:00
|
|
|
///////// Gameport macro
|
2017-08-04 21:09:26 +03:00
|
|
|
#if BX_SUPPORT_GAMEPORT
|
2011-03-31 20:54:06 +04:00
|
|
|
#define DEV_gameport_set_enabled(a) bx_devices.pluginGameport->set_enabled(a)
|
2017-08-04 21:09:26 +03:00
|
|
|
#else
|
|
|
|
#define DEV_gameport_set_enabled(a) BX_ERROR(("gameport emulation not present"))
|
|
|
|
#endif
|
2011-03-31 20:54:06 +04:00
|
|
|
|
2004-02-02 22:42:21 +03:00
|
|
|
|
2002-10-25 01:07:56 +04:00
|
|
|
#if BX_HAVE_DLFCN_H
|
|
|
|
#include <dlfcn.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef Bit32u (*ioReadHandler_t)(void *, Bit32u, unsigned);
|
|
|
|
typedef void (*ioWriteHandler_t)(void *, Bit32u, Bit32u, unsigned);
|
|
|
|
|
|
|
|
extern plugin_t *plugins;
|
|
|
|
|
|
|
|
typedef struct _device_t
|
|
|
|
{
|
2012-01-10 21:45:18 +04:00
|
|
|
const char *name;
|
|
|
|
plugin_t *plugin;
|
|
|
|
plugintype_t plugtype;
|
2002-10-25 01:07:56 +04:00
|
|
|
|
|
|
|
class bx_devmodel_c *devmodel; // BBD hack
|
|
|
|
|
|
|
|
struct _device_t *next;
|
|
|
|
} device_t;
|
|
|
|
|
|
|
|
|
|
|
|
extern device_t *devices;
|
|
|
|
|
2006-09-10 13:13:47 +04:00
|
|
|
void plugin_startup(void);
|
2002-10-25 01:07:56 +04:00
|
|
|
|
|
|
|
/* === Device Stuff === */
|
|
|
|
typedef void (*deviceInitMem_t)(BX_MEM_C *);
|
|
|
|
typedef void (*deviceInitDev_t)(void);
|
|
|
|
typedef void (*deviceReset_t)(unsigned);
|
|
|
|
|
2007-10-25 03:29:40 +04:00
|
|
|
BOCHSAPI void pluginRegisterDeviceDevmodel(plugin_t *plugin, plugintype_t type, bx_devmodel_c *dev, const char *name);
|
2011-12-23 16:01:58 +04:00
|
|
|
BOCHSAPI void pluginUnregisterDeviceDevmodel(const char *name);
|
|
|
|
BOCHSAPI bx_bool pluginDevicePresent(const char *name);
|
2002-10-25 01:07:56 +04:00
|
|
|
|
|
|
|
/* === IO port stuff === */
|
|
|
|
BOCHSAPI extern int (*pluginRegisterIOReadHandler)(void *thisPtr, ioReadHandler_t callback,
|
2003-07-31 16:04:48 +04:00
|
|
|
unsigned base, const char *name, Bit8u mask);
|
2002-10-25 01:07:56 +04:00
|
|
|
BOCHSAPI extern int (*pluginRegisterIOWriteHandler)(void *thisPtr, ioWriteHandler_t callback,
|
2003-07-31 16:04:48 +04:00
|
|
|
unsigned base, const char *name, Bit8u mask);
|
2004-01-15 05:08:37 +03:00
|
|
|
BOCHSAPI extern int (*pluginUnregisterIOReadHandler)(void *thisPtr, ioReadHandler_t callback,
|
|
|
|
unsigned base, Bit8u mask);
|
|
|
|
BOCHSAPI extern int (*pluginUnregisterIOWriteHandler)(void *thisPtr, ioWriteHandler_t callback,
|
|
|
|
unsigned base, Bit8u mask);
|
|
|
|
BOCHSAPI extern int (*pluginRegisterIOReadHandlerRange)(void *thisPtr, ioReadHandler_t callback,
|
|
|
|
unsigned base, unsigned end, const char *name, Bit8u mask);
|
|
|
|
BOCHSAPI extern int (*pluginRegisterIOWriteHandlerRange)(void *thisPtr, ioWriteHandler_t callback,
|
|
|
|
unsigned base, unsigned end, const char *name, Bit8u mask);
|
|
|
|
BOCHSAPI extern int (*pluginUnregisterIOReadHandlerRange)(void *thisPtr, ioReadHandler_t callback,
|
|
|
|
unsigned begin, unsigned end, Bit8u mask);
|
|
|
|
BOCHSAPI extern int (*pluginUnregisterIOWriteHandlerRange)(void *thisPtr, ioWriteHandler_t callback,
|
|
|
|
unsigned begin, unsigned end, Bit8u mask);
|
2002-10-25 01:07:56 +04:00
|
|
|
BOCHSAPI extern int (*pluginRegisterDefaultIOReadHandler)(void *thisPtr, ioReadHandler_t callback,
|
2003-07-31 16:04:48 +04:00
|
|
|
const char *name, Bit8u mask);
|
2002-10-25 01:07:56 +04:00
|
|
|
BOCHSAPI extern int (*pluginRegisterDefaultIOWriteHandler)(void *thisPtr, ioWriteHandler_t callback,
|
2003-07-31 16:04:48 +04:00
|
|
|
const char *name, Bit8u mask);
|
2002-10-25 01:07:56 +04:00
|
|
|
|
|
|
|
/* === IRQ stuff === */
|
|
|
|
BOCHSAPI extern void (*pluginRegisterIRQ)(unsigned irq, const char *name);
|
|
|
|
BOCHSAPI extern void (*pluginUnregisterIRQ)(unsigned irq, const char *name);
|
|
|
|
|
|
|
|
/* === HRQ stuff === */
|
2008-02-16 01:05:43 +03:00
|
|
|
BOCHSAPI extern void (*pluginSetHRQ)(unsigned val);
|
|
|
|
BOCHSAPI extern void (*pluginSetHRQHackCallback)(void (*callback)(void));
|
2002-10-25 01:07:56 +04:00
|
|
|
|
2006-04-15 21:03:59 +04:00
|
|
|
void plugin_abort(void);
|
2002-10-25 01:07:56 +04:00
|
|
|
|
2009-01-05 00:46:20 +03:00
|
|
|
int bx_load_plugin(const char *name, plugintype_t type);
|
|
|
|
extern void bx_unload_plugin(const char *name, bx_bool devflag);
|
2006-04-15 21:03:59 +04:00
|
|
|
extern void bx_init_plugins(void);
|
|
|
|
extern void bx_reset_plugins(unsigned);
|
2006-09-10 13:13:47 +04:00
|
|
|
extern void bx_unload_plugins(void);
|
2012-02-12 12:37:42 +04:00
|
|
|
extern void bx_unload_core_plugins(void);
|
2008-02-16 01:05:43 +03:00
|
|
|
extern void bx_plugins_register_state(void);
|
|
|
|
extern void bx_plugins_after_restore_state(void);
|
2002-10-25 01:07:56 +04:00
|
|
|
|
2011-12-23 16:01:58 +04:00
|
|
|
#if !BX_PLUGINS
|
2017-02-24 22:45:23 +03:00
|
|
|
int bx_load_plugin2(const char *name, plugintype_t type);
|
2011-12-25 12:52:34 +04:00
|
|
|
int bx_unload_opt_plugin(const char *name, bx_bool devflag);
|
2011-12-23 16:01:58 +04:00
|
|
|
#endif
|
|
|
|
|
2002-10-25 01:07:56 +04:00
|
|
|
// every plugin must define these, within the extern"C" block, so that
|
|
|
|
// a non-mangled function symbol is available in the shared library.
|
|
|
|
void plugin_fini(void);
|
2017-01-28 12:52:09 +03:00
|
|
|
int plugin_init(plugin_t *plugin, plugintype_t type);
|
2002-10-25 01:07:56 +04:00
|
|
|
|
|
|
|
// still in extern "C"
|
2011-06-15 21:24:32 +04:00
|
|
|
#if BX_PLUGINS && defined(_MSC_VER)
|
|
|
|
#define DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(mod) \
|
2017-01-28 12:52:09 +03:00
|
|
|
extern "C" __declspec(dllexport) int __cdecl lib##mod##_LTX_plugin_init(plugin_t *plugin, plugintype_t type); \
|
2011-06-15 21:24:32 +04:00
|
|
|
extern "C" __declspec(dllexport) void __cdecl lib##mod##_LTX_plugin_fini(void);
|
2017-02-18 19:28:04 +03:00
|
|
|
#define DECLARE_PLUGIN_INIT_FINI_FOR_GUI_MODULE(mod) \
|
|
|
|
extern "C" __declspec(dllexport) int __cdecl lib##mod##_gui_plugin_init(plugin_t *plugin, plugintype_t type); \
|
|
|
|
extern "C" __declspec(dllexport) void __cdecl lib##mod##_gui_plugin_fini(void);
|
2017-02-20 21:21:19 +03:00
|
|
|
#define DECLARE_PLUGIN_INIT_FINI_FOR_SOUND_MODULE(mod) \
|
|
|
|
extern "C" __declspec(dllexport) int __cdecl lib##mod##_sound_plugin_init(plugin_t *plugin, plugintype_t type); \
|
|
|
|
extern "C" __declspec(dllexport) void __cdecl lib##mod##_sound_plugin_fini(void);
|
2017-03-12 10:48:08 +03:00
|
|
|
#define DECLARE_PLUGIN_INIT_FINI_FOR_NET_MODULE(mod) \
|
|
|
|
extern "C" __declspec(dllexport) int __cdecl lib##mod##_net_plugin_init(plugin_t *plugin, plugintype_t type); \
|
|
|
|
extern "C" __declspec(dllexport) void __cdecl lib##mod##_net_plugin_fini(void);
|
2017-05-28 11:13:06 +03:00
|
|
|
#define DECLARE_PLUGIN_INIT_FINI_FOR_USB_MODULE(mod) \
|
|
|
|
extern "C" __declspec(dllexport) int __cdecl lib##mod##_dev_plugin_init(plugin_t *plugin, plugintype_t type); \
|
|
|
|
extern "C" __declspec(dllexport) void __cdecl lib##mod##_dev_plugin_fini(void);
|
2011-06-15 21:24:32 +04:00
|
|
|
#else
|
2002-10-25 01:07:56 +04:00
|
|
|
#define DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(mod) \
|
2017-01-28 12:52:09 +03:00
|
|
|
int CDECL lib##mod##_LTX_plugin_init(plugin_t *plugin, plugintype_t type); \
|
2014-06-08 12:40:08 +04:00
|
|
|
void CDECL lib##mod##_LTX_plugin_fini(void);
|
2017-02-18 19:28:04 +03:00
|
|
|
#define DECLARE_PLUGIN_INIT_FINI_FOR_GUI_MODULE(mod) \
|
|
|
|
int CDECL lib##mod##_gui_plugin_init(plugin_t *plugin, plugintype_t type); \
|
|
|
|
void CDECL lib##mod##_gui_plugin_fini(void);
|
2017-02-20 21:21:19 +03:00
|
|
|
#define DECLARE_PLUGIN_INIT_FINI_FOR_SOUND_MODULE(mod) \
|
|
|
|
int CDECL lib##mod##_sound_plugin_init(plugin_t *plugin, plugintype_t type); \
|
|
|
|
void CDECL lib##mod##_sound_plugin_fini(void);
|
2017-03-12 10:48:08 +03:00
|
|
|
#define DECLARE_PLUGIN_INIT_FINI_FOR_NET_MODULE(mod) \
|
|
|
|
int CDECL lib##mod##_net_plugin_init(plugin_t *plugin, plugintype_t type); \
|
|
|
|
void CDECL lib##mod##_net_plugin_fini(void);
|
2017-05-28 11:13:06 +03:00
|
|
|
#define DECLARE_PLUGIN_INIT_FINI_FOR_USB_MODULE(mod) \
|
|
|
|
int CDECL lib##mod##_dev_plugin_init(plugin_t *plugin, plugintype_t type); \
|
|
|
|
void CDECL lib##mod##_dev_plugin_fini(void);
|
2011-06-15 21:24:32 +04:00
|
|
|
#endif
|
2008-02-06 01:57:43 +03:00
|
|
|
|
2017-02-18 19:28:04 +03:00
|
|
|
// device plugins
|
2002-10-25 01:07:56 +04:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(harddrv)
|
2011-01-13 01:34:42 +03:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(hdimage)
|
2002-10-25 01:07:56 +04:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(keyboard)
|
2004-12-11 11:35:33 +03:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(busmouse)
|
2002-10-25 01:07:56 +04:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(serial)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(unmapped)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(biosdev)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(cmos)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(dma)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(pic)
|
2009-01-11 21:46:01 +03:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(pit)
|
2002-10-25 01:07:56 +04:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(vga)
|
2012-01-25 01:58:24 +04:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(svga_cirrus)
|
2002-10-25 01:07:56 +04:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(floppy)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(parallel)
|
2002-11-09 23:51:40 +03:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(pci)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(pci2isa)
|
2004-06-10 00:55:58 +04:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(pci_ide)
|
2004-01-15 05:08:37 +03:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(pcidev)
|
2009-01-19 12:48:12 +03:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(usb_uhci)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(usb_ohci)
|
2015-12-06 23:03:42 +03:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(usb_ehci)
|
2011-07-04 23:42:47 +04:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(usb_xhci)
|
2002-11-13 21:39:41 +03:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(sb16)
|
2011-03-12 20:37:26 +03:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(es1370)
|
2011-08-16 21:27:27 +04:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(netmod)
|
2002-11-19 21:56:39 +03:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(ne2k)
|
2011-08-16 21:27:27 +04:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(pcipnic)
|
2011-12-14 00:53:44 +04:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(e1000)
|
2003-01-06 05:20:47 +03:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(extfpuirq)
|
2003-06-21 16:55:19 +04:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(gameport)
|
2004-02-02 22:42:21 +03:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(speaker)
|
2006-09-24 20:58:13 +04:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(acpi)
|
2008-12-30 21:11:13 +03:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(iodebug)
|
2009-02-22 13:44:50 +03:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(ioapic)
|
2017-04-17 10:26:00 +03:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(hpet)
|
2012-09-15 01:50:50 +04:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(voodoo)
|
2009-01-01 15:06:31 +03:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_MODULE(user)
|
2017-02-18 19:28:04 +03:00
|
|
|
// gui plugins
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_GUI_MODULE(amigaos)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_GUI_MODULE(carbon)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_GUI_MODULE(macintosh)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_GUI_MODULE(nogui)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_GUI_MODULE(rfb)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_GUI_MODULE(sdl)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_GUI_MODULE(sdl2)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_GUI_MODULE(svga)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_GUI_MODULE(term)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_GUI_MODULE(vncsrv)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_GUI_MODULE(win32)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_GUI_MODULE(wx)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_GUI_MODULE(x)
|
2017-02-20 21:21:19 +03:00
|
|
|
// sound driver plugins
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_SOUND_MODULE(alsa)
|
2017-03-14 21:21:05 +03:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_SOUND_MODULE(dummy)
|
2017-02-20 21:21:19 +03:00
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_SOUND_MODULE(file)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_SOUND_MODULE(oss)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_SOUND_MODULE(osx)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_SOUND_MODULE(sdl)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_SOUND_MODULE(win)
|
2017-03-12 10:48:08 +03:00
|
|
|
// network driver plugins
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_NET_MODULE(fbsd)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_NET_MODULE(linux)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_NET_MODULE(null)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_NET_MODULE(slirp)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_NET_MODULE(socket)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_NET_MODULE(tap)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_NET_MODULE(tuntap)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_NET_MODULE(vde)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_NET_MODULE(vnet)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_NET_MODULE(win32)
|
2017-05-28 11:13:06 +03:00
|
|
|
// USB device plugins
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_USB_MODULE(usb_cbi)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_USB_MODULE(usb_hid)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_USB_MODULE(usb_hub)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_USB_MODULE(usb_msd)
|
|
|
|
DECLARE_PLUGIN_INIT_FINI_FOR_USB_MODULE(usb_printer)
|
2002-10-25 01:07:56 +04:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2002-12-12 18:29:45 +03:00
|
|
|
}
|
2002-10-25 01:07:56 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __PLUGIN_H */
|