Driver for DaynaPORT SCSI/Link (dse.4).

Written by Hiroshi Noguchi, of which an updated version was posted to
port-mac68k in 2001.

Attachments were added to kernel configs for platforms that already had
the Cabletron (se.4) driver added, although other platorms may benefit.

Reviewed on tech-net by Izumi Tsutsui.
This commit is contained in:
nat 2022-12-22 11:05:54 +00:00
parent 65864d7226
commit 111c077e20
16 changed files with 1526 additions and 20 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: mi,v 1.1757 2022/11/21 22:01:32 christos Exp $
# $NetBSD: mi,v 1.1758 2022/12/22 11:05:54 nat Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@ -1060,6 +1060,7 @@
./usr/share/man/cat4/drm.0 man-sys-catman .cat
./usr/share/man/cat4/drum.0 man-sys-catman .cat
./usr/share/man/cat4/drvctl.0 man-sys-catman .cat
./usr/share/man/cat4/dse.0 man-sys-catman .cat
./usr/share/man/cat4/dtide.0 man-sys-catman .cat
./usr/share/man/cat4/dtv.0 man-sys-catman .cat
./usr/share/man/cat4/dtviic.0 man-sys-catman .cat
@ -4331,6 +4332,7 @@
./usr/share/man/html4/drm.html man-sys-htmlman html
./usr/share/man/html4/drum.html man-sys-htmlman html
./usr/share/man/html4/drvctl.html man-sys-htmlman html
./usr/share/man/html4/dse.html man-sys-htmlman html
./usr/share/man/html4/dtide.html man-sys-htmlman html
./usr/share/man/html4/dtv.html man-sys-htmlman html
./usr/share/man/html4/dtviic.html man-sys-htmlman html
@ -7374,6 +7376,7 @@
./usr/share/man/man4/drm.4 man-sys-man .man
./usr/share/man/man4/drum.4 man-sys-man .man
./usr/share/man/man4/drvctl.4 man-sys-man .man
./usr/share/man/man4/dse.4 man-sys-man .man
./usr/share/man/man4/dtide.4 man-sys-man .man
./usr/share/man/man4/dtv.4 man-sys-man .man
./usr/share/man/man4/dtviic.4 man-sys-man .man

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.730 2022/11/21 21:24:00 brad Exp $
# $NetBSD: Makefile,v 1.731 2022/12/22 11:05:54 nat Exp $
# @(#)Makefile 8.1 (Berkeley) 6/18/93
MAN= aac.4 ac97.4 acardide.4 aceride.4 acphy.4 \
@ -20,7 +20,8 @@ MAN= aac.4 ac97.4 acardide.4 aceride.4 acphy.4 \
clockctl.4 cmdide.4 cmpci.4 cms.4 cnw.4 \
com.4 coram.4 crypto.4 cs80bus.4 cuda.4 cypide.4 cxdtv.4 \
ddb.4 ddc.4 dge.4 dk.4 dm.4 dmoverio.4 \
dmphy.4 dpt.4 dpti.4 drm.4 drum.4 drvctl.4 dtv.4 dtviic.4 dwctwo.4 \
dmphy.4 dpt.4 dpti.4 drm.4 drum.4 drvctl.4 dse.4 dtv.4 dtviic.4 \
dwctwo.4 \
eap.4 ebus.4 edc.4 elmc.4 emuxki.4 ena.4 envsys.4 ep.4 \
eqos.4 esa.4 esiop.4 esm.4 eso.4 et.4 etphy.4 exphy.4 \
fd.4 finsio.4 flash.4 fms.4 fss.4 \

82
share/man/man4/dse.4 Normal file
View File

@ -0,0 +1,82 @@
.\" $NetBSD: dse.4,v 1.1 2022/12/22 11:05:54 nat Exp $
.\" Copyright (c) 2022 Nathanial Sloss <nathanialsloss@yahoo.com.au>
.\" All rights reserved.
.\"
.\" 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.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. 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 FOUNDATION 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.
.\"
.Dd December 16, 2022
.Dt DSE 4
.Os
.Sh NAME
.Nm dse
.Nd DaynaPORT SCSI/Link SCSI bus Ethernet interface driver
.Sh SYNOPSIS
.Cd "dse* at scsibus? target ? lun ?"
.Sh DESCRIPTION
The
.Nm
driver supports the
.Tn DaynaPORT
SCSI/Link
.Tn SCSI
bus
.Tn Ethernet
interface.
These devices can also be currently emulated on a Raspberry Pi with an RaSCSI
board running PiSCSI software.
.Pp
There are additionally
.Fn open ,
.Fn close ,
and
.Fn ioctl
entry points so that the device also appears as a
.Tn SCSI
device.
Currently these functions are place holders.
.Sh SEE ALSO
.Xr scsi 4 ,
.Xr ifconfig 8
.Sh AUTHORS
.An -nosplit
.An Hiroshi Noguchi Aq Mt ngc@ff.iij4u.or.jp
.Pp
.An -nosplit
.An Matt Sandstrom Aq Mt mattias@beauty.se
who modified this driver for
.Nx 1.5.3
.Sh BUGS
This device doesn't conform to the
.Tn SCSI
specification.
Also that this manual page was written by
.An -nosplit
.An Nathanial Sloss Aq Mt nathanialsloss@yahoo.com.au
.Sh REFERNCES
.Tn RaSCSI
http://retropc.net/gimons/rascsi/
.Pp
.Tn PiSCSI (formally RaSCSI Reloaded)
https://github.com/PiSCSI
.Pp
.Tn Raspberry Pi
http://raspberrypi.org

View File

@ -1,4 +1,4 @@
# $NetBSD: GENERIC,v 1.416 2022/09/29 10:10:05 riastradh Exp $
# $NetBSD: GENERIC,v 1.417 2022/12/22 11:05:54 nat Exp $
#
# This machine description file is used to generate the default NetBSD
# kernel.
@ -19,7 +19,7 @@ include "arch/alpha/conf/std.alpha"
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
ident "GENERIC-$Revision: 1.416 $"
ident "GENERIC-$Revision: 1.417 $"
maxusers 32
@ -491,6 +491,7 @@ scsibus* at scsi?
cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
ch* at scsibus? target ? lun ? # SCSI autochangers
sd* at scsibus? target ? lun ? # SCSI disk drives
dse* at scsibus? target ? lun ? # SCSI ethernet (Dayna)
se* at scsibus? target ? lun ? # Cabletron SCSI<->Ethernet
ses* at scsibus? target ? lun ? # SCSI SES/SAF-TE
ss* at scsibus? target ? lun ? # SCSI scanners

View File

@ -1,4 +1,4 @@
# $NetBSD: ALL,v 1.174 2022/09/24 11:05:17 riastradh Exp $
# $NetBSD: ALL,v 1.175 2022/12/22 11:05:55 nat Exp $
# From NetBSD: GENERIC,v 1.787 2006/10/01 18:37:54 bouyer Exp
#
# ALL machine description file
@ -17,7 +17,7 @@ include "arch/amd64/conf/std.amd64"
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
#ident "ALL-$Revision: 1.174 $"
#ident "ALL-$Revision: 1.175 $"
maxusers 64 # estimated number of users
@ -828,6 +828,7 @@ cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
ch* at scsibus? target ? lun ? # SCSI autochangers
ses* at scsibus? target ? lun ? # SCSI Enclosure Services devices
ss* at scsibus? target ? lun ? # SCSI scanners
dse* at scsibus? target ? lun ? # SCSI ethernet (Dayna)
se* at scsibus? target ? lun ? # SCSI ethernet adapters
uk* at scsibus? target ? lun ? # SCSI unknown

View File

@ -1,5 +1,5 @@
#
# $NetBSD: ATARITT,v 1.125 2022/08/07 02:55:46 simonb Exp $
# $NetBSD: ATARITT,v 1.126 2022/12/22 11:05:55 nat Exp $
#
# This file was automatically created. Changes will be
# lost when running makeconf in this directory.
@ -90,4 +90,5 @@ et4k0 at vme0 # Crazy Dots II
scsibus* at scsi? # SCSI bus
sd* at scsibus? target ? lun ? # SCSI disk drives
cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
dse* at scsibus? target ? lun ? # SCSI ethernet (Dayna)
se* at scsibus? target ? lun ? # SCSI ethernet

View File

@ -1,5 +1,5 @@
#
# $NetBSD: FALCON,v 1.122 2022/08/07 02:55:46 simonb Exp $
# $NetBSD: FALCON,v 1.123 2022/12/22 11:05:55 nat Exp $
#
# This file was automatically created. Changes will be
# lost when running makeconf in this directory.
@ -94,4 +94,5 @@ cd* at atapibus? drive ? # ATAPI CD-ROM drives
scsibus* at scsi? # SCSI bus
sd* at scsibus? target ? lun ? # SCSI disk drives
cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
dse* at scsibus? target ? lun ? # SCSI ethernet (Dayna)
se* at scsibus? target ? lun ? # SCSI ethernet

View File

@ -1,5 +1,5 @@
#
# $NetBSD: GENERIC.in,v 1.124 2022/08/07 02:52:24 simonb Exp $
# $NetBSD: GENERIC.in,v 1.125 2022/12/22 11:05:55 nat Exp $
#
# Generic atari
#
@ -371,6 +371,7 @@ cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
#st* at scsibus? target ? lun ? # SCSI tape drives
#ch* at scsibus? target ? lun ? # SCSI autochangers
#ss* at scsibus? target ? lun ? # SCSI scanners
dse* at scsibus? target ? lun ? # SCSI ethernet (Dayna)
se* at scsibus? target ? lun ? # SCSI ethernet
#uk* at scsibus? target ? lun ? # SCSI unknown
#endif /* ! SMALL030_KERNEL */

View File

@ -1,5 +1,5 @@
#
# $NetBSD: HADES,v 1.120 2022/08/07 02:55:46 simonb Exp $
# $NetBSD: HADES,v 1.121 2022/12/22 11:05:55 nat Exp $
#
# This file was automatically created. Changes will be
# lost when running makeconf in this directory.
@ -113,6 +113,7 @@ st* at scsibus? target ? lun ? # SCSI tape drives
cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
ch* at scsibus? target ? lun ? # SCSI autochangers
ss* at scsibus? target ? lun ? # SCSI scanners
dse* at scsibus? target ? lun ? # SCSI ethernet (Dayna)
se* at scsibus? target ? lun ? # SCSI ethernet
uk* at scsibus? target ? lun ? # SCSI unknown
ne0 at isa0 port 0x300 irq 5 # NE2000 ethernet

View File

@ -1,5 +1,5 @@
#
# $NetBSD: HADES.in,v 1.16 2018/03/31 04:19:41 tsutsui Exp $
# $NetBSD: HADES.in,v 1.17 2022/12/22 11:05:55 nat Exp $
#
# Medusa-Hades
#
@ -57,6 +57,7 @@ cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
#if !defined(SMALL030_KERNEL)
ch* at scsibus? target ? lun ? # SCSI autochangers
ss* at scsibus? target ? lun ? # SCSI scanners
dse* at scsibus? target ? lun ? # SCSI ethernet (Dayna)
se* at scsibus? target ? lun ? # SCSI ethernet
uk* at scsibus? target ? lun ? # SCSI unknown
#endif /* SMALL030_KERNEL */

View File

@ -1,4 +1,4 @@
# $NetBSD: ALL,v 1.503 2022/09/24 11:05:17 riastradh Exp $
# $NetBSD: ALL,v 1.504 2022/12/22 11:05:55 nat Exp $
# From NetBSD: GENERIC,v 1.787 2006/10/01 18:37:54 bouyer Exp
#
# ALL machine description file
@ -17,7 +17,7 @@ include "arch/i386/conf/std.i386"
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
#ident "ALL-$Revision: 1.503 $"
#ident "ALL-$Revision: 1.504 $"
maxusers 64 # estimated number of users
@ -906,6 +906,7 @@ cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
ch* at scsibus? target ? lun ? # SCSI autochangers
ses* at scsibus? target ? lun ? # SCSI Enclosure Services devices
ss* at scsibus? target ? lun ? # SCSI scanners
dse* at scsibus? target ? lun ? # SCSI ethernet (Dayna)
se* at scsibus? target ? lun ? # SCSI ethernet adapters
uk* at scsibus? target ? lun ? # SCSI unknown

View File

@ -1,4 +1,4 @@
# $NetBSD: GENERIC,v 1.235 2022/08/07 02:52:27 simonb Exp $
# $NetBSD: GENERIC,v 1.236 2022/12/22 11:05:55 nat Exp $
#
# GENERIC machine description file
#
@ -22,7 +22,7 @@ include "arch/mac68k/conf/std.mac68k"
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
#ident "GENERIC-$Revision: 1.235 $"
#ident "GENERIC-$Revision: 1.236 $"
makeoptions COPTS="-O2 -fno-reorder-blocks -fno-omit-frame-pointer"
# See share/mk/sys.mk. -fno-omit-frame-pointer is necessary for
@ -251,6 +251,7 @@ sd* at scsibus? target ? lun ? # SCSI disk drives
st* at scsibus? target ? lun ? # SCSI tape drives
cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
ch* at scsibus? target ? lun ? # SCSI autochangers
dse* at scsibus? target ? lun ? # SCSI ethernet (Dayna)
se* at scsibus? target ? lun ? # SCSI ethernet
ss* at scsibus? target ? lun ? # SCSI scanners
uk* at scsibus? target ? lun ? # SCSI unknown

View File

@ -1,4 +1,4 @@
# $NetBSD: GENERIC,v 1.153 2022/08/07 02:52:28 simonb Exp $
# $NetBSD: GENERIC,v 1.154 2022/12/22 11:05:55 nat Exp $
#
# GENERIC machine description file
#
@ -22,7 +22,7 @@ include "arch/next68k/conf/std.next68k"
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
#ident "GENERIC-$Revision: 1.153 $"
#ident "GENERIC-$Revision: 1.154 $"
makeoptions COPTS="-O2 -fno-reorder-blocks -fno-omit-frame-pointer"
# See share/mk/sys.mk. -fno-omit-frame-pointer is necessary for
@ -206,6 +206,7 @@ sd* at scsibus? target ? lun ? # SCSI disk drives
st* at scsibus? target ? lun ? # SCSI tape drives
cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
ch* at scsibus? target ? lun ? # SCSI autochangers
dse* at scsibus? target ? lun ? # SCSI ethernet (Dayna)
se* at scsibus? target ? lun ? # SCSI ethernet
ss* at scsibus? target ? lun ? # SCSI scanners
uk* at scsibus? target ? lun ? # SCSI unknown

View File

@ -1,4 +1,4 @@
# $NetBSD: SLAB,v 1.60 2021/01/21 06:51:55 nia Exp $
# $NetBSD: SLAB,v 1.61 2022/12/22 11:05:55 nat Exp $
#
# deberg's development machine
#
@ -158,6 +158,7 @@ scsibus* at scsi?
#st* at scsibus? target ? lun ? # SCSI tape drives
#cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
#ch* at scsibus? target ? lun ? # SCSI autochangers
#dse* at scsibus? target ? lun ? # SCSI ethernet (Dayna)
#se* at scsibus? target ? lun ? # SCSI ethernet
#ss* at scsibus? target ? lun ? # SCSI scanners
#uk* at scsibus? target ? lun ? # SCSI unknown

View File

@ -1,4 +1,4 @@
# $NetBSD: files.scsipi,v 1.43 2022/04/14 16:50:26 pgoyette Exp $
# $NetBSD: files.scsipi,v 1.44 2022/12/22 11:05:55 nat Exp $
#
# Config file and device description for machine-independent SCSI code.
# Included by ports that need it. Ports that use it must provide
@ -40,6 +40,10 @@ device ch
attach ch at scsibus
file dev/scsipi/ch.c ch needs-flag
device dse: ifnet, ether, arp
attach dse at scsibus
file dev/scsipi/if_dse.c dse needs-flag
device se: ifnet, ether, arp
attach se at scsibus
file dev/scsipi/if_se.c se needs-flag

1405
sys/dev/scsipi/if_dse.c Normal file

File diff suppressed because it is too large Load Diff