Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/scsipi Driver for DaynaPORT SCSI/Link (dse.4).



details:   https://anonhg.NetBSD.org/src/rev/9f018c4b3311
branches:  trunk
changeset: 372724:9f018c4b3311
user:      nat <nat%NetBSD.org@localhost>
date:      Thu Dec 22 11:05:54 2022 +0000

description:
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.

diffstat:

 distrib/sets/lists/man/mi      |     5 +-
 share/man/man4/Makefile        |     5 +-
 share/man/man4/dse.4           |    82 ++
 sys/arch/alpha/conf/GENERIC    |     5 +-
 sys/arch/amd64/conf/ALL        |     5 +-
 sys/arch/atari/conf/ATARITT    |     3 +-
 sys/arch/atari/conf/FALCON     |     3 +-
 sys/arch/atari/conf/GENERIC.in |     3 +-
 sys/arch/atari/conf/HADES      |     3 +-
 sys/arch/atari/conf/HADES.in   |     3 +-
 sys/arch/i386/conf/ALL         |     5 +-
 sys/arch/mac68k/conf/GENERIC   |     5 +-
 sys/arch/next68k/conf/GENERIC  |     5 +-
 sys/arch/next68k/conf/SLAB     |     3 +-
 sys/dev/scsipi/files.scsipi    |     6 +-
 sys/dev/scsipi/if_dse.c        |  1405 ++++++++++++++++++++++++++++++++++++++++
 16 files changed, 1526 insertions(+), 20 deletions(-)

diffs (truncated from 1800 to 300 lines):

diff -r 1c889d6942d7 -r 9f018c4b3311 distrib/sets/lists/man/mi
--- a/distrib/sets/lists/man/mi Thu Dec 22 06:59:32 2022 +0000
+++ b/distrib/sets/lists/man/mi Thu Dec 22 11:05:54 2022 +0000
@@ -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
diff -r 1c889d6942d7 -r 9f018c4b3311 share/man/man4/Makefile
--- a/share/man/man4/Makefile   Thu Dec 22 06:59:32 2022 +0000
+++ b/share/man/man4/Makefile   Thu Dec 22 11:05:54 2022 +0000
@@ -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 @@
        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 \
diff -r 1c889d6942d7 -r 9f018c4b3311 share/man/man4/dse.4
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/share/man/man4/dse.4      Thu Dec 22 11:05:54 2022 +0000
@@ -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@localhost>
+.\" 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@localhost
+.Pp
+.An -nosplit
+.An Matt Sandstrom Aq Mt mattias%beauty.se@localhost
+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@localhost
+.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
diff -r 1c889d6942d7 -r 9f018c4b3311 sys/arch/alpha/conf/GENERIC
--- a/sys/arch/alpha/conf/GENERIC       Thu Dec 22 06:59:32 2022 +0000
+++ b/sys/arch/alpha/conf/GENERIC       Thu Dec 22 11:05:54 2022 +0000
@@ -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 @@
 
 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 @@
 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
diff -r 1c889d6942d7 -r 9f018c4b3311 sys/arch/amd64/conf/ALL
--- a/sys/arch/amd64/conf/ALL   Thu Dec 22 06:59:32 2022 +0000
+++ b/sys/arch/amd64/conf/ALL   Thu Dec 22 11:05:54 2022 +0000
@@ -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 @@
 
 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 @@
 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
 
diff -r 1c889d6942d7 -r 9f018c4b3311 sys/arch/atari/conf/ATARITT
--- a/sys/arch/atari/conf/ATARITT       Thu Dec 22 06:59:32 2022 +0000
+++ b/sys/arch/atari/conf/ATARITT       Thu Dec 22 11:05:54 2022 +0000
@@ -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 @@
 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
diff -r 1c889d6942d7 -r 9f018c4b3311 sys/arch/atari/conf/FALCON
--- a/sys/arch/atari/conf/FALCON        Thu Dec 22 06:59:32 2022 +0000
+++ b/sys/arch/atari/conf/FALCON        Thu Dec 22 11:05:54 2022 +0000
@@ -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 @@
 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
diff -r 1c889d6942d7 -r 9f018c4b3311 sys/arch/atari/conf/GENERIC.in
--- a/sys/arch/atari/conf/GENERIC.in    Thu Dec 22 06:59:32 2022 +0000
+++ b/sys/arch/atari/conf/GENERIC.in    Thu Dec 22 11:05:54 2022 +0000
@@ -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 @@
 #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 */
diff -r 1c889d6942d7 -r 9f018c4b3311 sys/arch/atari/conf/HADES
--- a/sys/arch/atari/conf/HADES Thu Dec 22 06:59:32 2022 +0000
+++ b/sys/arch/atari/conf/HADES Thu Dec 22 11:05:54 2022 +0000
@@ -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 @@
 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
diff -r 1c889d6942d7 -r 9f018c4b3311 sys/arch/atari/conf/HADES.in
--- a/sys/arch/atari/conf/HADES.in      Thu Dec 22 06:59:32 2022 +0000
+++ b/sys/arch/atari/conf/HADES.in      Thu Dec 22 11:05:54 2022 +0000
@@ -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 @@
 #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 */
diff -r 1c889d6942d7 -r 9f018c4b3311 sys/arch/i386/conf/ALL
--- a/sys/arch/i386/conf/ALL    Thu Dec 22 06:59:32 2022 +0000
+++ b/sys/arch/i386/conf/ALL    Thu Dec 22 11:05:54 2022 +0000
@@ -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 @@
 
 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 @@
 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



Home | Main Index | Thread Index | Old Index