<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/sys/dev/proto, branch release/11.0.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F11.0.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F11.0.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2016-03-18T01:28:41Z</updated>
<entry>
<title>Use uintmax_t (typedef'd to rman_res_t type) for rman ranges.</title>
<updated>2016-03-18T01:28:41Z</updated>
<author>
<name>Justin Hibbits</name>
<email>jhibbits@FreeBSD.org</email>
</author>
<published>2016-03-18T01:28:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=da1b038af9f9551a0b2f33d312b4eede00aa1542'/>
<id>urn:sha1:da1b038af9f9551a0b2f33d312b4eede00aa1542</id>
<content type='text'>
On some architectures, u_long isn't large enough for resource definitions.
Particularly, powerpc and arm allow 36-bit (or larger) physical addresses, but
type `long' is only 32-bit.  This extends rman's resources to uintmax_t.  With
this change, any resource can feasibly be placed anywhere in physical memory
(within the constraints of the driver).

Why uintmax_t and not something machine dependent, or uint64_t?  Though it's
possible for uintmax_t to grow, it's highly unlikely it will become 128-bit on
32-bit architectures.  64-bit architectures should have plenty of RAM to absorb
the increase on resource sizes if and when this occurs, and the number of
resources on memory-constrained systems should be sufficiently small as to not
pose a drastic overhead.  That being said, uintmax_t was chosen for source
clarity.  If it's specified as uint64_t, all printf()-like calls would either
need casts to uintmax_t, or be littered with PRI*64 macros.  Casts to uintmax_t
aren't horrible, but it would also bake into the API for
resource_list_print_type() either a hidden assumption that entries get cast to
uintmax_t for printing, or these calls would need the PRI*64 macros.  Since
source code is meant to be read more often than written, I chose the clearest
path of simply using uintmax_t.

Tested on a PowerPC p5020-based board, which places all device resources in
0xfxxxxxxxx, and has 8GB RAM.
Regression tested on qemu-system-i386
Regression tested on qemu-system-mips (malta profile)

Tested PAE and devinfo on virtualbox (live CD)

Special thanks to bz for his testing on ARM.

Reviewed By: bz, jhb (previous)
Relnotes:	Yes
Sponsored by:	Alex Perez/Inertial Computing
Differential Revision: https://reviews.freebsd.org/D4544
</content>
</entry>
<entry>
<title>Check the sync operation.</title>
<updated>2015-07-28T04:54:05Z</updated>
<author>
<name>Marcel Moolenaar</name>
<email>marcel@FreeBSD.org</email>
</author>
<published>2015-07-28T04:54:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=f40c76d8dedcc7cf095b00787567a4f1d575280f'/>
<id>urn:sha1:f40c76d8dedcc7cf095b00787567a4f1d575280f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>o   make sure the boundary is a power of 2, when not zero.</title>
<updated>2015-07-26T16:39:37Z</updated>
<author>
<name>Marcel Moolenaar</name>
<email>marcel@FreeBSD.org</email>
</author>
<published>2015-07-26T16:39:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=b2ce196ca1af146f5aa010a519d79705c72137bb'/>
<id>urn:sha1:b2ce196ca1af146f5aa010a519d79705c72137bb</id>
<content type='text'>
o   don't convert 0 to ~0 just so that we can use MIN. ~0 is not a
    valid boundary. Introduce BNDRY_MIN that deals with 0 values
    that mean no boundary.
</content>
</entry>
<entry>
<title>Check the hw.proto.attach environment variable for devices that</title>
<updated>2015-07-19T23:37:45Z</updated>
<author>
<name>Marcel Moolenaar</name>
<email>marcel@FreeBSD.org</email>
</author>
<published>2015-07-19T23:37:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=be00e098188c0dec135fb449334593731abc0033'/>
<id>urn:sha1:be00e098188c0dec135fb449334593731abc0033</id>
<content type='text'>
proto(4) should attach to instead of the normal driver.

Document the variable.
</content>
</entry>
<entry>
<title>Implement unload and sync operations.</title>
<updated>2015-07-03T05:44:58Z</updated>
<author>
<name>Marcel Moolenaar</name>
<email>marcel@FreeBSD.org</email>
</author>
<published>2015-07-03T05:44:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=42d3ab5d1b225b1783288c830ae25d67a4f34aea'/>
<id>urn:sha1:42d3ab5d1b225b1783288c830ae25d67a4f34aea</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add create, destroy and load of memory descriptors.</title>
<updated>2015-07-03T01:52:22Z</updated>
<author>
<name>Marcel Moolenaar</name>
<email>marcel@FreeBSD.org</email>
</author>
<published>2015-07-03T01:52:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=89abdea8f020e3afd03227c7fa2d3ec20cb26689'/>
<id>urn:sha1:89abdea8f020e3afd03227c7fa2d3ec20cb26689</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add an ISA/ACPI bus attachment to proto(4).</title>
<updated>2015-07-02T19:21:29Z</updated>
<author>
<name>Marcel Moolenaar</name>
<email>marcel@FreeBSD.org</email>
</author>
<published>2015-07-02T19:21:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=3a232946f745ad78e2257711fc757da9e0aa20af'/>
<id>urn:sha1:3a232946f745ad78e2257711fc757da9e0aa20af</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Change the probe to what was intended: attach to devices with</title>
<updated>2015-06-22T00:34:29Z</updated>
<author>
<name>Marcel Moolenaar</name>
<email>marcel@FreeBSD.org</email>
</author>
<published>2015-06-22T00:34:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=3f745144d99d23b4819d3ce255ff333e8ee51c6f'/>
<id>urn:sha1:3f745144d99d23b4819d3ce255ff333e8ee51c6f</id>
<content type='text'>
a type 0 header and not to function 0 devices.
</content>
</entry>
<entry>
<title>We need to handle 64-bit BARs ourselves to avoid that the</title>
<updated>2015-06-12T12:27:10Z</updated>
<author>
<name>Marcel Moolenaar</name>
<email>marcel@FreeBSD.org</email>
</author>
<published>2015-06-12T12:27:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=00f73819c209d0442ba7134b457a8b4a5eed2686'/>
<id>urn:sha1:00f73819c209d0442ba7134b457a8b4a5eed2686</id>
<content type='text'>
PCI infrastructure instantiates a non-existent resource.
This has BARs suddenly show up with pciconf(8) under
VMware as well.  Now that we read the BAR ourselves, ask
for the correct resource type.
</content>
</entry>
<entry>
<title>Load the allocated memory and return both the physical</title>
<updated>2015-06-10T22:33:56Z</updated>
<author>
<name>Marcel Moolenaar</name>
<email>marcel@FreeBSD.org</email>
</author>
<published>2015-06-10T22:33:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=90a1793cce2199c0744ba996c4d8638cceebb165'/>
<id>urn:sha1:90a1793cce2199c0744ba996c4d8638cceebb165</id>
<content type='text'>
address and the bus address to the application.
</content>
</entry>
</feed>
