From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 20 06:10:10 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4DCDB16A468 for ; Wed, 20 Jun 2007 06:10:10 +0000 (UTC) (envelope-from vladvic@sibmail.com) Received: from sibmail.com (sibmail.com [213.210.80.139]) by mx1.freebsd.org (Postfix) with ESMTP id F2D9C13C45D for ; Wed, 20 Jun 2007 06:10:09 +0000 (UTC) (envelope-from vladvic@sibmail.com) Received: from sibmail.com (localhost [127.0.0.1]) by sibmail.com (Postfix) with ESMTP id 3E83811830 for ; Wed, 20 Jun 2007 12:49:21 +0700 (NOVST) Received: from 213.183.126.98 (proxying for 82.200.5.130) (SquirrelMail authenticated user vladvic@sibmail.com) by sibmail.com with HTTP; Wed, 20 Jun 2007 12:49:21 +0700 (NOVST) Message-ID: <59296.213.183.126.98.1182318561.squirrel@sibmail.com> Date: Wed, 20 Jun 2007 12:49:21 +0700 (NOVST) From: vladvic@sibmail.com To: freebsd-hackers@freebsd.org User-Agent: SquirrelMail/1.4.6 MIME-Version: 1.0 Content-Type: text/plain;charset=windows-1251 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: puc(4) PCI parallel port support/IO problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jun 2007 06:10:10 -0000 Hello, freebsd-hackers I'm trying to add parallel port card support to the puc(4) driver. The chip is an OX12PCI840, which is a PCI chip (in my case it is attached via cardbus bridge). I have two questions related to it: 1) Will I need additional code in the puc driver itself (revised the code I assumed that it is not needed, as parallel port cards are normally identified - the exception may be the EPP extended register which is in my case not 0x400h above the standard register, but just located in another BAR). 2) I currently experiment with the ppc driver, and I found the problem located in the ppc_detect_port function - writing into the standard parallel IO port (which in my case is located at BAR0 (bar 0x10)) 0xaa and reading it then doesnt give the 0xaa again :( Have anyone ever tried to deal with puc parallel devices or experienced similar problems (probably it related to cardbus bridge?)? Thanks in advance, Vladimir