⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 strgdef.h

📁 Linux下的系统信息获取
💻 H
📖 第 1 页 / 共 4 页
字号:
/* Copyright (C) 2001-2001 Fujitsu Siemens Computers   Joachim Braeuer   This file is part of smbios   smbios is free software; you can redistribute it and/or modify it   under the terms of the GNU General Public License as published by   the Free Software Foundation; either version 2 of the License,   or (at your option) any later version.   smbios 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 General Public License   for more details.   You should have received a copy of the GNU General Public License   along with smbios; see the file COPYING. If not, write to the   Free Software Foundation, Inc., 59 Temple Place - Suite 330,   Boston, MA 02111-1307, USA.*//* $Log: strgdef.h,v $/* Revision 1.1  2001/09/15 14:52:43  bretthauert/* initial release/* *//** \file strgdef.h *  String definitions for cooked text. *  This file contains the string definitions for human readable output *  (directory names, file names, SMBios structure names, attribute names *  and attribute values and enums). * *  \author Joachim Braeuer *  \version 0.1 *  \date March 2001 */#ifndef __STRGDEF_H__#define __STRGDEF_H__/** name of the diretory in the proc file system that holds the readable *   (interpreted, cooked) types */#define PROC_DIR_STRING                     "smbios"/** name of the directory in the proc file system that holds the raw (binary) *   types */#define PROC_DIR_STRING_RAW			        "raw"/** name of the directory in the proc file system that holds the cooked (ascii) *   types */#define PROC_DIR_STRING_COOKED			    "cooked"/** readable names for smbios structures, they serve as filenames in the /proc file system */#define RD_BIOS								"bios"#define RD_SYSTEM							"system"#define RD_BASEBOARD						"baseboard"#define RD_ENCLOSURE						"enclosure"#define RD_PROCESSOR						"processor"#define RD_MEMCTRL							"memory_controller"#define RD_MEMMOD							"memory_module"#define RD_CACHE							"cache"#define RD_PORT								"port_connector"#define RD_SLOT								"system_slot"#define RD_ONBOARD							"onboard_device"#define RD_OEMSTRINGS						"oem_strings"#define RD_SYSTEMCONFIG					    "system_configuration"#define RD_BIOSLANG							"bios_language"#define RD_GROUPASSOC						"group_association"#define RD_EVENTLOG							"system_event_log"#define RD_MEMARRAY							"physical_memory_array"#define RD_MEMDEV							"physical_memory_device"#define RD_32MEMERR							"32bit_memory_error_information"#define RD_MEMMAPPEDADR					    "memory_array_mapped_address"#define RD_MEMMAPPEDDEV					    "memory_device_mapped_address"#define RD_POINTINGDEV					    "pointing_device"#define RD_BATTERY							"portable_battery"#define RD_RESET							"system_reset"#define RD_SECURITY							"hardware_security"#define RD_PWRCTRL							"system_power_controls"#define RD_VOLTAGE							"voltage_probe"#define RD_COOLINGDEV						"cooling_device"#define RD_TEMP								"temperature_probe"#define RD_CURRENT							"current_probe"#define RD_RMTACCESS						"out_of_band_remote_access"#define RD_BIS								"boot_integrity_services"#define RD_BOOT_INFO						"system_boot_information"#define RD_64MEMERR							"64bit_memory_error_information"#define RD_MANAGDEV							"management_device"#define RD_MANAGDEVCOMP					    "management_device_component"#define RD_MANAGDEVTHRESH				    "management_device_thresholds"#define RD_MEMCHANNEL						"memory_channel"#define RD_IPMI								"ipmi_information"#define RD_PWRSUP							"system_power_supply"#define RD_INACTIVE							"inactive"#define RD_EOT								"end_of_table"/** readable names of Fujitsu Siemsens smbios structures - system specific area */#define RDP_OMF_BOARD_ID                "omf_board_id"              // 176#define RDP_OMF_BIOS_ID                 "omf_bios_id"               // 177#define RDP_HD_USER_TYPE                "hard_disk_user_type"       // 178#define RDP_SER_PAR_CONFIG              "serial_parallel_config"    // 179#define RDP_APM_CONFIG                  "apm_config"                // 180#define RDP_SYSMON                      "system_monitoring"         // 185#define RDP_DISPLAY_ID                  "display_id"                // 186#define RDP_BIOS_ERROR_LOG              "bios_error_log"            // 187#define RDP_BIOS_ID                     "bios_id"                   // 188#define RDP_HW_CONTROL                  "hw_control"                // 189/** readable names of Fujitsu Siemsens smbios structures - manufacturer area */#define RDP_BOARD_CONFIG                "board_config"              // 208#define RDP_INT_DEV                     "internal_device"           // 209#define RDP_EL_COMP                     "electronic_components"     // 210#define RDP_ADDON_CARD                  "addon_card"                // 211#define RDP_TEST_RESULTS                "test_results"              // 212#define RDP_SCSI_DEV                    "scsi_devices"              // 213#define RDP_BINARY_DATA                 "binary_data"               // 254#define RDP_FREE_FORM_TEXT              "freeform_text"             // 255/** system monitoring subtypes (subtypes of 185) */#define RDP_SM_HOUSING                  "housing"                   // 0#define RDP_SM_HOUSING_SWITCH           "housing_switch"            // 1#define RDP_SM_GEOMETRY                 "geometry"                  // 2#define RDP_SM_FAN_CPU1                 "fan_cpu1"                  // 3#define RDP_SM_FAN_CPU2                 "fan_cpu2"                  // 4#define RDP_SM_FAN_AUX                  "fan_aux"                   // 5#define RDP_SM_FAN_PWR                  "fan_pwr"                   // 6#define RDP_SM_TEMP_CPU1                "temp_cpu1"                 // 7#define RDP_SM_TEMP_CPU2                "temp_cpu2"                 // 8#define RDP_SM_TEMP_AUX                 "temp_aux"                  // 9#define RDP_SM_WATCHDOG                 "watchdog"                  // 10#define RDP_SM_VOLTAGES                 "voltages"                  // 11#define RDP_SM_PWR_CTRL                 "power_control"             // 12#define RDP_SM_PCI_USAGE                "pci_usage"                 // 13#define RDP_SM_ECC                      "ecc"                       // 14#define RDP_SM_USB_SHORT                "usb_short"                 // 15#define RDP_SM_VBAT                     "voltage_battery"           // 16#define RDP_SM_PWR_ID                   "power_id"                  // 17#define RDP_SM_MAN                      "manufacturer"              // 18#define RDP_SM_MUL_OFF                  "multiplyer_offset"         // 19#define RDP_SM_PLATTER_ID               "platter_id"                // 20#define RDP_SM_TIMER                    "timer"                     // 21#define RDP_SM_TEMP_OUT                 "temp_out"                  // 22#define RDP_SM_MON_OUT                  "monitor_outlet"            // 23#define RDP_SM_TEMP_IN                  "temp_in"                   // 24#define RDP_SM_ADD_MULT_OFF             "add_multiplyer_offset"     // 25#define RDP_SM_FAN_SYS                  "fan_system"                // 26#define RDP_SM_BIOS_LOG_MEDIA           "bios_log_media"            // 27#define RDP_SM_SYSMON_MEDIA             "sysmon_media"              // 28#define RDP_SM_SYSMON_VCORE             "voltage_core"              // 29#define RDP_SM_SYSMON_DEVICEID          "device_id"                 // 30#define RDP_SM_SYSMON_MEMMOD_ID         "memory_module_id"          // 31#define RDP_SM_SYSMON_MEMPROM_ID        "memory_prom_id"            // 32#define RDP_SM_SYSMON_IDPROMS_ID        "idprom_id"                 // 33/** internal device subtypes (subtypes of 209) */#define RDP_ID_OTHER                    "other"                     // 0#define RDP_ID_PWRSUP                   "powersupply"               // 1#define RDP_ID_HD                       "harddisk"                  // 2#define RDP_ID_FLOPPY                   "floppy"                    // 3#define RDP_ID_CD                       "cd"                        // 4#define RDP_ID_MO                       "mo"                        // 5#define RDP_ID_STREAMER                 "streamer"                  // 6#define RDP_ID_FLOPTICAL                "floptical"                 // 7#define RDP_ID_CHIPCARD                 "chipcard"                  // 8/** electronic component (subtypes of 210) */#define RDP_EC_OTHER                    "other"                     // 0#define RDP_EC_CACHE                    "cacher"                    // 1#define RDP_EC_DRAM                     "dram"                      // 2#define RDP_EC_VIDEOMEM                 "videomem"                  // 3/** adapter card (subtypes of 211) */#define RDP_AC_OTHER                    "other"                     // 0#define RDP_AC_VIDEO                    "video"                     // 1#define RDP_AC_LAN                      "lan"                       // 2#define RDP_AC_SCSI                     "scsi"                      // 3#define RDP_AC_AUDIO                    "audio"                     // 4#define RDP_AC_FAX                      "fax"                       // 5#define RDP_AC_MODEM                    "modem"                     // 6#define RDP_AC_TV                       "tv"                        // 7#define RDP_AC_MPEG                     "mpeg"                      // 8/** test results (subtypes of 212) */#define RDP_TR_BIOS                     "bios"                      // 0#define RDP_TR_TDS                      "tds"                       // 1/** binary data (subtypes of 254) */#define RDP_BD_MAGIC_NUM                "magic_number"              // 0#define RDP_BD_FREEFORM1                "freeform1"                 // 1#define RDP_BD_FREEFORM2                "freeform2"                 // 2/**   * String definitions for the various smbios types.  * You could use them to get the exact names/tokens/contents  * of the /proc file system file contents.  *//* * Header */#define TYPE                            "Type"#define LENGTH                          "Length"#define HANDLE                          "Handle"/* * Type 0 - Bios */#define TYPE0_NAME                      "(BIOS Information)"#define TYPE0_VENDOR                    "Vendor"#define TYPE0_VERSION                   "Version"#define TYPE0_ADR_SEG                   "Starting Adr Seg"#define TYPE0_REL_DATE                  "Rel. Date"#define TYPE0_ROM_SIZE                  "ROM Size"#define TYPE0_CHAR                      "Characteristics"#define TYPE0_CHAR_RES                  "Reserved"#define TYPE0_CHAR_UNKNOWN              "Unknown"#define TYPE0_CHAR_NOTSUP               "Not Supported"#define TYPE0_CHAR_ISA                  "ISA"#define TYPE0_CHAR_MCA                  "MCA"#define TYPE0_CHAR_EISA                 "EISA"#define TYPE0_CHAR_PCI                  "PCI"#define TYPE0_CHAR_PCMCIA               "PCMCIA"#define TYPE0_CHAR_PNP                  "Plug and Play"#define TYPE0_CHAR_APM                  "Advanced Power Management"#define TYPE0_CHAR_FLASH                "Flash"#define TYPE0_CHAR_SHADOWING            "Shadowing"#define TYPE0_CHAR_VL                   "VL-Vesa"#define TYPE0_CHAR_ESCD                 "ESCD"#define TYPE0_CHAR_BOOTCD               "Boot from CD"#define TYPE0_CHAR_SELBOOT              "Selectable Boot"#define TYPE0_CHAR_BIOS_IS_SOCKETED     "Bios Rom is socketed"#define TYPE0_CHAR_PCMCIA_BOOT          "Boot from PCMCIA"#define TYPE0_CHAR_ENH_DISK_DRIVE       "Enhanced Disk Drive"#define TYPE0_CHAR_FD_NEC               "Int13h - japanese Floppy NEC 1,2 MB"#define TYPE0_CHAR_FD_TOSHIBA           "Int13h - japanese Floppy Toshiba 1,2 MB"#define TYPE0_CHAR_360                  "Int13h - 360 kB Floppy"#define TYPE0_CHAR_1200                 "Int13h - 1,2 MB Floppy"#define TYPE0_CHAR_720                  "Int13h - 720 kB Floppy"#define TYPE0_CHAR_2880                 "Int13h - 2,88 MB Floppy"#define TYPE0_CHAR_PRINT_SCREEN         "Int5h - Print Screen"#define TYPE0_CHAR_KEYBOARD             "Int9h - 8042 Keyboard"#define TYPE0_CHAR_SER_SERVICES         "Int14h - Serial Services"#define TYPE0_CHAR_PRINT_SERVICES       "Int17h - Printer Services"#define TYPE0_CHAR_VIDEO_SERVICES       "Int10h - CGA,Mono Video Services"#define TYPE0_CHAR_PC98                 "NEC PC-98"#define TYPE0_EXT1_ACPI                 "ACPI"#define TYPE0_EXT1_USB                  "USB Legacy"#define TYPE0_EXT1_AGP                  "AGP"#define TYPE0_EXT1_I2O_BOOT             "I2O Boot"#define TYPE0_EXT1_LS120                "LS-120"#define TYPE0_EXT1_ATAPI_ZIP_BOOT       "ATAPI ZIP Boot"#define TYPE0_EXT1_1394_BOOT            "1394 Boot"#define TYPE0_EXT1_SMART_BATTERY        "Smart Battery"#define TYPE0_EXT2_BBS                  "Bios Boot Spec."#define TYPE0_EXT2_NETWORK_BOOT         "Function key initiated Network Service Boot"/* * Type 1 - System */#define TYPE1_NAME                      "(System Information)"#define TYPE1_MANUFACTURER              "Manufacturer"#define TYPE1_PRODUCT_NAME              "Product Name"#define TYPE1_VERSION                   "Version"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -