New version by Jukka Marin <jmarin@pyy.jmp.fi>, with rewritten (to fix

problems) carrier detect code. Slightly cleaned up by Bernd Ernesti
<veego@netbsd.org>
This commit is contained in:
is 1996-12-09 17:24:55 +00:00
parent 6281db6925
commit f95e0398cc
3 changed files with 876 additions and 1000 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
/* $NetBSD: msc6502.h,v 1.2 1995/10/07 18:18:32 chopps Exp $ */
/* $NetBSD: msc6502.h,v 1.3 1996/12/09 17:24:57 is Exp $ */
/*
* Copyright (c) 1995 Jukka Marin <jmarin@teeri.jmp.fi>.
* Copyright (c) 1995 Jukka Marin <jmarin@jmp.fi>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -31,209 +31,209 @@
*/
static unsigned char msc6502code[] = {
0x38, 0x00, 0xA2, 0xFF, 0x9A, 0xD8, 0xA2, 0x00,
0xA9, 0x00, 0xA0, 0x70, 0x95, 0x00, 0xE8, 0x88,
0xD0, 0xFA, 0xA9, 0xFF, 0x85, 0x0D, 0x85, 0x1D,
0x85, 0x2D, 0x85, 0x3D, 0x85, 0x4D, 0x85, 0x5D,
0x85, 0x6D, 0x64, 0x74, 0x64, 0x76, 0xA9, 0x00,
0x85, 0x71, 0xA9, 0xAA, 0xC9, 0x64, 0x90, 0x02,
0xE6, 0x71, 0xA5, 0x70, 0xF0, 0x03, 0x4C, 0x9E,
0x38, 0xA9, 0x98, 0x8D, 0x06, 0x44, 0xA9, 0x0B,
0x8D, 0x04, 0x44, 0xAD, 0x02, 0x44, 0xA9, 0x80,
0x8D, 0x1A, 0x7C, 0xA9, 0xFF, 0x8D, 0x08, 0x7C,
0x8D, 0x0A, 0x7C, 0xA2, 0x00, 0x8E, 0x00, 0x44,
0xEA, 0xEA, 0xAD, 0x02, 0x44, 0xEA, 0xEA, 0x8E,
0x00, 0x44, 0xAD, 0x02, 0x44, 0x29, 0x10, 0xF0,
0xF9, 0xA9, 0x11, 0x8E, 0x00, 0x44, 0x8D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, 0x44, 0xA5, 0x08, 0xF0, 0x08,
0xA5, 0x05, 0x85, 0x06, 0x64, 0x04, 0x64, 0x08,
0x20, 0x26, 0x3B, 0xA5, 0x19, 0xF0, 0x0F, 0xA5,
0x1C, 0x85, 0x1E, 0xA5, 0x1A, 0x09, 0x10, 0x8D,
0x06, 0x4C, 0x64, 0x14, 0x64, 0x19, 0xA5, 0x10,
0xE5, 0x11, 0xC9, 0xC8, 0xA5, 0x1B, 0x29, 0xF3,
0xB0, 0x02, 0x09, 0x08, 0x8D, 0x04, 0x4C, 0xA5,
0x18, 0xF0, 0x08, 0xA5, 0x15, 0x85, 0x16, 0x64,
0x14, 0x64, 0x18, 0x20, 0x26, 0x3B, 0xA5, 0x29,
0xF0, 0x0F, 0xA5, 0x2C, 0x85, 0x2E, 0xA5, 0x2A,
0x09, 0x10, 0x8D, 0x06, 0x54, 0x64, 0x24, 0x64,
0x29, 0xA5, 0x20, 0xE5, 0x21, 0xC9, 0xC8, 0xA5,
0x2B, 0x29, 0xF3, 0xB0, 0x02, 0x09, 0x08, 0x8D,
0x04, 0x54, 0xA5, 0x28, 0xF0, 0x08, 0xA5, 0x25,
0x85, 0x26, 0x64, 0x24, 0x64, 0x28, 0x20, 0x26,
0x3B, 0xA5, 0x39, 0xF0, 0x0F, 0xA5, 0x3C, 0x85,
0x3E, 0xA5, 0x3A, 0x09, 0x10, 0x8D, 0x06, 0x5C,
0x64, 0x34, 0x64, 0x39, 0xA5, 0x30, 0xE5, 0x31,
0xC9, 0xC8, 0xA5, 0x3B, 0x29, 0xF3, 0xB0, 0x02,
0x09, 0x08, 0x8D, 0x04, 0x5C, 0xA5, 0x38, 0xF0,
0x08, 0xA5, 0x35, 0x85, 0x36, 0x64, 0x34, 0x64,
0x38, 0x20, 0x26, 0x3B, 0xA5, 0x49, 0xF0, 0x0F,
0xA5, 0x4C, 0x85, 0x4E, 0xA5, 0x4A, 0x09, 0x10,
0x8D, 0x06, 0x64, 0x64, 0x44, 0x64, 0x49, 0xA5,
0x40, 0xE5, 0x41, 0xC9, 0xC8, 0xA5, 0x4B, 0x29,
0xF3, 0xB0, 0x02, 0x09, 0x08, 0x8D, 0x04, 0x64,
0xA5, 0x48, 0xF0, 0x08, 0xA5, 0x45, 0x85, 0x46,
0x64, 0x44, 0x64, 0x48, 0x20, 0x26, 0x3B, 0xA5,
0x59, 0xF0, 0x0F, 0xA5, 0x5C, 0x85, 0x5E, 0xA5,
0x5A, 0x09, 0x10, 0x8D, 0x06, 0x6C, 0x64, 0x54,
0x64, 0x59, 0xA5, 0x50, 0xE5, 0x51, 0xC9, 0xC8,
0xA5, 0x5B, 0x29, 0xF3, 0xB0, 0x02, 0x09, 0x08,
0x8D, 0x04, 0x6C, 0xA5, 0x58, 0xF0, 0x08, 0xA5,
0x55, 0x85, 0x56, 0x64, 0x54, 0x64, 0x58, 0x20,
0x26, 0x3B, 0xA5, 0x69, 0xF0, 0x0F, 0xA5, 0x6C,
0x85, 0x6E, 0xA5, 0x6A, 0x09, 0x10, 0x8D, 0x06,
0x74, 0x64, 0x64, 0x64, 0x69, 0xA5, 0x60, 0xE5,
0x61, 0xC9, 0xC8, 0xA5, 0x6B, 0x29, 0xF3, 0xB0,
0x02, 0x09, 0x08, 0x8D, 0x04, 0x74, 0xA5, 0x68,
0xF0, 0x08, 0xA5, 0x65, 0x85, 0x66, 0x64, 0x64,
0x64, 0x68, 0x20, 0x26, 0x3B, 0x4C, 0x9E, 0x38,
0xAD, 0x02, 0x44, 0x89, 0x08, 0xF0, 0x3B, 0x89,
0x02, 0xF0, 0x1B, 0xAD, 0x00, 0x44, 0xD0, 0x32,
0xA6, 0x00, 0xA9, 0x01, 0x9D, 0x00, 0x10, 0xA9,
0x01, 0x9D, 0x00, 0x09, 0xE8, 0xE4, 0x01, 0xF0,
0x02, 0x86, 0x00, 0x4C, 0x68, 0x3B, 0xA6, 0x00,
0xAD, 0x00, 0x44, 0x9D, 0x00, 0x09, 0x9E, 0x00,
0x10, 0xE8, 0xE4,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xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,

View File

@ -1,4 +1,4 @@
/* $NetBSD: mscreg.h,v 1.4 1995/10/07 18:22:14 chopps Exp $ */
/* $NetBSD: mscreg.h,v 1.5 1996/12/09 17:24:58 is Exp $ */
/*
* Copyright (c) 1993 Zik.
@ -46,8 +46,8 @@
* - Change to NetBSD style for integration in to the main tree. 950919
*/
#define NUMLINES 7 /* number of lines per card */
#define IOBUFLEN 256 /* number of bytes per buffer */
#define NUMLINES 7 /* number of lines per card */
#define IOBUFLEN 256 /* number of bytes per buffer */
#define IOBUFLENMASK 0xff /* mask for maximum number of bytes */
#define IOBUFHIGHWATER 192 /* point at which to enable output */
#define IOBUFLOWWATER 128 /* point at which to wake output */
@ -64,13 +64,15 @@ struct msccommon {
u_char Pad_a;
u_char TimerH; /* timer value after speed check */
u_char TimerL;
u_char CDHead; /* head pointer for CD message queue */
u_char CDTail; /* tail pointer for CD message queue */
u_char CDStatus;
u_char Pad_b;
};
struct mscstatus {
u_char InHead; /* input queue head */
u_char InTail; /* input queue tail */
u_char Pad_a; /* paddington */
u_char Pad_b; /* paddington */
u_char OutDisable; /* disables output */
u_char OutHead; /* output queue head */
u_char OutTail; /* output queue tail */
@ -81,22 +83,22 @@ struct mscstatus {
u_char Command; /* command byte - see MSCCMD */
u_char SoftFlow; /* enables xon/xoff flow control */
/* private 65C02 fields: */
u_char chCD; /* used to detect CD changes */
u_char XonOff; /* stores XON/XOFF enable/disable */
u_char Pad_c; /* paddington */
};
#define MSC_MEMPAD \
#define MSC_MEMPAD1 \
(0x0200 - NUMLINES * sizeof(struct mscstatus) - sizeof(struct msccommon))
#define MSC_MEMPAD2 (0x2000 - NUMLINES * IOBUFLEN - IOBUFLEN)
struct mscmemory {
struct mscstatus Status[NUMLINES]; /* 0x0000-0x006f status areas */
struct msccommon Common; /* 0x0070-0x0073 common flags */
u_char Dummy1[MSC_MEMPAD]; /* 0x00XX-0x01ff */
struct msccommon Common; /* 0x0070-0x0077 common flags */
u_char Dummy1[MSC_MEMPAD1]; /* 0x00XX-0x01ff */
u_char OutBuf[NUMLINES][IOBUFLEN]; /* 0x0200-0x08ff output bufs */
u_char InBuf[NUMLINES][IOBUFLEN]; /* 0x0900-0x0fff input bufs */
u_char InCtl[NUMLINES][IOBUFLEN]; /* 0x1000-0x16ff control data */
u_char Dummy2[ 0x2000 - 7 * 0x0100]; /* 0x1700-0x2fff */
u_char CDBuf[IOBUFLEN]; /* 0x1700-0x17ff CD event buffer */
u_char Dummy2[MSC_MEMPAD2]; /* 0x1800-0x2fff */
u_char Code[0x1000]; /* 0x3000-0x3fff code area */
u_short InterruptAck; /* 0x4000 intr ack */
u_char Dummy3[0x3ffe]; /* 0x4002-0x7fff */
@ -107,16 +109,17 @@ struct mscmemory {
/* 6502 RESET line held high */
};
#undef MSC_MEMPAD
#undef MSC_MEMPAD1
#undef MSC_MEMPAD2
struct mscdevice {
volatile struct mscmemory *board; /* where the board is located */
int flags; /* modem control flags */
int openflags; /* flags for device open */
u_char unit; /* which unit (ie. which board) */
u_char port; /* which port on the board (0-6) */
u_char active; /* does this port have hardware? */
u_char closing; /* are we flushing before close? */
u_char paddington; /* just for padding */
char tmpbuf[IOBUFLEN]; /* temp buffer for data transfers */
};