Commit 00f3696f authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman Committed by Jakub Kicinski
Browse files

net: appletalk: remove cops support



The COPS Appletalk support is very old, never said to actually work
properly, and the firmware code for the devices are under a very suspect
license.  Remove it all to clear up the license issue, if it is still
needed and actually used by anyone, we can add it back later once the
license is cleared up.

Reported-by: default avatarPrarit Bhargava <prarit@redhat.com>
Cc: jschlst@samba.org
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: default avatarChristoph Hellwig <hch@lst.de>
Acked-by: default avatarPrarit Bhargava <prarit@redhat.com>
Reviewed-by: default avatarVitaly Kuznetsov <vkuznets@redhat.com>
Link: https://lore.kernel.org/r/20230927090029.44704-2-gregkh@linuxfoundation.org


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent c2715368
Loading
Loading
Loading
Loading
+0 −80
Original line number Diff line number Diff line
.. SPDX-License-Identifier: GPL-2.0

========================================
The COPS LocalTalk Linux driver (cops.c)
========================================

By Jay Schulist <jschlst@samba.org>

This driver has two modes and they are: Dayna mode and Tangent mode.
Each mode corresponds with the type of card. It has been found
that there are 2 main types of cards and all other cards are
the same and just have different names or only have minor differences
such as more IO ports. As this driver is tested it will
become more clear exactly what cards are supported.

Right now these cards are known to work with the COPS driver. The
LT-200 cards work in a somewhat more limited capacity than the
DL200 cards, which work very well and are in use by many people.

TANGENT driver mode:
	- Tangent ATB-II, Novell NL-1000, Daystar Digital LT-200

DAYNA driver mode:
	- Dayna DL2000/DaynaTalk PC (Half Length), COPS LT-95,
	- Farallon PhoneNET PC III, Farallon PhoneNET PC II

Other cards possibly supported mode unknown though:
	- Dayna DL2000 (Full length)

The COPS driver defaults to using Dayna mode. To change the driver's
mode if you built a driver with dual support use board_type=1 or
board_type=2 for Dayna or Tangent with insmod.

Operation/loading of the driver
===============================

Use modprobe like this:	/sbin/modprobe cops.o (IO #) (IRQ #)
If you do not specify any options the driver will try and use the IO = 0x240,
IRQ = 5. As of right now I would only use IRQ 5 for the card, if autoprobing.

To load multiple COPS driver Localtalk cards you can do one of the following::

	insmod cops io=0x240 irq=5
	insmod -o cops2 cops io=0x260 irq=3

Or in lilo.conf put something like this::

	append="ether=5,0x240,lt0 ether=3,0x260,lt1"

Then bring up the interface with ifconfig. It will look something like this::

  lt0       Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-F7-00-00-00-00-00-00-00-00
	    inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
	    UP BROADCAST RUNNING NOARP MULTICAST  MTU:600  Metric:1
	    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
	    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 coll:0

Netatalk Configuration
======================

You will need to configure atalkd with something like the following to make
it work with the cops.c driver.

* For single LTalk card use::

    dummy -seed -phase 2 -net 2000 -addr 2000.10 -zone "1033"
    lt0 -seed -phase 1 -net 1000 -addr 1000.50 -zone "1033"

* For multiple cards, Ethernet and LocalTalk::

    eth0 -seed -phase 2 -net 3000 -addr 3000.20 -zone "1033"
    lt0 -seed -phase 1 -net 1000 -addr 1000.50 -zone "1033"

* For multiple LocalTalk cards, and an Ethernet card.

* Order seems to matter here, Ethernet last::

    lt0 -seed -phase 1 -net 1000 -addr 1000.10 -zone "LocalTalk1"
    lt1 -seed -phase 1 -net 2000 -addr 2000.20 -zone "LocalTalk2"
    eth0 -seed -phase 2 -net 3000 -addr 3000.30 -zone "EtherTalk"
+0 −18
Original line number Diff line number Diff line
.. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

AppleTalk Device Drivers
========================

Contents:

.. toctree::
   :maxdepth: 2

   cops

.. only::  subproject and html

   Indices
   =======

   * :ref:`genindex`
+0 −1
Original line number Diff line number Diff line
@@ -8,7 +8,6 @@ Contents:
.. toctree::
   :maxdepth: 2

   appletalk/index
   atm/index
   cable/index
   can/index
+0 −6
Original line number Diff line number Diff line
@@ -247,12 +247,6 @@ static int __init net_olddevs_init(void)
	for (num = 0; num < 8; ++num)
		ethif_probe2(num);

#ifdef CONFIG_COPS
	cops_probe(0);
	cops_probe(1);
	cops_probe(2);
#endif

	return 0;
}

+0 −30
Original line number Diff line number Diff line
@@ -38,36 +38,6 @@ config DEV_APPLETALK
	  to do IP over it, or you have a LocalTalk card and wish to use it to
	  connect to the AppleTalk network, say Y.


config COPS
	tristate "COPS LocalTalk PC support"
	depends on DEV_APPLETALK && ISA
	depends on NETDEVICES
	select NETDEV_LEGACY_INIT
	help
	  This allows you to use COPS AppleTalk cards to connect to LocalTalk
	  networks. You also need version 1.3.3 or later of the netatalk
	  package. This driver is experimental, which means that it may not
	  work. This driver will only work if you choose "AppleTalk DDP"
	  networking support, above.
	  Please read the file
	  <file:Documentation/networking/device_drivers/appletalk/cops.rst>.

config COPS_DAYNA
	bool "Dayna firmware support"
	depends on COPS
	help
	  Support COPS compatible cards with Dayna style firmware (Dayna
	  DL2000/ Daynatalk/PC (half length), COPS LT-95, Farallon PhoneNET PC
	  III, Farallon PhoneNET PC II).

config COPS_TANGENT
	bool "Tangent firmware support"
	depends on COPS
	help
	  Support COPS compatible cards with Tangent style firmware (Tangent
	  ATB_II, Novell NL-1000, Daystar Digital LT-200.

config IPDDP
	tristate "Appletalk-IP driver support"
	depends on DEV_APPLETALK && ATALK
Loading