aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/devinfo
Commit message (Collapse)AuthorAgeFilesLines
* devinfo_init() returns an errno, but doesn't set errno, so the errorWarner Losh2018-05-301-2/+5
| | | | | | | | message when it fails reflects some random thing rather than what it returned. Set errno to the return value. Notes: svn path=/head/; revision=334384
* When -v is specified with -p dev, print the same verbose output asWarner Losh2017-12-212-26/+41
| | | | | | | | | | when listing the whole tree. The list, however, is from the requested device to the root (so it backwards from the normal tree). Sponsored by: Netflix Notes: svn path=/head/; revision=327068
* Fix markup and bump .Dd.Warner Losh2017-12-211-4/+6
| | | | Notes: svn path=/head/; revision=327067
* Implement "-p dev" to print the path to the given device back to theWarner Losh2017-12-212-7/+48
| | | | | | | | | | nexus. With redirection, could also be used to test if the device exists in the device tree. Sponsored by: Netflix Notes: svn path=/head/; revision=327066
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Use uintmax_t (typedef'd to rman_res_t type) for rman ranges.Justin Hibbits2016-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 Notes: svn path=/head/; revision=297000
* Add META_MODE support.Simon J. Gerraty2015-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 Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-272-2/+5
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge head from 7/28Simon J. Gerraty2014-08-191-1/+1
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
| | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | Expose the constants for internal new-bus device flags to userland. TheJohn Baldwin2015-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. Notes: svn path=/head/; revision=278299
* | | Convert usr.sbin to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |/ |/| | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275054
* | use .Mt to mark up email addresses consistently (part2)Baptiste Daroussin2014-06-201-1/+1
|/ | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de> Notes: svn path=/head/; revision=267668
* Mark global functions and/or variables in devinfo(8) static where possible.Ed Schouten2011-11-061-2/+2
| | | | | | | This allows compilers and static analyzers to do more thorough analysis. Notes: svn path=/head/; revision=227252
* mdoc: order prologue macros consistently by Dd/Dt/OsUlrich Spörlein2010-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) Notes: svn path=/head/; revision=206622
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-021-2/+0
| | | | Notes: svn path=/head/; revision=201390
* Collapse devinfo_state_t with device_state_t in order to avoid aAttilio Rao2009-11-151-1/+1
| | | | | | | | | | structure replication and improve manteneability. Reviewed by: jhb, imp Tested by: Riccardo Torrini <riccardo at torrini dot org> Notes: svn path=/head/; revision=199291
* Bump up the limit for when to print the resources for a given resourceJohn Baldwin2007-10-271-1/+1
| | | | | | | | | | manager in hex vs decimal to 1000 from 100 so that IRQs are printed in decimal. MFC after: 3 days Notes: svn path=/head/; revision=173057
* Sync usage() and SYNOPSIS.Ruslan Ermilov2006-09-292-2/+6
| | | | Notes: svn path=/head/; revision=162799
* Follow the rules for the .Dd macro use: use unabbreviated month names.Joseph Koshy2005-11-281-1/+1
| | | | | | | Submitted by: ru Notes: svn path=/head/; revision=152884
* Use a separate synopsis line for -u as devinfo will ignore otherJoseph Koshy2005-11-281-3/+7
| | | | | | | options when -u is specified. Xref device(9) and devclass(9). Notes: svn path=/head/; revision=152866
* Remove unused local variable.Philippe Charnier2004-01-041-4/+3
| | | | Notes: svn path=/head/; revision=124128
* -v now also prints the pnpinfo and location information for the devicesWarner Losh2003-02-171-1/+6
| | | | | | | whose bus' provide this information. Notes: svn path=/head/; revision=111046
* o Don't print devices that aren't attached unless run with the newlyWarner Losh2002-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. Notes: svn path=/head/; revision=103663
* Typo fix: syste -> systemGiorgos Keramidas2002-05-311-1/+1
| | | | Notes: svn path=/head/; revision=97646
* mdoc(7) police: Make this look like an average manpage.Ruslan Ermilov2002-05-301-20/+17
| | | | Notes: svn path=/head/; revision=97605
* o Uncapitalize .Nd macro arguments and remove punctuationGiorgos Keramidas2002-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> Notes: svn path=/head/; revision=96504
* Remove EOL space.Giorgos Keramidas2002-05-131-7/+7
| | | | | | | | | This is a whitespace only change. Reviewed by: rwatson, Hiten Pandya <hiten@uk.FreeBSD.org> Notes: svn path=/head/; revision=96503
* Add a man page for the devinfo command; I'd argue devinfo is the singleRobert Watson2002-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> Notes: svn path=/head/; revision=96458
* Reorder WARNS line for style.Mike Heffner2001-12-101-2/+1
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=87629
* WARNS=2 cleanup and fix potential unitialized variable bug.Mike Heffner2001-12-092-4/+13
| | | | | | | | PR: bin/32567 MFC after: 2 weeks Notes: svn path=/head/; revision=87553
* Perform a major cleanup of the usr.sbin Makefiles.David E. O'Brien2001-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. Notes: svn path=/head/; revision=80029
* Fixed missing DPADD.Bruce Evans2001-05-121-2/+2
| | | | | | | | | Don't clobber CFLAGS by assigning to it using "=". Fixed some style bugs. Notes: svn path=/head/; revision=76516
* Simple tool to print the device tree and resource usage by devices. AlsoMike Smith2001-04-212-0/+222
serves as an example of libdevinfo usage. Notes: svn path=/head/; revision=75752