From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753923AbYIXPuS (ORCPT ); Wed, 24 Sep 2008 11:50:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752231AbYIXPuF (ORCPT ); Wed, 24 Sep 2008 11:50:05 -0400 Received: from info.physics.ubc.ca ([142.103.234.23]:59586 "EHLO info.physics.ubc.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752117AbYIXPuE (ORCPT ); Wed, 24 Sep 2008 11:50:04 -0400 Date: Wed, 24 Sep 2008 08:50:03 -0700 (PDT) From: Bill Unruh To: Bodo Eggert <7eggert@gmx.de> cc: linux-kernel@vger.kernel.org Subject: Re: parport_pc disables parallel port on unload. In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 24 Sep 2008, Bodo Eggert wrote: > Bill Unruh wrote: > >> I have a parallel port module gps.c which I have written ( after the short >> module described in Linux Device Drivers), whose purpose is to timestamp >> the occurance of interrupts on the parallel port Ack line to as high a >> temporal accuracy as possible.These are generated by the PPS line of a Gamin >> 18LVC gps receiver. Since I want the highest accuracy possible I do not want >> the latency of going through the stock drivers and waiting for a poll or >> select to let me know an interrupt has occured. > >> So, could anyone point me to some relatively comprehensible documentation ( >> or "canned program") to show me how to switch the parallel port back on if >> unloading parport_pc has switched it off. > > You can copy/paste the relevant parts from the parport_pc driver. Of course, then, identifying the relevant parts becomes the problem, but thank you. > > -- William G. Unruh | Canadian Institute for| Tel: +1(604)822-3273 Physics&Astronomy | Advanced Research | Fax: +1(604)822-5324 UBC, Vancouver,BC | Program in Cosmology | unruh@physics.ubc.ca Canada V6T 1Z1 | and Gravity | www.theory.physics.ubc.ca/