Support high speed serial cards (For FreeBSD 5.1-RELEASE)
		by Junichi Satoh <junichi@jp.FreeBSD.org> Nov. 9, 2003


<< Introduction >>

  This archieve contains a patch for sio driver of FreeBSD 5.1R.

  It allows over 115200bps using high speed serial cards. After appling it,
  the sio driver allows over 115200bps.
  (puc driver is required for Lava Computers Dual-650 PCI serial card.)

  The VScom 200 PCI is not supported on this version.


<< About the patch >>

  The patch supports following cards.

      Vendor                card's name  Allowable baud rate, over 115Kbps
     -----------------------------------------------------------------------
      I-O DATA              RSA-DV /S     153600, 184320, 230400, 307200,
                                          460800, 921600bps

      I-O DATA              RSA-DV II/S   153600, 184320, 230400, 307200,
                                          460800, 921600bps

      ZyXEL                 SP111AT       230400, 460800, 921600bps

      Planex communications FS-460        230400, 460800bps

      AMI                   S-650         230400, 460800bps

      Lava Computers        Dual-650 PCI  230400, 460800bps


<< Appling the patch >>

  Apply the patch to the source tree of FreeBSD 5.1-RELEASE.
  Execute patch command on /usr/src/sys directory like this:

    cd /usr/src
    patch -p < sio510-20031109.patch


<< Kernel configuration >>

  Recompile the kernel and configure device.hints file as follows.

  - kernel configuration

    Add options.
      options         COM_HIGHSPEED
    In addition, puc driver is needed when you enable the Dual-640PCI card.
      device          puc

  - /boot/device.hints settings (When you enable non PnP devices.)

   * RSA-DV II/S (I-O DATA) (non PnP mode)
     No special flags is needed.

     Example:
	hint.sio.3.at="isa"
	hint.sio.3.port="0x2c0"
	hint.sio.3.irq="9"

   * SP111AT (ZyXEL)
     'flags=0x10000000' is needed.

     Example:
	hint.sio.3.at="isa"
	hint.sio.3.port="0x2e8"
	hint.sio.3.flags="0x10000000"
	hint.sio.3.irq="9"

   * FS-460 (Planex communications)
        o 'flags=0x3000000' is needed, when the clock set I/O addresses are
	  set to 2c0 and 2c8.
        o 'flags=0x5000000' is needed, when the clock set I/O addresses are
	  set to 2d0 and 2d8.

     Example:
	hint.sio.3.at="isa"
	hint.sio.3.port="0x2e8"
	hint.sio.3.flags="0x3000000"
	hint.sio.3.irq="9"

   * S-650 (AMI)
     'flags 0x10000000' is needed.

     Example:
	hint.sio.3.at="isa"
	hint.sio.3.port="0x2e8"
	hint.sio.3.flags="0x10000000"
	hint.sio.3.irq="9"


<< After reboot >>

  High speed serial cards will be probed as follows:

   * RSA-DV II/S (I-O DATA)

     sio2: <RSA-DVII/S> at port 0x200-0x20f irq 5 on isa0
     sio2: type I-O DATA  RSA-DV/S, RSA-DVII/S lookalike with 2048 bytes FIFO

   * SP111AT (ZyXEL)

     sio2 at 0x3e8-0x3ef irq 9 on isa
     sio2: type 16550A (ZyXEL SP111AT)

   * FS-460 (Planex communications)

     sio1 at 0x2f8-0x2ff irq 3 on isa
     sio1: type ST16650A
     sio2 at 0x3e8-0x3ef irq 9 on isa
     sio2: type ST16650A

   * S-650 (AMI)

     sio1 at 0x2f8-0x2ff irq 3 on isa
     sio1: type ST16650A

   * Dual-650 PCI (Lava Computers)

     puc0: <Lava Computers Dual-650 serial> port 0x6800-0x68ff,0x6700-0x67ff irq 11 at device 11.0 on pci0
     sio4: type 16550A
     sio5: type 16550A


<< ChangeLog >>

Dec. 7, 1997  Fix 'RSA-DV II/S' is not probed.
May 1, 1998   Change base sio driver source included in 2.2.6-RELEASE.
May 1, 1998   Support ZyXEL mode on 'SP111AT'. (Thanks to Yoshiji Emoto.)
May 1, 1998   Support PnP mode on 'RSA-DV II/S'.
Sep. 6, 1998   Change base sio driver source included in 2.2.7-RELEASE.
Apr. 24, 1999   Change base sio driver source included in 3.1-RELEASE.
Apr. 24, 1999   Support 'RSA-DV/S'. (Thanks to Katsuya Higuchi.)
Jun. 27, 1999   Change base sio driver source included in 3.2-RELEASE.
Jun. 27, 1999   Support 'VScom 200', but it is alpha quality. (Thanks to Kenji Teramoto.)
Nov. 13, 1999   Change base sio driver source included in 3.3-RELEASE.
Feb. 12, 2000   Change base sio driver source included in 3.4-RELEASE.
Apr. 11, 2000   Change base sio driver source included in 4.0-RELEASE.
Nov. 4, 2000   Change base sio driver source included in 4.1.1-RELEASE.
Apr. 30, 2001   Change base sio driver source included in 4.3-RELEASE.
Oct. 14, 2001   Change base sio driver source included in 4.4-RELEASE.
Jun. 23, 2002   Change base sio driver source included in 4.6-RELEASE.
Sep. 23, 2002   Change base sio driver source included in 4.6.2-RELEASE.
Oct. 21, 2002   Change base sio driver source included in 4.7-RELEASE.
Nov. 09, 2002   Support Lava Computers Dual-650 serial card.
Apr. 29, 2003   Change base sio driver source included in 5.0-RELEASE.
Nov. 9, 2003   Change base sio driver source included in 5.1-RELEASE.
