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