From owner-freebsd-bugs Fri Dec 13 9:20: 4 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F307637B401 for ; Fri, 13 Dec 2002 09:20:02 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25D6E43EB2 for ; Fri, 13 Dec 2002 09:20:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gBDHK1x3059540 for ; Fri, 13 Dec 2002 09:20:01 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gBDHK1i9059539; Fri, 13 Dec 2002 09:20:01 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBEA537B401 for ; Fri, 13 Dec 2002 09:17:15 -0800 (PST) Received: from istlab.dmst.aueb.gr (istlab.dmst.aueb.gr [195.251.253.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id B282B43EB2 for ; Fri, 13 Dec 2002 09:17:14 -0800 (PST) (envelope-from dds@istlab.dmst.aueb.gr) Received: from istlab.dmst.aueb.gr (localhost [127.0.0.1]) by istlab.dmst.aueb.gr (8.12.6/8.12.6) with ESMTP id gBDHH84c058291 for ; Fri, 13 Dec 2002 19:17:08 +0200 (EET) (envelope-from dds@istlab.dmst.aueb.gr) Received: (from dds@localhost) by istlab.dmst.aueb.gr (8.12.6/8.12.6/Submit) id gBDHH72A058290; Fri, 13 Dec 2002 19:17:07 +0200 (EET) Message-Id: <200212131717.gBDHH72A058290@istlab.dmst.aueb.gr> Date: Fri, 13 Dec 2002 19:17:07 +0200 (EET) From: "Diomidis D. Spinellis" Reply-To: "Diomidis D. Spinellis" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: i386/46238: [code] Driver for the PCL-724 ISA card Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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