#include "config_table.h"
#include "ifileio.h"
Go to the source code of this file.
Data Structures | |
| struct | NAMES |
Defines | |
| #define | DEBUG_FLAG_DEFAULT 0 |
| #define | CONFIG_FILE "SYS$SYSROOT:[SYSEXE]SYS$CONFIG.DAT" |
| #define | USER_CONFIG_FILE "SYS$SYSROOT:[SYSEXE]SYS$USER_CONFIG.DAT" |
| #define | MAX_CONFIG_CACHE 64 |
| #define | STRING_MAX 256 |
| #define | MEDIUM_STRING 128 |
| #define | SMALL_STRING 32 |
| #define | TOKEN_MAX 64 |
| #define | END_OF_TABLE -1 |
| #define | IOGEN_CFG_TBL $M_EXTENDED_ID (IOGEN_CFG_TBL$M_NO_TABLE << 1) |
| #define | UPCASE 0x01 |
| #define | STRIP_LEAD_WHITESPACE 0x02 |
| #define | STRIP_TRAIL_SPACES 0x04 |
| #define | STRIP_QUOTES 0x08 |
| #define | COMPRESS_SPACES 0x10 |
| #define | COMPRESS_TABS 0x20 |
| #define | STRIP_COMMENTS 0x40 |
| #define | STRIP_SEMI_COMMENTS 0x80 |
| #define | _toupper(c) |
| #define | ioc $build_config_table IOC$BUILD_CONFIG_TABLE |
| #define | ioc $lookup_id IOC$LOOKUP_ID |
| #define | ioc $init_adp_config IOC$INIT_ADP_CONFIG |
| #define | ioc $init_and_return_all IOC$INIT_AND_RETURN_ALL |
| #define | ioc $lookup_class IOC$LOOKUP_CLASS |
| #define | ioc $delete_config_table IOC$DELETE_CONFIG_TABLE |
| #define | ioc $display_entry IOC$DISPLAY_ENTRY |
| #define | ioc $read_config_debug IOC$READ_CONFIG_DEBUG |
| #define | ioc $find_device IOC$FIND_DEVICE |
| #define | ioc $print_config_error IOC$PRINT_CONFIG_ERROR |
| #define | ioc $create_config_subtable IOC$CREATE_CONFIG_SUBTABLE |
| #define | ioc $merge_config_tables IOC$MERGE_CONFIG_TABLES |
| #define | _PRINT_ERROR ioc$print_config_error |
| #define | FILE_POINTER IFILE |
| #define | FILE_OPEN(_FILENAME, _ACCESS) ifopen(_FILENAME, _ACCESS) |
| #define | FILE_CLOSE(_FILE) ifclose(_FILE) |
| #define | FILE_GET_STRING(_STRING, _MAX, _FILE) ifgets(_STRING, _MAX, _FILE) |
| #define | FILE_AS_IS(_FILE) _FILE->as_is = 1 |
Enumerations | |
| enum | COMMAND_VALUE { cmdDEVICE, cmdEND_DEVICE, cmdDRIVER, cmdADAPTER, cmdNAME, cmdID, cmdFLAGS, cmdUNITS, cmdVECS, cmdVECALIGN, cmdASSOC, cmdTYPE, cmdPRIVATE, cmdBEGIN_PRIVATE, cmdEND_PRIVATE, cmdBOOT_FLAGS, cmdBOOT_CLASS, cmdEND_CONFIG } |
| enum | ERROR_TYPES { FIRST_MESSAGE, BAD_HWID, BAD_NUMBER, NOFILE, UNKNOWN_COMMAND, MISSING_INFO, NOT_ADDED, MISSING_END_DEVICE, INSFARGS, NOEQUALS, NOSTRING, NEEDVALUE, BADUNITS, UNKNOWN_ADP, MISSINGADP, UNKNOWN_FLAG, NOMEMORY, NULL_HW_ID, ID_NOT_STRING, BAD_EISA_ID, CHECK_ISA_ON_EISA, FOUND_CACHED, NEW_TABLE, BUILD_ERROR, TABLE_EXISTS, CHECKING_ADP, NO_TABLE, UNKNOWN_TABLE, DELETE_TABLE, REPLACED_TABLE, FOUND_FILE, FOUND_ENTRIES, FOUND_MEMORY_ENTRIES, FOUND_ENTRY, NO_ENTRY, FOUND_CLASS, NO_CLASS, NO_CONFIG, BUILT_CONFIG_TABLE, BUILT_SUBCONFIG_TABLE, CONFIG_ADP_TYPE, ALLOC_MEMORY, DISPLAY_ADAPTER, DEALLOC_MEMORY, DEREF_MEMORY, NO_SYSTEM_CONFIG, NO_CONFIG_FILE, BUS_ENTRY, MERGED_TABLES, LINE_TRUNCATED, NOT_IN_DEVICE, NOT_IN_PRIVATE, TOOMANYARGS, DISPLINE, DUPLICATE_ID, NOAUTOCONFIG, COMMAND_REPEAT, LAST_MESSAGE } |
Functions | |
| int $build_config_table IOC $BUILD_CONFIG_TABLE | $build_config_table (const int adp_type, CONFIG_TABLE **config,...) |
| int $build_config_table IOC $BUILD_CONFIG_TABLE | $lookup_id ($M_EXTENDED_ID(IOGEN_CFG_TBL $M_NO_TABLE<< 1)*config_entry, BUSARRAYENTRY *ba, ADP *adp, int *retindex, char **retdevnam) |
| int $build_config_table IOC $BUILD_CONFIG_TABLE | $init_adp_config (CONFIG_TABLE *full_config) |
| int $build_config_table IOC $BUILD_CONFIG_TABLE | $init_and_return_all (CONFIG_TABLE **config) |
| int $build_config_table IOC $BUILD_CONFIG_TABLE | $lookup_class ($M_EXTENDED_ID(IOGEN_CFG_TBL $M_NO_TABLE<< 1)*config_entry, int *retindex, char *devnam) |
| int $build_config_table IOC $BUILD_CONFIG_TABLE | $delete_config_table (CONFIG_TABLE *config_table) |
| int $build_config_table IOC $BUILD_CONFIG_TABLE | $display_entry ($M_EXTENDED_ID(IOGEN_CFG_TBL $M_NO_TABLE<< 1)*config_entry, int index) |
| void $build_config_table IOC $BUILD_CONFIG_TABLE | $read_config_debug (const int flag) |
| int $build_config_table IOC $BUILD_CONFIG_TABLE | $find_device ($M_EXTENDED_ID(IOGEN_CFG_TBL $M_NO_TABLE<< 1)*config_entry, BUSARRAYENTRY *ba, ADP *adp, int *retindex, char *devnam) |
| int $build_config_table IOC $BUILD_CONFIG_TABLE | $print_config_error (int error_number, int *error_return, int print_flag,...) |
| int $build_config_table IOC $BUILD_CONFIG_TABLE | $create_config_subtable (const int adp_type, CONFIG_TABLE *full_config, CONFIG_TABLE **config) |
| int $build_config_table IOC $BUILD_CONFIG_TABLE | $merge_config_tables (const int adp_type, CONFIG_TABLE **new_config_table,...) |
Variables | |
| static NAMES | cmd [] |
| static NAMES | adapters [] |
| static NAMES | adapter_print_names [] |
| static NAMES | cflags [] |
| static NAMES | bflags [] |
| #define _PRINT_ERROR ioc$print_config_error |
Definition at line 479 of file read_config.h.
| #define _toupper | ( | c | ) |
Value:
(((c) >= 'a' && (c) <= 'z') \ ? (c) & 0xDF : (c))
Definition at line 396 of file read_config.h.
| #define COMPRESS_SPACES 0x10 |
Definition at line 380 of file read_config.h.
| #define COMPRESS_TABS 0x20 |
Definition at line 381 of file read_config.h.
| #define CONFIG_FILE "SYS$SYSROOT:[SYSEXE]SYS$CONFIG.DAT" |
Definition at line 90 of file read_config.h.
| #define DEBUG_FLAG_DEFAULT 0 |
Definition at line 75 of file read_config.h.
| #define END_OF_TABLE -1 |
Definition at line 117 of file read_config.h.
| #define FILE_AS_IS | ( | _FILE | ) | _FILE->as_is = 1 |
Definition at line 485 of file read_config.h.
| #define FILE_CLOSE | ( | _FILE | ) | ifclose(_FILE) |
Definition at line 483 of file read_config.h.
| #define FILE_GET_STRING | ( | _STRING, | |||
| _MAX, | |||||
| _FILE | ) | ifgets(_STRING, _MAX, _FILE) |
Definition at line 484 of file read_config.h.
| #define FILE_OPEN | ( | _FILENAME, | |||
| _ACCESS | ) | ifopen(_FILENAME, _ACCESS) |
Definition at line 482 of file read_config.h.
| #define FILE_POINTER IFILE |
Definition at line 481 of file read_config.h.
| #define ioc $merge_config_tables IOC$MERGE_CONFIG_TABLES |
Definition at line 416 of file read_config.h.
| #define ioc $create_config_subtable IOC$CREATE_CONFIG_SUBTABLE |
Definition at line 416 of file read_config.h.
| #define ioc $print_config_error IOC$PRINT_CONFIG_ERROR |
Definition at line 416 of file read_config.h.
| #define ioc $find_device IOC$FIND_DEVICE |
Definition at line 416 of file read_config.h.
| #define ioc $read_config_debug IOC$READ_CONFIG_DEBUG |
Definition at line 416 of file read_config.h.
| #define ioc $display_entry IOC$DISPLAY_ENTRY |
Definition at line 416 of file read_config.h.
| #define ioc $delete_config_table IOC$DELETE_CONFIG_TABLE |
Definition at line 416 of file read_config.h.
| #define ioc $lookup_class IOC$LOOKUP_CLASS |
Definition at line 416 of file read_config.h.
| #define ioc $init_and_return_all IOC$INIT_AND_RETURN_ALL |
Definition at line 416 of file read_config.h.
| #define ioc $init_adp_config IOC$INIT_ADP_CONFIG |
Definition at line 416 of file read_config.h.
| #define ioc $lookup_id IOC$LOOKUP_ID |
Definition at line 416 of file read_config.h.
| #define ioc $build_config_table IOC$BUILD_CONFIG_TABLE |
Definition at line 416 of file read_config.h.
| #define IOGEN_CFG_TBL $M_EXTENDED_ID (IOGEN_CFG_TBL$M_NO_TABLE << 1) |
| #define MAX_CONFIG_CACHE 64 |
Definition at line 98 of file read_config.h.
| #define MEDIUM_STRING 128 |
Definition at line 106 of file read_config.h.
| #define SMALL_STRING 32 |
Definition at line 110 of file read_config.h.
| #define STRING_MAX 256 |
Definition at line 102 of file read_config.h.
| #define STRIP_COMMENTS 0x40 |
Definition at line 382 of file read_config.h.
| #define STRIP_LEAD_WHITESPACE 0x02 |
Definition at line 377 of file read_config.h.
| #define STRIP_QUOTES 0x08 |
Definition at line 379 of file read_config.h.
| #define STRIP_SEMI_COMMENTS 0x80 |
Definition at line 383 of file read_config.h.
| #define STRIP_TRAIL_SPACES 0x04 |
Definition at line 378 of file read_config.h.
| #define TOKEN_MAX 64 |
Definition at line 114 of file read_config.h.
| #define UPCASE 0x01 |
Definition at line 376 of file read_config.h.
| #define USER_CONFIG_FILE "SYS$SYSROOT:[SYSEXE]SYS$USER_CONFIG.DAT" |
Definition at line 94 of file read_config.h.
| enum COMMAND_VALUE |
| cmdDEVICE | |
| cmdEND_DEVICE | |
| cmdDRIVER | |
| cmdADAPTER | |
| cmdNAME | |
| cmdID | |
| cmdFLAGS | |
| cmdUNITS | |
| cmdVECS | |
| cmdVECALIGN | |
| cmdASSOC | |
| cmdTYPE | |
| cmdPRIVATE | |
| cmdBEGIN_PRIVATE | |
| cmdEND_PRIVATE | |
| cmdBOOT_FLAGS | |
| cmdBOOT_CLASS | |
| cmdEND_CONFIG |
Definition at line 131 of file read_config.h.
| enum ERROR_TYPES |
Definition at line 312 of file read_config.h.
| int $build_config_table IOC $BUILD_CONFIG_TABLE $build_config_table | ( | const int | adp_type, | |
| CONFIG_TABLE ** | config, | |||
| ... | ||||
| ) |
| int $build_config_table IOC $BUILD_CONFIG_TABLE $create_config_subtable | ( | const int | adp_type, | |
| CONFIG_TABLE * | full_config, | |||
| CONFIG_TABLE ** | config | |||
| ) |
| int $build_config_table IOC $BUILD_CONFIG_TABLE $delete_config_table | ( | CONFIG_TABLE * | config_table | ) |
| int $build_config_table IOC $BUILD_CONFIG_TABLE $display_entry | ( | $M_EXTENDED_ID(IOGEN_CFG_TBL $M_NO_TABLE<< 1)* | config_entry, | |
| int | index | |||
| ) |
| int $build_config_table IOC $BUILD_CONFIG_TABLE $find_device | ( | $M_EXTENDED_ID(IOGEN_CFG_TBL $M_NO_TABLE<< 1)* | config_entry, | |
| BUSARRAYENTRY * | ba, | |||
| ADP * | adp, | |||
| int * | retindex, | |||
| char * | devnam | |||
| ) |
| int $build_config_table IOC $BUILD_CONFIG_TABLE $init_adp_config | ( | CONFIG_TABLE * | full_config | ) |
| int $build_config_table IOC $BUILD_CONFIG_TABLE $init_and_return_all | ( | CONFIG_TABLE ** | config | ) |
| int $build_config_table IOC $BUILD_CONFIG_TABLE $lookup_class | ( | $M_EXTENDED_ID(IOGEN_CFG_TBL $M_NO_TABLE<< 1)* | config_entry, | |
| int * | retindex, | |||
| char * | devnam | |||
| ) |
| int $build_config_table IOC $BUILD_CONFIG_TABLE $lookup_id | ( | $M_EXTENDED_ID(IOGEN_CFG_TBL $M_NO_TABLE<< 1)* | config_entry, | |
| BUSARRAYENTRY * | ba, | |||
| ADP * | adp, | |||
| int * | retindex, | |||
| char ** | retdevnam | |||
| ) |
| int $build_config_table IOC $BUILD_CONFIG_TABLE $merge_config_tables | ( | const int | adp_type, | |
| CONFIG_TABLE ** | new_config_table, | |||
| ... | ||||
| ) |
| int $build_config_table IOC $BUILD_CONFIG_TABLE $print_config_error | ( | int | error_number, | |
| int * | error_return, | |||
| int | print_flag, | |||
| ... | ||||
| ) |
| void $build_config_table IOC $BUILD_CONFIG_TABLE $read_config_debug | ( | const int | flag | ) |
NAMES adapter_print_names[] [static] |
Definition at line 203 of file read_config.h.
Initial value:
{
0, "NONE", 4,
AT$_ISA, "ISA", 3,
AT$_EISA, "EISA", 4,
AT$_TC, "TC", 2,
AT$_PCI, "PCI", 3,
AT$_XMI, "XMI", 3,
AT$_FBUS, "FBUS", 4,
AT$_KA0202_LBUS, "KA0202_LBUS", 10,
AT$_COREIO, "COREIO", 4,
AT$_XBUS, "XBUS", 4,
AT$_PCMCIA, "PCMCIA", 4,
AT$_VTI_COMBO, "VTI_COMBO", 4,
AT$_TC, "TURBOCHANNEL", 5,
-1 , "UNKNOWN/ALL", 0
}
Definition at line 180 of file read_config.h.
Initial value:
{
$M_EXTENDED_ID (IOGEN_CFG_TBL$M_NO_TABLE << 1) $M_SYS_DEV, "SYS_DEV", 7,
$M_EXTENDED_ID (IOGEN_CFG_TBL$M_NO_TABLE << 1) $M_REMOTE, "REMOTE", 4,
$M_EXTENDED_ID (IOGEN_CFG_TBL$M_NO_TABLE << 1) $M_NO_CTRL_LTR, "NO_CTRL_LTR", 8,
$M_EXTENDED_ID (IOGEN_CFG_TBL$M_NO_TABLE << 1) $M_HW_CTRL_LTR, "HW_CTRL_LTR", 8,
$M_EXTENDED_ID (IOGEN_CFG_TBL$M_NO_TABLE << 1) $M_UNIT_0, "UNIT_0", 6,
$M_EXTENDED_ID (IOGEN_CFG_TBL$M_NO_TABLE << 1) $M_CTRL_LTR_A, "CTRL_LTR_A", 4,
$M_EXTENDED_ID (IOGEN_CFG_TBL$M_NO_TABLE << 1) $M_ALT_PREFIX, "ALT_PREFIX", 8,
$M_EXTENDED_ID (IOGEN_CFG_TBL$M_NO_TABLE << 1) $M_CREATE_DEV, "CREATE_DEV", 8,
-1 , "UNKNOWN", 0
}
Definition at line 296 of file read_config.h.
Initial value:
{
IOGEN_CFG_TBL$M_MSCP, "MSCP", 4,
IOGEN_CFG_TBL$M_SCSI, "SCSI", 4,
IOGEN_CFG_TBL$M_NOVECTOR, "NOVECTOR", 5,
IOGEN_CFG_TBL$M_CLASS, "CLASS", 5,
IOGEN_CFG_TBL$M_PORT, "PORT", 3,
IOGEN_CFG_TBL$M_BOOT, "BOOT", 4,
IOGEN_CFG_TBL$M_DISK, "DISK", 4,
IOGEN_CFG_TBL$M_NETWORK, "NETWORK", 3,
IOGEN_CFG_TBL$M_PSEUDO, "PSEUDO", 3,
IOGEN_CFG_TBL$M_CASE_BLIND, "CASE_BLIND", 6,
#define IOGEN_CFG_TBL
$M_EXTENDED_ID (IOGEN_CFG_TBL$M_NO_TABLE << 1) $M_EXTENDED_ID, "EXTENDED_ID", 11,
$M_EXTENDED_ID (IOGEN_CFG_TBL$M_NO_TABLE << 1) $M_ISA_ON_EISA, "ISA_ON_EISA", 7,
$M_EXTENDED_ID (IOGEN_CFG_TBL$M_NO_TABLE << 1) $M_FIBRE, "FIBRE", 3,
$M_EXTENDED_ID (IOGEN_CFG_TBL$M_NO_TABLE << 1) $M_ULP, "ULP", 3,
$M_EXTENDED_ID (IOGEN_CFG_TBL$M_NO_TABLE << 1) $M_CISS, "CISS", 4,
-1 , "UNKNOWN", 0
}
Definition at line 259 of file read_config.h.
Initial value:
{
cmdDEVICE, "DEVICE", 4,
cmdEND_DEVICE, "END_DEVICE", 5,
cmdDRIVER, "DRIVER", 4,
cmdADAPTER, "ADAPTER", 4,
cmdNAME, "NAME", 4,
cmdID, "ID", 2,
cmdFLAGS, "FLAGS", 4,
cmdUNITS, "UNITS", 4,
cmdVECS, "NUM_VECTORS", 7,
cmdVECALIGN, "ALIGN_VECTOR", 9,
cmdASSOC, "ASSOC_DRIVERS", 5,
cmdTYPE, "TYPE", 4,
cmdPRIVATE, "PRIVATE", 4,
cmdBEGIN_PRIVATE, "BEGIN_PRIVATE", 7,
cmdEND_PRIVATE, "END_PRIVATE", 5,
cmdBOOT_FLAGS, "BOOT_FLAGS", 7,
cmdBOOT_CLASS, "BOOT_CLASS", 7,
cmdEND_CONFIG, "END_CONFIG", 5,
-1 , "LAST_ENTRY", 0
}
Definition at line 152 of file read_config.h.
Referenced by Poco::Debugger::enter().