~ubuntu-branches/ubuntu/maverick/vice/maverick

« back to all changes in this revision

Viewing changes to src/arch/unix/uirs232c64c128.c

  • Committer: Bazaar Package Importer
  • Author(s): Zed Pobre
  • Date: 2005-02-01 11:30:26 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050201113026-3eyakzsmmheclvjg
Tags: 1.16-1
* New upstream version
* Fixes crash on 64-bit architectures (closes: #287640)
* x128 working again (closes: #286767)
* Works fine with /dev/dsp in use (not in the main changelog, but tested
  on my local machine as working).  Presumably, this also takes care of
  the issue with dsp being held.  I'm not sure if this is because I'm
  testing it on a 2.6 kernel now -- if you are still having problems
  with /dev/dsp, please reopen the bugs. (closes: #152952, #207942)
* Don't kill Makefile.in on clean

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * uirs232c64c128.c
 
3
 *
 
4
 * Written by
 
5
 *  Andreas Boose <viceteam@t-online.de>
 
6
 *  Andr� Fachat <fachat@physik.tu-chemnitz.de>
 
7
 *
 
8
 * This file is part of VICE, the Versatile Commodore Emulator.
 
9
 * See README for copyright notice.
 
10
 *
 
11
 *  This program is free software; you can redistribute it and/or modify
 
12
 *  it under the terms of the GNU General Public License as published by
 
13
 *  the Free Software Foundation; either version 2 of the License, or
 
14
 *  (at your option) any later version.
 
15
 *
 
16
 *  This program is distributed in the hope that it will be useful,
 
17
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
18
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
19
 *  GNU General Public License for more details.
 
20
 *
 
21
 *  You should have received a copy of the GNU General Public License
 
22
 *  along with this program; if not, write to the Free Software
 
23
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
 
24
 *  02111-1307  USA.
 
25
 *
 
26
 */
 
27
 
 
28
#include "vice.h"
 
29
 
 
30
#include <stdio.h>
 
31
 
 
32
#include "uiacia1.h"
 
33
#include "uimenu.h"
 
34
#include "uirs232.h"
 
35
#include "uirs232c64c128.h"
 
36
#include "uirs232user.h"
 
37
 
 
38
 
 
39
UI_MENU_DEFINE_RADIO(Acia1Irq)
 
40
 
 
41
static ui_menu_entry_t uiacia1_irq_submenu[] = {
 
42
    { N_("*No IRQ/NMI"),
 
43
      (ui_callback_t)radio_Acia1Irq, (ui_callback_data_t)0, NULL },
 
44
    { N_("*IRQ"),
 
45
      (ui_callback_t)radio_Acia1Irq, (ui_callback_data_t)1, NULL },
 
46
    { N_("*NMI"),
 
47
      (ui_callback_t)radio_Acia1Irq, (ui_callback_data_t)2, NULL },
 
48
    { NULL }
 
49
};
 
50
 
 
51
UI_MENU_DEFINE_TOGGLE(Acia1Enable)
 
52
UI_MENU_DEFINE_TOGGLE(RsUserEnable)
 
53
 
 
54
ui_menu_entry_t uirs232c64c128_submenu[] = {
 
55
    { N_("*ACIA $DExx RS232 interface emulation"),
 
56
      (ui_callback_t)toggle_Acia1Enable, NULL, NULL },
 
57
    { N_("ACIA $DExx device"),
 
58
      NULL, NULL, uiacia1_device_submenu },
 
59
    { N_("ACIA $DExx Interrupt"),
 
60
      NULL, NULL, uiacia1_irq_submenu },
 
61
    { "--" },
 
62
    { N_("*Userport RS232 emulation"),
 
63
      (ui_callback_t)toggle_RsUserEnable, NULL, NULL },
 
64
    { N_("Userport RS232 baud rate"),
 
65
      NULL, NULL, rs232user_baudrate_submenu },
 
66
    { N_("Userport RS232 device"),
 
67
      NULL, NULL, rs232user_device_submenu },
 
68
    { "--" },
 
69
    { N_("Serial 1 device..."), (ui_callback_t)set_rs232_device_file,
 
70
      (ui_callback_data_t)"RsDevice1", NULL },
 
71
    { N_("Serial 1 baudrate"),
 
72
      NULL, NULL, ser1_baud_submenu },
 
73
    { "--" },
 
74
    { "Serial 2 device...", (ui_callback_t)set_rs232_device_file,
 
75
      (ui_callback_data_t)"RsDevice2", NULL },
 
76
    { N_("Serial 2 baudrate"),
 
77
      NULL, NULL, ser2_baud_submenu },
 
78
    { "--" },
 
79
    { N_("Dump filename..."), (ui_callback_t)set_rs232_dump_file,
 
80
      (ui_callback_data_t)"RsDevice3", NULL },
 
81
    { "--" },
 
82
    { N_("Program name to exec..."), (ui_callback_t)set_rs232_exec_file,
 
83
      (ui_callback_data_t)"RsDevice4", NULL },
 
84
    { NULL }
 
85
};
 
86