Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964924AbWEJQ5v (ORCPT ); Wed, 10 May 2006 12:57:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964989AbWEJQ5v (ORCPT ); Wed, 10 May 2006 12:57:51 -0400 Received: from atlrel7.hp.com ([156.153.255.213]:17307 "EHLO atlrel7.hp.com") by vger.kernel.org with ESMTP id S964924AbWEJQ5u (ORCPT ); Wed, 10 May 2006 12:57:50 -0400 From: Bjorn Helgaas To: "Andrea Galbusera" Subject: Re: custom parallel interface driver Date: Wed, 10 May 2006 10:57:47 -0600 User-Agent: KMail/1.8.3 Cc: linux-kernel@vger.kernel.org References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200605101057.47870.bjorn.helgaas@hp.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1396 Lines: 31 On Wednesday 10 May 2006 03:24, Andrea Galbusera wrote: > Here are some specifications of the hardware module to support (not > developed by me): > - single unidirectional Centronics-like with control signals interface > - 1K x 8bit FIFO for data > > Minimal driver requirements are: > - capability to read data from the FIFO (possiblbly through ususal > device file interfaces and using interrupts) > - capability to read/write control registers of the interface If the parallel interface is directly exposed as a PCI device and it supports the typical 8255 programming model, it should just work if you add the appropriate vendor and device IDs to parport_pc_pci_tbl[]. The serial driver has a default case that claims any device that PCI_CLASS_COMMUNICATION_SERIAL class code. In theory, the parport driver could claim anything with PCI_CLASS_COMMUNICATION_PARALLEL. In that case, you wouldn't even need to modify anything. But maybe there are issues that prevent parport_pc.c from doing this. The following sites have lots of information that might be useful to you: http://www.torque.net/linux-pp.html http://www.lvr.com/parport.htm - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/