From owner-freebsd-arch@FreeBSD.ORG Mon Dec 29 21:52:02 2008 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB8ED106567B for ; Mon, 29 Dec 2008 21:52:02 +0000 (UTC) (envelope-from Andre.Albsmeier@siemens.com) Received: from thoth.sbs.de (thoth.sbs.de [192.35.17.2]) by mx1.freebsd.org (Postfix) with ESMTP id 2363C8FC1A for ; Mon, 29 Dec 2008 21:52:01 +0000 (UTC) (envelope-from Andre.Albsmeier@siemens.com) Received: from mail2.siemens.de (localhost [127.0.0.1]) by thoth.sbs.de (8.12.11.20060308/8.12.11) with ESMTP id mBTLKL7h010639 for ; Mon, 29 Dec 2008 22:20:21 +0100 Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.40.130]) by mail2.siemens.de (8.12.11.20060308/8.12.11) with ESMTP id mBTLKLNm002329 for ; Mon, 29 Dec 2008 22:20:21 +0100 Received: (from localhost) by curry.mchp.siemens.de (8.14.3/8.14.3) id mBTLKLrt088338 for freebsd-arch@freebsd.org; Mon, 29 Dec 2008 22:20:21 +0100 (CET) Date: Mon, 29 Dec 2008 22:20:20 +0100 From: Andre Albsmeier To: freebsd-arch@freebsd.org Message-ID: <20081229212020.GA1809@curry.mchp.siemens.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Echelon: X-Advice: Drop that crappy M$-Outlook, I'm tired of your viruses! User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Two drivers, one physical device: How to deal with that? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 21:52:03 -0000 Hello, I have written a driver which attaches to the host bridge in order to periodically read the appropriate registers and inform the user about ECC errors (ECC-Monitor). No I have run across a mainboard where the host bridge is already taken by the agp driver. Of course, I can detach the agp driver and attach myself and everything is working but what is if someone does not want to loose the agp functionality? How does one deal with the case when two separate drivers have to access the same device (the host bridge in my case)? I assume, the correct way would be to join the AGP and ECC functionality in one driver but maybe there are other tricks I am not aware of? Thanks, -Andre