#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "console.h"
#include "cpu.h"
#include "device.h"
#include "interrupt.h"
#include "machine.h"
#include "memory.h"
#include "misc.h"
#include "thirdparty/lptreg.h"
Go to the source code of this file.
Classes | |
struct | lpt_data |
Macros | |
#define | TICK_SHIFT 18 |
#define | DEV_LPT_LENGTH 3 |
Functions | |
DEVICE_TICK (lpt) | |
DEVICE_ACCESS (lpt) | |
DEVINIT (lpt) | |
#define DEV_LPT_LENGTH 3 |
Definition at line 49 of file dev_lpt.cc.
Referenced by DEVINIT().
#define TICK_SHIFT 18 |
Definition at line 48 of file dev_lpt.cc.
Referenced by DEVINIT().
DEVICE_ACCESS | ( | lpt | ) |
Definition at line 69 of file dev_lpt.cc.
References lpt_data::console_handle, console_putchar(), lpt_data::control, lpt_data::data, LPC_STROBE, LPS_NACK, LPS_NBSY, LPS_NERR, LPS_SELECT, LPT_CONTROL, LPT_DATA, LPT_STATUS, MEM_READ, MEM_WRITE, memory_readmax64(), and memory_writemax64().
DEVICE_TICK | ( | lpt | ) |
Definition at line 61 of file dev_lpt.cc.
DEVINIT | ( | lpt | ) |
Definition at line 111 of file dev_lpt.cc.
References devinit::addr, CHECK_ALLOCATION, lpt_data::console_handle, CONSOLE_OUTPUT_ONLY, console_start_slave(), DEV_LPT_LENGTH, DM_DEFAULT, INTERRUPT_CONNECT, devinit::interrupt_path, lpt_data::irq, devinit::machine, machine_add_tickfunction(), machine::memory, memory_device_register(), devinit::name, lpt_data::name, devinit::name2, devinit::return_ptr, strlen(), and TICK_SHIFT.