19 #include <linux/kernel.h>
22 #include <linux/string.h>
23 #include <linux/module.h>
27 #include <linux/input.h>
32 #define BIOS_REGION_BASE 0xffff0000
33 #define BIOS_REGION_SIZE 0x00010000
40 .desc =
"Reset button",
43 .debounce_interval = 100,
48 .buttons = net5501_gpio_buttons,
54 .name =
"gpio-keys-polled",
57 .platform_data = &net5501_buttons_data,
61 static struct gpio_led net5501_leds[] = {
65 .default_trigger =
"default-on",
78 .dev.platform_data = &net5501_leds_data,
86 static void __init register_net5501(
void)
99 { 0xb7b, 7,
"net5501" },
100 { 0xb1f, 7,
"net5501" },
103 static bool __init net5501_present(
void)
106 unsigned char *rombase, *
bios;
115 bios = rombase + 0x20;
117 if (
memcmp(bios,
"comBIOS", 7))
125 KBUILD_MODNAME, model);
137 static int __init net5501_init(
void)
142 if (!net5501_present())