1 diff -bBur acerhk-0.5.35-old/acerhk.c acerhk-0.5.35/acerhk.c
2 --- acerhk-0.5.35-old/acerhk.c 2007-02-10 17:46:23.000000000 +0200
3 +++ acerhk-0.5.35/acerhk.c 2007-04-28 19:18:49.000000000 +0300
6 static asmlinkage void call_bios_6xx(struct register_buffer *buf)
19 static asmlinkage void call_bios_52x(struct register_buffer *buf)
32 #define PRINT_BUFFER(x) \
36 spin_lock_irqsave (&rtc_lock, flags);
38 +/* #ifndef DUMMYHW */
39 +#if !(defined(DUMMYHW) || defined(__x86_64__))
41 c = CMOS_READ(cmos_index);
45 static struct proc_dir_entry *proc_acer_dir;
47 -static unsigned int __init find_hk_area(void)
48 +static unsigned long __init find_hk_area(void)
54 sig = -1; /* offset to signature in io area */
56 fkt = readl(reg1 + sig + 5);
57 /* adjust fkt to address of mapped IO area */
59 - fkt = (unsigned int)reg1 + fkt - 0xf0000;
60 + fkt = (unsigned long)reg1 + fkt - 0xf0000;
61 else if (fkt >= 0xe0000)
62 - fkt = (unsigned int)reg1 + fkt - 0xe0000;
63 + fkt = (unsigned long)reg1 + fkt - 0xe0000;
72 /* Aspire 13xx series laptops use dritek hardware, no
74 VolUp and VolDown are managed as normal keys
80 /* Dritek EC, bluetooth, wifi, mail */
81 acerhk_type = TM_dritek;
82 acerhk_model_features = TM_F_MAIL_LED_EC2 | TM_F_WLAN_EC2 | TM_F_BLUE_EC2;
85 case '2': series = 5020; break;
87 + } else if (str[8] == '1' && str[9] == '0') {
91 printk(KERN_INFO"acerhk: model string indicates unknown Aspire 5xxx series\n");
93 /* polling timer handler */
94 static void acerhk_poll_event(unsigned long save_size)
97 +/* #ifndef DUMMYHW */
98 +#if !(defined(DUMMYHW) || defined(__x86_64__))
99 unsigned int max = MAX_POLLING_LOOPS;
100 /* make sure not to loop more then 32 times */
101 if (!max || max > 32)
102 @@ -2139,7 +2149,8 @@
104 if (acerhk_blueled_blinking != -1) {
105 acerhk_blueled_blinking = !acerhk_blueled_blinking;
107 +/* #ifndef DUMMYHW */
108 +#if !(defined(DUMMYHW) || defined(__x86_64__))
109 wbutton_fct_1(acerhk_blueled_blinking);
111 acerhk_timer_blinking.expires = jiffies + acerhk_blueled_blinking_delay;
112 @@ -2904,7 +2915,8 @@
113 /* attach to input system */
115 memset(acerhk_model_string, 0x00, ACERHK_MODEL_STRLEN);
117 +/* #ifdef DUMMYHW */
118 +#if !(defined(DUMMYHW) || defined(__x86_64__))
119 acerhk_model_addr = (void*)0x12345678;
120 /* copy the string, but not more than 15 characters */
121 strncpy(acerhk_model_string, "TravelmateDummy", ACERHK_MODEL_STRLEN-1);