summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-12-07 04:18:52 +0000
committerimp <imp@FreeBSD.org>2003-12-07 04:18:52 +0000
commit87db7e95428e1d0f885215e1a12171b8117a6478 (patch)
tree5a2446834636984941351612fee1d9c84965b944
parent4408614be4c55dfa12e600642a1138749a175138 (diff)
downloadFreeBSD-src-87db7e95428e1d0f885215e1a12171b8117a6478.zip
FreeBSD-src-87db7e95428e1d0f885215e1a12171b8117a6478.tar.gz
The dgb driver is redundant with the digi driver in the tree. It uses
lots of old interfaces, and digi now supports all cards that dgb supported. The author of the driver says that this is no longer necessary. Approved by: babkin@
-rw-r--r--share/man/man4/man4.i386/dgb.4384
-rw-r--r--sys/conf/files.i3861
-rw-r--r--sys/conf/files.pc981
-rw-r--r--sys/conf/majors2
-rw-r--r--sys/conf/options1
-rw-r--r--sys/dev/dgb/dgb.c2233
-rw-r--r--sys/dev/dgb/dgbios.h175
-rw-r--r--sys/dev/dgb/dgfep.h516
-rw-r--r--sys/dev/dgb/dgreg.h432
-rw-r--r--sys/i386/conf/NOTES15
-rw-r--r--sys/pc98/conf/NOTES15
11 files changed, 1 insertions, 3774 deletions
diff --git a/share/man/man4/man4.i386/dgb.4 b/share/man/man4/man4.i386/dgb.4
deleted file mode 100644
index 76283f5..0000000
--- a/share/man/man4/man4.i386/dgb.4
+++ /dev/null
@@ -1,384 +0,0 @@
-.\" Copyright (c) 1990, 1991 The Regents of the University of California.
-.\" All rights reserved.
-.\"
-.\" This code is derived from software contributed to Berkeley by
-.\" the Systems Programming Group of the University of Utah Computer
-.\" Science Department.
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\" 3. All advertising materials mentioning features or use of this software
-.\" must display the following acknowledgement:
-.\" This product includes software developed by the University of
-.\" California, Berkeley and its contributors.
-.\" 4. Neither the name of the University nor the names of its contributors
-.\" may be used to endorse or promote products derived from this software
-.\" without specific prior written permission.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-.\" SUCH DAMAGE.
-.\"
-.\" from: @(#)dca.4 5.2 (Berkeley) 3/27/91
-.\" from: com.4,v 1.1 1993/08/06 11:19:07 cgd Exp
-.\" from: sio.4,v 1.15 1994/12/06 20:14:30 bde Exp
-.\" $FreeBSD$
-.\"
-.Dd October 13, 1995
-.Dt DGB 4 i386
-.Os
-.Sh NAME
-.Nm dgb
-.Nd DigiBoard intelligent serial cards driver
-.Sh SYNOPSIS
-.Cd "options NDGBPORTS=8"
-.Cd "device dgb0 at isa? port 0x220 iomem 0xfc0000 iosiz ? flags 0x0"
-All values are just examples.
-.Pp
-The
-.Dv NDGBPORTS
-option defines the total number of ports on all cards
-installed in the system.
-When not defined the number is computed:
-.Pp
-.Bd -ragged -offset 4n
-default
-.Dv NDGBPORTS
-= number_of_described_DigiBoard_cards * 16
-.Ed
-.Pp
-If it is less than the actual number of ports
-the system will be able to use only the
-first
-.Dv NDGBPORTS
-ports.
-If it is greater then all ports will be usable
-but some memory will be wasted.
-.Pp
-Meaning of
-.Cm flags :
-.Bl -tag -width indent -compact
-.It 0x0001
-use alternate pinout (exchange DCD and DSR lines)
-.It 0x0002
-don't use 8K window mode of PC/Xe
-.El
-.Pp
-Device numbering:
-.Bd -literal -compact
-0b\fICC\fPmmmmmmmm\fIOLIPPPPP\fP
- \fBCC\fPard number
- \fRmmmmmmmm\fPajor number
- call\fBO\fPut
- \fBL\fPock
- \fBI\fPnitial
- \fBPPPPP\fPort number
-.Ed
-.Sh DESCRIPTION
-The
-.Nm
-driver provides support for DigiBoard PC/Xe and PC/Xi series intelligent
-serial multiport cards with asynchronous interfaces based on the
-.Tn EIA
-.Tn RS-232C
-.Pf ( Tn CCITT
-.Tn V.24 )
-standard.
-.Pp
-Input and output for each line may set to one of following baud rates;
-50, 75, 110, 134.5, 150, 300, 600, 1200, 1800, 2400, 4800, 9600,
-19200, 38400, 57600, or for newer versions of cards 115200.
-.Pp
-The driver doesn't use any interrupts, it is
-.Dq polling\-based .
-This means that
-it uses clock interrupts instead of interrupts generated by DigiBoard cards and
-checks the state of cards 25 times per second.
-This is practical because the
-DigiBoard cards have large input and output buffers (more than 1Kbyte per
-port) and hardware that allows efficiently finding the port that needs
-attention.
-The only problem seen with this policy is slower
-SLIP and PPP response.
-.Pp
-Each line in the kernel configuration file describes one card, not one port
-as in the
-.Xr sio 4
-driver.
-.Pp
-The
-.Cm flags
-keyword may be used on each
-.Dq Li "device dgb"
-line in the kernel configuration file
-to change the pinout of the interface or to use new PC/Xe cards
-which can work with an 8K memory window in compatibility mode
-(with a 64K memory window).
-Note
-that using 8K memory window doesn't mean shorter input/output buffers, it means
-only that all buffers will be mapped to the same memory address and switched as
-needed.
-.Pp
-The
-.Cm port
-value must be the same
-as the
-port
-set on the card by jumpers.
-For PC/Xi cards the same rule is applicable to the
-.Cm iomem
-value.
-It must be the same as the memory address set on the card
-by jumpers.
-.\"Some documentation gives the address as a ``paragraph'' or ``segment'';
-.\"you can get the value of address by adding the digit "0" at end of
-.\"paragraph value, e.g., 0xfc000 -> 0xfc0000.
-For PC/Xe cards there is no need to use jumpers for this purpose.
-In fact there are no jumpers to do it.
-Just
-write the address you want as the
-.Cm iomem
-value in kernel config file and the card will be programmed
-to use this address.
-.Pp
-The same range of memory addresses may be used
-for all the DigiBoards installed
-(but not for any other card or real memory).
-DigiBoards
-with a large amount of memory (256K or 512K and perhaps
-even 128K) must be mapped
-to memory addresses outside of the first megabyte.
-If the computer
-has more than 15 megabytes of memory then there is no free address space
-outside of the first megabyte where such DigiBoards can be mapped.
-In this case you
-may need to reduce the amount of memory in the computer.
-But many machines provide a better solution.
-They have the ability to
-.Dq "turn off"
-the memory in the 16th megabyte (addresses 0xF00000 - 0xFFFFFF)
-using the
-BIOS setup.
-Then the DigiBoard's address space can be set to this
-.Dq hole .
-.\" XXX the following should be true for all serial drivers and
-.\" should not be repeated in the man pages for all serial drivers.
-.\" It was copied from sio.4. The only changes were s/sio/dgb/g.
-.Pp
-Serial ports controlled by the
-.Nm
-driver can be used for both
-.Dq callin
-and
-.Dq callout .
-For each port there is a callin device and a callout device.
-The minor number of the callout device is 128 higher
-than that of the corresponding callin port.
-The callin device is general purpose.
-Processes opening it normally wait for carrier
-and for the callout device to become inactive.
-The callout device is used to steal the port from
-processes waiting for carrier on the callin device.
-Processes opening it do not wait for carrier
-and put any processes waiting for carrier on the callin device into
-a deeper sleep so that they do not conflict with the callout session.
-The callout device is abused for handling programs that are supposed
-to work on general ports and need to open the port without waiting
-but are too stupid to do so.
-.Pp
-The
-.Nm
-driver also supports an initial-state and a lock-state control
-device for each of the callin and the callout
-.Dq data
-devices.
-The minor number of the initial-state device is 32 higher
-than that of the corresponding data device.
-The minor number of the lock-state device is 64 higher
-than that of the corresponding data device.
-The termios settings of a data device are copied
-from those of the corresponding initial-state device
-on first opens and are not inherited from previous opens.
-Use
-.Xr stty 1
-in the normal way on the initial-state devices to program
-initial termios states suitable for your setup.
-.Pp
-The lock termios state acts as flags to disable changing
-the termios state.
-E.g., to lock a flag variable such as
-.Dv CRTSCTS ,
-use
-.Dq Li "stty crtscts"
-on the lock-state device.
-Speeds and special characters
-may be locked by setting the corresponding value in the lock-state
-device to any nonzero value.
-.Pp
-Correct programs talking to correctly wired external devices
-.\" XXX change next line in other man pages too, and rewrite this paragraph.
-work with almost arbitrary initial states and no locking,
-but other setups may benefit from changing some of the default
-initial state and locking the state.
-In particular, the initial states for non (POSIX) standard flags
-should be set to suit the devices attached and may need to be
-locked to prevent buggy programs from changing them.
-E.g.,
-.Dv CRTSCTS
-should be locked on for devices that support
-RTS/CTS handshaking at all times and off for devices that don't
-support it at all.
-.Dv CLOCAL
-should be locked on for devices
-that don't support carrier.
-.Dv HUPCL
-may be locked off if you don't
-want to hang up for some reason.
-In general, very bad things happen
-if something is locked to the wrong state, and things should not
-be locked for devices that support more than one setting.
-The
-.Dv CLOCAL
-flag on callin ports should be locked off for logins
-to avoid certain security holes, but this needs to be done by
-getty if the callin port is used for anything else.
-.Sh FILES
-.Bl -tag -width /dev/ttyiD?? -compact
-.It Pa /dev/ttyD??
-for callin ports
-.It Pa /dev/ttyiD??
-.It Pa /dev/ttylD??
-corresponding callin initial-state and lock-state devices
-.Pp
-.It Pa /dev/cuaD??
-for callout ports
-.It Pa /dev/cuaiD??
-.It Pa /dev/cualD??
-corresponding callout initial-state and lock-state devices
-.El
-.Pp
-.Bl -tag -width /etc/rc.serial -compact
-.It Pa /etc/rc.serial
-examples of setting the initial-state and lock-state devices
-.El
-.Pp
-The first question mark in these device names is short for the
-card number
-(a decimal number between 0 and 65535 inclusive).
-The second question mark is short for the port number
-(a letter in the range [0-9a-v]).
-.Sh DIAGNOSTICS
-You may enable extended diagnostics by defining DEBUG at the
-start of the source file
-.Pa dgb.c .
-.Bl -diag
-.It dgb\fIX\fP: warning: address \fIN\fP truncated to \fIM\fP
-The memory address for the PC/Xe's 8K window is misaligned (it should be
-on an 8K boundary) or outside of the first megabyte.
-.It dgb\fIX\fP: 1st reset failed
-Problems with accessing I/O port of the card, probably
-the wrong
-.Cm port
-value is specified in the kernel config file.
-.It dgb\fIX\fP: 2nd reset failed
-Problems with hardware.
-.It dgb\fIX\fP: \fIN\fP[st,nd,rd,th] memory test failed
-Problems with accessing the memory of the card, probably
-the wrong
-.Cm iomem
-value is specified in the kernel config file.
-.It dgb\fIX\fP: BIOS start failed
-Problems with starting the on-board BIOS.
-Probably the memory addresses of the
-DigiBoard overlap with some other device or with RAM.
-.It dgb\fIX\fP: BIOS download failed
-Problems with the on-board BIOS.
-Probably the memory addresses of the
-DigiBoard overlap with some other device or with RAM.
-.It dgb\fIX\fP: FEP code download failed
-Problems with downloading of the Front-End Processor's micro-OS.
-Probably the memory addresses of the
-DigiBoard overlap with some other device or with RAM.
-.It dgb\fIX\fP: FEP/OS start failed
-Problems with starting of the Front-End Processor's micro-OS.
-Probably the memory addresses of the
-DigiBoard overlap with some other device or with RAM.
-.It dgb\fIX\fP: too many ports
-This DigiBoard reports that it has more than 32 ports.
-Perhaps a hardware problem or
-the memory addresses of the
-DigiBoard overlap with some other device or with RAM.
-.It dgb\fIX\fP: only \fIN\fP ports are usable
-The
-.Dv NDGBPORTS
-parameter is too small and there is only enough space allocated
-for
-.Ar N
-ports on this card.
-.It dgb\fIX\fP: port \fIY\fP is broken
-The on-board diagnostic has reported that the specified port has hardware
-problems.
-.It dgb\fIX\fP: polling of disabled board stopped
-Internal problems in the polling logic of driver.
-.It dgb\fIX\fP: event queue's head or tail is wrong!
-Internal problems in the driver or hardware.
-.It dgb\fIX\fP: port \fIY\fP: got event on nonexisting port
-Some status changed on a port that is physically present but is
-unusable due to misconfiguration.
-.It dgb\fIX\fP: port \fIY\fP: event \fIN\fP mstat \fIM\fP lstat \fIK\fP
-The driver got a strange event from card.
-Probably this means that you have a
-newer card with an extended list of events or some other hardware problem.
-.It dgb\fIX\fP: port \fIY\fP: overrun
-Input buffer has filled up.
-Problems in polling logic of driver.
-.It dgb\fIX\fP: port \fIY\fP: FEP command on disabled port
-Internal problems in driver.
-.It dgb\fIX\fP: port \fIY\fP: timeout on FEP command
-Problems in hardware.
-.El
-.Sh SEE ALSO
-.Xr stty 1 ,
-.Xr termios 4 ,
-.Xr tty 4 ,
-.Xr comcontrol 8
-.\" XXX add next line to many other drivers.
-.Sh HISTORY
-The
-.Nm
-driver is derived from the
-.Xr sio 4
-driver and the DigiBoard driver from
-.Tn Linux
-and is
-.Ud
-.Sh BUGS
-The implementation of sending
-.Dv BREAK
-is broken.
-.Dv BREAK
-of fixed length of 1/4 s
-is sent anyway.
-.Pp
-There was a bug in implementation of
-.Xr select 2 .
-It is fixed now but not widely tested yet.
-.Pp
-There is no ditty command.
-Most of its functions (alternate pinout,
-speed up to 115200 baud, etc.) are implemented in the driver itself.
-Some
-other functions are missing.
diff --git a/sys/conf/files.i386 b/sys/conf/files.i386
index 3470dd9..34168ac 100644
--- a/sys/conf/files.i386
+++ b/sys/conf/files.i386
@@ -121,7 +121,6 @@ dev/cm/if_cm_isa.c optional cm isa
dev/cx/csigma.c optional cx
dev/cx/cxddk.c optional cx
dev/cx/if_cx.c optional cx
-dev/dgb/dgb.c count dgb
dev/ed/if_ed_isa.c optional ed isa
dev/fb/fb.c optional fb
dev/fb/fb.c optional vga
diff --git a/sys/conf/files.pc98 b/sys/conf/files.pc98
index 4993055..027c6f5 100644
--- a/sys/conf/files.pc98
+++ b/sys/conf/files.pc98
@@ -104,7 +104,6 @@ dev/ar/if_ar_pci.c optional ar pci
dev/ct/bshw_machdep.c optional ct
dev/ct/ct.c optional ct
dev/ct/ct_isa.c optional ct isa
-dev/dgb/dgb.c count dgb
dev/ed/if_ed_cbus.c optional ed isa
dev/fb/fb.c optional fb
dev/fb/fb.c optional gdc
diff --git a/sys/conf/majors b/sys/conf/majors
index eba89a3..2a11694 100644
--- a/sys/conf/majors
+++ b/sys/conf/majors
@@ -65,7 +65,7 @@
55 *i4b_ctl ISDN4BSD
56 *i4b_tel ISDN4BSD
57 *i4b_rbch ISDN4BSD
-58 *dgb Digiboard PC/Xe
+58 - Was dgb: Digiboard PC/Xe
59 *i4b_trace ISDN4BSD
60 *i4b_i4bdrv ISDN4BSD
61 *pt SCSI "processor target"
diff --git a/sys/conf/options b/sys/conf/options
index 26aa8e3..214b3ce 100644
--- a/sys/conf/options
+++ b/sys/conf/options
@@ -120,7 +120,6 @@ MAC_STUB opt_dontuse.h
MAC_TEST opt_dontuse.h
MD_ROOT opt_md.h
MD_ROOT_SIZE opt_md.h
-NDGBPORTS opt_dgb.h
NSWBUF_MIN opt_swap.h
PANIC_REBOOT_WAIT_TIME opt_panic.h
PPS_SYNC opt_ntp.h
diff --git a/sys/dev/dgb/dgb.c b/sys/dev/dgb/dgb.c
deleted file mode 100644
index 359a872..0000000
--- a/sys/dev/dgb/dgb.c
+++ /dev/null
@@ -1,2233 +0,0 @@
-/*-
- * dgb.c $FreeBSD$
- *
- * Digiboard driver.
- *
- * Stage 1. "Better than nothing".
- * Stage 2. "Gee, it works!".
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions, and the following disclaimer,
- * without modification, immediately at the beginning of the file.
- * 2. Redistributions of binary code must retain the above copyright
- * notice, this list of conditions, and the following disclaimer,
- * without modification, in the accompanying documentation.
- * 3. The name of the author may not be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * Written by Sergey Babkin,
- * Joint Stock Commercial Bank "Chelindbank"
- * (Chelyabinsk, Russia)
- * babkin@freebsd.org
- *
- * Assorted hacks to make it more functional and working under 3.0-current.
- * Fixed broken routines to prevent processes hanging on closed (thanks
- * to Bruce for his patience and assistance). Thanks also to Maxim Bolotin
- * <max@run.net> for his patches which did most of the work to get this
- * running under 2.2/3.0-current.
- * Implemented ioctls: TIOCMSDTRWAIT, TIOCMGDTRWAIT, TIOCTIMESTAMP &
- * TIOCDCDTIMESTAMP.
- * Sysctl debug flag is now a bitflag, to filter noise during debugging.
- * David L. Nugent <davidn@blaze.net.au>
- *
- * There was a copyright confusion: I thought that having read the
- * GLPed drivers makes me mentally contaminated but in fact it does
- * not. Since the Linux driver by Troy De Jongh <troyd@digibd.com> or
- * <troyd@skypoint.com> was used unly to learn the Digi's interface,
- * I've returned this driver to a BSD-style license. I tried to contact
- * all the contributors and those who replied agreed with license
- * change. If you did any contribution when the driver was GPLed and do
- * not agree with the BSD-style re-licensing please contact me.
- * -SB
- */
-
-#include "opt_compat.h"
-#include "opt_dgb.h"
-#include "opt_tty.h"
-
-#include "dgb.h"
-
-/* Helg: i.e.25 times per sec board will be polled */
-#define POLLSPERSEC 25
-/* How many charactes can we write to input tty rawq */
-#define DGB_IBUFSIZE (TTYHOG-100)
-
-/* the overall number of ports controlled by this driver */
-
-#ifndef NDGBPORTS
-# define NDGBPORTS (NDGB*16)
-#endif
-
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/tty.h>
-#include <sys/conf.h>
-#include <sys/fcntl.h>
-#include <sys/kernel.h>
-#include <sys/sysctl.h>
-#include <sys/bus.h>
-
-
-#include <vm/vm.h>
-#include <vm/pmap.h>
-
-#include <i386/isa/isa_device.h>
-
-#ifndef COMPAT_OLDISA
-#error "The dgb device requires the old isa compatibility shims"
-#endif
-
-#include <dev/dgb/dgbios.h>
-#include <dev/dgb/dgfep.h>
-
-#define DGB_DEBUG /* Enable debugging info via sysctl */
-#include <dev/dgb/dgreg.h>
-
-#define CALLOUT_MASK 0x80
-#define CONTROL_MASK 0x60
-#define CONTROL_INIT_STATE 0x20
-#define CONTROL_LOCK_STATE 0x40
-#define UNIT_MASK 0x30000
-#define PORT_MASK 0x1F
-#define DEV_TO_UNIT(dev) (MINOR_TO_UNIT(minor(dev)))
-#define MINOR_MAGIC_MASK (CALLOUT_MASK | CONTROL_MASK)
-#define MINOR_TO_UNIT(mynor) (((mynor) & UNIT_MASK)>>16)
-#define MINOR_TO_PORT(mynor) ((mynor) & PORT_MASK)
-
-/* types. XXX - should be elsewhere */
-typedef u_char bool_t; /* boolean */
-
-/* digiboard port structure */
-struct dgb_p {
- bool_t status;
-
- u_char unit; /* board unit number */
- u_char pnum; /* port number */
- u_char omodem; /* FEP output modem status */
- u_char imodem; /* FEP input modem status */
- u_char modemfake; /* Modem values to be forced */
- u_char modem; /* Force values */
- u_char hflow;
- u_char dsr;
- u_char dcd;
- u_char stopc;
- u_char startc;
- u_char stopca;
- u_char startca;
- u_char fepstopc;
- u_char fepstartc;
- u_char fepstopca;
- u_char fepstartca;
- u_char txwin;
- u_char rxwin;
- u_short fepiflag;
- u_short fepcflag;
- u_short fepoflag;
- u_short txbufhead;
- u_short txbufsize;
- u_short rxbufhead;
- u_short rxbufsize;
- int close_delay;
- int count;
- int blocked_open;
- int event;
- int asyncflags;
- u_long statusflags;
- u_char *txptr;
- u_char *rxptr;
- volatile struct board_chan *brdchan;
- struct tty *tty;
-
- bool_t active_out; /* nonzero if the callout device is open */
- u_int wopeners; /* # processes waiting for DCD in open() */
-
- /* Initial state. */
- struct termios it_in; /* should be in struct tty */
- struct termios it_out;
-
- /* Lock state. */
- struct termios lt_in; /* should be in struct tty */
- struct termios lt_out;
-
- bool_t do_timestamp;
- bool_t do_dcd_timestamp;
- struct timeval timestamp;
- struct timeval dcd_timestamp;
-
- /* flags of state, are used in sleep() too */
- u_char closing; /* port is being closed now */
- u_char draining; /* port is being drained now */
- u_char used; /* port is being used now */
- u_char mustdrain; /* data must be waited to drain in dgbparam() */
-};
-
-/* Digiboard per-board structure */
-struct dgb_softc {
- /* struct board_info */
- u_char status; /* status: DISABLED/ENABLED */
- u_char unit; /* unit number */
- u_char type; /* type of card: PCXE, PCXI, PCXEVE */
- u_char altpin; /* do we need alternate pin setting ? */
- int numports; /* number of ports on card */
- int port; /* I/O port */
- u_char *vmem; /* virtual memory address */
- long pmem; /* physical memory address */
- int mem_seg; /* internal memory segment */
- struct dgb_p *ports; /* pointer to array of port descriptors */
- struct tty *ttys; /* pointer to array of TTY structures */
- volatile struct global_data *mailbox;
- };
-
-
-static struct dgb_softc dgb_softc[NDGB];
-static struct dgb_p dgb_ports[NDGBPORTS];
-static struct tty dgb_tty[NDGBPORTS];
-
-/*
- * The public functions in the com module ought to be declared in a com-driver
- * system header.
- */
-
-/* Interrupt handling entry points. */
-static void dgbpoll (void *unit_c);
-
-/* Device switch entry points. */
-#define dgbreset noreset
-#define dgbmmap nommap
-#define dgbstrategy nostrategy
-
-static int dgbattach (struct isa_device *dev);
-static int dgbprobe (struct isa_device *dev);
-
-static void fepcmd(struct dgb_p *port, unsigned cmd, unsigned op1, unsigned op2,
- unsigned ncmds, unsigned bytecmd);
-
-static void dgbstart (struct tty *tp);
-static void dgbstop (struct tty *tp, int rw);
-static int dgbparam (struct tty *tp, struct termios *t);
-static void dgbhardclose (struct dgb_p *port);
-static void dgb_drain_or_flush (struct dgb_p *port);
-static int dgbdrain (struct dgb_p *port);
-static void dgb_pause (void *chan);
-static void wakeflush (void *p);
-static void disc_optim (struct tty *tp, struct termios *t);
-
-
-struct isa_driver dgbdriver = {
- INTR_TYPE_TTY,
- dgbprobe,
- dgbattach,
- "dgb",
- 0
-};
-COMPAT_ISA_DRIVER(dgb, dgbdriver);
-
-static d_open_t dgbopen;
-static d_close_t dgbclose;
-static d_ioctl_t dgbioctl;
-
-#define CDEV_MAJOR 58
-static struct cdevsw dgb_cdevsw = {
- .d_open = dgbopen,
- .d_close = dgbclose,
- .d_read = ttyread,
- .d_write = ttywrite,
- .d_ioctl = dgbioctl,
- .d_poll = ttypoll,
- .d_name = "dgb",
- .d_maj = CDEV_MAJOR,
- .d_flags = D_TTY,
- .d_kqfilter = ttykqfilter,
-};
-
-static speed_t dgbdefaultrate = TTYDEF_SPEED;
-
-static struct speedtab dgbspeedtab[] = {
- { 0, FEP_B0 }, /* old (sysV-like) Bx codes */
- { 50, FEP_B50 },
- { 75, FEP_B75 },
- { 110, FEP_B110 },
- { 134, FEP_B134 },
- { 150, FEP_B150 },
- { 200, FEP_B200 },
- { 300, FEP_B300 },
- { 600, FEP_B600 },
- { 1200, FEP_B1200 },
- { 1800, FEP_B1800 },
- { 2400, FEP_B2400 },
- { 4800, FEP_B4800 },
- { 9600, FEP_B9600 },
- { 19200, FEP_B19200 },
- { 38400, FEP_B38400 },
- { 57600, (FEP_FASTBAUD|FEP_B50) }, /* B50 & fast baud table */
- { 115200, (FEP_FASTBAUD|FEP_B110) }, /* B100 & fast baud table */
- { -1, -1 }
-};
-
-static struct dbgflagtbl
-{
- tcflag_t in_mask;
- tcflag_t in_val;
- tcflag_t out_val;
-} dgb_cflags[] =
-{
- { PARODD, PARODD, FEP_PARODD },
- { PARENB, PARENB, FEP_PARENB },
- { CSTOPB, CSTOPB, FEP_CSTOPB },
- { CSIZE, CS5, FEP_CS6 },
- { CSIZE, CS6, FEP_CS6 },
- { CSIZE, CS7, FEP_CS7 },
- { CSIZE, CS8, FEP_CS8 },
- { CLOCAL, CLOCAL, FEP_CLOCAL },
- { (tcflag_t)-1 }
-}, dgb_iflags[] =
-{
- { IGNBRK, IGNBRK, FEP_IGNBRK },
- { BRKINT, BRKINT, FEP_BRKINT },
- { IGNPAR, IGNPAR, FEP_IGNPAR },
- { PARMRK, PARMRK, FEP_PARMRK },
- { INPCK, INPCK, FEP_INPCK },
- { ISTRIP, ISTRIP, FEP_ISTRIP },
- { IXON, IXON, FEP_IXON },
- { IXOFF, IXOFF, FEP_IXOFF },
- { IXANY, IXANY, FEP_IXANY },
- { (tcflag_t)-1 }
-}, dgb_flow[] =
-{
- { CRTSCTS, CRTSCTS, CTS|RTS },
- { CRTSCTS, CCTS_OFLOW, CTS },
- { CRTSCTS, CRTS_IFLOW, RTS },
- { (tcflag_t)-1 }
-};
-
-/* xlat bsd termios flags to dgb sys-v style */
-static tcflag_t
-dgbflags(struct dbgflagtbl *tbl, tcflag_t input)
-{
- tcflag_t output = 0;
- int i;
-
- for (i=0; tbl[i].in_mask != (tcflag_t)-1; i++)
- {
- if ((input & tbl[i].in_mask) == tbl[i].in_val)
- output |= tbl[i].out_val;
- }
- return output;
-}
-
-#ifdef DGB_DEBUG
-static int dgbdebug=0;
-SYSCTL_INT(_debug, OID_AUTO, dgb_debug, CTLFLAG_RW, &dgbdebug, 0, "");
-#endif
-
-static __inline int setwin(struct dgb_softc *sc, unsigned addr);
-static __inline int setinitwin(struct dgb_softc *sc, unsigned addr);
-static __inline void hidewin(struct dgb_softc *sc);
-static __inline void towin(struct dgb_softc *sc, int win);
-
-/*Helg: to allow recursive dgb...() calls */
-typedef struct
- { /* If we were called and don't want to disturb we need: */
- int port; /* write to this port */
- u_char data; /* this data on exit */
- /* or DATA_WINOFF to close memory window on entry */
- } BoardMemWinState; /* so several channels and even boards can coexist */
-#define DATA_WINOFF 0
-static BoardMemWinState bmws;
-
-/* return current memory window state and close window */
-static BoardMemWinState
-bmws_get(void)
-{
- BoardMemWinState bmwsRet=bmws;
- if(bmws.data!=DATA_WINOFF)
- outb(bmws.port, bmws.data=DATA_WINOFF);
- return bmwsRet;
-}
-
-/* restore memory window state */
-static void
-bmws_set(BoardMemWinState ws)
-{
- if(ws.data != bmws.data || ws.port!=bmws.port ) {
- if(bmws.data!=DATA_WINOFF)
- outb(bmws.port,DATA_WINOFF);
- if(ws.data!=DATA_WINOFF)
- outb(ws.port, ws.data);
- bmws=ws;
- }
-}
-
-static __inline int
-setwin(sc,addr)
- struct dgb_softc *sc;
- unsigned int addr;
-{
- if(sc->type==PCXEVE) {
- outb(bmws.port=sc->port+1, bmws.data=FEPWIN|(addr>>13));
- DPRINT3(DB_WIN,"dgb%d: switched to window 0x%x\n",sc->unit,addr>>13);
- return (addr & 0x1FFF);
- } else {
- outb(bmws.port=sc->port,bmws.data=FEPMEM);
- return addr;
- }
-}
-
-static __inline int
-setinitwin(sc,addr)
- struct dgb_softc *sc;
- unsigned int addr;
-{
- if(sc->type==PCXEVE) {
- outb(bmws.port=sc->port+1, bmws.data=FEPWIN|(addr>>13));
- DPRINT3(DB_WIN,"dgb%d: switched to window 0x%x\n",sc->unit,addr>>13);
- return (addr & 0x1FFF);
- } else {
- outb(bmws.port=sc->port,bmws.data=inb(sc->port)|FEPMEM);
- return addr;
- }
-}
-
-static __inline void
-hidewin(sc)
- struct dgb_softc *sc;
-{
- bmws.data=0;
- if(sc->type==PCXEVE)
- outb(bmws.port=sc->port+1, bmws.data);
- else
- outb(bmws.port=sc->port, bmws.data);
-}
-
-static __inline void
-towin(sc,win)
- struct dgb_softc *sc;
- int win;
-{
- if(sc->type==PCXEVE) {
- outb(bmws.port=sc->port+1, bmws.data=win);
- } else {
- outb(bmws.port=sc->port,bmws.data=FEPMEM);
- }
-}
-
-static int
-dgbprobe(dev)
- struct isa_device *dev;
-{
- struct dgb_softc *sc= &dgb_softc[dev->id_unit];
- int i, v;
- u_long win_size; /* size of vizible memory window */
- int unit=dev->id_unit;
-
- sc->unit=dev->id_unit;
- sc->port=dev->id_iobase;
-
- if(dev->id_flags & DGBFLAG_ALTPIN)
- sc->altpin=1;
- else
- sc->altpin=0;
-
- /* left 24 bits only (ISA address) */
- sc->pmem=((intptr_t)(void *)dev->id_maddr & 0xFFFFFF);
-
- DPRINT4(DB_INFO,"dgb%d: port 0x%x mem 0x%lx\n",unit,sc->port,sc->pmem);
-
- outb(sc->port, FEPRST);
- sc->status=DISABLED;
-
- for(i=0; i< 1000; i++) {
- DELAY(1);
- if( (inb(sc->port) & FEPMASK) == FEPRST ) {
- sc->status=ENABLED;
- DPRINT3(DB_EXCEPT,"dgb%d: got reset after %d us\n",unit,i);
- break;
- }
- }
-
- if(sc->status!=ENABLED) {
- DPRINT2(DB_EXCEPT,"dgb%d: failed to respond\n",dev->id_unit);
- return 0;
- }
-
- /* check type of card and get internal memory characteristics */
-
- v=inb(sc->port);
-
- if( v & 0x1 ) {
- switch( v&0x30 ) {
- case 0:
- sc->mem_seg=0xF000;
- win_size=0x10000;
- printf("dgb%d: PC/Xi 64K\n",dev->id_unit);
- break;
- case 0x10:
- sc->mem_seg=0xE000;
- win_size=0x20000;
- printf("dgb%d: PC/Xi 128K\n",dev->id_unit);
- break;
- case 0x20:
- sc->mem_seg=0xC000;
- win_size=0x40000;
- printf("dgb%d: PC/Xi 256K\n",dev->id_unit);
- break;
- default: /* case 0x30: */
- sc->mem_seg=0x8000;
- win_size=0x80000;
- printf("dgb%d: PC/Xi 512K\n",dev->id_unit);
- break;
- }
- sc->type=PCXI;
- } else {
- outb(sc->port, 1);
- v=inb(sc->port);
-
- if( v & 0x1 ) {
- printf("dgb%d: PC/Xm isn't supported\n",dev->id_unit);
- sc->status=DISABLED;
- return 0;
- }
-
- sc->mem_seg=0xF000;
-
- if(dev->id_flags==DGBFLAG_NOWIN || ( v&0xC0 )==0) {
- win_size=0x10000;
- printf("dgb%d: PC/Xe 64K\n",dev->id_unit);
- sc->type=PCXE;
- } else {
- win_size=0x2000;
- printf("dgb%d: PC/Xe 64/8K (windowed)\n",dev->id_unit);
- sc->type=PCXEVE;
- if((u_long)sc->pmem & ~0xFFE000) {
- printf("dgb%d: warning: address 0x%lx truncated to 0x%lx\n",
- dev->id_unit, sc->pmem,
- sc->pmem & 0xFFE000);
-
- dev->id_maddr= (u_char *)(void *)(intptr_t)( sc->pmem & 0xFFE000 );
- }
- }
- }
-
- /* save size of vizible memory segment */
- dev->id_msize=win_size;
-
- /* map memory */
- dev->id_maddr=sc->vmem=pmap_mapdev(sc->pmem,dev->id_msize);
-
- outb(sc->port, FEPCLR); /* drop RESET */
- hidewin(sc); /* Helg: to set initial bmws state */
-
- return 4; /* we need I/O space of 4 ports */
-}
-
-static int
-dgbattach(dev)
- struct isa_device *dev;
-{
- int unit=dev->id_unit;
- struct dgb_softc *sc= &dgb_softc[dev->id_unit];
- int i, t;
- u_char volatile *mem;
- u_char volatile *ptr;
- int addr;
- struct dgb_p *port;
- volatile struct board_chan *bc;
- int shrinkmem;
- int nfails;
- volatile u_short *pstat;
- int lowwater;
- static int nports=0;
- char suffix;
-
- if(sc->status!=ENABLED) {
- DPRINT2(DB_EXCEPT,"dbg%d: try to attach a disabled card\n",unit);
- return 0;
- }
-
- mem=sc->vmem;
-
- DPRINT3(DB_INFO,"dgb%d: internal memory segment 0x%x\n",unit,sc->mem_seg);
-
- outb(sc->port, FEPRST); DELAY(1);
-
- for(i=0; (inb(sc->port) & FEPMASK) != FEPRST ; i++) {
- if(i>10000) {
- printf("dgb%d: 1st reset failed\n",dev->id_unit);
- sc->status=DISABLED;
- hidewin(sc);
- return 0;
- }
- DELAY(1);
- }
-
- DPRINT3(DB_INFO,"dgb%d: got reset after %d us\n",unit,i);
-
- /* for PCXEVE set up interrupt and base address */
-
- if(sc->type==PCXEVE) {
- t=(((u_long)sc->pmem>>8) & 0xFFE0) | 0x10 /* enable windowing */;
- /* IRQ isn't used */
- outb(sc->port+2,t & 0xFF);
- outb(sc->port+3,t>>8);
- } else if(sc->type==PCXE) {
- t=(((u_long)sc->pmem>>8) & 0xFFE0) /* disable windowing */;
- outb(sc->port+2,t & 0xFF);
- outb(sc->port+3,t>>8);
- }
-
-
- if(sc->type==PCXI || sc->type==PCXE) {
- outb(sc->port, FEPRST|FEPMEM); DELAY(1);
-
- for(i=0; (inb(sc->port) & FEPMASK) != (FEPRST|FEPMEM) ; i++) {
- if(i>10000) {
- printf("dgb%d: 2nd reset failed\n",dev->id_unit);
- sc->status=DISABLED;
- hidewin(sc);
- return 0;
- }
- DELAY(1);
- }
-
- DPRINT3(DB_INFO,"dgb%d: got memory after %d us\n",unit,i);
- }
-
- mem=sc->vmem;
-
- /* very short memory test */
-
- addr=setinitwin(sc,BOTWIN);
- *(u_long volatile *)(mem+addr) = 0xA55A3CC3;
- if(*(u_long volatile *)(mem+addr)!=0xA55A3CC3) {
- printf("dgb%d: 1st memory test failed\n",dev->id_unit);
- sc->status=DISABLED;
- hidewin(sc);
- return 0;
- }
-
- addr=setinitwin(sc,TOPWIN);
- *(u_long volatile *)(mem+addr) = 0x5AA5C33C;
- if(*(u_long volatile *)(mem+addr)!=0x5AA5C33C) {
- printf("dgb%d: 2nd memory test failed\n",dev->id_unit);
- sc->status=DISABLED;
- hidewin(sc);
- return 0;
- }
-
- addr=setinitwin(sc,BIOSCODE+((0xF000-sc->mem_seg)<<4));
- *(u_long volatile *)(mem+addr) = 0x5AA5C33C;
- if(*(u_long volatile *)(mem+addr)!=0x5AA5C33C) {
- printf("dgb%d: 3rd (BIOS) memory test failed\n",dev->id_unit);
- }
-
- addr=setinitwin(sc,MISCGLOBAL);
- for(i=0; i<16; i++) {
- mem[addr+i]=0;
- }
-
- if(sc->type==PCXI || sc->type==PCXE) {
-
- addr=BIOSCODE+((0xF000-sc->mem_seg)<<4);
-
- DPRINT3(DB_INFO,"dgb%d: BIOS local address=0x%x\n",unit,addr);
-
- ptr= mem+addr;
-
- for(i=0; i<pcxx_nbios; i++, ptr++)
- *ptr = pcxx_bios[i];
-
- ptr= mem+addr;
-
- nfails=0;
- for(i=0; i<pcxx_nbios; i++, ptr++)
- if( *ptr != pcxx_bios[i] ) {
- DPRINT5(DB_EXCEPT,"dgb%d: wrong code in BIOS at addr 0x%x : \
-0x%x instead of 0x%x\n", unit, ptr-(mem+addr), *ptr, pcxx_bios[i] );
-
- if(++nfails>=5) {
- printf("dgb%d: 4th memory test (BIOS load) fails\n",unit);
- break;
- }
- }
-
- outb(sc->port,FEPMEM);
-
- for(i=0; (inb(sc->port) & FEPMASK) != FEPMEM ; i++) {
- if(i>10000) {
- printf("dgb%d: BIOS start failed\n",dev->id_unit);
- sc->status=DISABLED;
- hidewin(sc);
- return 0;
- }
- DELAY(1);
- }
-
- DPRINT3(DB_INFO,"dgb%d: reset dropped after %d us\n",unit,i);
-
- for(i=0; i<200000; i++) {
- if( *((u_short volatile *)(mem+MISCGLOBAL)) == *((u_short *)"GD") )
- goto load_fep;
- DELAY(1);
- }
- printf("dgb%d: BIOS download failed\n",dev->id_unit);
- DPRINT4(DB_EXCEPT,"dgb%d: code=0x%x must be 0x%x\n",
- dev->id_unit,
- *((u_short volatile *)(mem+MISCGLOBAL)),
- *((u_short *)"GD"));
-
- sc->status=DISABLED;
- hidewin(sc);
- return 0;
- }
-
- if(sc->type==PCXEVE) {
- /* set window 7 */
- outb(sc->port+1,0xFF);
-
- ptr= mem+(BIOSCODE & 0x1FFF);
-
- for(i=0; i<pcxx_nbios; i++)
- *ptr++ = pcxx_bios[i];
-
- ptr= mem+(BIOSCODE & 0x1FFF);
-
- nfails=0;
- for(i=0; i<pcxx_nbios; i++, ptr++)
- if( *ptr != pcxx_bios[i] ) {
- DPRINT5(DB_EXCEPT,"dgb%d: wrong code in BIOS at addr 0x%x : \
-0x%x instead of 0x%x\n", unit, ptr-(mem+addr), *ptr, pcxx_bios[i] );
-
- if(++nfails>=5) {
- printf("dgb%d: 4th memory test (BIOS load) fails\n",unit);
- break;
- }
- }
-
- outb(sc->port,FEPCLR);
-
- setwin(sc,0);
-
- for(i=0; (inb(sc->port) & FEPMASK) != FEPCLR ; i++) {
- if(i>10000) {
- printf("dgb%d: BIOS start failed\n",dev->id_unit);
- sc->status=DISABLED;
- hidewin(sc);
- return 0;
- }
- DELAY(1);
- }
-
- DPRINT3(DB_INFO,"dgb%d: reset dropped after %d us\n",unit,i);
-
- addr=setwin(sc,MISCGLOBAL);
-
- for(i=0; i<200000; i++) {
- if(*(u_short volatile *)(mem+addr)== *(u_short *)"GD")
- goto load_fep;
- DELAY(1);
- }
- printf("dgb%d: BIOS download failed\n",dev->id_unit);
- DPRINT5(DB_EXCEPT,"dgb%d: Error#(0x%x,0x%x) code=0x%x\n",
- dev->id_unit,
- *(u_short volatile *)(mem+0xC12),
- *(u_short volatile *)(mem+0xC14),
- *(u_short volatile *)(mem+MISCGLOBAL));
-
- sc->status=DISABLED;
- hidewin(sc);
- return 0;
- }
-
-load_fep:
- DPRINT2(DB_INFO,"dgb%d: BIOS loaded\n",dev->id_unit);
-
- addr=setwin(sc,FEPCODE);
-
- ptr= mem+addr;
-
- for(i=0; i<pcxx_ncook; i++)
- *ptr++ = pcxx_cook[i];
-
- addr=setwin(sc,MBOX);
- *(u_short volatile *)(mem+addr+ 0)=2;
- *(u_short volatile *)(mem+addr+ 2)=sc->mem_seg+FEPCODESEG;
- *(u_short volatile *)(mem+addr+ 4)=0;
- *(u_short volatile *)(mem+addr+ 6)=FEPCODESEG;
- *(u_short volatile *)(mem+addr+ 8)=0;
- *(u_short volatile *)(mem+addr+10)=pcxx_ncook;
-
- outb(sc->port,FEPMEM|FEPINT); /* send interrupt to BIOS */
- outb(sc->port,FEPMEM);
-
- for(i=0; *(u_short volatile *)(mem+addr)!=0; i++) {
- if(i>200000) {
- printf("dgb%d: FEP code download failed\n",unit);
- DPRINT3(DB_EXCEPT,"dgb%d: code=0x%x must be 0\n", unit,
- *(u_short volatile *)(mem+addr));
- sc->status=DISABLED;
- hidewin(sc);
- return 0;
- }
- }
-
- DPRINT2(DB_INFO,"dgb%d: FEP code loaded\n",unit);
-
- *(u_short volatile *)(mem+setwin(sc,FEPSTAT))=0;
- addr=setwin(sc,MBOX);
- *(u_short volatile *)(mem+addr+0)=1;
- *(u_short volatile *)(mem+addr+2)=FEPCODESEG;
- *(u_short volatile *)(mem+addr+4)=0x4;
-
- outb(sc->port,FEPINT); /* send interrupt to BIOS */
- outb(sc->port,FEPCLR);
-
- addr=setwin(sc,FEPSTAT);
- for(i=0; *(u_short volatile *)(mem+addr)!= *(u_short *)"OS"; i++) {
- if(i>200000) {
- printf("dgb%d: FEP/OS start failed\n",dev->id_unit);
- sc->status=DISABLED;
- hidewin(sc);
- return 0;
- }
- }
-
- DPRINT2(DB_INFO,"dgb%d: FEP/OS started\n",dev->id_unit);
-
- sc->numports= *(u_short volatile *)(mem+setwin(sc,NPORT));
-
- printf("dgb%d: %d ports\n",unit,sc->numports);
-
- if(sc->numports > MAX_DGB_PORTS) {
- printf("dgb%d: too many ports\n",unit);
- sc->status=DISABLED;
- hidewin(sc);
- return 0;
- }
-
- if(nports+sc->numports>NDGBPORTS) {
- printf("dgb%d: only %d ports are usable\n", unit, NDGBPORTS-nports);
- sc->numports=NDGBPORTS-nports;
- }
-
- /* allocate port and tty structures */
- sc->ports=&dgb_ports[nports];
- sc->ttys=&dgb_tty[nports];
- nports+=sc->numports;
-
- addr=setwin(sc,PORTBASE);
- pstat=(u_short volatile *)(mem+addr);
-
- for(i=0; i<sc->numports && pstat[i]; i++)
- if(pstat[i])
- sc->ports[i].status=ENABLED;
- else {
- sc->ports[i].status=DISABLED;
- printf("dgb%d: port%d is broken\n", unit, i);
- }
-
- /* We should now init per-port structures */
- bc=(volatile struct board_chan *)(mem + CHANSTRUCT);
- sc->mailbox=(volatile struct global_data *)(mem + FEP_GLOBAL);
-
- if(sc->numports<3)
- shrinkmem=1;
- else
- shrinkmem=0;
-
- for(i=0; i<sc->numports; i++, bc++) {
- port= &sc->ports[i];
-
- port->tty=&sc->ttys[i];
- port->unit=unit;
-
- port->brdchan=bc;
-
- if(sc->altpin) {
- port->dsr=CD;
- port->dcd=DSR;
- } else {
- port->dcd=CD;
- port->dsr=DSR;
- }
-
- port->pnum=i;
-
- if(shrinkmem) {
- DPRINT2(DB_INFO,"dgb%d: shrinking memory\n",unit);
- fepcmd(port, SETBUFFER, 32, 0, 0, 0);
- shrinkmem=0;
- }
-
- if(sc->type!=PCXEVE) {
- port->txptr=(u_char *)(uintptr_t)(volatile void *)
- (mem+((bc->tseg-sc->mem_seg)<<4));
- port->rxptr=(u_char *)(uintptr_t)(volatile void *)
- (mem+((bc->rseg-sc->mem_seg)<<4));
- port->txwin=port->rxwin=0;
- } else {
- port->txptr=(u_char *)(uintptr_t)(volatile void *)
- (mem+( ((bc->tseg-sc->mem_seg)<<4) & 0x1FFF ));
- port->rxptr=(u_char *)(uintptr_t)(volatile void *)
- (mem+( ((bc->rseg-sc->mem_seg)<<4) & 0x1FFF ));
- port->txwin=FEPWIN | ((bc->tseg-sc->mem_seg)>>9);
- port->rxwin=FEPWIN | ((bc->rseg-sc->mem_seg)>>9);
- }
-
- port->txbufhead=0;
- port->rxbufhead=0;
- port->txbufsize=bc->tmax+1;
- port->rxbufsize=bc->rmax+1;
-
- lowwater= (port->txbufsize>=2000) ? 1024 : (port->txbufsize/2);
- setwin(sc,0);
- fepcmd(port, STXLWATER, lowwater, 0, 10, 0);
- fepcmd(port, SRXLWATER, port->rxbufsize/4, 0, 10, 0);
- fepcmd(port, SRXHWATER, 3*port->rxbufsize/4, 0, 10, 0);
-
- bc->edelay=100;
- bc->idata=1;
-
- port->startc=bc->startc;
- port->startca=bc->startca;
- port->stopc=bc->stopc;
- port->stopca=bc->stopca;
-
- /*port->close_delay=50;*/
- port->close_delay=3 * hz;
- port->do_timestamp=0;
- port->do_dcd_timestamp=0;
-
- /*
- * We don't use all the flags from <sys/ttydefaults.h> since they
- * are only relevant for logins. It's important to have echo off
- * initially so that the line doesn't start blathering before the
- * echo flag can be turned off.
- */
- port->it_in.c_iflag = TTYDEF_IFLAG;
- port->it_in.c_oflag = TTYDEF_OFLAG;
- port->it_in.c_cflag = TTYDEF_CFLAG;
- port->it_in.c_lflag = TTYDEF_LFLAG;
- termioschars(&port->it_in);
- port->it_in.c_ispeed = port->it_in.c_ospeed = dgbdefaultrate;
- port->it_out = port->it_in;
- /* MAX_DGB_PORTS is 32 => [0-9a-v] */
- suffix = i < 10 ? '0' + i : 'a' + i - 10;
- make_dev(&dgb_cdevsw, (unit*32)+i,
- UID_ROOT, GID_WHEEL, 0600, "ttyD%d%c", unit, suffix);
-
- make_dev(&dgb_cdevsw, (unit*32)+i+32,
- UID_ROOT, GID_WHEEL, 0600, "ttyiD%d%c", unit, suffix);
-
- make_dev(&dgb_cdevsw, (unit*32)+i+64,
- UID_ROOT, GID_WHEEL, 0600, "ttylD%d%c", unit, suffix);
-
- make_dev(&dgb_cdevsw, (unit*32)+i+128,
- UID_UUCP, GID_DIALER, 0660, "cuaD%d%c", unit, suffix);
-
- make_dev(&dgb_cdevsw, (unit*32)+i+160,
- UID_UUCP, GID_DIALER, 0660, "cuaiD%d%c", unit, suffix);
-
- make_dev(&dgb_cdevsw, (unit*32)+i+192,
- UID_UUCP, GID_DIALER, 0660, "cualD%d%c", unit, suffix);
- }
-
- hidewin(sc);
-
- /* register the polling function */
- timeout(dgbpoll, (void *)unit, hz/POLLSPERSEC);
-
- return 1;
-}
-
-/* ARGSUSED */
-static int
-dgbopen(dev, flag, mode, td)
- dev_t dev;
- int flag;
- int mode;
- struct thread *td;
-{
- struct dgb_softc *sc;
- struct tty *tp;
- int unit;
- int mynor;
- int pnum;
- struct dgb_p *port;
- int s,cs;
- int error;
- volatile struct board_chan *bc;
-
- error=0;
-
- mynor=minor(dev);
- unit=MINOR_TO_UNIT(mynor);
- pnum=MINOR_TO_PORT(mynor);
-
- if(unit >= NDGB) {
- DPRINT2(DB_EXCEPT,"dgb%d: try to open a nonexisting card\n",unit);
- return ENXIO;
- }
-
- sc=&dgb_softc[unit];
-
- if(sc->status!=ENABLED) {
- DPRINT2(DB_EXCEPT,"dgb%d: try to open a disabled card\n",unit);
- return ENXIO;
- }
-
- if(pnum>=sc->numports) {
- DPRINT3(DB_EXCEPT,"dgb%d: try to open non-existing port %d\n",unit,pnum);
- return ENXIO;
- }
-
- if(mynor & CONTROL_MASK)
- return 0;
-
- tp=&sc->ttys[pnum];
- dev->si_tty = tp;
- port=&sc->ports[pnum];
- bc=port->brdchan;
-
-open_top:
-
- s=spltty();
-
- while(port->closing) {
- error=tsleep(&port->closing, TTOPRI|PCATCH, "dgocl", 0);
-
- if(error) {
- DPRINT4(DB_OPEN,"dgb%d: port%d: tsleep(dgocl) error=%d\n",unit,pnum,error);
- goto out;
- }
- }
-
- if (tp->t_state & TS_ISOPEN) {
- /*
- * The device is open, so everything has been initialized.
- * Handle conflicts.
- */
- if (mynor & CALLOUT_MASK) {
- if (!port->active_out) {
- error = EBUSY;
- DPRINT4(DB_OPEN,"dgb%d: port%d: BUSY error=%d\n",unit,pnum,error);
- goto out;
- }
- } else {
- if (port->active_out) {
- if (flag & O_NONBLOCK) {
- error = EBUSY;
- DPRINT4(DB_OPEN,"dgb%d: port%d: BUSY error=%d\n",unit,pnum,error);
- goto out;
- }
- error = tsleep(&port->active_out,
- TTIPRI | PCATCH, "dgbi", 0);
- if (error != 0) {
- DPRINT4(DB_OPEN,"dgb%d: port%d: tsleep(dgbi) error=%d\n",
- unit,pnum,error);
- goto out;
- }
- splx(s);
- goto open_top;
- }
- }
- if (tp->t_state & TS_XCLUDE &&
- suser(td)) {
- error = EBUSY;
- goto out;
- }
- } else {
- /*
- * The device isn't open, so there are no conflicts.
- * Initialize it. Initialization is done twice in many
- * cases: to preempt sleeping callin opens if we are
- * callout, and to complete a callin open after DCD rises.
- */
- tp->t_oproc=dgbstart;
- tp->t_param=dgbparam;
- tp->t_stop=dgbstop;
- tp->t_dev=dev;
- tp->t_termios= (mynor & CALLOUT_MASK) ?
- port->it_out :
- port->it_in;
-
- cs=splclock();
- setwin(sc,0);
- port->imodem=bc->mstat;
- bc->rout=bc->rin; /* clear input queue */
- bc->idata=1;
-#ifdef PRINT_BUFSIZE
- printf("dgb buffers tx=%x:%x rx=%x:%x\n",bc->tseg,bc->tmax,bc->rseg,bc->rmax);
-#endif
-
- hidewin(sc);
- splx(cs);
-
- port->wopeners++;
- error=dgbparam(tp, &tp->t_termios);
- port->wopeners--;
-
- if(error!=0) {
- DPRINT4(DB_OPEN,"dgb%d: port%d: dgbparam error=%d\n",unit,pnum,error);
- goto out;
- }
-
- /* handle fake DCD for callout devices */
- /* and initial DCD */
-
- if( (port->imodem & port->dcd) || mynor & CALLOUT_MASK )
- linesw[tp->t_line].l_modem(tp,1);
-
- }
-
- /*
- * Wait for DCD if necessary.
- */
- if (!(tp->t_state & TS_CARR_ON) && !(mynor & CALLOUT_MASK)
- && !(tp->t_cflag & CLOCAL) && !(flag & O_NONBLOCK)) {
- ++port->wopeners;
- error = tsleep(TSA_CARR_ON(tp), TTIPRI | PCATCH, "dgdcd", 0);
- --port->wopeners;
- if (error != 0) {
- DPRINT4(DB_OPEN,"dgb%d: port%d: tsleep(dgdcd) error=%d\n",unit,pnum,error);
- goto out;
- }
- splx(s);
- goto open_top;
- }
- error = linesw[tp->t_line].l_open(dev, tp);
- disc_optim(tp,&tp->t_termios);
- DPRINT4(DB_OPEN,"dgb%d: port%d: l_open error=%d\n",unit,pnum,error);
-
- if (tp->t_state & TS_ISOPEN && mynor & CALLOUT_MASK)
- port->active_out = TRUE;
-
- port->used=1;
-
- /* If any port is open (i.e. the open() call is completed for it)
- * the device is busy
- */
-
-out:
- disc_optim(tp,&tp->t_termios);
- splx(s);
-
- if( !(tp->t_state & TS_ISOPEN) && port->wopeners==0 )
- dgbhardclose(port);
-
- DPRINT4(DB_OPEN,"dgb%d: port%d: open() returns %d\n",unit,pnum,error);
-
- return error;
-}
-
-/*ARGSUSED*/
-static int
-dgbclose(dev, flag, mode, td)
- dev_t dev;
- int flag;
- int mode;
- struct thread *td;
-{
- int mynor;
- struct tty *tp;
- int unit, pnum;
- struct dgb_softc *sc;
- struct dgb_p *port;
- int s;
- int i;
-
- mynor=minor(dev);
- if(mynor & CONTROL_MASK)
- return 0;
- unit=MINOR_TO_UNIT(mynor);
- pnum=MINOR_TO_PORT(mynor);
-
- sc=&dgb_softc[unit];
- tp=&sc->ttys[pnum];
- port=sc->ports+pnum;
-
- DPRINT3(DB_CLOSE,"dgb%d: port%d: closing\n",unit,pnum);
-
- DPRINT3(DB_CLOSE,"dgb%d: port%d: draining port\n",unit,pnum);
- dgb_drain_or_flush(port);
-
- s=spltty();
-
- port->closing=1;
- DPRINT3(DB_CLOSE,"dgb%d: port%d: closing line disc\n",unit,pnum);
- linesw[tp->t_line].l_close(tp,flag);
- disc_optim(tp,&tp->t_termios);
-
- DPRINT3(DB_CLOSE,"dgb%d: port%d: hard closing\n",unit,pnum);
- dgbhardclose(port);
- DPRINT3(DB_CLOSE,"dgb%d: port%d: closing tty\n",unit,pnum);
- ttyclose(tp);
- port->closing=0;
- wakeup(&port->closing);
- port->used=0;
-
- /* mark the card idle when all ports are closed */
-
- for(i=0; i<sc->numports; i++)
- if(sc->ports[i].used)
- break;
-
- splx(s);
-
- DPRINT3(DB_CLOSE,"dgb%d: port%d: closed\n",unit,pnum);
-
- wakeup(TSA_CARR_ON(tp));
- wakeup(&port->active_out);
- port->active_out=0;
-
- DPRINT3(DB_CLOSE,"dgb%d: port%d: close exit\n",unit,pnum);
-
- return 0;
-}
-
-static void
-dgbhardclose(port)
- struct dgb_p *port;
-{
- struct dgb_softc *sc=&dgb_softc[port->unit];
- volatile struct board_chan *bc=port->brdchan;
- int cs;
-
- cs=splclock();
- port->do_timestamp = 0;
- setwin(sc,0);
-
- bc->idata=0; bc->iempty=0; bc->ilow=0;
- if(port->tty->t_cflag & HUPCL) {
- port->omodem &= ~(RTS|DTR);
- fepcmd(port, SETMODEM, 0, DTR|RTS, 0, 1);
- }
-
- hidewin(sc);
- splx(cs);
-
- timeout(dgb_pause, &port->brdchan, hz/2);
- tsleep(&port->brdchan, TTIPRI | PCATCH, "dgclo", 0);
-}
-
-static void
-dgb_pause(chan)
- void *chan;
-{
- wakeup(chan);
-}
-
-static void
-dgbpoll(unit_c)
- void *unit_c;
-{
- int unit=(int)unit_c;
- int pnum;
- struct dgb_p *port;
- struct dgb_softc *sc=&dgb_softc[unit];
- int head, tail;
- u_char *eventbuf;
- int event, mstat, lstat;
- volatile struct board_chan *bc;
- struct tty *tp;
- int rhead, rtail;
- int whead, wtail;
- int size;
- u_char *ptr;
- int ocount;
- int ibuf_full,obuf_full;
-
- BoardMemWinState ws=bmws_get();
-
- if(sc->status==DISABLED) {
- printf("dgb%d: polling of disabled board stopped\n",unit);
- return;
- }
-
- setwin(sc,0);
-
- head=sc->mailbox->ein;
- tail=sc->mailbox->eout;
-
- while(head!=tail) {
- if(head >= FEP_IMAX-FEP_ISTART
- || tail >= FEP_IMAX-FEP_ISTART
- || (head|tail) & 03 ) {
- printf("dgb%d: event queue's head or tail is wrong! hd=%d,tl=%d\n", unit,head,tail);
- break;
- }
-
- eventbuf=sc->vmem+tail+FEP_ISTART;
- pnum=eventbuf[0];
- event=eventbuf[1];
- mstat=eventbuf[2];
- lstat=eventbuf[3];
-
- port=&sc->ports[pnum];
- bc=port->brdchan;
- tp=&sc->ttys[pnum];
-
- if(pnum>=sc->numports || port->status==DISABLED) {
- printf("dgb%d: port%d: got event on nonexisting port\n",unit,pnum);
- } else if(port->used || port->wopeners>0 ) {
-
- int wrapmask=port->rxbufsize-1;
-
- if( !(event & ALL_IND) )
- printf("dgb%d: port%d: ? event 0x%x mstat 0x%x lstat 0x%x\n",
- unit, pnum, event, mstat, lstat);
-
- if(event & DATA_IND) {
- DPRINT3(DB_DATA,"dgb%d: port%d: DATA_IND\n",unit,pnum);
-
- rhead=bc->rin & wrapmask;
- rtail=bc->rout & wrapmask;
-
- if( !(tp->t_cflag & CREAD) || !port->used ) {
- bc->rout=rhead;
- goto end_of_data;
- }
-
- if(bc->orun) {
- printf("dgb%d: port%d: overrun\n", unit, pnum);
- bc->orun=0;
- }
-
- if(!(tp->t_state & TS_ISOPEN))
- goto end_of_data;
-
- for(ibuf_full=FALSE;rhead!=rtail && !ibuf_full;) {
- DPRINT5(DB_RXDATA,"dgb%d: port%d: p rx head=%d tail=%d\n",
- unit,pnum,rhead,rtail);
-
- if(rhead>rtail)
- size=rhead-rtail;
- else
- size=port->rxbufsize-rtail;
-
- ptr=port->rxptr+rtail;
-
-/* Helg: */
- if( tp->t_rawq.c_cc + size > DGB_IBUFSIZE ) {
- size=DGB_IBUFSIZE-tp->t_rawq.c_cc;
- DPRINT1(DB_RXDATA,"*");
- ibuf_full=TRUE;
- }
-
- if(size) {
- if (tp->t_state & TS_CAN_BYPASS_L_RINT) {
- DPRINT1(DB_RXDATA,"!");
- towin(sc,port->rxwin);
- tk_nin += size;
- tk_rawcc += size;
- tp->t_rawcc += size;
- b_to_q(ptr,size,&tp->t_rawq);
- setwin(sc,0);
- } else {
- int i=size;
- unsigned char chr;
- do {
- towin(sc,port->rxwin);
- chr= *ptr++;
- hidewin(sc);
- (*linesw[tp->t_line].l_rint)(chr, tp);
- } while (--i > 0 );
- setwin(sc,0);
- }
- }
- rtail= (rtail + size) & wrapmask;
- bc->rout=rtail;
- rhead=bc->rin & wrapmask;
- hidewin(sc);
- ttwakeup(tp);
- setwin(sc,0);
- }
- end_of_data: ;
- }
-
- if(event & MODEMCHG_IND) {
- DPRINT3(DB_MODEM,"dgb%d: port%d: MODEMCHG_IND\n",unit,pnum);
- port->imodem=mstat;
- if(mstat & port->dcd) {
- hidewin(sc);
- linesw[tp->t_line].l_modem(tp,1);
- setwin(sc,0);
- wakeup(TSA_CARR_ON(tp));
- } else {
- hidewin(sc);
- linesw[tp->t_line].l_modem(tp,0);
- setwin(sc,0);
- if( port->draining) {
- port->draining=0;
- wakeup(&port->draining);
- }
- }
- }
-
- if(event & BREAK_IND) {
- if((tp->t_state & TS_ISOPEN) && (tp->t_iflag & IGNBRK)) {
- DPRINT3(DB_BREAK,"dgb%d: port%d: BREAK_IND\n",unit,pnum);
- hidewin(sc);
- linesw[tp->t_line].l_rint(TTY_BI, tp);
- setwin(sc,0);
- }
- }
-
-/* Helg: with output flow control */
-
- if(event & (LOWTX_IND | EMPTYTX_IND) ) {
- DPRINT3(DB_TXDATA,"dgb%d: port%d: LOWTX_IND or EMPTYTX_IND\n",unit,pnum);
-
- if( (event & EMPTYTX_IND ) && tp->t_outq.c_cc==0
- && port->draining) {
- port->draining=0;
- wakeup(&port->draining);
- bc->ilow=0; bc->iempty=0;
- } else {
-
- int wrapmask=port->txbufsize-1;
-
- for(obuf_full=FALSE; tp->t_outq.c_cc!=0 && !obuf_full; ) {
- int s;
- /* add "last-minute" data to write buffer */
- if(!(tp->t_state & TS_BUSY)) {
- hidewin(sc);
-#ifndef TS_ASLEEP /* post 2.0.5 FreeBSD */
- ttwwakeup(tp);
-#else
- if(tp->t_outq.c_cc <= tp->t_lowat) {
- if(tp->t_state & TS_ASLEEP) {
- tp->t_state &= ~TS_ASLEEP;
- wakeup(TSA_OLOWAT(tp));
- }
- /* selwakeup(&tp->t_wsel); */
- }
-#endif
- setwin(sc,0);
- }
- s=spltty();
-
- whead=bc->tin & wrapmask;
- wtail=bc->tout & wrapmask;
-
- if(whead<wtail)
- size=wtail-whead-1;
- else {
- size=port->txbufsize-whead;
- if(wtail==0)
- size--;
- }
-
- if(size==0) {
- DPRINT5(DB_WR,"dgb: head=%d tail=%d size=%d full=%d\n",
- whead,wtail,size,obuf_full);
- bc->iempty=1; bc->ilow=1;
- obuf_full=TRUE;
- splx(s);
- break;
- }
-
- towin(sc,port->txwin);
-
- ocount=q_to_b(&tp->t_outq, port->txptr+whead, size);
- whead+=ocount;
-
- setwin(sc,0);
- bc->tin=whead;
- bc->tin=whead & wrapmask;
- splx(s);
- }
-
- if(obuf_full) {
- DPRINT1(DB_WR," +BUSY\n");
- tp->t_state|=TS_BUSY;
- } else {
- DPRINT1(DB_WR," -BUSY\n");
- hidewin(sc);
-#ifndef TS_ASLEEP /* post 2.0.5 FreeBSD */
- /* should clear TS_BUSY before ttwwakeup */
- if(tp->t_state & TS_BUSY) {
- tp->t_state &= ~TS_BUSY;
- linesw[tp->t_line].l_start(tp);
- ttwwakeup(tp);
- }
-#else
- if(tp->t_state & TS_ASLEEP) {
- tp->t_state &= ~TS_ASLEEP;
- wakeup(TSA_OLOWAT(tp));
- }
- tp->t_state &= ~TS_BUSY;
-#endif
- setwin(sc,0);
- }
- }
- }
- bc->idata=1; /* require event on incoming data */
-
- } else {
- bc=port->brdchan;
- DPRINT4(DB_EXCEPT,"dgb%d: port%d: got event 0x%x on closed port\n",
- unit,pnum,event);
- bc->rout=bc->rin;
- bc->idata=bc->iempty=bc->ilow=0;
- }
-
- tail= (tail+4) & (FEP_IMAX-FEP_ISTART-4);
- }
-
- sc->mailbox->eout=tail;
- bmws_set(ws);
-
- timeout(dgbpoll, unit_c, hz/POLLSPERSEC);
-}
-
-static int
-dgbioctl(dev, cmd, data, flag, td)
- dev_t dev;
- u_long cmd;
- caddr_t data;
- int flag;
- struct thread *td;
-{
- struct dgb_softc *sc;
- int unit, pnum;
- struct dgb_p *port;
- int mynor;
- struct tty *tp;
- volatile struct board_chan *bc;
- int error;
- int s,cs;
- int tiocm_xxx;
-
-#if defined(COMPAT_43) || defined(COMPAT_SUNOS)
- u_long oldcmd;
- struct termios term;
-#endif
-
- BoardMemWinState ws=bmws_get();
-
- mynor=minor(dev);
- unit=MINOR_TO_UNIT(mynor);
- pnum=MINOR_TO_PORT(mynor);
-
- sc=&dgb_softc[unit];
- port=&sc->ports[pnum];
- tp=&sc->ttys[pnum];
- bc=port->brdchan;
-
- if (mynor & CONTROL_MASK) {
- struct termios *ct;
-
- switch (mynor & CONTROL_MASK) {
- case CONTROL_INIT_STATE:
- ct = mynor & CALLOUT_MASK ? &port->it_out : &port->it_in;
- break;
- case CONTROL_LOCK_STATE:
- ct = mynor & CALLOUT_MASK ? &port->lt_out : &port->lt_in;
- break;
- default:
- return (ENODEV); /* /dev/nodev */
- }
- switch (cmd) {
- case TIOCSETA:
- error = suser(td);
- if (error != 0)
- return (error);
- *ct = *(struct termios *)data;
- return (0);
- case TIOCGETA:
- *(struct termios *)data = *ct;
- return (0);
- case TIOCGETD:
- *(int *)data = TTYDISC;
- return (0);
- case TIOCGWINSZ:
- bzero(data, sizeof(struct winsize));
- return (0);
- default:
- return (ENOTTY);
- }
- }
-
-#if defined(COMPAT_43) || defined(COMPAT_SUNOS)
- term = tp->t_termios;
- if (cmd == TIOCSETA || cmd == TIOCSETAW || cmd == TIOCSETAF) {
- DPRINT6(DB_PARAM,"dgb%d: port%d: dgbioctl-ISNOW c=0x%x i=0x%x l=0x%x\n",unit,pnum,term.c_cflag,term.c_iflag,term.c_lflag);
- }
- oldcmd = cmd;
- error = ttsetcompat(tp, &cmd, data, &term);
- if (error != 0)
- return (error);
- if (cmd != oldcmd)
- data = (caddr_t)&term;
-#endif
-
- if (cmd == TIOCSETA || cmd == TIOCSETAW || cmd == TIOCSETAF) {
- int cc;
- struct termios *dt = (struct termios *)data;
- struct termios *lt = mynor & CALLOUT_MASK
- ? &port->lt_out : &port->lt_in;
-
- DPRINT6(DB_PARAM,"dgb%d: port%d: dgbioctl-TOSET c=0x%x i=0x%x l=0x%x\n",unit,pnum,dt->c_cflag,dt->c_iflag,dt->c_lflag);
- dt->c_iflag = (tp->t_iflag & lt->c_iflag)
- | (dt->c_iflag & ~lt->c_iflag);
- dt->c_oflag = (tp->t_oflag & lt->c_oflag)
- | (dt->c_oflag & ~lt->c_oflag);
- dt->c_cflag = (tp->t_cflag & lt->c_cflag)
- | (dt->c_cflag & ~lt->c_cflag);
- dt->c_lflag = (tp->t_lflag & lt->c_lflag)
- | (dt->c_lflag & ~lt->c_lflag);
- for (cc = 0; cc < NCCS; ++cc)
- if (lt->c_cc[cc] != 0)
- dt->c_cc[cc] = tp->t_cc[cc];
- if (lt->c_ispeed != 0)
- dt->c_ispeed = tp->t_ispeed;
- if (lt->c_ospeed != 0)
- dt->c_ospeed = tp->t_ospeed;
- }
-
- if(cmd==TIOCSTOP) {
- cs=splclock();
- setwin(sc,0);
- fepcmd(port, PAUSETX, 0, 0, 0, 0);
- bmws_set(ws);
- splx(cs);
- return 0;
- } else if(cmd==TIOCSTART) {
- cs=splclock();
- setwin(sc,0);
- fepcmd(port, RESUMETX, 0, 0, 0, 0);
- bmws_set(ws);
- splx(cs);
- return 0;
- }
-
- if(cmd==TIOCSETAW || cmd==TIOCSETAF)
- port->mustdrain=1;
-
- error = linesw[tp->t_line].l_ioctl(tp, cmd, data, flag, td);
- if (error != ENOIOCTL)
- return error;
- s = spltty();
- error = ttioctl(tp, cmd, data, flag);
- disc_optim(tp,&tp->t_termios);
- port->mustdrain=0;
- if (error != ENOIOCTL) {
- splx(s);
- if (cmd == TIOCSETA || cmd == TIOCSETAW || cmd == TIOCSETAF) {
- DPRINT6(DB_PARAM,"dgb%d: port%d: dgbioctl-RES c=0x%x i=0x%x l=0x%x\n",unit,pnum,tp->t_cflag,tp->t_iflag,tp->t_lflag);
- }
- return error;
- }
-
- switch (cmd) {
- case TIOCSBRK:
-/* Helg: commented */
-/* error=dgbdrain(port);*/
-
- if(error!=0) {
- splx(s);
- return error;
- }
-
- cs=splclock();
- setwin(sc,0);
-
- /* now it sends 250 millisecond break because I don't know */
- /* how to send an infinite break */
-
- fepcmd(port, SENDBREAK, 250, 0, 10, 0);
- hidewin(sc);
- splx(cs);
- break;
- case TIOCCBRK:
- /* now it's empty */
- break;
- case TIOCSDTR:
- DPRINT3(DB_MODEM,"dgb%d: port%d: set DTR\n",unit,pnum);
- port->omodem |= DTR;
- cs=splclock();
- setwin(sc,0);
- fepcmd(port, SETMODEM, port->omodem, RTS, 0, 1);
-
- if( !(bc->mstat & DTR) ) {
- DPRINT3(DB_MODEM,"dgb%d: port%d: DTR is off\n",unit,pnum);
- }
-
- hidewin(sc);
- splx(cs);
- break;
- case TIOCCDTR:
- DPRINT3(DB_MODEM,"dgb%d: port%d: reset DTR\n",unit,pnum);
- port->omodem &= ~DTR;
- cs=splclock();
- setwin(sc,0);
- fepcmd(port, SETMODEM, port->omodem, RTS|DTR, 0, 1);
-
- if( bc->mstat & DTR ) {
- DPRINT3(DB_MODEM,"dgb%d: port%d: DTR is on\n",unit,pnum);
- }
-
- hidewin(sc);
- splx(cs);
- break;
- case TIOCMSET:
- if(*(int *)data & TIOCM_DTR)
- port->omodem |=DTR;
- else
- port->omodem &=~DTR;
-
- if(*(int *)data & TIOCM_RTS)
- port->omodem |=RTS;
- else
- port->omodem &=~RTS;
-
- cs=splclock();
- setwin(sc,0);
- fepcmd(port, SETMODEM, port->omodem, RTS|DTR, 0, 1);
- hidewin(sc);
- splx(cs);
- break;
- case TIOCMBIS:
- if(*(int *)data & TIOCM_DTR)
- port->omodem |=DTR;
-
- if(*(int *)data & TIOCM_RTS)
- port->omodem |=RTS;
-
- cs=splclock();
- setwin(sc,0);
- fepcmd(port, SETMODEM, port->omodem, RTS|DTR, 0, 1);
- hidewin(sc);
- splx(cs);
- break;
- case TIOCMBIC:
- if(*(int *)data & TIOCM_DTR)
- port->omodem &=~DTR;
-
- if(*(int *)data & TIOCM_RTS)
- port->omodem &=~RTS;
-
- cs=splclock();
- setwin(sc,0);
- fepcmd(port, SETMODEM, port->omodem, RTS|DTR, 0, 1);
- hidewin(sc);
- splx(cs);
- break;
- case TIOCMGET:
- setwin(sc,0);
- port->imodem=bc->mstat;
- hidewin(sc);
-
- tiocm_xxx = TIOCM_LE; /* XXX - always enabled while open */
-
- DPRINT3(DB_MODEM,"dgb%d: port%d: modem stat -- ",unit,pnum);
-
- if (port->imodem & DTR) {
- DPRINT1(DB_MODEM,"DTR ");
- tiocm_xxx |= TIOCM_DTR;
- }
- if (port->imodem & RTS) {
- DPRINT1(DB_MODEM,"RTS ");
- tiocm_xxx |= TIOCM_RTS;
- }
- if (port->imodem & CTS) {
- DPRINT1(DB_MODEM,"CTS ");
- tiocm_xxx |= TIOCM_CTS;
- }
- if (port->imodem & port->dcd) {
- DPRINT1(DB_MODEM,"DCD ");
- tiocm_xxx |= TIOCM_CD;
- }
- if (port->imodem & port->dsr) {
- DPRINT1(DB_MODEM,"DSR ");
- tiocm_xxx |= TIOCM_DSR;
- }
- if (port->imodem & RI) {
- DPRINT1(DB_MODEM,"RI ");
- tiocm_xxx |= TIOCM_RI;
- }
- *(int *)data = tiocm_xxx;
- DPRINT1(DB_MODEM,"--\n");
- break;
- case TIOCMSDTRWAIT:
- /* must be root since the wait applies to following logins */
- error = suser(td);
- if (error != 0) {
- splx(s);
- return (error);
- }
- port->close_delay = *(int *)data * hz / 100;
- break;
- case TIOCMGDTRWAIT:
- *(int *)data = port->close_delay * 100 / hz;
- break;
- case TIOCTIMESTAMP:
- port->do_timestamp = TRUE;
- *(struct timeval *)data = port->timestamp;
- break;
- case TIOCDCDTIMESTAMP:
- port->do_dcd_timestamp = TRUE;
- *(struct timeval *)data = port->dcd_timestamp;
- break;
- default:
- bmws_set(ws);
- splx(s);
- return ENOTTY;
- }
- bmws_set(ws);
- splx(s);
-
- return 0;
-}
-
-static void
-wakeflush(p)
- void *p;
-{
- struct dgb_p *port=p;
-
- wakeup(&port->draining);
-}
-
-/* wait for the output to drain */
-
-static int
-dgbdrain(port)
- struct dgb_p *port;
-{
- struct dgb_softc *sc=&dgb_softc[port->unit];
- volatile struct board_chan *bc=port->brdchan;
- int error;
- int head, tail;
-
- BoardMemWinState ws=bmws_get();
-
- setwin(sc,0);
-
- bc->iempty=1;
- tail=bc->tout;
- head=bc->tin;
-
- while(tail!=head) {
- DPRINT5(DB_WR,"dgb%d: port%d: drain: head=%d tail=%d\n",
- port->unit, port->pnum, head, tail);
-
- hidewin(sc);
- port->draining=1;
- timeout(wakeflush,port, hz);
- error=tsleep(&port->draining, TTIPRI | PCATCH, "dgdrn", 0);
- port->draining=0;
- setwin(sc,0);
-
- if (error != 0) {
- DPRINT4(DB_WR,"dgb%d: port%d: tsleep(dgdrn) error=%d\n",
- port->unit,port->pnum,error);
-
- bc->iempty=0;
- bmws_set(ws);
- return error;
- }
-
- tail=bc->tout;
- head=bc->tin;
- }
- DPRINT5(DB_WR,"dgb%d: port%d: drain: head=%d tail=%d\n",
- port->unit, port->pnum, head, tail);
- bmws_set(ws);
- return 0;
-}
-
-/* wait for the output to drain */
-/* or simply clear the buffer it it's stopped */
-
-static void
-dgb_drain_or_flush(port)
- struct dgb_p *port;
-{
- struct tty *tp=port->tty;
- struct dgb_softc *sc=&dgb_softc[port->unit];
- volatile struct board_chan *bc=port->brdchan;
- int error;
- int lasttail;
- int head, tail;
-
- setwin(sc,0);
-
- lasttail=-1;
- bc->iempty=1;
- tail=bc->tout;
- head=bc->tin;
-
- while(tail!=head /* && tail!=lasttail */ ) {
- DPRINT5(DB_WR,"dgb%d: port%d: flush: head=%d tail=%d\n",
- port->unit, port->pnum, head, tail);
-
- /* if there is no carrier simply clean the buffer */
- if( !(tp->t_state & TS_CARR_ON) ) {
- bc->tout=bc->tin=0;
- bc->iempty=0;
- hidewin(sc);
- return;
- }
-
- hidewin(sc);
- port->draining=1;
- timeout(wakeflush,port, hz);
- error=tsleep(&port->draining, TTIPRI | PCATCH, "dgfls", 0);
- port->draining=0;
- setwin(sc,0);
-
- if (error != 0) {
- DPRINT4(DB_WR,"dgb%d: port%d: tsleep(dgfls) error=%d\n",
- port->unit,port->pnum,error);
-
- /* silently clean the buffer */
-
- bc->tout=bc->tin=0;
- bc->iempty=0;
- hidewin(sc);
- return;
- }
-
- lasttail=tail;
- tail=bc->tout;
- head=bc->tin;
- }
- hidewin(sc);
- DPRINT5(DB_WR,"dgb%d: port%d: flush: head=%d tail=%d\n",
- port->unit, port->pnum, head, tail);
-}
-
-static int
-dgbparam(tp, t)
- struct tty *tp;
- struct termios *t;
-{
- int unit=MINOR_TO_UNIT(minor(tp->t_dev));
- int pnum=MINOR_TO_PORT(minor(tp->t_dev));
- struct dgb_softc *sc=&dgb_softc[unit];
- struct dgb_p *port=&sc->ports[pnum];
- volatile struct board_chan *bc=port->brdchan;
- int cflag;
- int head;
- int mval;
- int iflag;
- int hflow;
- int cs;
-
- BoardMemWinState ws=bmws_get();
-
- DPRINT6(DB_PARAM,"dgb%d: port%d: dgbparm c=0x%x i=0x%x l=0x%x\n",unit,pnum,t->c_cflag,t->c_iflag,t->c_lflag);
-
- if(port->mustdrain) {
- DPRINT3(DB_PARAM,"dgb%d: port%d: must call dgbdrain()\n",unit,pnum);
- dgbdrain(port);
- }
-
- cflag=ttspeedtab(t->c_ospeed, dgbspeedtab);
-
- if (t->c_ispeed == 0)
- t->c_ispeed = t->c_ospeed;
-
- if (cflag < 0 /* || cflag > 0 && t->c_ispeed != t->c_ospeed */) {
- DPRINT4(DB_PARAM,"dgb%d: port%d: invalid cflag=0%o\n",unit,pnum,cflag);
- return (EINVAL);
- }
-
- cs=splclock();
- setwin(sc,0);
-
- if(cflag==0) { /* hangup */
- DPRINT3(DB_PARAM,"dgb%d: port%d: hangup\n",unit,pnum);
- head=bc->rin;
- bc->rout=head;
- head=bc->tin;
- fepcmd(port, STOUT, (unsigned)head, 0, 0, 0);
- mval= port->omodem & ~(DTR|RTS);
- } else {
- cflag |= dgbflags(dgb_cflags, t->c_cflag);
-
- if(cflag!=port->fepcflag) {
- port->fepcflag=cflag;
- DPRINT5(DB_PARAM,"dgb%d: port%d: set cflag=0x%x c=0x%x\n",
- unit,pnum,cflag,t->c_cflag&~CRTSCTS);
- fepcmd(port, SETCTRLFLAGS, (unsigned)cflag, 0, 0, 0);
- }
- mval= port->omodem | (DTR|RTS);
- }
-
- iflag=dgbflags(dgb_iflags, t->c_iflag);
- if(iflag!=port->fepiflag) {
- port->fepiflag=iflag;
- DPRINT5(DB_PARAM,"dgb%d: port%d: set iflag=0x%x c=0x%x\n",unit,pnum,iflag,t->c_iflag);
- fepcmd(port, SETIFLAGS, (unsigned)iflag, 0, 0, 0);
- }
-
- bc->mint=port->dcd;
-
- hflow=dgbflags(dgb_flow, t->c_cflag);
- if(hflow!=port->hflow) {
- port->hflow=hflow;
- DPRINT5(DB_PARAM,"dgb%d: port%d: set hflow=0x%x f=0x%x\n",unit,pnum,hflow,t->c_cflag&CRTSCTS);
- fepcmd(port, SETHFLOW, (unsigned)hflow, 0xff, 0, 1);
- }
-
- if(port->omodem != mval) {
- DPRINT5(DB_PARAM,"dgb%d: port%d: setting modem parameters 0x%x was 0x%x\n",
- unit,pnum,mval,port->omodem);
- port->omodem=mval;
- fepcmd(port, SETMODEM, (unsigned)mval, RTS|DTR, 0, 1);
- }
-
- if(port->fepstartc!=t->c_cc[VSTART] || port->fepstopc!=t->c_cc[VSTOP]) {
- DPRINT5(DB_PARAM,"dgb%d: port%d: set startc=%d, stopc=%d\n",unit,pnum,t->c_cc[VSTART],t->c_cc[VSTOP]);
- port->fepstartc=t->c_cc[VSTART];
- port->fepstopc=t->c_cc[VSTOP];
- fepcmd(port, SONOFFC, port->fepstartc, port->fepstopc, 0, 1);
- }
-
- bmws_set(ws);
- splx(cs);
-
- return 0;
-
-}
-
-static void
-dgbstart(tp)
- struct tty *tp;
-{
- int unit;
- int pnum;
- struct dgb_p *port;
- struct dgb_softc *sc;
- volatile struct board_chan *bc;
- int head, tail;
- int size, ocount;
- int s;
- int wmask;
-
- BoardMemWinState ws=bmws_get();
-
- unit=MINOR_TO_UNIT(minor(tp->t_dev));
- pnum=MINOR_TO_PORT(minor(tp->t_dev));
- sc=&dgb_softc[unit];
- port=&sc->ports[pnum];
- bc=port->brdchan;
-
- wmask=port->txbufsize-1;
-
- s=spltty();
-
- while( tp->t_outq.c_cc!=0 ) {
- int cs;
-#ifndef TS_ASLEEP /* post 2.0.5 FreeBSD */
- ttwwakeup(tp);
-#else
- if(tp->t_outq.c_cc <= tp->t_lowat) {
- if(tp->t_state & TS_ASLEEP) {
- tp->t_state &= ~TS_ASLEEP;
- wakeup(TSA_OLOWAT(tp));
- }
- /*selwakeup(&tp->t_wsel);*/
- }
-#endif
- cs=splclock();
- setwin(sc,0);
-
- head=bc->tin & wmask;
-
- do { tail=bc->tout; } while (tail != bc->tout);
- tail=bc->tout & wmask;
-
- DPRINT5(DB_WR,"dgb%d: port%d: s tx head=%d tail=%d\n",unit,pnum,head,tail);
-
-#ifdef LEAVE_FREE_CHARS
- if(tail>head) {
- size=tail-head-LEAVE_FREE_CHARS;
- if (size <0)
- size=0;
- else {
- size=port->txbufsize-head;
- if(tail+port->txbufsize < head)
- size=0;
- }
- }
-#else
- if(tail>head)
- size=tail-head-1;
- else {
- size=port->txbufsize-head/*-1*/;
- if(tail==0)
- size--;
- }
-#endif
-
- if(size==0) {
- bc->iempty=1; bc->ilow=1;
- splx(cs);
- bmws_set(ws);
- tp->t_state|=TS_BUSY;
- splx(s);
- return;
- }
-
- towin(sc,port->txwin);
-
- ocount=q_to_b(&tp->t_outq, port->txptr+head, size);
- head+=ocount;
- if(head>=port->txbufsize)
- head-=port->txbufsize;
-
- setwin(sc,0);
- bc->tin=head;
-
- DPRINT5(DB_WR,"dgb%d: port%d: tx avail=%d count=%d\n",unit,pnum,size,ocount);
- hidewin(sc);
- splx(cs);
- }
-
- bmws_set(ws);
- splx(s);
-
-#ifndef TS_ASLEEP /* post 2.0.5 FreeBSD */
- if(tp->t_state & TS_BUSY) {
- tp->t_state&=~TS_BUSY;
- linesw[tp->t_line].l_start(tp);
- ttwwakeup(tp);
- }
-#else
- if(tp->t_state & TS_ASLEEP) {
- tp->t_state &= ~TS_ASLEEP;
- wakeup(TSA_OLOWAT(tp));
- }
- tp->t_state&=~TS_BUSY;
-#endif
-}
-
-static void
-dgbstop(tp, rw)
- struct tty *tp;
- int rw;
-{
- int unit;
- int pnum;
- struct dgb_p *port;
- struct dgb_softc *sc;
- volatile struct board_chan *bc;
- int s;
-
- BoardMemWinState ws=bmws_get();
-
- unit=MINOR_TO_UNIT(minor(tp->t_dev));
- pnum=MINOR_TO_PORT(minor(tp->t_dev));
-
- sc=&dgb_softc[unit];
- port=&sc->ports[pnum];
- bc=port->brdchan;
-
- DPRINT3(DB_WR,"dgb%d: port%d: stop\n",port->unit, port->pnum);
-
- s = spltty();
- setwin(sc,0);
-
- if (rw & FWRITE) {
- /* clear output queue */
- bc->tout=bc->tin=0;
- bc->ilow=0;bc->iempty=0;
- }
- if (rw & FREAD) {
- /* clear input queue */
- bc->rout=bc->rin;
- bc->idata=1;
- }
- hidewin(sc);
- bmws_set(ws);
- splx(s);
- dgbstart(tp);
-}
-
-static void
-fepcmd(port, cmd, op1, op2, ncmds, bytecmd)
- struct dgb_p *port;
- unsigned cmd, op1, op2, ncmds, bytecmd;
-{
- struct dgb_softc *sc=&dgb_softc[port->unit];
- u_char *mem=sc->vmem;
- unsigned tail, head;
- int count, n;
-
- if(port->status==DISABLED) {
- printf("dgb%d: port%d: FEP command on disabled port\n",
- port->unit, port->pnum);
- return;
- }
-
- /* setwin(sc,0); Require this to be set by caller */
- head=sc->mailbox->cin;
-
- if(head>=(FEP_CMAX-FEP_CSTART) || (head & 3)) {
- printf("dgb%d: port%d: wrong pointer head of command queue : 0x%x\n",
- port->unit, port->pnum, head);
- return;
- }
-
- mem[head+FEP_CSTART+0]=cmd;
- mem[head+FEP_CSTART+1]=port->pnum;
- if(bytecmd) {
- mem[head+FEP_CSTART+2]=op1;
- mem[head+FEP_CSTART+3]=op2;
- } else {
- mem[head+FEP_CSTART+2]=op1&0xff;
- mem[head+FEP_CSTART+3]=(op1>>8)&0xff;
- }
-
- DPRINT7(DB_FEP,"dgb%d: port%d: %s cmd=0x%x op1=0x%x op2=0x%x\n", port->unit, port->pnum,
- (bytecmd)?"byte":"word", cmd, mem[head+FEP_CSTART+2], mem[head+FEP_CSTART+3]);
-
- head=(head+4) & (FEP_CMAX-FEP_CSTART-4);
- sc->mailbox->cin=head;
-
- count=FEPTIMEOUT;
-
- while (count-- != 0) {
- head=sc->mailbox->cin;
- tail=sc->mailbox->cout;
-
- n = (head-tail) & (FEP_CMAX-FEP_CSTART-4);
- if(n <= ncmds * (sizeof(u_short)*4))
- return;
- }
- printf("dgb%d(%d): timeout on FEP cmd=0x%x\n", port->unit, port->pnum, cmd);
-}
-
-static void
-disc_optim(tp, t)
- struct tty *tp;
- struct termios *t;
-{
- if (!(t->c_iflag & (ICRNL | IGNCR | IMAXBEL | INLCR | ISTRIP | IXON))
- && (!(t->c_iflag & BRKINT) || (t->c_iflag & IGNBRK))
- && (!(t->c_iflag & PARMRK)
- || (t->c_iflag & (IGNPAR | IGNBRK)) == (IGNPAR | IGNBRK))
- && !(t->c_lflag & (ECHO | ICANON | IEXTEN | ISIG | PENDIN))
- && linesw[tp->t_line].l_rint == ttyinput)
- tp->t_state |= TS_CAN_BYPASS_L_RINT;
- else
- tp->t_state &= ~TS_CAN_BYPASS_L_RINT;
-}
diff --git a/sys/dev/dgb/dgbios.h b/sys/dev/dgb/dgbios.h
deleted file mode 100644
index 02dd6bb..0000000
--- a/sys/dev/dgb/dgbios.h
+++ /dev/null
@@ -1,175 +0,0 @@
-static unsigned char pcxx_bios[] = {
- 0x28,0x43,0x29,0x20,0x43,0x6f,0x70,0x79,0x72,0x69,0x67,0x68,
- 0x74,0x20,0x31,0x39,0x39,0x34,0x2c,0x20,0x44,0x69,0x67,0x69,
- 0x42,0x6f,0x61,0x72,0x64,0x20,0x49,0x6e,0x63,0x2e,0x00,0x00,
- 0x8a,0xf8,0x8a,0xf8,0x15,0xf9,0x8a,0xf8,0x8a,0xf8,0x8a,0xf8,
- 0x8a,0xf8,0x8a,0xf8,0xbc,0xf8,0x8a,0xf8,0x96,0xf8,0x96,0xf8,
- 0x96,0xf8,0x96,0xf8,0x96,0xf8,0x96,0xf8,0x8a,0xf8,0x8a,0xf8,
- 0x96,0xf8,0x96,0xf8,0x8a,0xf8,0xad,0xf8,0xb0,0xf8,0x8a,0xf8,
- 0x8a,0xf8,0x8a,0xf8,0x8a,0xf8,0x8a,0xf8,0x8a,0xf8,0x8a,0xf8,
- 0x8a,0xf8,0x8a,0xf8,0x8a,0xf8,0x04,0x02,0x00,0x02,0x14,0x02,
- 0x10,0x02,0x24,0x02,0x20,0x02,0x34,0x02,0x30,0x02,0x44,0x02,
- 0x40,0x02,0x54,0x02,0x50,0x02,0x64,0x02,0x60,0x02,0x74,0x02,
- 0x70,0x02,0x04,0x01,0x00,0x01,0x1e,0x2e,0x8e,0x1e,0x22,0xf8,
- 0xfe,0x06,0x70,0x00,0x1f,0xcf,0x1e,0x50,0x52,0x2e,0x8e,0x1e,
- 0x22,0xf8,0xfe,0x06,0x71,0x00,0xb8,0x00,0x80,0xba,0x22,0xff,
- 0xef,0x5a,0x58,0x1f,0xcf,0xb4,0x80,0xcf,0x1e,0x2e,0x8e,0x1e,
- 0x22,0xf8,0xfe,0x06,0x2b,0x00,0x1f,0xcf,0x1e,0x52,0x50,0x2e,
- 0x8e,0x1e,0x22,0xf8,0xcd,0x16,0xfe,0x06,0x2a,0x00,0x80,0x3e,
- 0x2a,0x00,0x12,0x72,0x39,0xc6,0x06,0x2a,0x00,0x00,0xfe,0x06,
- 0x29,0x00,0x80,0x3e,0x29,0x00,0x3c,0x72,0x29,0xc6,0x06,0x29,
- 0x00,0x00,0xfe,0x06,0x28,0x00,0x80,0x3e,0x28,0x00,0x3c,0x72,
- 0x19,0xc6,0x06,0x28,0x00,0x00,0xfe,0x06,0x27,0x00,0x80,0x3e,
- 0x27,0x00,0x18,0x72,0x09,0xc6,0x06,0x27,0x00,0x00,0xff,0x06,
- 0x25,0x00,0xba,0x22,0xff,0xb8,0x00,0x80,0xef,0x58,0x5a,0x1f,
- 0xcf,0x60,0x1e,0x06,0xfc,0x2e,0x8e,0x06,0x22,0xf8,0x2e,0x8e,
- 0x1e,0x22,0xf8,0x8d,0x36,0x40,0x00,0xad,0x3c,0x3f,0x7f,0x22,
- 0x3c,0x1f,0x7f,0x22,0x32,0xe4,0xd1,0xe0,0x3d,0x16,0x00,0x90,
- 0x73,0x14,0xbb,0x56,0xf9,0x03,0xd8,0x2e,0xff,0x17,0x8d,0x36,
- 0x40,0x00,0xb0,0x00,0x89,0x04,0x07,0x1f,0x61,0xcf,0xb4,0x80,
- 0xeb,0xf0,0xcd,0x15,0xeb,0xec,0x6c,0xf9,0x79,0xf9,0xb9,0xf9,
- 0xd3,0xf9,0xd8,0xf9,0xe1,0xf9,0xe9,0xf9,0xf2,0xf9,0xfa,0xf9,
- 0xfd,0xf9,0x2a,0xfa,0xe4,0x00,0x24,0xf7,0xe6,0x00,0x0c,0x08,
- 0xe6,0x00,0xb4,0x00,0xc3,0x1e,0xad,0x8b,0xd8,0xad,0x8e,0xdb,
- 0x8b,0xf0,0x33,0xdb,0x8b,0x07,0x3d,0x4f,0x53,0x75,0x2a,0x8a,
- 0x47,0x02,0x32,0xe4,0x86,0xc4,0x8b,0xc8,0x32,0xc0,0x02,0x07,
- 0x43,0xe2,0xfb,0x0a,0xc0,0x75,0x16,0x8c,0xd9,0x1f,0x89,0x0e,
- 0x2e,0x00,0x89,0x36,0x2c,0x00,0x8d,0x1e,0x02,0x00,0xc7,0x07,
- 0x45,0x4d,0x32,0xe4,0xc3,0x1f,0xb4,0x80,0xc3,0xad,0x8b,0xd8,
- 0xad,0x8b,0xd0,0xad,0x8e,0xc0,0xad,0x8b,0xf8,0xad,0x8b,0xc8,
- 0x8b,0xf2,0x1e,0x8e,0xdb,0xf3,0xa4,0x1f,0x32,0xe4,0xc3,0xea,
- 0xf0,0xff,0x00,0xf0,0xad,0x8b,0xd0,0xec,0x88,0x04,0x32,0xe4,
- 0xc3,0xad,0x8b,0xd0,0xac,0xee,0x32,0xe4,0xc3,0xad,0x8b,0xd0,
- 0xed,0x89,0x04,0x32,0xe4,0xc3,0xad,0x8b,0xd0,0xad,0xef,0x32,
- 0xe4,0xc3,0xb4,0x80,0xc3,0xac,0x3c,0x12,0x7f,0x25,0xfe,0xc8,
- 0x32,0xe4,0xd1,0xe0,0x8d,0x1e,0x66,0xf8,0x03,0xd8,0x2e,0x8b,
- 0x17,0xec,0xac,0x3c,0x0f,0x7f,0x10,0x3c,0x00,0x74,0x03,0xee,
- 0x90,0x90,0xec,0x8b,0xfe,0x1e,0x07,0xaa,0x32,0xe4,0xc3,0xb4,
- 0x80,0xc3,0xac,0x3c,0x12,0x7f,0x1f,0xfe,0xc8,0x32,0xe4,0xd1,
- 0xe0,0x8d,0x1e,0x66,0xf8,0x03,0xd8,0x2e,0x8b,0x17,0xec,0xac,
- 0x3c,0x0f,0x7f,0x0a,0x3c,0x00,0x74,0x01,0xee,0xac,0xee,0x32,
- 0xe4,0xc3,0xb4,0x80,0xc3,0xfc,0x8e,0xc0,0xb8,0xff,0xff,0x8b,
- 0xcb,0x33,0xff,0xf3,0xab,0x8b,0xcb,0x33,0xff,0xf3,0xaf,0xe3,
- 0x01,0xc3,0x8b,0xcb,0xbf,0x00,0x00,0x26,0x89,0x3d,0x83,0xc7,
- 0x02,0xe2,0xf8,0xbe,0x00,0x00,0x8b,0xcb,0x26,0x8b,0x3c,0x3b,
- 0xfe,0x74,0x01,0xc3,0x83,0xc6,0x02,0x83,0xc7,0x02,0xe2,0xf0,
- 0x33,0xc0,0x8b,0xcb,0x33,0xff,0xf3,0xab,0x8b,0xcb,0x33,0xff,
- 0xf3,0xaf,0xc3,0x32,0xc0,0x26,0x80,0x3e,0x23,0x00,0x00,0x74,
- 0x02,0x0c,0x01,0x26,0xf7,0x06,0x20,0x00,0x0f,0x00,0x74,0x02,
- 0x0c,0x02,0x26,0xf7,0x06,0x20,0x00,0xf0,0x00,0x74,0x02,0x0c,
- 0x04,0x26,0xf7,0x06,0x20,0x00,0x00,0xff,0x74,0x02,0x0c,0x08,
- 0x26,0xa2,0x24,0x00,0xb8,0x00,0x40,0xba,0x5e,0xff,0xef,0xba,
- 0x66,0xff,0xef,0xba,0x52,0xff,0xb8,0x63,0x0e,0xef,0xba,0x56,
- 0xff,0xb8,0x05,0xe0,0xef,0xba,0x28,0xff,0xb8,0xfc,0x00,0xef,
- 0xb8,0x00,0x02,0x26,0xa3,0x2e,0x00,0xb8,0x04,0x00,0x26,0xa3,
- 0x2c,0x00,0xb0,0xc3,0xe6,0x08,0x8a,0xd8,0xe4,0x08,0x3a,0xc3,
- 0x75,0x06,0x26,0xc6,0x06,0xb4,0x00,0x01,0xb0,0x00,0xe6,0x00,
- 0xfc,0x8d,0x3e,0x00,0x00,0xb8,0x47,0x44,0xab,0xb8,0xff,0xff,
- 0xab,0xab,0xab,0xb8,0x42,0x49,0xab,0xb8,0x4f,0x53,0xab,0xb8,
- 0x58,0x69,0x26,0x80,0x3e,0x10,0x00,0x04,0x74,0x0e,0xb8,0x58,
- 0x65,0x26,0x80,0x3e,0x10,0x00,0x03,0x74,0x03,0xb8,0x58,0x74,
- 0xab,0x8d,0x36,0xfe,0xff,0x8a,0x04,0x8d,0x36,0xff,0xff,0x8a,
- 0x24,0xab,0xfb,0x26,0x81,0x0e,0x12,0x00,0x00,0x08,0x06,0x1f,
- 0xa1,0x00,0x00,0x8b,0x1e,0x02,0x00,0x3d,0x44,0x47,0x75,0x0b,
- 0x26,0x81,0x0e,0x12,0x00,0x00,0x10,0xff,0x2e,0x2c,0x00,0x81,
- 0xfb,0x45,0x4d,0x75,0xe3,0x26,0x81,0x0e,0x12,0x00,0x00,0x20,
- 0xff,0x2e,0x2c,0x00,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
- 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
- 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
- 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
- 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
- 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
- 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
- 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
- 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
- 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
- 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
- 0xff,0xff,0xff,0xff,0xfa,0xba,0xa8,0xff,0xb8,0xba,0x81,0xef,
- 0xba,0xa4,0xff,0xb8,0x3a,0x00,0xef,0x90,0xe4,0x00,0xa8,0x60,
- 0x75,0x0c,0x24,0x06,0x74,0x14,0x3c,0x02,0x74,0x1c,0x3c,0x04,
- 0x74,0x24,0xbb,0x38,0xc0,0xbe,0xf8,0x81,0xbf,0xba,0xa0,0xeb,
- 0x22,0x90,0xbb,0x38,0xf0,0xbe,0xf8,0x41,0xbf,0xba,0x81,0xeb,
- 0x16,0x90,0xbb,0x38,0xf0,0xbe,0xf8,0xe1,0xbf,0xba,0x88,0xeb,
- 0x0a,0x90,0xbb,0x38,0xc0,0xbe,0xf8,0x41,0xbf,0xba,0x81,0xba,
- 0xa0,0xff,0x8b,0xc3,0xef,0xba,0xa2,0xff,0xb8,0xf8,0x0f,0xef,
- 0xba,0xa6,0xff,0x8b,0xc6,0xef,0xba,0xa8,0xff,0x8b,0xc7,0xef,
- 0x8c,0xc8,0x8e,0xd8,0xe4,0x00,0x24,0x06,0x74,0x17,0xbb,0x00,
- 0x80,0xbd,0xc0,0xe0,0x3c,0x02,0x74,0x5a,0xbd,0xc0,0xc0,0x3c,
- 0x04,0x74,0x53,0xbd,0xc0,0x80,0xeb,0x4e,0x90,0xb9,0x08,0x00,
- 0xb8,0x00,0x80,0x8e,0xc0,0x26,0xa3,0x00,0x00,0x05,0x00,0x10,
- 0xe2,0xf5,0xbd,0xc0,0xf0,0xbb,0x00,0x7c,0xb8,0x00,0xe0,0x8e,
- 0xc0,0x26,0x8b,0x0e,0x00,0x00,0x3b,0xc8,0x75,0x28,0xbb,0x00,
- 0x80,0xbd,0xc0,0xe0,0xb8,0x00,0xc0,0x8e,0xc0,0x26,0x8b,0x0e,
- 0x00,0x00,0x3b,0xc8,0x75,0x14,0xbd,0xc0,0xc0,0xb8,0x00,0x80,
- 0x8e,0xc0,0x26,0x8b,0x0e,0x00,0x00,0x3b,0xc8,0x75,0x03,0xbd,
- 0xc0,0x80,0x8c,0xc8,0x8e,0xd0,0xbc,0xed,0xfc,0x8b,0xc5,0x25,
- 0x00,0xf0,0xe9,0x6c,0xfd,0xb4,0x00,0x74,0x06,0xb4,0xff,0xeb,
- 0x02,0xe5,0xfc,0x8e,0xc5,0x2e,0x89,0x2e,0x22,0xf8,0xe4,0x00,
- 0x24,0x16,0x26,0xa2,0x11,0x00,0x26,0x83,0x0e,0x12,0x00,0x01,
- 0x80,0xfc,0x00,0x74,0x06,0x26,0x83,0x0e,0x14,0x00,0x01,0x26,
- 0xc7,0x06,0x18,0x00,0x40,0x00,0x26,0xc6,0x06,0x10,0x00,0x03,
- 0xa8,0x10,0x74,0x06,0x26,0xc6,0x06,0x10,0x00,0x04,0xb8,0x00,
- 0x00,0x8e,0xc0,0xb8,0xaa,0x55,0x26,0xa3,0x00,0x00,0x26,0xc7,
- 0x06,0x02,0x00,0x00,0x00,0x26,0xc7,0x06,0x04,0x00,0x00,0x00,
- 0x8b,0xcd,0x81,0xe1,0x00,0xf0,0x8e,0xc1,0x26,0x8b,0x1e,0x00,
- 0x00,0x3b,0xc3,0x75,0x13,0x8e,0xc5,0x26,0xc6,0x06,0x10,0x00,
- 0x05,0xb8,0x40,0x00,0x8e,0xd0,0xbc,0x00,0x04,0xe9,0x99,0x00,
- 0x8c,0xc8,0x8e,0xd0,0xbc,0x7c,0xfd,0xb8,0x00,0x00,0xbb,0x00,
- 0x20,0xe9,0xdd,0xfc,0xb4,0x00,0x74,0x06,0xb4,0xff,0xeb,0x02,
- 0x74,0xfd,0x8e,0xc5,0x80,0xfc,0x00,0x74,0x08,0x26,0x83,0x0e,
- 0x14,0x00,0x02,0xeb,0x0d,0x26,0xc7,0x06,0x16,0x00,0x10,0x00,
- 0x26,0x83,0x0e,0x12,0x00,0x02,0xb8,0x40,0x00,0x8e,0xd0,0xbc,
- 0x00,0x04,0xe4,0x00,0xa8,0x60,0x75,0x07,0xba,0xa2,0xff,0xb8,
- 0xfc,0x0f,0xef,0xb8,0x00,0x04,0x8e,0xc0,0xb8,0xaa,0x55,0x26,
- 0xa3,0x00,0x00,0x26,0xc7,0x06,0x02,0x00,0x00,0x00,0x26,0xc7,
- 0x06,0x04,0x00,0x00,0x00,0xb9,0x00,0x00,0x8e,0xc1,0x26,0x8b,
- 0x1e,0x00,0x00,0x3b,0xc3,0x75,0x02,0xeb,0x24,0x8e,0xc5,0x26,
- 0x83,0x0e,0x12,0x00,0x04,0xb8,0x00,0x04,0xbb,0x00,0x60,0x06,
- 0xe8,0x66,0xfc,0x07,0x75,0x09,0x26,0xc7,0x06,0x16,0x00,0x40,
- 0x00,0xeb,0x06,0x26,0x83,0x0e,0x14,0x00,0x04,0x8e,0xc5,0x8c,
- 0xc0,0x3d,0xc0,0xf0,0x75,0x03,0xe9,0x9f,0x00,0x3d,0xc0,0x80,
- 0x74,0x62,0x3d,0xc0,0xc0,0x74,0x23,0x26,0x83,0x0e,0x12,0x00,
- 0x08,0xb8,0x00,0xf0,0xbb,0x00,0x7c,0x06,0xe8,0x2e,0xfc,0x07,
- 0x75,0x08,0x26,0x83,0x06,0x18,0x00,0x40,0xeb,0x06,0x26,0x83,
- 0x0e,0x14,0x00,0x08,0xeb,0x72,0xb9,0x03,0x00,0xb8,0x00,0xd0,
- 0xba,0x08,0x00,0xbb,0x00,0x80,0x3d,0x00,0xf0,0x75,0x03,0xbb,
- 0x00,0x7c,0x26,0x09,0x16,0x12,0x00,0x06,0x50,0x51,0xe8,0xfc,
- 0xfb,0x59,0x58,0x07,0x75,0x0f,0x26,0x83,0x06,0x18,0x00,0x40,
- 0xd1,0xe2,0x05,0x00,0x10,0xe2,0xd8,0xeb,0x05,0x26,0x09,0x16,
- 0x14,0x00,0xeb,0x38,0xb9,0x07,0x00,0xb8,0x00,0x90,0xba,0x08,
- 0x00,0xbb,0x00,0x80,0x3d,0x00,0xf0,0x75,0x03,0xbb,0x00,0x7c,
- 0x26,0x09,0x16,0x12,0x00,0x06,0x50,0x51,0xe8,0xc2,0xfb,0x59,
- 0x58,0x07,0x75,0x0f,0x26,0x83,0x06,0x18,0x00,0x40,0xd1,0xe2,
- 0x05,0x00,0x10,0xe2,0xd8,0xeb,0x05,0x26,0x09,0x16,0x14,0x00,
- 0x26,0xa1,0x18,0x00,0x2d,0x10,0x00,0x26,0xa3,0x1a,0x00,0x06,
- 0xfc,0x33,0xff,0x8e,0xc7,0xb9,0x00,0x02,0xb8,0x00,0xf0,0xf3,
- 0xab,0x33,0xff,0xbe,0x24,0xf8,0xb9,0x20,0x00,0xa5,0x47,0x47,
- 0xe2,0xfb,0xbe,0x64,0xf8,0xb9,0xe0,0x00,0x8b,0x1c,0x26,0x89,
- 0x1d,0x83,0xc7,0x04,0xe2,0xf8,0x07,0xba,0x28,0xff,0xb8,0xfd,
- 0x00,0xef,0xba,0x32,0xff,0xb8,0x0d,0x00,0xef,0xba,0x34,0xff,
- 0xb8,0x0f,0x00,0xef,0xba,0x36,0xff,0xb8,0x0e,0x00,0xef,0xba,
- 0x38,0xff,0xb8,0x19,0x00,0xef,0xba,0x3a,0xff,0xb8,0x18,0x00,
- 0xef,0xba,0x3c,0xff,0xb8,0x0b,0x00,0xef,0xba,0x3e,0xff,0xb8,
- 0x1a,0x00,0xef,0x8d,0x3e,0x90,0x00,0x8d,0x36,0x66,0xf8,0xb9,
- 0x10,0x00,0xf3,0xa5,0x8d,0x3e,0xb0,0x00,0x8d,0x36,0x86,0xf8,
- 0xb9,0x02,0x00,0xf3,0xa5,0xb9,0x10,0x00,0x8d,0x36,0x90,0x00,
- 0x83,0xc6,0x1e,0x26,0x8b,0x14,0xb3,0x10,0x32,0xc0,0xec,0xb0,
- 0x0c,0xee,0x8a,0xc3,0x8a,0xc3,0xee,0x83,0xee,0x02,0x26,0x8b,
- 0x14,0xfe,0xcb,0xe2,0xeb,0xb9,0x10,0x00,0x8d,0x36,0x90,0x00,
- 0x26,0x8b,0x14,0xb3,0x01,0xbf,0x00,0x80,0xb0,0x0c,0xee,0xf6,
- 0xe8,0xec,0x3a,0xc3,0x75,0x0e,0xd1,0xc7,0x26,0x09,0x3e,0x20,
- 0x00,0x26,0xfe,0x06,0x22,0x00,0xeb,0x07,0x33,0xc0,0x26,0x89,
- 0x04,0xd1,0xc7,0x83,0xc6,0x02,0x26,0x8b,0x14,0xfe,0xc3,0xe2,
- 0xd7,0x26,0xc6,0x06,0x23,0x00,0x01,0x8d,0x36,0xb0,0x00,0x26,
- 0x8b,0x14,0x32,0xc0,0xee,0xb0,0x0c,0xee,0xb0,0x5a,0xee,0xb0,
- 0x0c,0xee,0xf6,0xe8,0xec,0x3c,0x5a,0x74,0x14,0x26,0xc7,0x06,
- 0xb0,0x00,0x00,0x00,0x26,0xc7,0x06,0xb2,0x00,0x00,0x00,0x26,
- 0xc6,0x06,0x23,0x00,0x00,0xe9,0xd3,0xfa,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0xea,0x00,0xfc,0x00,0xf0,0x4d,0x2f,0x50,
- 0x43,0x2f,0x58,0x2a,0x39,0x34,0x34,0x31
-};
-
-static unsigned pcxx_nbios=sizeof(pcxx_bios);
diff --git a/sys/dev/dgb/dgfep.h b/sys/dev/dgb/dgfep.h
deleted file mode 100644
index 9ed4f7d..0000000
--- a/sys/dev/dgb/dgfep.h
+++ /dev/null
@@ -1,516 +0,0 @@
-static unsigned char pcxx_cook[] = {
- 0x4f,0x53,0x18,0x80,0xe9,0xbf,0x15,0x00,0x40,0x28,0x23,0x29,
- 0x46,0x45,0x50,0x4f,0x53,0x20,0x37,0x2e,0x30,0x38,0x20,0x34,
- 0x2f,0x32,0x30,0x2f,0x39,0x35,0x00,0x40,0x28,0x23,0x29,0x28,
- 0x43,0x29,0x43,0x6f,0x70,0x79,0x72,0x69,0x67,0x68,0x74,0x20,
- 0x31,0x39,0x38,0x39,0x2d,0x31,0x39,0x39,0x35,0x20,0x44,0x69,
- 0x67,0x69,0x42,0x6f,0x61,0x72,0x64,0x20,0x49,0x6e,0x63,0x2e,
- 0x00,0xcb,0x0c,0xcb,0x0c,0xe2,0x0c,0xcb,0x0c,0xcb,0x0c,0xcb,
- 0x0c,0xcb,0x0c,0xcb,0x0c,0x57,0x0c,0xcb,0x0c,0xcb,0x0c,0xcb,
- 0x0c,0x53,0x0b,0xcb,0x0c,0xcb,0x0c,0x42,0x0b,0xcb,0x0c,0xcb,
- 0x0c,0x12,0x0d,0xcb,0x0c,0xcb,0x0c,0xcb,0x0c,0xcb,0x0c,0xcb,
- 0x0c,0xcb,0x0c,0xcb,0x0c,0xcb,0x0c,0xcb,0x0c,0xcb,0x0c,0xcb,
- 0x0c,0xcb,0x0c,0xcb,0x0c,0x00,0x10,0x80,0x10,0x00,0x11,0x80,
- 0x11,0x00,0x12,0x80,0x12,0x00,0x13,0x80,0x13,0x00,0x14,0x80,
- 0x14,0x00,0x15,0x80,0x15,0x00,0x16,0x80,0x16,0x00,0x17,0x80,
- 0x17,0x78,0x0b,0xb9,0x0b,0x50,0x0c,0xb9,0x0b,0x8d,0x0b,0x8d,
- 0x0b,0x8d,0x0b,0x8d,0x0b,0xc0,0x0b,0xc0,0x0b,0xc0,0x0b,0xc0,
- 0x0b,0x8d,0x0b,0x8d,0x0b,0x8d,0x0b,0x8d,0x0b,0x50,0x0c,0xb9,
- 0x0b,0x50,0x0c,0xb9,0x0b,0x8d,0x0b,0x8d,0x0b,0x8d,0x0b,0x8d,
- 0x0b,0xc0,0x0b,0xc0,0x0b,0xc0,0x0b,0xc0,0x0b,0x8d,0x0b,0x8d,
- 0x0b,0x8d,0x0b,0x8d,0x0b,0x94,0x0b,0x94,0x0b,0x94,0x0b,0x94,
- 0x0b,0x94,0x0b,0x94,0x0b,0x94,0x0b,0x94,0x0b,0x94,0x0b,0x94,
- 0x0b,0x94,0x0b,0x94,0x0b,0x94,0x0b,0x94,0x0b,0x94,0x0b,0x94,
- 0x0b,0x94,0x0b,0x94,0x0b,0x94,0x0b,0x94,0x0b,0x94,0x0b,0x94,
- 0x0b,0x94,0x0b,0x94,0x0b,0x94,0x0b,0x94,0x0b,0x94,0x0b,0x94,
- 0x0b,0x94,0x0b,0x94,0x0b,0x94,0x0b,0x94,0x0b,0x16,0x00,0xfe,
- 0x11,0xfe,0x0b,0x2c,0x08,0xb5,0x06,0xfe,0x05,0x7e,0x04,0xfe,
- 0x02,0x7e,0x01,0xbe,0x00,0x7e,0x00,0x5e,0x00,0x2e,0x00,0x16,
- 0x00,0x0a,0x00,0x04,0x00,0x16,0x00,0x02,0x00,0x01,0x00,0x00,
- 0x00,0x0e,0x00,0x06,0x00,0x7e,0x04,0xfe,0x02,0x7e,0x01,0xbe,
- 0x00,0x7e,0x00,0x5e,0x00,0x2e,0x00,0x16,0x00,0x0a,0x00,0x04,
- 0x00,0x18,0x00,0x86,0x13,0x03,0x0d,0xdf,0x08,0x41,0x07,0x81,
- 0x06,0xe0,0x04,0x3f,0x03,0x9f,0x01,0xce,0x00,0x89,0x00,0x66,
- 0x00,0x32,0x00,0x18,0x00,0x0b,0x00,0x0b,0x00,0x18,0x00,0x0b,
- 0x00,0x0b,0x00,0x0b,0x00,0x41,0x07,0x81,0x06,0xe0,0x04,0x3f,
- 0x03,0x9f,0x01,0xce,0x00,0x89,0x00,0x66,0x00,0x32,0x00,0x18,
- 0x00,0x0b,0x00,0x0b,0x00,0x00,0x80,0x40,0xc0,0x1f,0x3f,0x7f,
- 0xff,0x00,0x04,0x02,0x06,0x08,0x0c,0x0a,0x0e,0x00,0x04,0x02,
- 0x06,0x08,0x0c,0x0a,0x0e,0xa0,0x08,0xa0,0x08,0xa0,0x08,0xa0,
- 0x08,0xa0,0x08,0xa0,0x08,0xa0,0x08,0xa0,0x08,0x1e,0x06,0x3e,
- 0x06,0xef,0x06,0xf8,0x05,0x0e,0x06,0x55,0x07,0xa0,0x08,0xa0,
- 0x08,0xa0,0x08,0xa0,0x08,0xa0,0x08,0xa0,0x08,0xa0,0x08,0xa0,
- 0x08,0xa0,0x08,0xa0,0x08,0xa0,0x08,0xa0,0x08,0xa0,0x08,0xa0,
- 0x08,0xa0,0x08,0xa0,0x08,0xa0,0x08,0xa0,0x08,0x9d,0x08,0x9d,
- 0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,
- 0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,
- 0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,
- 0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,
- 0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,
- 0x08,0x9d,0x08,0xa1,0x05,0xa1,0x05,0xa1,0x05,0xa1,0x05,0xa1,
- 0x05,0xa1,0x05,0xa1,0x05,0xa1,0x05,0xa1,0x05,0xa1,0x05,0xa1,
- 0x05,0xa1,0x05,0xa1,0x05,0xa1,0x05,0xa1,0x05,0xa1,0x05,0xa1,
- 0x05,0xa1,0x05,0xa1,0x05,0xa1,0x05,0xa1,0x05,0xa1,0x05,0xa1,
- 0x05,0xa1,0x05,0xa1,0x05,0xa1,0x05,0x9d,0x08,0x9d,0x08,0x9d,
- 0x08,0x9d,0x08,0x9d,0x08,0x5b,0x05,0xea,0x05,0xea,0x05,0xea,
- 0x05,0xea,0x05,0xea,0x05,0xea,0x05,0xea,0x05,0xea,0x05,0xea,
- 0x05,0xea,0x05,0xea,0x05,0xea,0x05,0xea,0x05,0xea,0x05,0xea,
- 0x05,0xea,0x05,0xea,0x05,0xea,0x05,0xea,0x05,0xea,0x05,0xea,
- 0x05,0xea,0x05,0xea,0x05,0xea,0x05,0xea,0x05,0xea,0x05,0x69,
- 0x05,0x77,0x05,0x85,0x05,0x93,0x05,0xa0,0x08,0xa0,0x08,0xa0,
- 0x08,0xa0,0x08,0xa0,0x08,0xa0,0x08,0xa0,0x08,0xa0,0x08,0xa0,
- 0x08,0xa0,0x08,0xa0,0x08,0xa0,0x08,0xa0,0x08,0xa0,0x08,0xa0,
- 0x08,0xa0,0x08,0xa0,0x08,0xa0,0x08,0xa0,0x08,0xa0,0x08,0xa0,
- 0x08,0xa0,0x08,0xa0,0x08,0xa0,0x08,0xa0,0x08,0xa0,0x08,0xa0,
- 0x08,0xa0,0x08,0xa0,0x08,0xa0,0x08,0xa0,0x08,0xa0,0x08,0xa0,
- 0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,
- 0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,
- 0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,
- 0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,
- 0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,
- 0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,
- 0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,
- 0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,
- 0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,
- 0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,
- 0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,
- 0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,
- 0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,
- 0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,
- 0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,
- 0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,0x08,0x9d,
- 0x08,0x00,0x00,0xfa,0x8a,0x5c,0x50,0xf6,0xc3,0x0e,0x75,0x3c,
- 0xf6,0xc3,0x40,0x75,0x16,0xf6,0xc3,0x10,0x74,0x26,0xf6,0xc3,
- 0x01,0x75,0x13,0xf6,0xc3,0x20,0x75,0x15,0xc7,0x04,0xb6,0x04,
- 0xe9,0xcf,0x00,0x8b,0x44,0x02,0x89,0x04,0xff,0xe0,0xc7,0x04,
- 0x03,0x05,0xe9,0x0e,0x01,0xc7,0x04,0x66,0x08,0xe9,0x6a,0x04,
- 0xf6,0xc3,0x20,0x74,0x1a,0xc7,0x04,0xb3,0x08,0xe9,0xab,0x04,
- 0x8b,0x54,0x20,0xec,0x8a,0xc8,0xf6,0xc3,0x02,0x75,0x42,0xf6,
- 0xc3,0x08,0x75,0x0e,0xeb,0x69,0x90,0xc7,0x04,0x20,0x04,0xfb,
- 0x81,0xc6,0x80,0x00,0xff,0x24,0xf6,0xc1,0x04,0x74,0x27,0x80,
- 0x64,0x50,0xf7,0xf6,0x44,0x51,0x02,0x74,0x13,0xf6,0x44,0x29,
- 0x10,0x74,0x0d,0x8a,0x44,0x5d,0x83,0xc2,0x02,0xee,0x83,0xea,
- 0x02,0xe9,0x49,0x04,0x8a,0x44,0x5c,0x83,0xc2,0x02,0xee,0x83,
- 0xea,0x02,0xe9,0x3c,0x04,0xf6,0x44,0x50,0x04,0x75,0x28,0x83,
- 0x7c,0x24,0xff,0x74,0x1f,0xa1,0x00,0x0e,0x2b,0x44,0x26,0x3d,
- 0x64,0x00,0x77,0x14,0xb0,0x05,0xee,0x8a,0x44,0x75,0x24,0xef,
- 0x88,0x44,0x75,0xee,0x80,0x64,0x50,0xfd,0x80,0x64,0x4b,0xfd,
- 0xe9,0x0e,0x04,0xb0,0x01,0xee,0x90,0x90,0x90,0xec,0xa8,0x01,
- 0x74,0x25,0xb0,0x05,0xee,0x8a,0x44,0x75,0x0c,0x10,0x88,0x44,
- 0x75,0xee,0xa1,0x00,0x0e,0x03,0x44,0x24,0x89,0x44,0x26,0x80,
- 0x64,0x50,0xfb,0x80,0x64,0x4b,0xfb,0x80,0x4c,0x50,0x02,0x80,
- 0x4c,0x4b,0x02,0xe9,0xdb,0x03,0xfa,0x8b,0x54,0x20,0xec,0x8a,
- 0xc8,0x22,0x44,0x52,0x3a,0x44,0x53,0x75,0x19,0x8b,0x7c,0x0c,
- 0x3b,0x7c,0x0a,0x74,0x18,0x8e,0x44,0x08,0x26,0x8a,0x05,0x47,
- 0x23,0x7c,0x0e,0x89,0x7c,0x0c,0x83,0xc2,0x02,0xee,0xfb,0x81,
- 0xc6,0x80,0x00,0xff,0x24,0xb0,0x01,0xee,0x90,0x90,0x90,0xec,
- 0xa8,0x01,0x74,0x0c,0x80,0x64,0x50,0xef,0x80,0x64,0x4b,0xef,
- 0xc7,0x04,0xc3,0x03,0xfb,0x81,0xc6,0x80,0x00,0xff,0x24,0xfa,
- 0x8b,0x54,0x20,0xec,0x8a,0xc8,0x22,0x44,0x52,0x3a,0x44,0x53,
- 0x75,0x3a,0x8b,0x7c,0x0c,0x3b,0x7c,0x0a,0x74,0x1b,0x8e,0x44,
- 0x08,0x26,0x8a,0x05,0x47,0x23,0x7c,0x0e,0x89,0x7c,0x0c,0x8a,
- 0xd8,0x22,0x5c,0x62,0x32,0xff,0x03,0xdb,0x2e,0xff,0xa7,0xc1,
- 0x01,0xb0,0x01,0xee,0x90,0x90,0x90,0xec,0xa8,0x01,0x74,0x0c,
- 0x80,0x64,0x50,0xef,0x80,0x64,0x4b,0xef,0xc7,0x04,0xc3,0x03,
- 0xf6,0xc1,0x01,0x75,0x07,0xfb,0x81,0xc6,0x80,0x00,0xff,0x24,
- 0xe9,0x61,0x03,0xf6,0x44,0x2a,0x01,0x75,0x03,0xe9,0x39,0x03,
- 0xb0,0x27,0xeb,0x42,0x90,0xf6,0x44,0x2a,0x01,0x75,0x03,0xe9,
- 0x2b,0x03,0xb0,0x28,0xeb,0x34,0x90,0xf6,0x44,0x2a,0x01,0x75,
- 0x03,0xe9,0x1d,0x03,0xb0,0x21,0xeb,0x26,0x90,0xf6,0x44,0x2a,
- 0x01,0x75,0x03,0xe9,0x0f,0x03,0xb0,0x29,0xeb,0x18,0x90,0xf6,
- 0x44,0x2a,0x01,0x75,0x03,0xe9,0x01,0x03,0xb0,0x5e,0xeb,0x0a,
- 0x90,0xf6,0x44,0x2a,0x01,0x75,0x03,0xe9,0xf3,0x02,0x88,0x44,
- 0x61,0xb0,0x5c,0x83,0xc2,0x02,0xee,0x83,0xea,0x02,0x80,0x4c,
- 0x50,0x40,0xc7,0x04,0xc6,0x05,0xc7,0x44,0x02,0xc6,0x05,0xe9,
- 0xcb,0x02,0xfa,0x8b,0x54,0x20,0xec,0x8a,0xc8,0x22,0x44,0x52,
- 0x3a,0x44,0x53,0x75,0x12,0x80,0x64,0x50,0xbf,0xc7,0x04,0x03,
- 0x05,0x83,0x44,0x30,0x02,0x8a,0x44,0x61,0xe9,0xb9,0x02,0xe9,
- 0xa7,0x02,0xf6,0x44,0x2a,0x02,0x75,0x03,0xe9,0xaa,0x02,0x2c,
- 0x20,0xe9,0xa5,0x02,0x83,0xc2,0x02,0xee,0x83,0xea,0x02,0xf6,
- 0x44,0x2b,0x40,0x75,0x03,0xe9,0x89,0x02,0xb8,0x7f,0x00,0xe9,
- 0x9b,0x01,0x83,0xc2,0x02,0xee,0x83,0xea,0x02,0xf6,0x44,0x2b,
- 0x80,0x75,0xed,0xe9,0x73,0x02,0x83,0xc2,0x02,0xee,0x83,0xea,
- 0x02,0xf7,0x44,0x30,0xff,0xff,0x74,0x03,0xff,0x4c,0x30,0xf6,
- 0x44,0x2b,0x20,0x75,0x03,0xe9,0x59,0x02,0xb8,0x02,0x00,0xe9,
- 0x6b,0x01,0xb3,0x18,0x22,0x5c,0x2b,0x75,0x16,0x83,0xc2,0x02,
- 0xee,0x83,0xea,0x02,0x8b,0x44,0x30,0x05,0x08,0x00,0x25,0xf8,
- 0xff,0x89,0x44,0x30,0xe9,0x36,0x02,0x80,0xfb,0x18,0x75,0x57,
- 0xb0,0x20,0x83,0xc2,0x02,0xee,0x83,0xea,0x02,0x8b,0x44,0x30,
- 0x8b,0xd8,0x05,0x08,0x00,0x25,0xf8,0xff,0x89,0x44,0x30,0x2b,
- 0xc3,0x48,0x74,0x38,0x89,0x44,0x32,0x80,0x4c,0x50,0x40,0xc7,
- 0x44,0x02,0x8f,0x06,0xc7,0x04,0x8f,0x06,0xe9,0x02,0x02,0xfa,
- 0x8b,0x54,0x20,0xec,0x8a,0xc8,0x22,0x44,0x52,0x3a,0x44,0x53,
- 0x75,0x16,0xb0,0x20,0x83,0xc2,0x02,0xee,0x83,0xea,0x02,0xff,
- 0x4c,0x32,0x75,0x08,0x80,0x64,0x50,0xbf,0xc7,0x04,0x03,0x05,
- 0xe9,0xda,0x01,0x83,0xc2,0x02,0xee,0x83,0xea,0x02,0x80,0xfb,
- 0x08,0x75,0x18,0x8b,0x44,0x30,0x8b,0xd8,0x05,0x08,0x00,0x25,
- 0xf8,0xff,0x89,0x44,0x30,0x2b,0xc3,0x3d,0x05,0x00,0x7c,0xdc,
- 0xe9,0xce,0x00,0x8b,0x44,0x30,0x8b,0xd8,0x05,0x08,0x00,0x25,
- 0xf8,0xff,0x89,0x44,0x30,0xb8,0x02,0x00,0xe9,0xba,0x00,0xf6,
- 0x44,0x2a,0x20,0x75,0x43,0xf6,0x44,0x2a,0x04,0x74,0x42,0xf6,
- 0x44,0x2a,0x10,0x74,0x07,0xf7,0x44,0x30,0xff,0xff,0x74,0x30,
- 0xb0,0x0d,0x83,0xc2,0x02,0xee,0x83,0xea,0x02,0x80,0x4c,0x50,
- 0x40,0xc7,0x04,0x21,0x07,0xc7,0x44,0x02,0x21,0x07,0xe9,0x70,
- 0x01,0xfa,0x8b,0x54,0x20,0xec,0x8a,0xc8,0x22,0x44,0x52,0x3a,
- 0x44,0x53,0x75,0x1c,0x80,0x64,0x50,0xbf,0xc7,0x04,0x03,0x05,
- 0xb0,0x0a,0xeb,0x2b,0x90,0xb0,0x0a,0x83,0xc2,0x02,0xee,0x83,
- 0xea,0x02,0xf6,0x44,0x2b,0x01,0x75,0x03,0xe9,0x42,0x01,0xb8,
- 0x05,0x00,0xeb,0x55,0x90,0xf6,0x44,0x2a,0x08,0x75,0xe2,0xf6,
- 0x44,0x2a,0x10,0x74,0x06,0x83,0x7c,0x30,0x00,0x74,0x13,0x83,
- 0xc2,0x02,0xee,0x83,0xea,0x02,0xb3,0x06,0x22,0x5c,0x2b,0x75,
- 0x08,0xc7,0x44,0x30,0x00,0x00,0xe9,0x14,0x01,0x80,0xfb,0x02,
- 0x75,0x14,0x8b,0x44,0x30,0xc1,0xe8,0x04,0x05,0x03,0x00,0x3d,
- 0x06,0x00,0x72,0x14,0xb8,0x06,0x00,0xeb,0x0f,0x90,0x80,0xfb,
- 0x04,0x75,0x06,0xb8,0x05,0x00,0xeb,0x04,0x90,0xb8,0x09,0x00,
- 0xc7,0x44,0x30,0x00,0x00,0xf6,0x44,0x2a,0x40,0x74,0x45,0x3d,
- 0x20,0x00,0x77,0x40,0xbb,0x01,0x00,0x3d,0x03,0x00,0x7e,0x03,
- 0xbb,0x02,0x00,0x89,0x5c,0x32,0x80,0x4c,0x50,0x40,0xc7,0x44,
- 0x02,0xd2,0x07,0xc7,0x04,0xd2,0x07,0xe9,0xbf,0x00,0xfa,0x8b,
- 0x54,0x20,0xec,0x8a,0xc8,0x22,0x44,0x52,0x3a,0x44,0x53,0x75,
- 0x10,0x8a,0x44,0x60,0x83,0xc2,0x02,0xee,0x83,0xea,0x02,0x83,
- 0x6c,0x32,0x01,0x7e,0x50,0xe9,0x9d,0x00,0x05,0x06,0x00,0x03,
- 0xc0,0x89,0x44,0x32,0x80,0x4c,0x50,0x40,0xc7,0x44,0x02,0x0c,
- 0x08,0xc7,0x04,0x0c,0x08,0xe9,0x85,0x00,0xfa,0x8b,0x54,0x20,
- 0xec,0x8a,0xc8,0xb0,0x01,0xee,0x90,0x90,0x90,0xec,0xa8,0x01,
- 0x74,0x0f,0xa1,0x00,0x0e,0x01,0x44,0x32,0xc7,0x44,0x02,0x30,
- 0x08,0xc7,0x04,0x30,0x08,0xeb,0x62,0x90,0x8b,0x54,0x20,0xec,
- 0x8a,0xc8,0xa1,0x00,0x0e,0x2b,0x44,0x32,0x3d,0xe8,0x03,0x77,
- 0xec,0x80,0x64,0x50,0xbf,0xc7,0x04,0x03,0x05,0xeb,0x46,0x90,
- 0xb0,0x01,0xee,0x90,0x90,0x90,0xec,0xa8,0x01,0x74,0x3a,0x80,
- 0x64,0x50,0xef,0x80,0x64,0x4b,0xef,0xc7,0x04,0xb3,0x08,0xeb,
- 0x2c,0x90,0xfa,0x8b,0x54,0x20,0xec,0x8a,0xc8,0x22,0x44,0x52,
- 0x3a,0x44,0x53,0x75,0x1c,0x8b,0x7c,0x0c,0x3b,0x7c,0x0a,0x74,
- 0xcf,0x8e,0x44,0x08,0x26,0x8a,0x05,0x47,0x23,0x7c,0x0e,0x89,
- 0x7c,0x0c,0x83,0xc2,0x02,0xee,0x83,0xea,0x02,0xf6,0xc1,0x01,
- 0x75,0x26,0xfb,0x81,0xc6,0x80,0x00,0xff,0x24,0xff,0x44,0x30,
- 0x83,0xc2,0x02,0xee,0x83,0xea,0x02,0xf6,0xc1,0x01,0x75,0x10,
- 0xfb,0x81,0xc6,0x80,0x00,0xff,0x24,0xfa,0x8b,0x54,0x20,0xec,
- 0xa8,0x01,0x74,0xda,0xc6,0x44,0x49,0x02,0x8b,0x7c,0x12,0x8e,
- 0x44,0x10,0xb0,0x01,0xee,0x90,0x90,0x90,0xec,0x8a,0xe0,0x90,
- 0xb0,0x30,0xee,0x83,0xc2,0x02,0x90,0xec,0x83,0xea,0x02,0x23,
- 0x44,0x34,0xff,0x64,0x06,0xb3,0x1c,0x22,0x5c,0x51,0x75,0x1a,
- 0xf6,0x44,0x29,0x04,0x74,0x21,0xf6,0x44,0x29,0x20,0x75,0x2b,
- 0x80,0x7c,0x5e,0x00,0x75,0x1d,0xc7,0x44,0x06,0x58,0x0a,0xe9,
- 0x56,0x01,0xf6,0xc3,0x10,0x75,0x2e,0xf6,0xc3,0x04,0x75,0x74,
- 0xeb,0x6b,0x90,0xc7,0x44,0x06,0x62,0x0a,0xe9,0x4b,0x01,0xc7,
- 0x44,0x06,0x53,0x0a,0xe9,0x34,0x01,0x80,0x7c,0x5e,0x00,0x75,
- 0x08,0xc7,0x44,0x06,0xca,0x09,0xe9,0x9d,0x00,0xc7,0x44,0x06,
- 0xc5,0x09,0xe9,0x90,0x00,0x0a,0xc0,0x74,0x2a,0xfe,0x4c,0x63,
- 0x74,0x1a,0x80,0xe3,0xef,0x75,0xc4,0xf6,0x44,0x29,0x04,0x74,
- 0x21,0xf6,0x44,0x29,0x20,0x75,0x21,0x80,0x7c,0x5e,0x00,0x75,
- 0x18,0xe9,0x00,0x01,0x80,0x64,0x51,0xef,0x80,0xe3,0xef,0x75,
- 0xa6,0xeb,0x85,0x80,0x64,0x51,0xef,0xe9,0x06,0x01,0xe9,0xf5,
- 0x00,0xe9,0xe3,0x00,0x80,0x7c,0x5e,0x00,0x75,0x4f,0xeb,0x52,
- 0x90,0x80,0x64,0x51,0xf7,0xe9,0xe2,0x00,0x80,0x64,0x53,0x3f,
- 0x80,0x64,0x54,0xfe,0x80,0x4c,0x58,0x01,0x80,0x64,0x51,0xfb,
- 0xf6,0x44,0x29,0x40,0x75,0x2c,0x3a,0x44,0x5d,0x74,0x27,0x3a,
- 0x44,0x5c,0x74,0x22,0xf6,0x44,0x29,0x20,0x74,0x0a,0x3a,0x44,
- 0x5a,0x74,0x17,0x3a,0x44,0x5b,0x74,0x12,0xf6,0x44,0x5e,0xff,
- 0x74,0x09,0x3a,0x44,0x5e,0x75,0x04,0x80,0x4c,0x51,0x08,0xe9,
- 0xa0,0x00,0xe9,0xab,0x00,0x3a,0x44,0x5e,0x74,0x7d,0x3a,0x44,
- 0x5c,0x74,0x3d,0x3a,0x44,0x5d,0x74,0x55,0x3a,0x44,0x5a,0x74,
- 0x08,0x3a,0x44,0x5b,0x74,0x18,0xe9,0x81,0x00,0xf6,0x44,0x53,
- 0x40,0x74,0x07,0x80,0x64,0x53,0xbf,0xe9,0x82,0x00,0x3a,0x44,
- 0x5b,0x74,0x03,0xeb,0x7b,0x90,0x80,0x4c,0x53,0x40,0xf6,0x44,
- 0x29,0x08,0x74,0x70,0x80,0x4c,0x51,0x04,0xc7,0x44,0x06,0xe1,
- 0x08,0xeb,0x65,0x90,0xf6,0x44,0x53,0x80,0x74,0x0f,0x80,0x64,
- 0x53,0x7f,0x80,0x64,0x54,0xfe,0x80,0x4c,0x58,0x01,0xeb,0x50,
- 0x90,0x3a,0x44,0x5d,0x74,0x03,0xeb,0x48,0x90,0x80,0x4c,0x53,
- 0x80,0x80,0x4c,0x54,0x01,0x80,0x4c,0x58,0x01,0xf6,0x44,0x29,
- 0x08,0x74,0x35,0x80,0x4c,0x51,0x04,0xc7,0x44,0x06,0xe1,0x08,
- 0xeb,0x2a,0x90,0x80,0x4c,0x51,0x08,0xc7,0x44,0x06,0xe1,0x08,
- 0xeb,0x10,0x90,0x3a,0x44,0x5e,0x74,0xef,0x3a,0x44,0x5c,0x74,
- 0xaf,0x3a,0x44,0x5d,0x74,0xc7,0x3d,0xff,0x00,0x73,0x26,0xaa,
- 0x23,0x7c,0x16,0x3b,0x7c,0x14,0x74,0x4f,0xec,0xa8,0x01,0x74,
- 0x03,0xe9,0x4e,0xfe,0x89,0x7c,0x12,0x2b,0x7c,0x14,0x23,0x7c,
- 0x16,0x3b,0x7c,0x1c,0x73,0x46,0xfb,0x81,0xc6,0x80,0x00,0xff,
- 0x24,0x0a,0xe4,0x75,0x1e,0xb3,0x0c,0x22,0x5c,0x28,0x80,0xfb,
- 0x08,0x75,0xcc,0xaa,0x23,0x7c,0x16,0x3b,0x7c,0x14,0x74,0x1b,
- 0xaa,0x23,0x7c,0x16,0x3b,0x7c,0x14,0x74,0x12,0xeb,0xc1,0xf6,
- 0x44,0x28,0x04,0x75,0xbb,0xf6,0x44,0x28,0x08,0x75,0x50,0x32,
- 0xc0,0xeb,0xa8,0x4f,0x23,0x7c,0x16,0x89,0x7c,0x12,0xc6,0x44,
- 0x59,0x01,0xeb,0xa4,0xf6,0x44,0x51,0x02,0x74,0x07,0xfb,0x81,
- 0xc6,0x80,0x00,0xff,0x24,0x80,0x4c,0x51,0x02,0xb0,0x05,0xee,
- 0xb0,0x82,0x22,0x44,0x5f,0xf6,0xd0,0x22,0x44,0x75,0x88,0x44,
- 0x75,0xee,0xf6,0x44,0x29,0x10,0x74,0x10,0x80,0x4c,0x54,0x04,
- 0x80,0x4c,0x58,0x04,0x80,0x74,0x50,0x08,0xc7,0x04,0xc3,0x03,
- 0xfb,0x81,0xc6,0x80,0x00,0xff,0x24,0x26,0xc6,0x05,0xff,0x47,
- 0x23,0x7c,0x16,0x3b,0x7c,0x14,0x74,0xa7,0x32,0xff,0xf6,0x44,
- 0x29,0x80,0x74,0x0a,0x8a,0xdc,0xc0,0xeb,0x04,0x2e,0x8a,0xbf,
- 0xb1,0x01,0x26,0x88,0x3d,0x47,0x23,0x7c,0x16,0x3b,0x7c,0x14,
- 0x74,0x89,0xaa,0x23,0x7c,0x16,0x3b,0x7c,0x14,0x74,0x80,0xe9,
- 0x2e,0xff,0x1e,0x2e,0x8e,0x1e,0xc1,0x03,0xff,0x06,0x1c,0x0e,
- 0x60,0xbe,0x00,0x14,0xeb,0x0f,0x90,0x1e,0x2e,0x8e,0x1e,0xc1,
- 0x03,0xff,0x06,0x1a,0x0e,0x60,0xbe,0x00,0x10,0xb9,0x08,0x00,
- 0x8b,0x54,0x20,0xb0,0x03,0xee,0x90,0x90,0x32,0xff,0xec,0x8a,
- 0xd8,0x02,0xd8,0x2e,0xff,0xa7,0xa9,0x00,0x81,0xc6,0x00,0x01,
- 0x8b,0x54,0x20,0x0b,0xd2,0xe0,0xe4,0xb8,0x00,0x80,0xba,0x22,
- 0xff,0xef,0x61,0x1f,0xcf,0x81,0xce,0x80,0x00,0x8b,0x54,0x20,
- 0xff,0x06,0x20,0x0e,0xb0,0x01,0xee,0x8a,0x44,0x71,0x24,0xe7,
- 0x88,0x44,0x71,0xee,0xc6,0x44,0x49,0x02,0x80,0x4c,0x50,0x20,
- 0xc7,0x04,0xc3,0x03,0x81,0xe6,0x7f,0xff,0x8b,0x54,0x20,0xeb,
- 0xae,0x81,0xce,0x80,0x00,0x8b,0x54,0x20,0xff,0x06,0x22,0x0e,
- 0xec,0x0a,0xc0,0x79,0x7a,0x80,0x4c,0x51,0x10,0xc7,0x44,0x06,
- 0xe1,0x08,0xc6,0x44,0x63,0x04,0xf6,0x44,0x51,0x04,0x74,0x08,
- 0x80,0x64,0x51,0xfb,0x80,0x64,0x53,0x3f,0xf6,0x44,0x28,0x01,
- 0x75,0x59,0xf6,0x44,0x28,0x02,0x75,0x4f,0x8b,0x7c,0x12,0x8c,
- 0xc3,0x8e,0x44,0x10,0xf6,0x44,0x28,0x08,0x74,0x1e,0xb0,0xff,
- 0xaa,0x23,0x7c,0x16,0x3b,0x7c,0x14,0x74,0x26,0x32,0xc0,0xf6,
- 0x44,0x29,0x80,0x74,0x02,0xb0,0x10,0xaa,0x23,0x7c,0x16,0x3b,
- 0x7c,0x14,0x74,0x13,0x32,0xc0,0xaa,0x23,0x7c,0x16,0x3b,0x7c,
- 0x14,0x74,0x08,0x8e,0xc3,0x89,0x7c,0x12,0xeb,0x15,0x90,0x8e,
- 0xc3,0x4f,0x23,0x7c,0x16,0x89,0x7c,0x12,0xc6,0x44,0x59,0x01,
- 0xeb,0x05,0x90,0x80,0x4c,0x4f,0x01,0xb0,0x10,0xee,0x81,0xe6,
- 0x7f,0xff,0x8b,0x54,0x20,0xe9,0x17,0xff,0xff,0x06,0x1e,0x0e,
- 0xe9,0x10,0xff,0x1e,0x2e,0x8e,0x1e,0xc1,0x03,0x50,0x52,0x55,
- 0x8b,0xec,0x8b,0x46,0x08,0xa3,0x12,0x0e,0x32,0xe4,0xa0,0x22,
- 0x0c,0xa3,0x10,0x0e,0xff,0x06,0x00,0x0e,0x83,0x06,0x0e,0x0e,
- 0x0a,0x83,0x3e,0x04,0x0e,0x00,0x74,0x31,0x8b,0x16,0x00,0x0e,
- 0x2b,0x16,0x02,0x0e,0x3b,0x16,0x04,0x0e,0x72,0x23,0x8b,0x16,
- 0x00,0x0e,0x89,0x16,0x02,0x0e,0x8b,0x16,0x18,0x0d,0x3b,0x16,
- 0x1a,0x0d,0x74,0x11,0x80,0x3e,0x10,0x0c,0x01,0x74,0x16,0xb0,
- 0x00,0x90,0xe6,0x00,0x0c,0x08,0x90,0xe6,0x00,0xb8,0x00,0x80,
- 0xba,0x22,0xff,0xef,0x5d,0x5a,0x58,0x1f,0xcf,0xb0,0x80,0xe6,
- 0x00,0xa0,0x11,0x0c,0x0c,0x10,0xa2,0x11,0x0c,0xeb,0xe6,0x1e,
- 0x2e,0x8e,0x1e,0xc1,0x03,0xff,0x06,0x28,0x0e,0x55,0x8b,0xec,
- 0x8b,0x6e,0x02,0x89,0x2e,0x16,0x0e,0x5d,0x1f,0xcf,0x1e,0x2e,
- 0x8e,0x1e,0xc1,0x03,0xff,0x06,0x24,0x0e,0x55,0x8b,0xec,0x8b,
- 0x6e,0x02,0x89,0x2e,0x14,0x0e,0x5d,0x80,0x3e,0x10,0x0c,0x01,
- 0x75,0x12,0x50,0xa0,0x11,0x0c,0x0c,0x01,0xa2,0x11,0x0c,0xe4,
- 0x00,0x90,0x90,0x24,0x7f,0xe6,0x00,0x58,0x1f,0xcf,0x1e,0x06,
- 0x60,0xb8,0x00,0x80,0xba,0x22,0xff,0xef,0x2e,0x8e,0x1e,0xc1,
- 0x03,0x2e,0x8e,0x06,0xc1,0x03,0x2e,0xff,0x06,0x30,0x0d,0xfc,
- 0xff,0x26,0x2e,0x0e,0x00,0x00,0xfb,0x40,0x43,0x41,0x42,0x46,
- 0x47,0x45,0xeb,0xf6,0xc3,0x00,0x00,0x8f,0x06,0x2e,0x0e,0x2e,
- 0xff,0x06,0x3d,0x0d,0xb8,0x00,0x00,0xba,0x58,0xff,0xef,0xb8,
- 0x00,0xe0,0xba,0x5e,0xff,0xef,0x61,0x07,0x1f,0xcf,0xc2,0xfe,
- 0xff,0x8b,0x7c,0x0a,0x2b,0x7c,0x0c,0x23,0x7c,0x0e,0x3b,0x7c,
- 0x18,0x77,0x2e,0xc6,0x44,0x4d,0x00,0x80,0x4c,0x4f,0x02,0xeb,
- 0x5a,0x90,0x8b,0x7c,0x0a,0x3b,0x7c,0x0c,0x75,0x1b,0x8b,0x3e,
- 0x10,0x0d,0x3b,0x3e,0x12,0x0d,0x75,0x53,0xf6,0x44,0x4b,0xff,
- 0x75,0x4d,0xc6,0x44,0x4c,0x00,0x80,0x4c,0x4f,0x04,0xeb,0x43,
- 0x90,0xf6,0x44,0x50,0x10,0x75,0x3c,0xeb,0x09,0x90,0x8b,0x7c,
- 0x0a,0x2b,0x7c,0x0c,0x74,0x31,0x80,0x4c,0x50,0x10,0x80,0x4c,
- 0x4b,0x10,0xc7,0x04,0xc3,0x03,0xeb,0x23,0x90,0xfa,0x8b,0x36,
- 0x08,0x0e,0x8b,0x54,0x20,0xec,0x8a,0xf8,0x8a,0x5c,0x54,0x32,
- 0xfb,0xf6,0x44,0x4d,0xff,0x75,0x8e,0xf6,0x44,0x4c,0xff,0x75,
- 0xa1,0xf6,0x44,0x50,0x10,0x74,0xc7,0xec,0x32,0xc3,0x22,0xf8,
- 0x83,0x2e,0x10,0x0e,0x01,0x78,0x05,0xd0,0x6c,0x49,0x72,0x45,
- 0x8b,0x7c,0x12,0x2b,0x7c,0x14,0x74,0x22,0x80,0x7c,0x4e,0x00,
- 0x74,0x1c,0x23,0x7c,0x16,0x03,0xff,0x3b,0x7c,0x16,0x73,0x43,
- 0x8b,0x0e,0x0e,0x0e,0x2b,0x4c,0x6e,0x3b,0x4c,0x22,0x73,0x37,
- 0x80,0x7c,0x49,0x00,0x74,0x31,0xf6,0x44,0x51,0x02,0x75,0x3c,
- 0xec,0x32,0xc3,0x22,0xf8,0x80,0xe7,0x38,0xfb,0x89,0x1e,0x30,
- 0x0e,0xbe,0x00,0x10,0xff,0x14,0xeb,0x61,0x90,0xb0,0x01,0xee,
- 0x8a,0x44,0x71,0x0c,0x10,0x88,0x44,0x71,0xee,0x80,0x64,0x50,
- 0xdf,0xc7,0x04,0xc3,0x03,0xeb,0xa5,0xc6,0x44,0x4e,0x00,0x8b,
- 0x0e,0x0e,0x0e,0x89,0x4c,0x6e,0x80,0x4c,0x4f,0x08,0xeb,0xbe,
- 0x8b,0x7c,0x12,0x2b,0x7c,0x14,0x23,0x7c,0x16,0x3b,0x7c,0x1a,
- 0x73,0xb6,0x80,0x64,0x51,0xfd,0xf6,0x44,0x29,0x10,0x74,0x10,
- 0x80,0x64,0x54,0xfb,0x80,0x4c,0x58,0x04,0x80,0x74,0x50,0x08,
- 0xc7,0x04,0xc3,0x03,0xb0,0x05,0xee,0xb0,0x82,0x22,0x44,0x5f,
- 0x0a,0x44,0x75,0x88,0x44,0x75,0xee,0xeb,0x8b,0xfa,0x8b,0x36,
- 0x08,0x0e,0x8b,0x1e,0x30,0x0e,0x8a,0xcb,0xe5,0x80,0x23,0x44,
- 0x2e,0x74,0x02,0xf6,0xd1,0x80,0xe1,0x40,0x0a,0xf9,0x8a,0xdf,
- 0x22,0x5c,0x55,0x30,0x5c,0x54,0x32,0xfb,0x88,0x7c,0x55,0x0a,
- 0x5c,0x58,0x88,0x5c,0x58,0x22,0x5c,0x56,0x75,0x24,0x80,0x7c,
- 0x4f,0x00,0x75,0x22,0xfb,0x03,0x74,0x1e,0x89,0x36,0x08,0x0e,
- 0xff,0x06,0x26,0x0e,0x8b,0x3e,0x12,0x0d,0x3b,0x3e,0x10,0x0d,
- 0x75,0x46,0xbe,0x00,0x10,0xff,0x14,0xe9,0xd3,0xfe,0x80,0x4c,
- 0x4f,0x20,0x8b,0x3e,0x18,0x0d,0x8a,0x44,0x48,0x8a,0x64,0x4f,
- 0x89,0x85,0x00,0x08,0x8a,0x44,0x54,0x8a,0x64,0x57,0x89,0x85,
- 0x02,0x08,0x83,0xc7,0x04,0x81,0xe7,0xfc,0x03,0x3b,0x3e,0x1a,
- 0x0d,0x74,0x13,0x88,0x44,0x57,0xc6,0x44,0x4f,0x00,0x8a,0x44,
- 0x56,0xf6,0xd0,0x20,0x44,0x58,0x89,0x3e,0x18,0x0d,0xeb,0xa4,
- 0xff,0x06,0x2c,0x0e,0xbe,0x00,0x10,0xff,0x14,0xfa,0x8b,0x3e,
- 0x12,0x0d,0x81,0xc7,0x00,0x04,0x8a,0x5d,0x01,0x83,0xe3,0x0f,
- 0x03,0xdb,0x2e,0x8b,0xb7,0x89,0x00,0x8b,0x54,0x20,0x0b,0xd2,
- 0x74,0x0d,0x8a,0x1d,0x83,0xe3,0x1f,0x03,0xdb,0xfa,0x2e,0xff,
- 0xa7,0x9c,0x0f,0xff,0x06,0x2a,0x0e,0x8b,0x3e,0x12,0x0d,0x8b,
- 0x36,0x18,0x0d,0x8b,0x9d,0x00,0x04,0x89,0x9c,0x00,0x08,0x8b,
- 0x9d,0x02,0x04,0x89,0x9c,0x02,0x08,0x83,0xc6,0x04,0x81,0xe6,
- 0xfc,0x03,0x3b,0x36,0x1a,0x0d,0x74,0x04,0x89,0x36,0x18,0x0d,
- 0xfb,0x8b,0x3e,0x12,0x0d,0x83,0xc7,0x04,0x81,0xe7,0xfc,0x03,
- 0x89,0x3e,0x12,0x0d,0xbe,0x00,0x10,0xff,0x14,0xe9,0x1d,0xfe,
- 0xdc,0x0f,0xe4,0x0f,0xec,0x0f,0x0d,0x10,0x1c,0x10,0x57,0x0f,
- 0x2f,0x10,0x57,0x0f,0x3b,0x10,0x54,0x10,0x83,0x10,0xcf,0x10,
- 0xdb,0x10,0xe4,0x10,0xeb,0x10,0x35,0x11,0x7d,0x11,0x83,0x11,
- 0xa1,0x11,0xb9,0x11,0xf2,0x11,0x38,0x12,0x03,0x13,0x0c,0x13,
- 0x57,0x0f,0x57,0x0f,0x57,0x0f,0x57,0x0f,0x57,0x0f,0x57,0x0f,
- 0x57,0x0f,0x57,0x0f,0x8b,0x45,0x02,0x89,0x44,0x1a,0xeb,0xa0,
- 0x8b,0x45,0x02,0x89,0x44,0x1c,0xeb,0x98,0x8b,0x45,0x02,0x8b,
- 0x5c,0x0a,0x2b,0x5c,0x0c,0x23,0x5c,0x0e,0x8b,0x4c,0x0a,0x2b,
- 0xc8,0x23,0x4c,0x0e,0x3b,0xd9,0x76,0x06,0x23,0x44,0x0e,0x89,
- 0x44,0x0c,0xe9,0x77,0xff,0x80,0x4c,0x53,0x80,0x80,0x4c,0x54,
- 0x01,0x80,0x4c,0x58,0x01,0xe9,0x68,0xff,0x80,0x64,0x53,0x3f,
- 0x80,0x64,0x54,0xfe,0x80,0x4c,0x58,0x01,0x80,0x64,0x51,0xfb,
- 0xe9,0x55,0xff,0x8b,0x45,0x02,0x88,0x44,0x5a,0x88,0x64,0x5b,
- 0xe9,0x49,0xff,0x8b,0x45,0x02,0x0b,0xc0,0x74,0x03,0x89,0x44,
- 0x24,0x80,0x4c,0x50,0x04,0x80,0x4c,0x4b,0x04,0xc7,0x04,0xc3,
- 0x03,0xe9,0x30,0xff,0x8b,0x5d,0x02,0xf6,0xd7,0x22,0x7c,0x54,
- 0x0a,0xdf,0x8a,0x44,0x54,0x32,0xc3,0x24,0x82,0x30,0x44,0x54,
- 0xb0,0x05,0xee,0x8a,0x44,0x75,0x32,0xd8,0x8a,0x7c,0x5f,0xf6,
- 0xd7,0x22,0xdf,0x80,0xe3,0x82,0x32,0xc3,0x88,0x44,0x75,0xee,
- 0xe9,0x01,0xff,0x8b,0x5d,0x02,0xf6,0xc7,0x04,0x75,0x08,0x80,
- 0x64,0x53,0x3f,0x80,0x64,0x51,0xfb,0x8a,0x44,0x29,0x32,0xc7,
- 0xa8,0x10,0x74,0x0e,0xf6,0x44,0x51,0x02,0x74,0x08,0x80,0x74,
- 0x50,0x08,0xc7,0x04,0xc3,0x03,0x88,0x5c,0x28,0x88,0x7c,0x29,
- 0xb4,0x60,0xf6,0xc3,0x10,0x74,0x03,0x80,0xcc,0x10,0x8a,0x44,
- 0x62,0xf6,0xc3,0x20,0x74,0x02,0x24,0x7f,0x89,0x44,0x34,0xc7,
- 0x44,0x06,0xe1,0x08,0xe9,0xb5,0xfe,0x8b,0x45,0x02,0x88,0x44,
- 0x5c,0x88,0x64,0x5d,0xe9,0xa9,0xfe,0x8b,0x45,0x02,0x89,0x44,
- 0x18,0xe9,0xa0,0xfe,0xff,0x1e,0x24,0x0d,0xe9,0x99,0xfe,0xf6,
- 0x44,0x51,0x02,0x75,0x41,0x8b,0x44,0x12,0x2b,0x44,0x14,0x23,
- 0x44,0x16,0x3b,0x44,0x1a,0x72,0x33,0x80,0x4c,0x51,0x02,0xf6,
- 0x44,0x29,0x10,0x74,0x10,0x80,0x4c,0x54,0x04,0x80,0x4c,0x58,
- 0x04,0x80,0x74,0x50,0x08,0xc7,0x04,0xc3,0x03,0xf6,0x44,0x5f,
- 0x82,0x74,0x13,0xb0,0x05,0xee,0x8a,0x44,0x75,0xb4,0x82,0x22,
- 0x64,0x5f,0xf6,0xd4,0x22,0xc4,0x88,0x44,0x75,0xee,0xe9,0x4f,
- 0xfe,0xf6,0x44,0x51,0x02,0x74,0x3f,0x8b,0x44,0x12,0x2b,0x44,
- 0x14,0x23,0x44,0x16,0x3b,0x44,0x1c,0x73,0xe9,0x80,0x64,0x51,
- 0xfd,0xf6,0x44,0x29,0x10,0x74,0x10,0x80,0x64,0x54,0xfb,0x80,
- 0x4c,0x58,0x04,0x80,0x74,0x50,0x08,0xc7,0x04,0xc3,0x03,0xf6,
- 0x44,0x5f,0x02,0x74,0x11,0xb0,0x05,0xee,0x8a,0x44,0x75,0xb4,
- 0x82,0x22,0x64,0x5f,0x0a,0xc4,0x88,0x44,0x75,0xee,0xe9,0x07,
- 0xfe,0xe8,0x8a,0x02,0xe9,0x01,0xfe,0x8b,0x45,0x02,0xbb,0x10,
- 0x27,0xf7,0xe3,0xbb,0x0f,0x00,0xf7,0xf3,0xa3,0x06,0x0e,0xba,
- 0x52,0xff,0xef,0xba,0x50,0xff,0xb8,0x00,0x00,0xef,0xe9,0xe3,
- 0xfd,0x8b,0x45,0x02,0x3a,0x06,0x22,0x0c,0x72,0x0c,0x3b,0x06,
- 0x1a,0x0c,0x77,0x06,0xe8,0xab,0x01,0xe9,0xce,0xfd,0xe9,0x9e,
- 0xfd,0x8b,0x45,0x02,0x88,0x44,0x2a,0x88,0x64,0x2b,0x0b,0xc0,
- 0x75,0x07,0x80,0x64,0x50,0xfe,0xeb,0x10,0x90,0xf6,0x44,0x50,
- 0x01,0x75,0x09,0x80,0x4c,0x50,0x01,0xc7,0x44,0x30,0x00,0x00,
- 0xa8,0x80,0x75,0x07,0xc6,0x44,0x60,0x00,0xeb,0x05,0x90,0xc6,
- 0x44,0x60,0x7f,0xc7,0x04,0xc3,0x03,0xe9,0x92,0xfd,0x8b,0x5d,
- 0x02,0xf6,0xd7,0x22,0x7c,0x5f,0x0a,0xdf,0x8a,0xfb,0x88,0x5c,
- 0x5f,0x8a,0x44,0x52,0x8a,0x64,0x53,0x8b,0xcb,0x33,0xc8,0x81,
- 0xe1,0x38,0x38,0x33,0xc1,0x88,0x44,0x52,0x88,0x64,0x53,0xb0,
- 0x05,0xee,0xf6,0xd3,0x22,0x5c,0x54,0xf6,0x44,0x51,0x02,0x75,
- 0x02,0x0a,0xdf,0x8a,0x44,0x75,0x32,0xd8,0x80,0xe3,0x82,0x32,
- 0xc3,0x88,0x44,0x75,0xee,0xe9,0x4c,0xfd,0x8b,0x5d,0x02,0x88,
- 0x5c,0x2c,0x88,0x7c,0x2d,0x8b,0xcb,0x83,0xe3,0x0f,0x03,0xdb,
- 0x80,0x3e,0x10,0x0c,0x01,0x75,0x1f,0xa1,0x0e,0x0c,0x86,0xe0,
- 0x3d,0x32,0x31,0x73,0x15,0xf6,0xc5,0x04,0x75,0x08,0x2e,0x8b,
- 0x9f,0x69,0x01,0xeb,0x1b,0x90,0x2e,0x8b,0x9f,0x89,0x01,0xeb,
- 0x13,0x90,0xf6,0xc5,0x04,0x75,0x08,0x2e,0x8b,0x9f,0x29,0x01,
- 0xeb,0x06,0x90,0x2e,0x8b,0x9f,0x49,0x01,0xb0,0x0c,0xee,0x8a,
- 0xc3,0x88,0x44,0x7c,0xee,0xb0,0x0d,0x90,0x90,0xee,0x8a,0xc7,
- 0x88,0x44,0x7d,0xee,0xb0,0x04,0xee,0xb0,0x44,0xf6,0xc1,0x40,
- 0x74,0x0c,0xf6,0xc1,0x80,0x74,0x05,0x04,0x04,0xeb,0x03,0x90,
- 0x0c,0x08,0xf6,0xc5,0x01,0x74,0x09,0x0c,0x01,0xf6,0xc5,0x02,
- 0x75,0x02,0x0c,0x02,0x88,0x44,0x74,0xee,0xb0,0x03,0x90,0x90,
- 0xee,0x8a,0xd9,0x80,0xe3,0x30,0xc0,0xeb,0x04,0x32,0xff,0x2e,
- 0x8a,0xa7,0xa9,0x01,0x8a,0x44,0x73,0x24,0x3f,0x0a,0xc4,0x88,
- 0x44,0x73,0xee,0x90,0x90,0xb0,0x05,0xee,0xd0,0xec,0x8a,0x44,
- 0x75,0x24,0x9f,0x0a,0xc4,0x88,0x44,0x75,0xee,0x2e,0x8a,0x87,
- 0xad,0x01,0x88,0x44,0x62,0xf6,0x44,0x28,0x20,0x74,0x02,0x24,
- 0x7f,0x88,0x44,0x34,0xe9,0x81,0xfc,0x8a,0x45,0x02,0x88,0x44,
- 0x5e,0xe9,0x78,0xfc,0x8b,0x45,0x02,0xba,0x5a,0xff,0xef,0x9c,
- 0xff,0x36,0x26,0x0d,0xff,0x36,0x24,0x0d,0x1e,0x06,0x60,0x8b,
- 0x36,0x0a,0x0e,0xc7,0x04,0x3f,0x0d,0xe9,0x5a,0xfc,0xb8,0x00,
- 0x00,0x8e,0xc0,0x8b,0xf0,0x8b,0xf8,0x2e,0x8b,0x9c,0x49,0x00,
- 0x83,0xc6,0x02,0x26,0x89,0x1d,0x26,0x8c,0x4d,0x02,0x83,0xc7,
- 0x04,0x81,0xff,0x80,0x00,0x72,0xe8,0x26,0xc7,0x05,0xcb,0x0c,
- 0x26,0x8c,0x4d,0x02,0x83,0xc7,0x04,0x81,0xff,0x00,0x04,0x72,
- 0xee,0xc3,0xc1,0xe0,0x06,0x8b,0xd8,0x8c,0xda,0x81,0xc2,0x00,
- 0x04,0x8b,0xfa,0x8a,0x0e,0x22,0x0c,0xb5,0x00,0xbe,0x00,0x10,
- 0x33,0xc0,0x89,0x44,0x0a,0x89,0x44,0x0c,0x89,0x44,0x12,0x89,
- 0x44,0x14,0x81,0xc6,0x80,0x00,0xe2,0xee,0x89,0x36,0x0a,0x0e,
- 0xb8,0x01,0x00,0x8b,0xd0,0xb3,0x00,0x8a,0x0e,0x22,0x0c,0xb5,
- 0x00,0xbe,0x00,0x10,0x2b,0xda,0x72,0x29,0x89,0x44,0x16,0x81,
- 0xc6,0x80,0x00,0xe2,0xf3,0x8a,0x0e,0x22,0x0c,0xb5,0x00,0xbe,
- 0x00,0x10,0x2b,0xda,0x72,0x13,0x89,0x44,0x0e,0x81,0xc6,0x80,
- 0x00,0xe2,0xf3,0x8b,0xd0,0x03,0xc0,0x81,0xfa,0x00,0x02,0x72,
- 0xca,0x8a,0x0e,0x22,0x0c,0xb5,0x00,0xbe,0x00,0x10,0x89,0x7c,
- 0x10,0x8b,0x44,0x16,0x03,0xf8,0x8b,0xd7,0xc1,0xe0,0x04,0x48,
- 0x89,0x44,0x16,0x81,0xc6,0x80,0x00,0xe2,0xe9,0x8a,0x0e,0x22,
- 0x0c,0xb5,0x00,0xbe,0x00,0x10,0x89,0x7c,0x08,0x8b,0x44,0x0e,
- 0x03,0xf8,0x8b,0xd7,0xc1,0xe0,0x04,0x48,0x89,0x44,0x0e,0x81,
- 0xc6,0x80,0x00,0xe2,0xe9,0xc3,0xc7,0x04,0x20,0x04,0xc7,0x44,
- 0x06,0xe1,0x08,0x8b,0xc6,0x2d,0x00,0x10,0xb1,0x80,0xf6,0xf1,
- 0x88,0x44,0x48,0xc7,0x44,0x0a,0x00,0x00,0xc7,0x44,0x0c,0x00,
- 0x00,0xc7,0x44,0x12,0x00,0x00,0xc7,0x44,0x14,0x00,0x00,0xc7,
- 0x44,0x18,0x00,0x00,0xc7,0x44,0x1a,0x00,0x00,0xc7,0x44,0x1c,
- 0xff,0xff,0x8a,0x5c,0x48,0x83,0xe3,0x0f,0x03,0xdb,0x8b,0x97,
- 0x90,0x0c,0x89,0x54,0x20,0xb8,0x01,0x00,0x8a,0x4c,0x48,0xd3,
- 0xe0,0x89,0x44,0x2e,0xc7,0x44,0x24,0x19,0x00,0xc7,0x44,0x26,
- 0x00,0x00,0xc6,0x44,0x4a,0x00,0xc7,0x44,0x30,0x00,0x00,0xc7,
- 0x44,0x32,0x00,0x00,0xc6,0x44,0x4c,0x00,0xc6,0x44,0x4d,0x00,
- 0xc6,0x44,0x4e,0x00,0xc6,0x44,0x4f,0x00,0xc6,0x44,0x50,0x00,
- 0xc6,0x44,0x4b,0x00,0xc6,0x44,0x51,0x00,0xc6,0x44,0x28,0x00,
- 0xc6,0x44,0x29,0x00,0xc6,0x44,0x2a,0x00,0xc6,0x44,0x2b,0x00,
- 0xc6,0x44,0x54,0x00,0xc6,0x44,0x57,0x00,0xc6,0x44,0x55,0x00,
- 0xc6,0x44,0x56,0x00,0xc6,0x44,0x58,0x00,0xc6,0x44,0x52,0x04,
- 0xc6,0x44,0x53,0x04,0xc6,0x44,0x5f,0x00,0xc6,0x44,0x2c,0x3d,
- 0xc6,0x44,0x2d,0x00,0xc7,0x44,0x34,0xff,0x60,0xc6,0x44,0x62,
- 0xff,0xc6,0x44,0x5d,0x13,0xc6,0x44,0x5c,0x11,0xc6,0x44,0x5e,
- 0x00,0xc6,0x44,0x60,0x23,0xc6,0x44,0x61,0x23,0x0b,0xd2,0x75,
- 0x03,0xe9,0xd9,0x00,0xb0,0x09,0xee,0x8a,0x4c,0x48,0xb0,0x80,
- 0xd2,0xe8,0xee,0xc6,0x44,0x70,0x00,0xb0,0x01,0xee,0xb0,0x11,
- 0x88,0x44,0x71,0xee,0xb0,0x02,0x90,0x90,0xee,0x8a,0x44,0x48,
- 0xc0,0xe0,0x03,0x24,0xf0,0x88,0x44,0x72,0xee,0xb0,0x03,0x90,
- 0x90,0xee,0xb0,0xc0,0x88,0x44,0x73,0xee,0xb0,0x04,0x90,0x90,
- 0xee,0xb0,0x44,0x88,0x44,0x74,0xee,0xb0,0x05,0x90,0xee,0xb0,
- 0x60,0x88,0x44,0x75,0xee,0xc6,0x44,0x76,0x00,0xc6,0x44,0x77,
- 0x00,0xc6,0x44,0x78,0x00,0xb0,0x09,0xee,0xb0,0x09,0x88,0x44,
- 0x79,0xee,0xc6,0x44,0x7a,0x00,0xb0,0x0b,0xee,0xb0,0x52,0x88,
- 0x44,0x7b,0xee,0x80,0x3e,0x10,0x0c,0x01,0x75,0x21,0xa1,0x0e,
- 0x0c,0x86,0xe0,0x3d,0x32,0x31,0x73,0x17,0xb0,0x0c,0xee,0xb0,
- 0x18,0x88,0x44,0x7c,0xee,0xb0,0x0d,0x90,0x90,0xee,0xb0,0x00,
- 0x88,0x44,0x7d,0xee,0xeb,0x15,0x90,0xb0,0x0c,0xee,0xb0,0x16,
- 0x88,0x44,0x7c,0xee,0xb0,0x0d,0x90,0x90,0xee,0xb0,0x00,0x88,
- 0x44,0x7d,0xee,0xb0,0x0e,0x90,0x90,0xee,0xb0,0x03,0x88,0x44,
- 0x7e,0xee,0xb0,0x0f,0x90,0x90,0xee,0xb0,0x80,0x88,0x44,0x7f,
- 0xee,0xb0,0x03,0x90,0x90,0xee,0x8a,0x44,0x73,0x0c,0x01,0x88,
- 0x44,0x73,0xee,0x90,0x90,0xb0,0x05,0xee,0x8a,0x44,0x75,0x0c,
- 0x08,0x88,0x44,0x75,0xee,0xc3,0xfa,0x8c,0xd8,0x25,0x00,0xf0,
- 0x8e,0xd0,0xbc,0xfe,0x1f,0x8c,0xd8,0x25,0x00,0xf0,0x8e,0xd8,
- 0x80,0x3e,0x40,0x0d,0x01,0x75,0x51,0xa1,0x0e,0x0c,0x86,0xe0,
- 0x3d,0x30,0x32,0x73,0x47,0x8b,0x1e,0x20,0x0c,0x8a,0x16,0x23,
- 0x0c,0xc6,0x06,0x23,0x0c,0x00,0x83,0xfb,0x00,0x74,0x07,0xfe,
- 0xca,0xc6,0x06,0x23,0x0c,0x01,0x88,0x16,0x22,0x0c,0xbe,0x10,
- 0x0c,0xbf,0x90,0x0c,0xb9,0x08,0x00,0x1e,0x07,0xfc,0xf3,0xa5,
- 0xbf,0xa0,0x0c,0xb8,0x00,0x00,0xb9,0x08,0x00,0xf3,0xab,0xc7,
- 0x06,0x1a,0x0c,0x70,0x00,0xa0,0x40,0x0d,0xa2,0x10,0x0c,0xc6,
- 0x06,0x11,0x0c,0x00,0x2e,0x8c,0x1e,0xc1,0x03,0xc7,0x06,0x18,
- 0x0e,0x02,0x00,0xe8,0xec,0xfc,0xc7,0x06,0x24,0x0d,0x5a,0x0d,
- 0x8c,0x0e,0x26,0x0d,0xc7,0x06,0x18,0x0e,0x06,0x00,0xa1,0x1a,
- 0x0c,0xe8,0x0a,0xfd,0xc7,0x06,0x18,0x0e,0x0a,0x00,0xbe,0x00,
- 0x10,0xc7,0x44,0x1e,0x80,0x00,0xe8,0xa5,0xfd,0x81,0xc6,0x80,
- 0x00,0x81,0xfe,0x00,0x18,0x72,0xee,0xa0,0x22,0x0c,0xb4,0x80,
- 0xf6,0xe4,0xbe,0x00,0x10,0x03,0xf0,0x89,0x36,0x0a,0x0e,0x29,
- 0x44,0x9e,0xc7,0x06,0x00,0x0e,0x00,0x00,0xc7,0x06,0x02,0x0e,
- 0x00,0x00,0xc7,0x06,0x04,0x0e,0x00,0x00,0xc7,0x06,0x06,0x0e,
- 0x9a,0x02,0xba,0x52,0xff,0xa1,0x06,0x0e,0xef,0xba,0x50,0xff,
- 0xb8,0x00,0x00,0xef,0xba,0x56,0xff,0xb8,0x05,0xe0,0xef,0xba,
- 0x5e,0xff,0xb8,0x00,0x40,0xef,0xba,0x66,0xff,0xb8,0x00,0x40,
- 0xef,0xc7,0x06,0x10,0x0d,0x00,0x00,0xc7,0x06,0x12,0x0d,0x00,
- 0x00,0xc7,0x06,0x14,0x0d,0x00,0x04,0xc7,0x06,0x16,0x0d,0xfc,
- 0x03,0xc7,0x06,0x18,0x0d,0x00,0x00,0xc7,0x06,0x1a,0x0d,0x00,
- 0x00,0xc7,0x06,0x1c,0x0d,0x00,0x08,0xc7,0x06,0x1e,0x0d,0xfc,
- 0x03,0xb0,0x00,0x90,0xe6,0x00,0xc7,0x06,0x18,0x0e,0x32,0x00,
- 0xba,0x38,0xff,0xb8,0x11,0x00,0xef,0xba,0x3a,0xff,0xb8,0x08,
- 0x00,0xef,0xba,0x3c,0xff,0xb8,0x08,0x00,0xef,0xba,0x3e,0xff,
- 0xb8,0x08,0x00,0x80,0x3e,0x22,0x0c,0x08,0x76,0x03,0xb8,0x12,
- 0x00,0xef,0xba,0x32,0xff,0xb8,0x05,0x00,0xef,0xba,0x28,0xff,
- 0xb8,0x6c,0x00,0xef,0xba,0x22,0xff,0xb8,0x00,0x80,0xef,0xc7,
- 0x06,0x18,0x0e,0x33,0x00,0xc7,0x06,0x20,0x0d,0x4f,0x00,0xc7,
- 0x06,0x21,0x0d,0x53,0x00,0x8b,0x36,0x0a,0x0e,0xc7,0x04,0x3c,
- 0x0d,0xc7,0x06,0x08,0x0e,0x00,0x10,0xe9,0x63,0xf6,0x40,0x28,
- 0x23,0x29,0x20,0x24,0x49,0x64,0x3a,0x20,0x78,0x61,0x63,0x6f,
- 0x6f,0x6b,0x2e,0x61,0x73,0x6d,0x2c,0x76,0x20,0x37,0x2e,0x32,
- 0x35,0x20,0x31,0x39,0x39,0x35,0x2f,0x30,0x31,0x2f,0x31,0x32,
- 0x20,0x32,0x30,0x3a,0x35,0x39,0x3a,0x32,0x31,0x20,0x6d,0x69,
- 0x6c,0x74,0x20,0x45,0x78,0x70,0x20,0x24,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
-};
-
-static unsigned pcxx_ncook=sizeof(pcxx_cook);
diff --git a/sys/dev/dgb/dgreg.h b/sys/dev/dgb/dgreg.h
deleted file mode 100644
index 0f8aea0..0000000
--- a/sys/dev/dgb/dgreg.h
+++ /dev/null
@@ -1,432 +0,0 @@
-/*-
- * dgreg.h $FreeBSD$
- *
- * Digiboard driver.
- *
- * Stage 1. "Better than nothing".
- * Stage 2. "Gee, it works!".
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions, and the following disclaimer,
- * without modification, immediately at the beginning of the file.
- * 2. Redistributions of binary code must retain the above copyright
- * notice, this list of conditions, and the following disclaimer,
- * without modification, in the accompanying documentation.
- * 3. The name of the author may not be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * Written by Sergey Babkin,
- * Joint Stock Commercial Bank "Chelindbank"
- * (Chelyabinsk, Russia)
- * babkin@freebsd.org
- */
-
-#define MAX_DGB_PORTS 32
-
-/* digi.h */
-/* Definitions for DigiBoard ditty(1) command. */
-
-#if !defined(TIOCMODG)
-#define TIOCMODG ('d'<<8) | 250 /* get modem ctrl state */
-#define TIOCMODS ('d'<<8) | 251 /* set modem ctrl state */
-#endif
-
-#if !defined(TIOCMSET)
-#define TIOCMSET ('d'<<8) | 252 /* set modem ctrl state */
-#define TIOCMGET ('d'<<8) | 253 /* set modem ctrl state */
-#endif
-
-#if !defined(TIOCMBIC)
-#define TIOCMBIC ('d'<<8) | 254 /* set modem ctrl state */
-#define TIOCMBIS ('d'<<8) | 255 /* set modem ctrl state */
-#endif
-
-#if !defined(TIOCSDTR)
-#define TIOCSDTR ('e'<<8) | 0 /* set DTR */
-#define TIOCCDTR ('e'<<8) | 1 /* clear DTR */
-#endif
-
-/************************************************************************
- * Ioctl command arguments for DIGI parameters.
- ************************************************************************/
-#define DIGI_GETA ('e'<<8) | 94 /* Read params */
-
-#define DIGI_SETA ('e'<<8) | 95 /* Set params */
-#define DIGI_SETAW ('e'<<8) | 96 /* Drain & set params */
-#define DIGI_SETAF ('e'<<8) | 97 /* Drain, flush & set params */
-
-#define DIGI_GETFLOW ('e'<<8) | 99 /* Get startc/stopc flow */
- /* control characters */
-#define DIGI_SETFLOW ('e'<<8) | 100 /* Set startc/stopc flow */
- /* control characters */
-#define DIGI_GETAFLOW ('e'<<8) | 101 /* Get Aux. startc/stopc */
- /* flow control chars */
-#define DIGI_SETAFLOW ('e'<<8) | 102 /* Set Aux. startc/stopc */
- /* flow control chars */
-
-struct digiflow_struct {
- unsigned char startc; /* flow cntl start char */
- unsigned char stopc; /* flow cntl stop char */
-};
-
-typedef struct digiflow_struct digiflow_t;
-
-
-/************************************************************************
- * Values for digi_flags
- ************************************************************************/
-#define DIGI_IXON 0x0001 /* Handle IXON in the FEP */
-#define DIGI_FAST 0x0002 /* Fast baud rates */
-#define RTSPACE 0x0004 /* RTS input flow control */
-#define CTSPACE 0x0008 /* CTS output flow control */
-#define DSRPACE 0x0010 /* DSR output flow control */
-#define DCDPACE 0x0020 /* DCD output flow control */
-#define DTRPACE 0x0040 /* DTR input flow control */
-#define DIGI_FORCEDCD 0x0100 /* Force carrier */
-#define DIGI_ALTPIN 0x0200 /* Alternate RJ-45 pin config */
-#define DIGI_AIXON 0x0400 /* Aux flow control in fep */
-
-
-/************************************************************************
- * Structure used with ioctl commands for DIGI parameters.
- ************************************************************************/
-struct digi_struct {
- unsigned short digi_flags; /* Flags (see above) */
-};
-
-typedef struct digi_struct digi_t;
-
-/* fep.h */
-
-#define FEP_CSTART 0x400L
-#define FEP_CMAX 0x800L
-#define FEP_ISTART 0x800L
-#define FEP_IMAX 0xC00L
-#define FEP_CIN 0xD10L
-#define FEP_GLOBAL 0xD10L
-#define FEP_EIN 0xD18L
-#define FEPSTAT 0xD20L
-#define CHANSTRUCT 0x1000L
-#define RXTXBUF 0x4000L
-
-
-struct global_data {
- volatile u_short cin;
- volatile u_short cout;
- volatile u_short cstart;
- volatile u_short cmax;
- volatile u_short ein;
- volatile u_short eout;
- volatile u_short istart;
- volatile u_short imax;
-};
-
-
-struct board_chan {
- int filler1;
- int filler2;
- volatile u_short tseg;
- volatile u_short tin;
- volatile u_short tout;
- volatile u_short tmax;
-
- volatile u_short rseg;
- volatile u_short rin;
- volatile u_short rout;
- volatile u_short rmax;
-
- volatile u_short tlow;
- volatile u_short rlow;
- volatile u_short rhigh;
- volatile u_short incr;
-
- volatile u_short etime;
- volatile u_short edelay;
- volatile u_char *dev;
-
- volatile u_short iflag;
- volatile u_short oflag;
- volatile u_short cflag;
- volatile u_short gmask;
-
- volatile u_short col;
- volatile u_short delay;
- volatile u_short imask;
- volatile u_short tflush;
-
- int filler3;
- int filler4;
- int filler5;
- int filler6;
-
- volatile u_char num;
- volatile u_char ract;
- volatile u_char bstat;
- volatile u_char tbusy;
- volatile u_char iempty;
- volatile u_char ilow;
- volatile u_char idata;
- volatile u_char eflag;
-
- volatile u_char tflag;
- volatile u_char rflag;
- volatile u_char xmask;
- volatile u_char xval;
- volatile u_char mstat;
- volatile u_char mchange;
- volatile u_char mint;
- volatile u_char lstat;
-
- volatile u_char mtran;
- volatile u_char orun;
- volatile u_char startca;
- volatile u_char stopca;
- volatile u_char startc;
- volatile u_char stopc;
- volatile u_char vnext;
- volatile u_char hflow;
-
- volatile u_char fillc;
- volatile u_char ochar;
- volatile u_char omask;
-
- u_char filler7;
- u_char filler8[28];
-};
-
-
-#define SRXLWATER 0xE0
-#define SRXHWATER 0xE1
-#define STOUT 0xE2
-#define PAUSETX 0xE3
-#define RESUMETX 0xE4
-#define SAUXONOFFC 0xE6
-#define SENDBREAK 0xE8
-#define SETMODEM 0xE9
-#define SETIFLAGS 0xEA
-#define SONOFFC 0xEB
-#define STXLWATER 0xEC
-#define PAUSERX 0xEE
-#define RESUMERX 0xEF
-#define SETBUFFER 0xF2
-#define SETCOOKED 0xF3
-#define SETHFLOW 0xF4
-#define SETCTRLFLAGS 0xF5
-#define SETVNEXT 0xF6
-
-
-
-#define BREAK_IND 0x01
-#define LOWTX_IND 0x02
-#define EMPTYTX_IND 0x04
-#define DATA_IND 0x08
-#define MODEMCHG_IND 0x20
-
-#define ALL_IND (BREAK_IND|LOWTX_IND|EMPTYTX_IND|DATA_IND|MODEMCHG_IND)
-
-
-#define RTS 0x02
-#define CD 0x08
-#define DSR 0x10
-#define CTS 0x20
-#define RI 0x40
-#define DTR 0x80
-
-/* pcxx.h */
-
-#define FEPCODESEG 0x0200L
-#define FEPCODE 0x2000L
-#define BIOSCODE 0xf800L
-
-#define MISCGLOBAL 0x0C00L
-#define NPORT 0x0C22L
-#define MBOX 0x0C40L
-#define PORTBASE 0x0C90L
-#define BOTWIN 0x100L
-#define TOPWIN 0xFF00L
-
-#define FEPCLR 0x00
-#define FEPMEM 0x02
-#define FEPRST 0x04
-#define FEPINT 0x08
-#define FEPMASK 0x0e
-#define FEPWIN 0x80
-
-#define PCXI 0
-#define PCXE 1
-#define PCXEVE 2
-
-static char * const board_desc[] = {
- "PC/Xi (64K)",
- "PC/Xe (64K)",
- "PC/Xe (8K) ",
-};
-
-#define STARTC 021
-#define STOPC 023
-#define IAIXON 0x2000
-
-
-struct board_info {
- u_char status;
- u_char type;
- u_char altpin;
- u_short numports;
- u_short port;
- u_long membase;
-};
-
-
-#define TXSTOPPED 0x1
-#define LOWWAIT 0x2
-#define EMPTYWAIT 0x4
-
-#define DISABLED 0
-#define ENABLED 1
-#define OFF 0
-#define ON 1
-
-#define FEPTIMEOUT 200000
-#define SERIAL_TYPE_NORMAL 1
-#define SERIAL_TYPE_CALLOUT 2
-#define PCXE_EVENT_HANGUP 1
-
-struct channel {
- u_char unit; /* board unit number */
- u_char omodem; /* FEP output modem status */
- u_char imodem; /* FEP input modem status */
- u_char modemfake; /* Modem values to be forced */
- u_char modem; /* Force values */
- u_char hflow;
- u_char dsr;
- u_char dcd;
- u_char stopc;
- u_char startc;
- u_char stopca;
- u_char startca;
- u_char fepstopc;
- u_char fepstartc;
- u_char fepstopca;
- u_char fepstartca;
- u_char txwin;
- u_char rxwin;
- u_short fepiflag;
- u_short fepcflag;
- u_short fepoflag;
- u_short txbufhead;
- u_short txbufsize;
- u_short rxbufhead;
- u_short rxbufsize;
- int close_delay;
- int count;
- int blocked_open;
- int event;
- int asyncflags;
- u_int dev;
- long session;
- long pgrp;
- u_long statusflags;
- u_long c_iflag;
- u_long c_cflag;
- u_long c_lflag;
- u_long c_oflag;
- u_char *txptr;
- u_char *rxptr;
- struct board_info *board;
- struct board_chan *brdchan;
- struct digi_struct digiext;
- struct tty *tty;
- struct termios normal_termios;
- struct termios callout_termios;
- volatile struct global_data *mailbox;
-};
-
-/* flags for configuring */
-
-#define DGBFLAG_ALTPIN 0x0001 /* chande DCD and DCD */
-#define DGBFLAG_NOWIN 0x0002 /* use windowed PC/Xe as non-windowed */
-
-#define DB_RD 0x0001
-#define DB_WR 0x0002
-#define DB_WIN 0x0004
-#define DB_INFO 0x0008
-#define DB_EXCEPT 0x0010
-#define DB_OPEN 0x0100
-#define DB_CLOSE 0x0200
-#define DB_DATA 0x0400
-#define DB_RXDATA 0x0401
-#define DB_TXDATA 0x0402
-#define DB_EVENT 0x0800
-#define DB_MODEM 0x1000
-#define DB_BREAK 0x2000
-#define DB_PARAM 0x4000
-#define DB_FEP 0x8000
-
-/* debugging printout */
-
-#ifdef DGB_DEBUG
-#define DPRINT1(l,a1) (dgbdebug&l ? printf(a1) : 0)
-#define DPRINT2(l,a1,a2) (dgbdebug&l ? printf(a1,a2) : 0)
-#define DPRINT3(l,a1,a2,a3) (dgbdebug&l ? printf(a1,a2,a3) : 0)
-#define DPRINT4(l,a1,a2,a3,a4) (dgbdebug&l ? printf(a1,a2,a3,a4) : 0)
-#define DPRINT5(l,a1,a2,a3,a4,a5) (dgbdebug&l ? printf(a1,a2,a3,a4,a5) : 0)
-#define DPRINT6(l,a1,a2,a3,a4,a5,a6) (dgbdebug&l ? printf(a1,a2,a3,a4,a5,a6) : 0)
-#define DPRINT7(l,a1,a2,a3,a4,a5,a6,a7) (dgbdebug&l ? printf(a1,a2,a3,a4,a5,a6,a7) : 0)
-#else
-#define DPRINT1(l,a1)
-#define DPRINT2(l,a1,a2)
-#define DPRINT3(l,a1,a2,a3)
-#define DPRINT4(l,a1,a2,a3,a4)
-#define DPRINT5(l,a1,a2,a3,a4,a5)
-#define DPRINT6(l,a1,a2,a3,a4,a5,a6)
-#define DPRINT7(l,a1,a2,a3,a4,a5,a6,a7)
-#endif
-
-
- /* These are termios bits as the FEP understands them */
-
-/* c_cflag bits */
-#define FEP_CBAUD 0x00000f
-#define FEP_B0 0x000000 /* hang up */
-#define FEP_B50 0x000001
-#define FEP_B75 0x000002
-#define FEP_B110 0x000003
-#define FEP_B134 0x000004
-#define FEP_B150 0x000005
-#define FEP_B200 0x000006
-#define FEP_B300 0x000007
-#define FEP_B600 0x000008
-#define FEP_B1200 0x000009
-#define FEP_B1800 0x00000a
-#define FEP_B2400 0x00000b
-#define FEP_B4800 0x00000c
-#define FEP_B9600 0x00000d
-#define FEP_B19200 0x00000e
-#define FEP_B38400 0x00000f
-#define FEP_EXTA FEP_B19200
-#define FEP_EXTB FEP_B38400
-#define FEP_CSIZE 0x000030
-#define FEP_CS5 0x000000
-#define FEP_CS6 0x000010
-#define FEP_CS7 0x000020
-#define FEP_CS8 0x000030
-#define FEP_CSTOPB 0x000040
-#define FEP_CREAD 0x000080
-#define FEP_PARENB 0x000100
-#define FEP_PARODD 0x000200
-#define FEP_CLOCAL 0x000800
-#define FEP_FASTBAUD 0x000400
-/* c_iflag bits */
-#define FEP_IGNBRK 0000001
-#define FEP_BRKINT 0000002
-#define FEP_IGNPAR 0000004
-#define FEP_PARMRK 0000010
-#define FEP_INPCK 0000020
-#define FEP_ISTRIP 0000040
-#define FEP_IXON 0002000
-#define FEP_IXANY 0004000
-#define FEP_IXOFF 0010000
-
diff --git a/sys/i386/conf/NOTES b/sys/i386/conf/NOTES
index 85ef800..3f7e97a 100644
--- a/sys/i386/conf/NOTES
+++ b/sys/i386/conf/NOTES
@@ -609,7 +609,6 @@ options SAFE_RNDTEST # enable rndtest support
# apm: Laptop Advanced Power Management (experimental)
# pmtimer: Timer device driver for power management events (APM or ACPI)
# spigot: The Creative Labs Video Spigot video-acquisition board
-# dgb: Digiboard PC/Xi and PC/Xe series driver (ALPHA QUALITY!)
# digi: Digiboard driver
# gp: National Instruments AT-GPIB and AT-GPIB/TNT board, PCMCIA-GPIB
# asc: GI1904-based hand scanners, e.g. the Trust Amiscan Grey
@@ -668,15 +667,6 @@ options SAFE_RNDTEST # enable rndtest support
# Brumby: flags 2 msize 0x4000
# Stallion: flags 1 msize 0x10000
-# Notes on the Digiboard PC/Xi and PC/Xe series driver
-#
-# The NDGBPORTS option specifies the number of ports controlled by the
-# dgb(4) driver. The default value is 16 ports per device.
-#
-# The following flag values have special meanings in dgb:
-# 0x01 - alternate layout of pins
-# 0x02 - use the windowed PC/Xe in 64K mode
-
device wt 1
hint.wt.0.at="isa"
hint.wt.0.port="0x300"
@@ -701,11 +691,6 @@ device gsc 1
hint.gsc.0.at="isa"
hint.gsc.0.port="0x270"
hint.gsc.0.drq="3"
-device dgb 1
-options NDGBPORTS=17
-hint.dgb.0.at="isa"
-hint.dgb.0.port="0x220"
-hint.dgb.0.maddr="0xfc000"
device digi
hint.digi.0.at="isa"
hint.digi.0.port="0x104"
diff --git a/sys/pc98/conf/NOTES b/sys/pc98/conf/NOTES
index 4a37458..819d46e 100644
--- a/sys/pc98/conf/NOTES
+++ b/sys/pc98/conf/NOTES
@@ -501,7 +501,6 @@ options SAFE_RNDTEST # enable rndtest support
# apm: Laptop Advanced Power Management (experimental)
# pmtimer: Timer device driver for power management events (APM or ACPI)
# spigot: The Creative Labs Video Spigot video-acquisition board
-# dgb: Digiboard PC/Xi and PC/Xe series driver (ALPHA QUALITY!)
# digi: Digiboard driver
# gp: National Instruments AT-GPIB and AT-GPIB/TNT board, PCMCIA-GPIB
# stl: Stallion EasyIO and EasyConnection 8/32 (cd1400 based)
@@ -557,15 +556,6 @@ options SAFE_RNDTEST # enable rndtest support
# Brumby: flags 2 msize 0x4000
# Stallion: flags 1 msize 0x10000
-# Notes on the Digiboard PC/Xi and PC/Xe series driver
-#
-# The NDGBPORTS option specifies the number of ports controlled by the
-# dgb(4) driver. The default value is 16 ports per device.
-#
-# The following flag values have special meanings in dgb:
-# 0x01 - alternate layout of pins
-# 0x02 - use the windowed PC/Xe in 64K mode
-
device wt 1
hint.wt.0.at="isa"
hint.wt.0.port="0x300"
@@ -591,11 +581,6 @@ device pmtimer # Adjust system timer at wakeup time
device gp
hint.gp.0.at="isa"
hint.gp.0.port="0x2c0"
-device dgb 1
-options NDGBPORTS=17
-hint.dgb.0.at="isa"
-hint.dgb.0.port="0x220"
-hint.dgb.0.maddr="0xfc000"
device digi
hint.digi.0.at="isa"
hint.digi.0.port="0x104"
OpenPOWER on IntegriCloud