Date: Fri, 13 Dec 2002 19:17:07 +0200 (EET) From: "Diomidis D. Spinellis" <dds@istlab.dmst.aueb.gr> To: FreeBSD-gnats-submit@FreeBSD.org Subject: i386/46238: [code] Driver for the PCL-724 ISA card Message-ID: <200212131717.gBDHH72A058290@istlab.dmst.aueb.gr>
next in thread | raw e-mail | index | archive | help
>Number: 46238 >Category: i386 >Synopsis: [code] Driver for the PCL-724 ISA card >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Dec 13 09:20:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Diomidis D. Spinellis >Release: FreeBSD 4.7-RELEASE-p1 i386 >Organization: Athens University of Economics and Business >Environment: System: FreeBSD istlab.dmst.aueb.gr 4.7-RELEASE-p1 FreeBSD 4.7-RELEASE-p1 #6: Tue Oct 29 00:47:36 EET 2002 dds@istlab.dmst.aueb.gr:/usr/obj/usr/src/sys/ISTLAB i386 >Description: The source files in http://www.dmst.aueb.gr/dds/sw/ifurnace/#pbio comprise a FreeBSD device driver and its documentation for the Adaptec PCL-724 card. The PCL-724 card emulates the Intel 8255A programmable peripheral interface chip running in mode 0 (simple I/O). It provides two 8-bit ports (port A and port B) and two 4-bit ports (port C upper, port C lower). Each port can be individually programmed for input and (latched) output and appears at a different offset of the device's base I/O address. A separate register allows the configuration of ports for input or output. The device is so simple, that reliably probing for it when input data arrives at its terminals is impossible; therefore the kernel configuration has to specify the device's base address. The device driver provides four character devices that correspond to the card's I/O ports. Opening a device for read or write, automatically configures the corresponding hardware port for input or output. Initially all ports are set for input to avoid damaging external circuitry. A set of ioctl requests allow polled input and paced output to be efficiently performed at the driver level without expensive user/kernel context switching. >How-To-Repeat: >Fix: Add the following to the FreeBSD distribution: http://www.dmst.aueb.gr/dds/sw/ifurnace/pbio.c (driver) http://www.dmst.aueb.gr/dds/sw/ifurnace/pbioio.h (ioctl definitions) http://www.dmst.aueb.gr/dds/sw/ifurnace/pbio.4 (documentation) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212131717.gBDHH72A058290>
