From owner-cvs-all Wed Jul 22 12:34:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA08099 for cvs-all-outgoing; Wed, 22 Jul 1998 12:34:30 -0700 (PDT) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA08015; Wed, 22 Jul 1998 12:34:01 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from herring.nlsystems.com (herring.nlsystems.com [10.0.0.2]) by nlsystems.com (8.8.8/8.8.5) with SMTP id UAA27554; Wed, 22 Jul 1998 20:33:44 +0100 (BST) Date: Wed, 22 Jul 1998 20:33:43 +0100 (BST) From: Doug Rabson To: Bruce Evans cc: cvs-committers@FreeBSD.ORG, dfr@FreeBSD.ORG Subject: Re: cvs commit: src/sys/pci pcivar.h pci_compat.c In-Reply-To: <199807221027.UAA12125@godzilla.zeta.org.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk On Wed, 22 Jul 1998, Bruce Evans wrote: > > Modified files: > > sys/pci pcivar.h pci_compat.c > > Log: > > On the alpha, ports may be allocated above 64k. > > Change the port address argument to pci_map_port to pci_port_t* which is > > defined as u_int on the alpha, u_short on i386. This is a stopgap with a > > hopefully limited lifetime. > > > > Discussed with: Stefan Esser > > Most drivers use u_int16_t instead of u_short or pci_port_t for the port > variable. if_lnc_p.c and if_tx.c are more broken - they use u_int[32_t] > for the port variable and cast its address to (u_short *) to defeat the > prototype for pci_map_port(). I am aware of this. I chose this stopgap of an ifdef'ed typedef to avoid having to edit all the drivers. I will fix individual drivers as and when I need to get them working on the alpha. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 951 1891 Fax: +44 181 381 1039 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message