Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104196
b: refs/heads/master
c: c3a34f4
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Kosina authored and Dmitry Torokhov committed May 29, 2008
1 parent c8c08a4 commit 20a3236
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d1659fcc59b21ec442564fedb67a5ad371f82380
refs/heads/master: c3a34f4390396a4bede3f8b7bcc5153f50b974bb
29 changes: 18 additions & 11 deletions trunk/drivers/input/serio/i8042-x86ia64io.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static inline void i8042_write_command(int val)
outb(val, I8042_COMMAND_REG);
}

#if defined(__i386__) || defined(__x86_64__)
#ifdef CONFIG_X86

#include <linux/dmi.h>

Expand Down Expand Up @@ -287,14 +287,19 @@ static struct dmi_system_id __initdata i8042_dmi_nomux_table[] = {
{ }
};



#ifdef CONFIG_PNP
static struct dmi_system_id __initdata i8042_dmi_nopnp_table[] = {
{
.ident = "Intel MBO Desktop D845PESV",
.matches = {
DMI_MATCH(DMI_BOARD_NAME, "D845PESV"),
DMI_MATCH(DMI_BOARD_VENDOR, "Intel Corporation"),
},
},
{ }
};
#endif

#ifdef CONFIG_X86

#include <linux/dmi.h>

/*
* Some Wistron based laptops need us to explicitly enable the 'Dritek
* keyboard extension' to make their extra keys start generating scancodes.
Expand Down Expand Up @@ -342,7 +347,6 @@ static struct dmi_system_id __initdata i8042_dmi_dritek_table[] = {

#endif /* CONFIG_X86 */


#ifdef CONFIG_PNP
#include <linux/pnp.h>

Expand Down Expand Up @@ -452,6 +456,11 @@ static int __init i8042_pnp_init(void)
int pnp_data_busted = 0;
int err;

#ifdef CONFIG_X86
if (dmi_check_system(i8042_dmi_nopnp_table))
i8042_nopnp = 1;
#endif

if (i8042_nopnp) {
printk(KERN_INFO "i8042: PNP detection disabled\n");
return 0;
Expand Down Expand Up @@ -577,15 +586,13 @@ static int __init i8042_platform_init(void)
i8042_reset = 1;
#endif

#if defined(__i386__) || defined(__x86_64__)
#ifdef CONFIG_X86
if (dmi_check_system(i8042_dmi_noloop_table))
i8042_noloop = 1;

if (dmi_check_system(i8042_dmi_nomux_table))
i8042_nomux = 1;
#endif

#ifdef CONFIG_X86
if (dmi_check_system(i8042_dmi_dritek_table))
i8042_dritek = 1;
#endif /* CONFIG_X86 */
Expand Down

0 comments on commit 20a3236

Please sign in to comment.