~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/m68k/atari/atakeyb.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
/* Hook for MIDI serial driver */
38
38
void (*atari_MIDI_interrupt_hook) (void);
39
 
/* Hook for mouse driver */
40
 
void (*atari_mouse_interrupt_hook) (char *);
41
39
/* Hook for keyboard inputdev  driver */
42
40
void (*atari_input_keyboard_interrupt_hook) (unsigned char, char);
43
41
/* Hook for mouse inputdev  driver */
44
42
void (*atari_input_mouse_interrupt_hook) (char *);
45
 
EXPORT_SYMBOL(atari_mouse_interrupt_hook);
46
43
EXPORT_SYMBOL(atari_input_keyboard_interrupt_hook);
47
44
EXPORT_SYMBOL(atari_input_mouse_interrupt_hook);
48
45
 
130
127
 * it's really hard to decide whether they're mouse or keyboard bytes. Since
131
128
 * overruns usually occur when moving the Atari mouse rapidly, they're seen as
132
129
 * mouse bytes here. If this is wrong, only a make code of the keyboard gets
133
 
 * lost, which isn't too bad. Loosing a break code would be disastrous,
 
130
 * lost, which isn't too bad. Losing a break code would be disastrous,
134
131
 * because then the keyboard repeat strikes...
135
132
 */
136
133
 
263
260
                        kb_state.buf[kb_state.len++] = scancode;
264
261
                        if (kb_state.len == 3) {
265
262
                                kb_state.state = KEYBOARD;
266
 
                                if (atari_mouse_interrupt_hook)
267
 
                                        atari_mouse_interrupt_hook(kb_state.buf);
 
263
                                if (atari_input_mouse_interrupt_hook)
 
264
                                        atari_input_mouse_interrupt_hook(kb_state.buf);
268
265
                        }
269
266
                        break;
270
267
 
575
572
        kb_state.len = 0;
576
573
 
577
574
        error = request_irq(IRQ_MFP_ACIA, atari_keyboard_interrupt,
578
 
                            IRQ_TYPE_SLOW, "keyboard/mouse/MIDI",
 
575
                            IRQ_TYPE_SLOW, "keyboard,mouse,MIDI",
579
576
                            atari_keyboard_interrupt);
580
577
        if (error)
581
578
                return error;