您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ DMI_MATCH函数代码示例

51自学网 2021-06-01 20:22:45
  C++
这篇教程C++ DMI_MATCH函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中DMI_MATCH函数的典型用法代码示例。如果您正苦于以下问题:C++ DMI_MATCH函数的具体用法?C++ DMI_MATCH怎么用?C++ DMI_MATCH使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了DMI_MATCH函数的26个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: DMI_MATCH

/* * struct mail_led_whitelist - List of known good models * * Contains the known good models this driver is compatible with. * When adding a new model try to be as strict as possible. This * makes it possible to keep the false positives (the model is * detected as working, but in reality it is not) as low as * possible. */static struct dmi_system_id __initdata mail_led_whitelist[] = {	{		.callback = clevo_mail_led_dmi_callback,		.ident = "Clevo D410J",		.matches = {			DMI_MATCH(DMI_SYS_VENDOR, "VIA"),			DMI_MATCH(DMI_PRODUCT_NAME, "K8N800"),			DMI_MATCH(DMI_PRODUCT_VERSION, "VT8204B")		}	},	{		.callback = clevo_mail_led_dmi_callback,		.ident = "Clevo M5x0N",		.matches = {			DMI_MATCH(DMI_SYS_VENDOR, "CLEVO Co."),			DMI_MATCH(DMI_PRODUCT_NAME, "M5x0N")		}	},	{		.callback = clevo_mail_led_dmi_callback,		.ident = "Positivo Mobile",
开发者ID:openube,项目名称:android_kernel_sony_c2305,代码行数:30,


示例2: platform_get_drvdata

	ec_dev = platform_get_drvdata(pdev);	cros_ec_remove(ec_dev);	return 0;}static struct dmi_system_id cros_ec_lpc_dmi_table[] __initdata = {	{		/*		 * Today all Chromebooks/boxes ship with Google_* as version and		 * coreboot as bios vendor. No other systems with this		 * combination are known to date.		 */		.matches = {			DMI_MATCH(DMI_BIOS_VENDOR, "coreboot"),			DMI_MATCH(DMI_BIOS_VERSION, "Google_"),		},	},	{		/* x86-link, the Chromebook Pixel. */		.matches = {			DMI_MATCH(DMI_SYS_VENDOR, "GOOGLE"),			DMI_MATCH(DMI_PRODUCT_NAME, "Link"),		},	},	{		/* x86-peppy, the Acer C720 Chromebook. */		.matches = {			DMI_MATCH(DMI_SYS_VENDOR, "Acer"),			DMI_MATCH(DMI_PRODUCT_NAME, "Peppy"),
开发者ID:19Dan01,项目名称:linux,代码行数:30,


示例3: set_use_crs

static bool pci_use_crs = true;static int __init set_use_crs(const struct dmi_system_id *id){	pci_use_crs = true;	return 0;}static const struct dmi_system_id pci_use_crs_table[] __initconst = {	/* http://bugzilla.kernel.org/show_bug.cgi?id=14183 */	{		.callback = set_use_crs,		.ident = "IBM System x3800",		.matches = {			DMI_MATCH(DMI_SYS_VENDOR, "IBM"),			DMI_MATCH(DMI_PRODUCT_NAME, "x3800"),		},	},	/* https://bugzilla.kernel.org/show_bug.cgi?id=16007 */	/* 2006 AMD HT/VIA system with two host bridges */        {		.callback = set_use_crs,		.ident = "ASRock ALiveSATA2-GLAN",		.matches = {			DMI_MATCH(DMI_PRODUCT_NAME, "ALiveSATA2-GLAN"),                },        },	/* https://bugzilla.kernel.org/show_bug.cgi?id=42619 */	{		.callback = set_use_crs,
开发者ID:CoreTech-Development,项目名称:buildroot-linux-kernel-m3,代码行数:30,


示例4: set_smp_bios_reboot

/* * Some machines require the "reboot=b,s"  commandline option, this quirk makes that automatic. */static int __init set_smp_bios_reboot(struct dmi_system_id *d){	set_smp_reboot(d);	set_bios_reboot(d);	return 0;}static struct dmi_system_id __initdata reboot_dmi_table[] = {	{	/* Handle problems with rebooting on Dell 1300's */		.callback = set_smp_bios_reboot,		.ident = "Dell PowerEdge 1300",		.matches = {			DMI_MATCH(DMI_SYS_VENDOR, "Dell Computer Corporation"),			DMI_MATCH(DMI_PRODUCT_NAME, "PowerEdge 1300/"),		},	},	{	/* Handle problems with rebooting on Dell 300's */		.callback = set_bios_reboot,		.ident = "Dell PowerEdge 300",		.matches = {			DMI_MATCH(DMI_SYS_VENDOR, "Dell Computer Corporation"),			DMI_MATCH(DMI_PRODUCT_NAME, "PowerEdge 300/"),		},	},	{	/* Handle problems with rebooting on Dell 2400's */		.callback = set_bios_reboot,		.ident = "Dell PowerEdge 2400",		.matches = {
开发者ID:dduval,项目名称:kernel-rhel4,代码行数:31,


示例5: printk

	printk(KERN_NOTICE "%s detected - "		"force copy of DSDT to local memory/n", id->ident);	acpi_gbl_copy_dsdt_locally = 1;	return 0;}static struct dmi_system_id dsdt_dmi_table[] __initdata = {	/*	 * Invoke DSDT corruption work-around on all Toshiba Satellite.	 * https://bugzilla.kernel.org/show_bug.cgi?id=14679	 */	{	 .callback = set_copy_dsdt,	 .ident = "TOSHIBA Satellite",	 .matches = {		DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"),		DMI_MATCH(DMI_PRODUCT_NAME, "Satellite"),		},	},	{}};#elsestatic struct dmi_system_id dsdt_dmi_table[] __initdata = {	{}};#endif/* --------------------------------------------------------------------------                                Device Management   -------------------------------------------------------------------------- */
开发者ID:DecimalMan,项目名称:linux-misc,代码行数:30,


示例6: ide_gd_resume

 * On HPA drives the capacity needs to be * reinitialized on resume otherwise the disk * can not be used and a hard reset is required */static void ide_gd_resume(ide_drive_t *drive){    if (ata_id_hpa_enabled(drive->id))        (void)drive->disk_ops->get_capacity(drive);}static const struct dmi_system_id ide_coldreboot_table[] = {    {        /* Acer TravelMate 66x cuts power during reboot */        .ident   = "Acer TravelMate 660",        .matches = {            DMI_MATCH(DMI_SYS_VENDOR, "Acer"),            DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 660"),        },    },    { }	/* terminate list */};static void ide_gd_shutdown(ide_drive_t *drive){#ifdef	CONFIG_ALPHA    /* On Alpha, halt(8) doesn't actually turn the machine off,       it puts you into the sort of firmware monitor. Typically,       it's used to boot another kernel image, so it's not much       different from reboot(8). Therefore, we don't need to       spin down the disk in this case, especially since Alpha
开发者ID:rrowicki,项目名称:Chrono_Kernel-1,代码行数:31,


示例7: EXPORT_SYMBOL

struct proc_dir_entry *acpi_root_dir;EXPORT_SYMBOL(acpi_root_dir);#define STRUCT_TO_INT(s)	(*((int*)&s))static int set_power_nocheck(const struct dmi_system_id *id){	printk(KERN_NOTICE PREFIX "%s detected - "		"disable power check in power transistion/n", id->ident);	acpi_power_nocheck = 1;	return 0;}static struct dmi_system_id __cpuinitdata power_nocheck_dmi_table[] = {	{	set_power_nocheck, "HP Pavilion 05", {	DMI_MATCH(DMI_BIOS_VENDOR, "Phoenix Technologies LTD"),	DMI_MATCH(DMI_SYS_VENDOR, "HP Pavilion 05"),	DMI_MATCH(DMI_PRODUCT_VERSION, "2001211RE101GLEND") }, NULL},	{},};/* --------------------------------------------------------------------------                                Device Management   -------------------------------------------------------------------------- */int acpi_bus_get_device(acpi_handle handle, struct acpi_device **device){	acpi_status status = AE_OK;
开发者ID:710leo,项目名称:LVS,代码行数:29,


示例8: DEFINE_PER_CPU

};DEFINE_PER_CPU(struct acpi_processor *, processors);struct acpi_processor_errata errata __read_mostly;static int set_no_mwait(const struct dmi_system_id *id){	printk(KERN_NOTICE PREFIX "%s detected - "		"disabling mwait for CPU C-states/n", id->ident);	idle_nomwait = 1;	return 0;}static struct dmi_system_id __cpuinitdata processor_idle_dmi_table[] = {	{	set_no_mwait, "IFL91 board", {	DMI_MATCH(DMI_BIOS_VENDOR, "COMPAL"),	DMI_MATCH(DMI_SYS_VENDOR, "ZEPTO"),	DMI_MATCH(DMI_PRODUCT_VERSION, "3215W"),	DMI_MATCH(DMI_BOARD_NAME, "IFL91") }, NULL},	{	set_no_mwait, "Extensa 5220", {	DMI_MATCH(DMI_BIOS_VENDOR, "Phoenix Technologies LTD"),	DMI_MATCH(DMI_SYS_VENDOR, "Acer"),	DMI_MATCH(DMI_PRODUCT_VERSION, "0100"),	DMI_MATCH(DMI_BOARD_NAME, "Columbia") }, NULL},	{},};/* --------------------------------------------------------------------------                                Errata Handling   -------------------------------------------------------------------------- */
开发者ID:steveglen,项目名称:linux-2.6,代码行数:31,


示例9: enable_cap_knobs

		.notify = acpi_power_meter_notify,		},};/* Module init/exit routines */static int __init enable_cap_knobs(const struct dmi_system_id *d){	cap_in_hardware = 1;	return 0;}static struct dmi_system_id __initdata pm_dmi_table[] = {	{		enable_cap_knobs, "IBM Active Energy Manager",		{			DMI_MATCH(DMI_SYS_VENDOR, "IBM")		},	},	{}};static int __init acpi_power_meter_init(void){	int result;	if (acpi_disabled)		return -ENODEV;	dmi_check_system(pm_dmi_table);	result = acpi_bus_register_driver(&acpi_power_meter_driver);
开发者ID:A2109devs,项目名称:lenovo_a2109a_kernel,代码行数:31,


示例10: __setup

	}	return 1;}__setup("acpi_sleep=", acpi_sleep_setup);static __init int reset_videomode_after_s3(struct dmi_system_id *d){	acpi_video_flags |= 2;	return 0;}static __initdata struct dmi_system_id acpisleep_dmi_table[] = {	{			/* Reset video mode after returning from ACPI S3 sleep */	 .callback = reset_videomode_after_s3,	 .ident = "Toshiba Satellite 4030cdt",	 .matches = {		     DMI_MATCH(DMI_PRODUCT_NAME, "S4030CDT/4.3"),		     },	 },	{}};static int __init acpisleep_dmi_init(void){	dmi_check_system(acpisleep_dmi_table);	return 0;}core_initcall(acpisleep_dmi_init);
开发者ID:3sOx,项目名称:asuswrt-merlin,代码行数:30,


示例11: byt_rt5640_quirk_cb

		return ret;	}	return 0;}static int byt_rt5640_quirk_cb(const struct dmi_system_id *id){	byt_rt5640_quirk = (unsigned long)id->driver_data;	return 1;}static const struct dmi_system_id byt_rt5640_quirk_table[] = {	{		.callback = byt_rt5640_quirk_cb,		.matches = {			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),			DMI_MATCH(DMI_PRODUCT_NAME, "T100TA"),		},		.driver_data = (unsigned long *)BYT_RT5640_IN1_MAP,	},	{		.callback = byt_rt5640_quirk_cb,		.matches = {			DMI_MATCH(DMI_SYS_VENDOR, "DellInc."),			DMI_MATCH(DMI_PRODUCT_NAME, "Venue 8 Pro 5830"),		},		.driver_data = (unsigned long *)(BYT_RT5640_DMIC2_MAP |						 BYT_RT5640_DMIC_EN),	},	{}};
开发者ID:Abioy,项目名称:kasan,代码行数:31,


示例12: DMI_MATCH

{    ioemul_handle_quirk = ioemul_handle_proliant_quirk;    return 0;}/* This table is the set of system-specific I/O emulation hooks. */static struct dmi_system_id __initdata ioport_quirks_tbl[] = {    /*     * I/O emulation hook for certain HP ProLiant servers with     * 'special' SMM goodness.     */    {        .callback = proliant_quirk,        .ident = "HP ProLiant DL3xx",        .matches = {            DMI_MATCH(DMI_BIOS_VENDOR, "HP"),            DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant DL3"),        },    },    {        .callback = proliant_quirk,        .ident = "HP ProLiant DL5xx",        .matches = {            DMI_MATCH(DMI_BIOS_VENDOR, "HP"),            DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant DL5"),        },    },    {        .callback = proliant_quirk,        .ident = "HP ProLiant DL7xx",        .matches = {
开发者ID:chao-p,项目名称:xen,代码行数:31,


示例13: DMI_MATCH

	return 0;}/* * If your system is blacklisted here, but you find that acpi=force * works for you, please contact [email
C++ DMLocalToGlobalBegin函数代码示例
C++ DMGlobalToLocalEnd函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。