Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jul 1998 20:33:43 +0100 (BST)
From:      Doug Rabson <dfr@nlsystems.com>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        cvs-committers@FreeBSD.ORG, dfr@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/pci pcivar.h pci_compat.c
Message-ID:  <Pine.BSF.3.95q.980722203236.343Q-100000@herring.nlsystems.com>
In-Reply-To: <199807221027.UAA12125@godzilla.zeta.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <se@freebsd.org>
> 
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.980722203236.343Q-100000>