#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "console.h"
#include "devices.h"
#include "machine.h"
#include "misc.h"
#include "thirdparty/dc7085.h"
#include "thirdparty/lk201.h"
Go to the source code of this file.
Functions | |
void | lk201_convert_ascii_to_keybcode (struct lk201_data *d, unsigned char ch) |
void | lk201_tick (struct machine *machine, struct lk201_data *d) |
void | lk201_tx_data (struct lk201_data *d, int port, int idata) |
void | lk201_init (struct lk201_data *d, int use_fb, void(*add_to_rx_queue)(void *, int, int), int console_handle, void *add_data) |
void lk201_convert_ascii_to_keybcode | ( | struct lk201_data * | d, |
unsigned char | ch | ||
) |
Definition at line 53 of file lk201.cc.
References lk201_data::keyb_buf, and lk201_data::keyb_buf_pos.
Referenced by lk201_tick().
void lk201_init | ( | struct lk201_data * | d, |
int | use_fb, | ||
void(*)(void *, int, int) | add_to_rx_queue, | ||
int | console_handle, | ||
void * | add_data | ||
) |
Definition at line 398 of file lk201.cc.
References lk201_data::add_data, add_to_rx_queue(), lk201_data::add_to_rx_queue, lk201_data::console_handle, DCKBD_PORT, lk201_data::mouse_mode, lk201_data::mouse_revision, and lk201_data::use_fb.
Referenced by dev_dc7085_init(), and dev_scc_init().
void lk201_tick | ( | struct machine * | machine, |
struct lk201_data * | d | ||
) |
Definition at line 235 of file lk201.cc.
References lk201_data::add_data, lk201_data::add_to_rx_queue, console_charavail(), console_getmouse(), lk201_data::console_handle, console_readchar(), DCCOMM_PORT, DCKBD_PORT, DCPRINTER_PORT, lk201_convert_ascii_to_keybcode(), MACHINE_DEC_3MAX_5000, MACHINE_DEC_MIPSMATE_5100, MACHINE_DEC_PMAX_3100, MACHINE_PMAX, machine::machine_subtype, machine::machine_type, and lk201_data::use_fb.
Referenced by DEVICE_TICK().
void lk201_tx_data | ( | struct lk201_data * | d, |
int | port, | ||
int | idata | ||
) |
Definition at line 288 of file lk201.cc.
References lk201_data::add_data, lk201_data::add_to_rx_queue, lk201_data::console_handle, console_putchar(), DCCOMM_PORT, DCKBD_PORT, DCMOUSE_PORT, DCPRINTER_PORT, debug, LED_1, LED_2, LED_3, LED_4, LED_ALL, LK_BELL_ENABLE, LK_DEFAULTS, LK_KBD_ENABLE, LK_LED_DISABLE, LK_LED_ENABLE, LK_RING_BELL, MOUSE_INCREMENTAL, lk201_data::mouse_mode, lk201_data::mouse_revision, MOUSE_SELF_TEST, and lk201_data::use_fb.
Referenced by dev_scc_dma_func(), and DEVICE_ACCESS().