aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/atari
diff options
context:
space:
mode:
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>2015-01-01 10:37:57 -0500
committerGeert Uytterhoeven <geert@linux-m68k.org>2015-01-11 05:38:44 -0500
commit23b94210267185db51f0be8d7115eb49b63b064b (patch)
tree9c608d7232c13ee2a07a3ceafc0cbca121d658c2 /arch/m68k/atari
parent51ad77ada1edc2c4096730820c45756cd8f112ad (diff)
m68k/atari: atakeyb.c - Remove some unused functions
Remove some functions that are not used anywhere: atari_kbd_leds() ikbd_exec() ikbd_mem_read() ikbd_mem_write() ikbd_clock_get() ikbd_clock_set() ikbd_pause() ikbd_resume() This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/atari')
-rw-r--r--arch/m68k/atari/atakeyb.c66
1 files changed, 0 insertions, 66 deletions
diff --git a/arch/m68k/atari/atakeyb.c b/arch/m68k/atari/atakeyb.c
index 95022b04b62d..ad919696ec88 100644
--- a/arch/m68k/atari/atakeyb.c
+++ b/arch/m68k/atari/atakeyb.c
@@ -430,14 +430,6 @@ void ikbd_mouse_y0_top(void)
430} 430}
431EXPORT_SYMBOL(ikbd_mouse_y0_top); 431EXPORT_SYMBOL(ikbd_mouse_y0_top);
432 432
433/* Resume */
434void ikbd_resume(void)
435{
436 static const char cmd[1] = { 0x11 };
437
438 ikbd_write(cmd, 1);
439}
440
441/* Disable mouse */ 433/* Disable mouse */
442void ikbd_mouse_disable(void) 434void ikbd_mouse_disable(void)
443{ 435{
@@ -447,14 +439,6 @@ void ikbd_mouse_disable(void)
447} 439}
448EXPORT_SYMBOL(ikbd_mouse_disable); 440EXPORT_SYMBOL(ikbd_mouse_disable);
449 441
450/* Pause output */
451void ikbd_pause(void)
452{
453 static const char cmd[1] = { 0x13 };
454
455 ikbd_write(cmd, 1);
456}
457
458/* Set joystick event reporting */ 442/* Set joystick event reporting */
459void ikbd_joystick_event_on(void) 443void ikbd_joystick_event_on(void)
460{ 444{
@@ -502,56 +486,6 @@ void ikbd_joystick_disable(void)
502 ikbd_write(cmd, 1); 486 ikbd_write(cmd, 1);
503} 487}
504 488
505/* Time-of-day clock set */
506void ikbd_clock_set(int year, int month, int day, int hour, int minute, int second)
507{
508 char cmd[7] = { 0x1B, year, month, day, hour, minute, second };
509
510 ikbd_write(cmd, 7);
511}
512
513/* Interrogate time-of-day clock */
514void ikbd_clock_get(int *year, int *month, int *day, int *hour, int *minute, int second)
515{
516 static const char cmd[1] = { 0x1C };
517
518 ikbd_write(cmd, 1);
519}
520
521/* Memory load */
522void ikbd_mem_write(int address, int size, char *data)
523{
524 panic("Attempt to write data into keyboard memory");
525}
526
527/* Memory read */
528void ikbd_mem_read(int address, char data[6])
529{
530 char cmd[3] = { 0x21, address>>8, address&0xFF };
531
532 ikbd_write(cmd, 3);
533
534 /* receive data and put it in data */
535}
536
537/* Controller execute */
538void ikbd_exec(int address)
539{
540 char cmd[3] = { 0x22, address>>8, address&0xFF };
541
542 ikbd_write(cmd, 3);
543}
544
545/* Status inquiries (0x87-0x9A) not yet implemented */
546
547/* Set the state of the caps lock led. */
548void atari_kbd_leds(unsigned int leds)
549{
550 char cmd[6] = {32, 0, 4, 1, 254 + ((leds & 4) != 0), 0};
551
552 ikbd_write(cmd, 6);
553}
554
555/* 489/*
556 * The original code sometimes left the interrupt line of 490 * The original code sometimes left the interrupt line of
557 * the ACIAs low forever. I hope, it is fixed now. 491 * the ACIAs low forever. I hope, it is fixed now.