Files
org-hyperion-cules/hdteq.c
Jay Maynard 2370aac4ee The big move: moving MSVC (mingw_port) branch to the trunk. Cross your
fingers...


git-svn-id: file:///home/jj/hercules.svn/trunk@3027 956126f8-22a0-4046-8f4a-272fa8102e63
2005-09-24 16:17:46 +00:00

112 lines
2.6 KiB
C

/* HDTEQ.C (c) Copyright Jan Jaeger, 2003-2005 */
/* Hercules Dynamic Loader */
#include "hstdinc.h"
#include "hercules.h"
typedef struct _DTEQ {
char *alias;
char *name;
} DTEQ;
static DTEQ dteq[] = {
/*
This table provides aliases for device types, such that various
device types may be mapped to a common loadable module.
The only purpose of this table is to associate the right loadable
module with a specific device type, before the device type in
question has been registered. This table will not be searched
for registered device types or if the specific loadable module exists.
device type requested
|
| base device support
| |
V V */
// { "3390", "3990" },
// { "3380", "3990" },
{ "1052", "3270" },
{ "3215", "3270" },
{ "3287", "3270" },
{ "1052-C", "1052c" },
{ "3215-C", "1052c" },
{ "1442", "3505" },
{ "2501", "3505" },
{ "3211", "1403" },
{ "3410", "3420" },
{ "3411", "3420" },
{ "3420", "3420" },
{ "3480", "3420" },
{ "3490", "3420" },
{ "9347", "3420" },
{ "9348", "3420" },
{ "8809", "3420" },
{ "3422", "3420" },
{ "3430", "3420" },
{ "LCS", "3088" },
{ "CTCI", "3088" },
{ "CTCT", "3088" },
{ "VMNET", "3088" },
{ "HCHAN", "2880" },
{ "2880", "2880" },
{ "2870", "2880" },
{ "2860", "2880" },
{ "9032", "2880" },
{ NULL, NULL } };
#if defined(OPTION_DYNAMIC_LOAD)
static char *hdt_device_type_equates(char *typname)
{
DTEQ *device_type;
char *(*nextcall)(char *);
for(device_type = dteq; device_type->name; device_type++)
if(!strcasecmp(device_type->alias, typname))
return device_type->name;
if((nextcall = HDL_FINDNXT(hdt_device_type_equates)))
return nextcall(typname);
return NULL;
}
/* Libtool static name colision resolution */
/* note : lt_dlopen will look for symbol & modulename_LTX_symbol */
/* for use in DLREOPEN case only */
#if !defined(HDL_BUILD_SHARED) && defined(HDL_USE_LIBTOOL)
#define hdl_ddev hdteq_LTX_hdl_ddev
#define hdl_depc hdteq_LTX_hdl_depc
#define hdl_reso hdteq_LTX_hdl_reso
#define hdl_init hdteq_LTX_hdl_init
#define hdl_fini hdteq_LTX_hdl_fini
#endif
HDL_DEPENDENCY_SECTION;
{
HDL_DEPENDENCY(HERCULES);
}
END_DEPENDENCY_SECTION;
HDL_REGISTER_SECTION;
{
HDL_REGISTER(hdl_device_type_equates,hdt_device_type_equates);
}
END_REGISTER_SECTION;
#endif