summaryrefslogtreecommitdiffstats
path: root/usr.sbin/devinfo
Commit message (Collapse)AuthorAgeFilesLines
* Use uintmax_t (typedef'd to rman_res_t type) for rman ranges.jhibbits2016-03-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add META_MODE support.sjg2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-272-2/+5
| |\ | |/ |/|
| * Merge head from 7/28sjg2014-08-191-1/+1
| |\
| * | Updated dependenciessjg2014-05-161-1/+0
| | |
| * | Updated dependenciessjg2014-05-101-0/+2
| | |
| * | Updated dependenciessjg2013-03-111-0/+1
| | |
| * | Updated dependenciessjg2013-02-161-2/+0
| | |
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+19
| | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | Expose the constants for internal new-bus device flags to userland. Thejhb2015-02-051-0/+4
| | | | | | | | | | | | | | | | | | flag value is already exposed via dv_flags, just not the meaning of the flags themselves. Use these constants to annotate devices that are disabled or suspended in devinfo output.
* | | Convert usr.sbin to LIBADDbapt2014-11-251-2/+1
| |/ |/| | | | | Reduce overlinking
* | use .Mt to mark up email addresses consistently (part2)bapt2014-06-201-1/+1
|/ | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
* Mark global functions and/or variables in devinfo(8) static where possible.ed2011-11-061-2/+2
| | | | This allows compilers and static analyzers to do more thorough analysis.
* mdoc: order prologue macros consistently by Dd/Dt/Osuqs2010-04-141-1/+1
| | | | | | | | Although groff_mdoc(7) gives another impression, this is the ordering most widely used and also required by mdocml/mandoc. Reviewed by: ru Approved by: philip, ed (mentors)
* The last big commit: let usr.sbin/ use WARNS=6 by default.ed2010-01-021-2/+0
|
* Collapse devinfo_state_t with device_state_t in order to avoid aattilio2009-11-151-1/+1
| | | | | | | structure replication and improve manteneability. Reviewed by: jhb, imp Tested by: Riccardo Torrini <riccardo at torrini dot org>
* Bump up the limit for when to print the resources for a given resourcejhb2007-10-271-1/+1
| | | | | | | manager in hex vs decimal to 1000 from 100 so that IRQs are printed in decimal. MFC after: 3 days
* Sync usage() and SYNOPSIS.ru2006-09-292-2/+6
|
* Follow the rules for the .Dd macro use: use unabbreviated month names.jkoshy2005-11-281-1/+1
| | | | Submitted by: ru
* Use a separate synopsis line for -u as devinfo will ignore otherjkoshy2005-11-281-3/+7
| | | | options when -u is specified. Xref device(9) and devclass(9).
* Remove unused local variable.charnier2004-01-041-4/+3
|
* -v now also prints the pnpinfo and location information for the devicesimp2003-02-171-1/+6
| | | | whose bus' provide this information.
* o Don't print devices that aren't attached unless run with the newlyimp2002-09-202-5/+13
| | | | | | | | minted -v flag. o Print devices that don't return a name as 'unknown' in -v mode. # Yea! Now I wont think I have 10 different ISA network adapters in my # laptop.
* Typo fix: syste -> systemkeramida2002-05-311-1/+1
|
* mdoc(7) police: Make this look like an average manpage.ru2002-05-301-20/+17
|
* o Uncapitalize .Nd macro arguments and remove punctuationkeramida2002-05-131-10/+10
| | | | | | | | o Minor grammar fixes. o Sort SEE ALSO references, and add iostat(8). o Delete punctuation at end of AUTHORS' section only line Reviewed by: rwatson, Hiten Pandya <hiten@uk.FreeBSD.org>
* Remove EOL space.keramida2002-05-131-7/+7
| | | | | | This is a whitespace only change. Reviewed by: rwatson, Hiten Pandya <hiten@uk.FreeBSD.org>
* Add a man page for the devinfo command; I'd argue devinfo is the singlerwatson2002-05-122-1/+73
| | | | | | | most useful new command added to FreeBSD 5.0, but maybe that's just me :-). Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>
* Reorder WARNS line for style.mikeh2001-12-101-2/+1
| | | | Pointed out by: bde
* WARNS=2 cleanup and fix potential unitialized variable bug.mikeh2001-12-092-4/+13
| | | | | PR: bin/32567 MFC after: 2 weeks
* Perform a major cleanup of the usr.sbin Makefiles.obrien2001-07-201-1/+2
| | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before.
* Fixed missing DPADD.bde2001-05-121-2/+2
| | | | | | Don't clobber CFLAGS by assigning to it using "=". Fixed some style bugs.
* Simple tool to print the device tree and resource usage by devices. Alsomsmith2001-04-212-0/+222
serves as an example of libdevinfo usage.
OpenPOWER on IntegriCloud