📄 dl.h
字号:
/* * $QNXLicenseC: * Copyright 2007, QNX Software Systems. * * Licensed under the Apache License, Version 2.0 (the "License"). You * may not reproduce, modify or distribute this software except in * compliance with the License. You may obtain a copy of the License * at: http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTIES OF ANY KIND, either express or implied. * * This file may contain contributions from others, either as * contributors under the License or as licensors under other terms. * Please review this entire file for other proprietary rights or license * notices, as well as the QNX Development Suite License Guide at * http://licensing.qnx.com/license-guide/ for other information. * $ *//* * */#include <dlfcn.h>struct dll_syms { char *symname; void *addr;};#ifdef DLL_bios#include "dl_bios.h"#endif#ifdef DLL_aspen#include "dl_aspen.h"#endif#ifdef DLL_au1500#include "dl_au1500.h"#endif#ifdef DLL_ml300#include "dl_ml300.h"#endif#ifdef DLL_systemh#include "dl_systemh.h"#endif#ifdef DLL_edosk7780#include "dl_edosk7780.h"#endif#ifdef DLL_p5064#include "dl_p5064.h"#endif#ifdef DLL_nec4373#include "dl_nec4373.h"#endif#ifdef DLL_tx7901#include "dl_tx7901.h"#endif#ifdef DLL_jolt#include "dl_jolt.h"#endif#ifdef DLL_cpci6750#include "dl_cpci6750.h"#endif#ifdef DLL_cpc700#include "dl_cpc700.h"#endif#ifdef DLL_raven#include "dl_raven.h"#endif#ifdef DLL_hawk#include "dl_hawk.h"#endif#ifdef DLL_harrier#include "dl_harrier.h"#endif#ifdef DLL_hermosa#include "dl_hermosa.h"#endif#ifdef DLL_mbx#include "dl_mbx.h"#endif#ifdef DLL_tundra860#include "dl_tundra860.h"#endif#ifdef DLL_nec4121#include "dl_nec4121.h"#endif#ifdef DLL_malta#include "dl_malta.h"#endif#ifdef DLL_discovery#include "dl_discovery.h"#endif#ifdef DLL_copperhead#include "dl_copperhead.h"#endif#ifdef DLL_artesyn750fx#include "dl_artesyn750fx.h"#endif#ifdef DLL_atlantis#include "dl_atlantis.h"#endif#ifdef DLL_katana750i#include "dl_katana750i.h"#endif#ifdef DLL_mvp#include "dl_mvp.h"#endif#ifdef DLL_mtx600#include "dl_mtx600.h"#endif#ifdef DLL_nile#include "dl_nile.h"#endif#ifdef DLL_mpc106#include "dl_mpc106.h"#endif#ifdef DLL_yellowknife#include "dl_yellowknife.h"#endif#ifdef DLL_sandpoint#include "dl_sandpoint.h"#endif#ifdef DLL_jace5#include "dl_jace5.h"#endif#ifdef DLL_ppc405#include "dl_ppc405.h"#endif#ifdef DLL_ppc440rb#include "dl_ppc440rb.h"#endif#ifdef DLL_artesyn440#include "dl_artesyn440.h"#endif#ifdef DLL_integrator#include "dl_integrator.h"#endif#ifdef DLL_eagle#include "dl_eagle.h"#endif#ifdef DLL_vrc5477#include "dl_vrc5477.h"#endif#ifdef DLL_merced#include "dl_merced.h"#endif#ifdef DLL_bcm1250#include "dl_bcm1250.h"#endif#ifdef DLL_ixp1200#include "dl_ixp1200.h"#endif#ifdef DLL_ixp2400#include "dl_ixp2400.h"#endif#ifdef DLL_ixp23xx#include "dl_ixp23xx.h"#endif#ifdef DLL_ixc1100#include "dl_ixc1100.h"#endif#ifdef DLL_shasta#include "dl_shasta.h"#endif#ifdef DLL_brh#include "dl_brh.h"#endif#ifdef DLL_sh7751#include "dl_sh7751.h"#endif#ifdef DLL_mpc8266#include "dl_mpc8266.h"#endif#ifdef DLL_bcm9125e#include "dl_bcm9125e.h"#endif#ifdef DLL_vr4131#include "dl_vr4131.h"#endif#ifdef DLL_mgt5200#include "dl_mgt5200.h"#endif#ifdef DLL_haco5200 #include "dl_haco5200.h" #endif #ifdef DLL_mpc85xx#include "dl_mpc85xx.h"#endif#ifdef DLL_bcm1x80#include "dl_bcm1x80.h"#endif#ifdef DLL_sequoia#include "dl_sequoia.h"#endif#ifdef DLL_katanaQp#include "dl_katanaQp.h"#endif#ifdef DLL_mpc83xx#include "dl_mpc83xx.h"#endif#ifdef DLL_dmc1000#include "dl_dmc1000.h"#endifstruct dll_list { char *fname; const struct dll_syms *syms;};static const struct dll_list dll_list[] = {#ifdef PCI_BIOS_LIST { PCI_BIOS_LIST },#endif#ifdef PCI_ASPEN_LIST { PCI_ASPEN_LIST },#endif#ifdef PCI_AU1500_LIST { PCI_AU1500_LIST },#endif#ifdef PCI_SYSTEMH_LIST { PCI_SYSTEMH_LIST },#endif#ifdef PCI_EDOSK7780_LIST { PCI_EDOSK7780_LIST },#endif#ifdef PCI_P5064_LIST { PCI_P5064_LIST },#endif#ifdef PCI_NEC4373_LIST { PCI_NEC4373_LIST },#endif#ifdef PCI_TX7901_LIST { PCI_TX7901_LIST },#endif#ifdef PCI_JOLT_LIST { PCI_JOLT_LIST },#endif#ifdef PCI_RAVEN_LIST { PCI_RAVEN_LIST },#endif#ifdef PCI_HAWK_LIST { PCI_HAWK_LIST },#endif#ifdef PCI_ML300_LIST { PCI_ML300_LIST },#endif#ifdef PCI_HARRIER_LIST { PCI_HARRIER_LIST },#endif#ifdef PCI_MALTA_LIST { PCI_MALTA_LIST },#endif#ifdef PCI_DISCOVERY_LIST { PCI_DISCOVERY_LIST },#endif#ifdef PCI_COPPERHEAD_LIST { PCI_COPPERHEAD_LIST },#endif#ifdef PCI_ARTESYN750FX_LIST { PCI_ARTESYN750FX_LIST},#endif#ifdef PCI_ATLANTIS_LIST { PCI_ATLANTIS_LIST },#endif#ifdef PCI_KATANA750I_LIST { PCI_KATANA750I_LIST },#endif#ifdef PCI_MVP_LIST { PCI_MVP_LIST },#endif#ifdef PCI_HERMOSA_LIST { PCI_HERMOSA_LIST },#endif#ifdef PCI_NEC4121_LIST { PCI_NEC4121_LIST },#endif#ifdef PCI_MBX_LIST { PCI_MBX_LIST },#endif#ifdef PCI_MTX600_LIST { PCI_MTX600_LIST },#endif#ifdef PCI_NILE_LIST { PCI_NILE_LIST },#endif#ifdef PCI_CPCI6750_LIST { PCI_CPCI6750_LIST },#endif#ifdef PCI_CPC700_LIST { PCI_CPC700_LIST },#endif#ifdef PCI_MPC106_LIST { PCI_MPC106_LIST },#endif#ifdef PCI_YELLOWKNIFE_LIST { PCI_YELLOWKNIFE_LIST },#endif#ifdef PCI_SANDPOINT_LIST { PCI_SANDPOINT_LIST },#endif#ifdef PCI_JACE5_LIST { PCI_JACE5_LIST },#endif#ifdef PCI_PPC405_LIST { PCI_PPC405_LIST },#endif#ifdef PCI_PPC440RB_LIST { PCI_PPC440RB_LIST },#endif#ifdef PCI_ARTESYN440_LIST { PCI_ARTESYN440_LIST },#endif#ifdef PCI_INTEGRATOR_LIST { PCI_INTEGRATOR_LIST },#endif#ifdef PCI_EAGLE_LIST { PCI_EAGLE_LIST },#endif #ifdef PCI_MERCED_LIST { PCI_MERCED_LIST },#endif#ifdef PCI_BCM1250_LIST { PCI_BCM1250_LIST },#endif#ifdef PCI_IXP1200_LIST { PCI_IXP1200_LIST },#endif#ifdef PCI_IXP2400_LIST { PCI_IXP2400_LIST },#endif#ifdef PCI_IXP23XX_LIST { PCI_IXP23XX_LIST },#endif#ifdef PCI_IXC1100_LIST { PCI_IXC1100_LIST },#endif#ifdef PCI_SHASTA_LIST { PCI_SHASTA_LIST },#endif#ifdef PCI_BRH_LIST { PCI_BRH_LIST },#endif#ifdef PCI_SH7751_LIST { PCI_SH7751_LIST },#endif#ifdef PCI_MPC8266_LIST { PCI_MPC8266_LIST },#endif#ifdef PCI_BCM9125E_LIST { PCI_BCM9125E_LIST },#endif#ifdef PCI_VRC5477_LIST { PCI_VRC5477_LIST },#endif#ifdef PCI_VR4131_LIST { PCI_VR4131_LIST },#endif#ifdef PCI_MGT5200_LIST { PCI_MGT5200_LIST },#endif#ifdef PCI_HACO5200_LIST { PCI_HACO5200_LIST },#endif#ifdef PCI_MPC85XX_LIST { PCI_MPC85XX_LIST },#endif#ifdef PCI_BCM1x80_LIST { PCI_BCM1x80_LIST },#endif#ifdef PCI_SEQUOIA_LIST { PCI_SEQUOIA_LIST },#endif#ifdef PCI_KATANAQP_LIST { PCI_KATANAQP_LIST },#endif#ifdef PCI_MPC83XX_LIST { PCI_MPC83XX_LIST },#endif#ifdef PCI_DMC1000_LIST { PCI_DMC1000_LIST },#endif { NULL, NULL } };void *pci_dlopen (const char *pathname, int mode);void *pci_dlsym (void *handle, const char *name);int pci_dlclose (void *handle);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -