delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/02/19/15:46:51

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 19 Feb 2008 21:45:52 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Cc: Andrew Dyer <amdyer AT gmail DOT com>
Subject: Looking for ioperm maintainer (was Re: ioperm() with ports above 0x3ff)
Message-ID: <20080219204552.GI30886@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com, Andrew Dyer <amdyer AT gmail DOT com>
References: <loom DOT 20080218T210001-512 AT post DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <loom.20080218T210001-512@post.gmane.org>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Feb 18 21:15, Andrew Dyer wrote:
> I am having problems using ioperm() to try and access a parallel printer port on
> a PCI card in my system running WinXP.  The port is mapped to I/O port address
> 0xDCD8.  I cannot access the port because the ioperm() driver has a check to
> limit I/O port accesses to < 0x400.
> 
> from /usr/src/ioperm-0.4/driver/ioperm.c, lines 95-100
> 
> 		/* test input buffer size and parameters */
> 		if ((io_stack->Parameters.DeviceIoControl.InputBufferLength < sizeof (struct
> ioperm_data))
> 			|| (!ioperm_data) || (ioperm_data->from + ioperm_data->num > 0x400))
> 		{
> 			Irp->IoStatus.Status = STATUS_INVALID_PARAMETER;
> 		} else {
> [...]
> I can't rebuild the driver as I don't have access to the DDK.  Can someone

The necessary ddk files are part of the w32api package in the Cygwin
distro.  You don't have to install the Microsoft DDK package.

> rebuild it with the check modified so I could test it?

The ioperm package has no maintainer anymore since 2006.  If anybody
feels that maintaining ioperm would be something they could consider as
a fun side job, just read http://cygwin.com/setup.html and follow the
instructions.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019