Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Dec 2000 23:30:31 -0800
From:      Mike Smith <msmith@freebsd.org>
To:        arch@freebsd.org
Subject:   Proposed bus address typedef.
Message-ID:  <200012130730.eBD7UV307046@mass.osd.bsdi.com>

next in thread | raw e-mail | index | archive | help

I'd like to propose some changes to the way we represent bus addresses, to 
deal with situations where u_long (IMO not a good choice to begin with)
is too small.

Specifically, I'd like to be able to deal with x86 systems in PAE mode, 
where physical addresses are 36 bits in size.

To achieve this, I would like to introduce a typedef, bus_addr_t, which 
is defined on a given platform as being large enough to contain any 
bus-addressable location.

This type would then be used in the following applications (initially):

 - The resource manager
 - The resource list code (helpers for bus implementations)
 - The busspace and busdma subsystems

Note that this will break binary compatibility with loadable modules, but 
should not cause significant problems at the source level with code 
currently assuming that u_long or u_int32_t is big enough (except when it 
isn't, of course).

Comments?

-- 
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also.  But not because people want
to be opponents, rather because the tasks and relationships force
people to take different points of view.  [Dr. Fritz Todt]
           V I C T O R Y   N O T   V E N G E A N C E




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012130730.eBD7UV307046>