freebsd-dev/usr.sbin
John Baldwin 15d107308f Add a new -B flag for use with list mode (-l) that lists details about
bridges.  Currently this includes information about what resources a
bridge decodes on the upstream side for use by downstream devices including
bus numbers, I/O port resources, and memory resources.  Windows and bus
ranges are enumerated for both PCI-PCI bridges and PCI-CardBus bridges.

To simplify the implementation, all enumeration is done by reading the
appropriate config space registers directly rather than querying the
bridge driver in the kernel via new ioctls.  This does result in a few
limitations.

First, an unimplemented window in a PCI-PCI bridge cannot be accurately
detected as accurate detection requires writing to the window base
register.  That is not safe for pciconf(8).  Instead, this assumes that
any window where both the base and limit read as all zeroes is
unimplemented.

Second, the PCI-PCI bridge driver in a tree has a few quirks for
PCI-PCI bridges that use subtractive decoding but do not indicate that
via the progif config register.  The list of quirks is duplicated in
pciconf's source.

Reviewed by:	imp
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D4171
2015-11-23 23:48:07 +00:00
..
ac Add META_MODE support. 2015-06-13 19:20:56 +00:00
accton Add META_MODE support. 2015-06-13 19:20:56 +00:00
acpi Remove unsupported S5 (power off) state since r170976. 2015-09-22 16:35:32 +00:00
adduser Add META_MODE support. 2015-06-13 19:20:56 +00:00
amd Add more SUBDIR_PARALLEL. 2015-09-26 14:13:51 +00:00
ancontrol Add META_MODE support. 2015-06-13 19:20:56 +00:00
apm Add META_MODE support. 2015-06-13 19:20:56 +00:00
apmd META_MODE: Remove DEP_MACHINE from Makefile.depend files. 2015-09-25 19:44:01 +00:00
arp rtsock requests for deleting interface address lles started to return EPERM 2015-09-27 04:54:29 +00:00
asf Add META_MODE support. 2015-06-13 19:20:56 +00:00
audit Add META_MODE support. 2015-06-13 19:20:56 +00:00
auditd Add META_MODE support. 2015-06-13 19:20:56 +00:00
auditdistd Convert usr.sbin to LIBADD 2014-11-25 16:57:27 +00:00
auditreduce Add META_MODE support. 2015-06-13 19:20:56 +00:00
authpf Add META_MODE support. 2015-06-13 19:20:56 +00:00
autofs Add -noauto autofs map, for automatic handling of fstab entries 2015-03-13 12:44:46 +00:00
bhyve Exit with a user-friendly message instead of tripping an assert 2015-10-22 08:37:11 +00:00
bhyvectl Remove duplicate header string.h. 2015-07-04 18:36:02 +00:00
bhyveload Add option -l for specifying which OS loader to dlopen(3). By default 2015-10-08 02:28:22 +00:00
binmiscctl Add example for upcoming aarch64/arm64 targets. 2015-02-16 20:55:37 +00:00
bluetooth Fix scancodes for Kana and Eisu keys. 2015-11-21 21:14:16 +00:00
boot0cfg It's 2015, and some people are still trying to use fdisk and then 2015-09-02 14:08:43 +00:00
boot98cfg META_MODE: Remove DEP_MACHINE from Makefile.depend files. 2015-09-25 19:44:01 +00:00
bootparamd Fix some trivial warnings with bootparamd/main.c 2015-11-10 11:19:36 +00:00
bsdconfig Rename checked-in 'includes' to 'includes.sh' to avoid colliding with share/mk 2015-11-19 17:57:31 +00:00
bsdinstall Fix typo in error message 2015-11-03 21:19:46 +00:00
bsnmpd META_MODE: Remove DEP_RELDIR from Makefile.depend files. 2015-09-25 19:26:08 +00:00
btxld Add META_MODE support. 2015-06-13 19:20:56 +00:00
cdcontrol Add META_MODE support. 2015-06-13 19:20:56 +00:00
chkgrp Revert r286148 2015-08-01 10:40:17 +00:00
chown Add META_MODE support. 2015-06-13 19:20:56 +00:00
chroot Add META_MODE support. 2015-06-13 19:20:56 +00:00
ckdist Add META_MODE support. 2015-06-13 19:20:56 +00:00
clear_locks Add META_MODE support. 2015-06-13 19:20:56 +00:00
config Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
cpucontrol Add META_MODE support. 2015-06-13 19:20:56 +00:00
crashinfo Add META_MODE support. 2015-06-13 19:20:56 +00:00
cron Add META_MODE support. 2015-06-13 19:20:56 +00:00
crunch Fix rescue build after r284356 with STRIP= by using proper STRIPBIN per build(7). 2015-07-28 21:39:58 +00:00
ctladm Add to CTL initial support for CDROMs and removable devices. 2015-09-27 13:47:28 +00:00
ctld Add missing error checks. 2015-11-14 16:18:22 +00:00
ctm Add META_MODE support. 2015-06-13 19:20:56 +00:00
daemon Add META_MODE support. 2015-06-13 19:20:56 +00:00
dconschat dconschat(8): Use NULL instead of 0 for the last argument in execl(3) 2015-06-28 20:32:03 +00:00
devctl Fix formatting. 2015-07-16 05:14:20 +00:00
devinfo Add META_MODE support. 2015-06-13 19:20:56 +00:00
digictl Add META_MODE support. 2015-06-13 19:20:56 +00:00
diskinfo Add META_MODE support. 2015-06-13 19:20:56 +00:00
dumpcis Add META_MODE support. 2015-06-13 19:20:56 +00:00
editmap Add META_MODE support. 2015-06-13 19:20:56 +00:00
edquota Add META_MODE support. 2015-06-13 19:20:56 +00:00
eeprom META_MODE: Remove DEP_MACHINE from Makefile.depend files. 2015-09-25 19:44:01 +00:00
etcupdate Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
extattr Add META_MODE support. 2015-06-13 19:20:56 +00:00
extattrctl Add META_MODE support. 2015-06-13 19:20:56 +00:00
fdcontrol Add META_MODE support. 2015-06-13 19:20:56 +00:00
fdformat Add META_MODE support. 2015-06-13 19:20:56 +00:00
fdread Add META_MODE support. 2015-06-13 19:20:56 +00:00
fdwrite Add META_MODE support. 2015-06-13 19:20:56 +00:00
fifolog Add more SUBDIR_PARALLEL. 2015-09-26 14:13:51 +00:00
flowctl Add META_MODE support. 2015-06-13 19:20:56 +00:00
fmtree Rename usr.sbin/mtree to usr.sbin/fmtree since it is not what /usr/sbin/mtree 2015-11-09 23:19:36 +00:00
freebsd-update Add debug file extension to freebsd-update(8) after r288176 2015-10-15 01:48:52 +00:00
fstyp Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
ftp-proxy Convert usr.sbin to LIBADD 2014-11-25 16:57:27 +00:00
fwcontrol Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
getfmac Add META_MODE support. 2015-06-13 19:20:56 +00:00
getpmac Add META_MODE support. 2015-06-13 19:20:56 +00:00
gpioctl Add META_MODE support. 2015-06-13 19:20:56 +00:00
gssd Increase group limit for kerberized NFSv4 2015-09-26 16:30:16 +00:00
gstat Use strlcpy() in favor of strncpy() as it's defined to have a nul character 2015-09-11 06:52:57 +00:00
hyperv Turn off gcc's uninitialized warnings for this code. They 2015-08-21 14:15:54 +00:00
i2c Perform I2C transmission in a single burst when mode is "none" or not set 2015-09-15 11:21:16 +00:00
ifmcstat Add META_MODE support. 2015-06-13 19:20:56 +00:00
inetd - Remove unused union p_un. 2015-09-19 23:48:06 +00:00
iostat Add META_MODE support. 2015-06-13 19:20:56 +00:00
iovctl Replace use of .Po Pc with the preferred .Pq for single line 2015-07-08 16:16:44 +00:00
ip6addrctl Add META_MODE support. 2015-06-13 19:20:56 +00:00
ipfwpcap Add META_MODE support. 2015-06-13 19:20:56 +00:00
iscsid Remove unneeded includes. 2015-11-14 16:12:56 +00:00
jail Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
jexec Run a shell in the jail when no command is specified. 2015-07-12 17:03:50 +00:00
jls Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
kbdcontrol Add META_MODE support. 2015-06-13 19:20:56 +00:00
kbdmap Add META_MODE support. 2015-06-13 19:20:56 +00:00
keyserv Add META_MODE support. 2015-06-13 19:20:56 +00:00
kgmon Add META_MODE support. 2015-06-13 19:20:56 +00:00
kgzip META_MODE: Remove DEP_MACHINE from Makefile.depend files. 2015-09-25 19:44:01 +00:00
kldxref Add debug file extension to kldxref(8) after r288176 2015-10-02 13:16:06 +00:00
lastlogin Add META_MODE support. 2015-06-13 19:20:56 +00:00
lmcconfig Add META_MODE support. 2015-06-13 19:20:56 +00:00
lpr Add more SUBDIR_PARALLEL. 2015-09-26 14:13:51 +00:00
lptcontrol Add META_MODE support. 2015-06-13 19:20:56 +00:00
mailstats Add META_MODE support. 2015-06-13 19:20:56 +00:00
mailwrapper Add META_MODE support. 2015-06-13 19:20:56 +00:00
makefs Remove clauses 3 and 4 from makefs newfs_extern.h 2015-11-19 02:39:46 +00:00
makemap Add META_MODE support. 2015-06-13 19:20:56 +00:00
manctl Add META_MODE support. 2015-06-13 19:20:56 +00:00
memcontrol Add META_MODE support. 2015-06-13 19:20:56 +00:00
mergemaster All supported releases have the -m support from r186678, so remove 2015-09-29 17:54:01 +00:00
mfiutil Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
mixer Add META_MODE support. 2015-06-13 19:20:56 +00:00
mld6query Add META_MODE support. 2015-06-13 19:20:56 +00:00
mlxcontrol Add META_MODE support. 2015-06-13 19:20:56 +00:00
mount_smbfs META_MODE: Remove DEP_MACHINE from Makefile.depend files. 2015-09-25 19:44:01 +00:00
mountd Staticize some stuff in mountd(8); no functional changes. 2015-07-04 08:40:48 +00:00
moused Add META_MODE support. 2015-06-13 19:20:56 +00:00
mpsutil mpsutil/mprutil: add flash subcommand 2015-11-17 20:42:59 +00:00
mptable Stop suggesting -grope argument when -grope argument was actually given 2015-10-22 21:13:35 +00:00
mptutil Add META_MODE support. 2015-06-13 19:20:56 +00:00
mtest Add META_MODE support. 2015-06-13 19:20:56 +00:00
nandsim Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
nandtool Convert usr.sbin to LIBADD 2014-11-25 16:57:27 +00:00
ndiscvt Remove unneeded NAME override. 2015-10-27 23:35:08 +00:00
ndp Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
newsyslog newsyslog: treat 'c' flag in the config as 'C' 2015-10-31 09:45:11 +00:00
nfscbd Add META_MODE support. 2015-06-13 19:20:56 +00:00
nfsd Add META_MODE support. 2015-06-13 19:20:56 +00:00
nfsdumpstate Add META_MODE support. 2015-06-13 19:20:56 +00:00
nfsrevoke Add META_MODE support. 2015-06-13 19:20:56 +00:00
nfsuserd Add META_MODE support. 2015-06-13 19:20:56 +00:00
ngctl ngctl dot: Drop invalid trailing semi-colon 2015-09-22 01:31:01 +00:00
nghook Add META_MODE support. 2015-06-13 19:20:56 +00:00
nmtree Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
nologin new depends 2015-06-16 23:37:19 +00:00
nscd Add META_MODE support. 2015-06-13 19:20:56 +00:00
ntp A miss from r289764. 2015-10-23 05:03:34 +00:00
nvram
ofwdump META_MODE: Remove DEP_MACHINE from Makefile.depend files. 2015-09-25 19:44:01 +00:00
pc-sysinstall Add more SUBDIR_PARALLEL. 2015-09-26 14:13:51 +00:00
pciconf Add a new -B flag for use with list mode (-l) that lists details about 2015-11-23 23:48:07 +00:00
periodic Add META_MODE support. 2015-06-13 19:20:56 +00:00
pkg Remove extra debug that crept in 2015-09-08 22:24:20 +00:00
pmcannotate Add META_MODE support. 2015-06-13 19:20:56 +00:00
pmccontrol Add META_MODE support. 2015-06-13 19:20:56 +00:00
pmcstat Fix the date on the pmcstat(8) man page from r291016. 2015-11-18 15:12:24 +00:00
pmcstudy Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
pnpinfo META_MODE: Remove DEP_MACHINE from Makefile.depend files. 2015-09-25 19:44:01 +00:00
portsnap Add META_MODE support. 2015-06-13 19:20:56 +00:00
powerd Add META_MODE support. 2015-06-13 19:20:56 +00:00
ppp Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
pppctl Add META_MODE support. 2015-06-13 19:20:56 +00:00
praliases Add META_MODE support. 2015-06-13 19:20:56 +00:00
praudit Add META_MODE support. 2015-06-13 19:20:56 +00:00
procctl Add META_MODE support. 2015-06-13 19:20:56 +00:00
pstat Add META_MODE support. 2015-06-13 19:20:56 +00:00
pw In pw_userlock, set 'name' to NULL when we encounter an all number string 2015-10-30 00:46:52 +00:00
pwd_mkdb Fix a few mandoc warnings. 2015-08-12 10:34:05 +00:00
quot Add META_MODE support. 2015-06-13 19:20:56 +00:00
quotaon Add META_MODE support. 2015-06-13 19:20:56 +00:00
rarpd Add META_MODE support. 2015-06-13 19:20:56 +00:00
repquota Add META_MODE support. 2015-06-13 19:20:56 +00:00
rip6query Add META_MODE support. 2015-06-13 19:20:56 +00:00
rmt Add META_MODE support. 2015-06-13 19:20:56 +00:00
route6d Add META_MODE support. 2015-06-13 19:20:56 +00:00
rpc.lockd Add META_MODE support. 2015-06-13 19:20:56 +00:00
rpc.statd Add META_MODE support. 2015-06-13 19:20:56 +00:00
rpc.umntall Add META_MODE support. 2015-06-13 19:20:56 +00:00
rpc.yppasswdd The rpc.yppasswdd has an option to not allow shell changes (-s), but is 2015-10-02 08:58:50 +00:00
rpc.ypupdated Add META_MODE support. 2015-06-13 19:20:56 +00:00
rpc.ypxfrd Add META_MODE support. 2015-06-13 19:20:56 +00:00
rpcbind Reallocate a maxlen-long buffer only when the current maxlen is 2015-10-06 08:43:48 +00:00
rrenumd Add META_MODE support. 2015-06-13 19:20:56 +00:00
rtadvctl Add META_MODE support. 2015-06-13 19:20:56 +00:00
rtadvd Use strlcpy(). 2015-10-30 00:33:03 +00:00
rtprio Add META_MODE support. 2015-06-13 19:20:56 +00:00
rtsold Fix rtsold's usage message 2015-10-30 07:36:43 +00:00
rwhod Add META_MODE support. 2015-06-13 19:20:56 +00:00
sa Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
sendmail Temporarily disable WARNS while addressing a non-issue with the upstream code 2015-07-07 02:30:35 +00:00
service Add an additional check to service(8) -e incase rcvar is blank 2015-09-08 22:50:17 +00:00
services_mkdb Add META_MODE support. 2015-06-13 19:20:56 +00:00
sesutil Rename some functions and variables inside sesutil(8) to make gcc happy 2015-09-19 18:41:24 +00:00
setfib Add META_MODE support. 2015-06-13 19:20:56 +00:00
setfmac Add META_MODE support. 2015-06-13 19:20:56 +00:00
setpmac Add META_MODE support. 2015-06-13 19:20:56 +00:00
sicontrol Add META_MODE support. 2015-06-13 19:20:56 +00:00
smbmsg Add META_MODE support. 2015-06-13 19:20:56 +00:00
snapinfo Add META_MODE support. 2015-06-13 19:20:56 +00:00
spkrtest Add META_MODE support. 2015-06-13 19:20:56 +00:00
spray Add META_MODE support. 2015-06-13 19:20:56 +00:00
syslogd die() would never return, mark it as so. 2015-08-27 18:11:00 +00:00
sysrc Add sysrc(8) support for "rc.conf.d" file(s) when given "-s name" to 2015-11-03 19:57:12 +00:00
tcpdchk Add META_MODE support. 2015-06-13 19:20:56 +00:00
tcpdmatch Add META_MODE support. 2015-06-13 19:20:56 +00:00
tcpdrop Add META_MODE support. 2015-06-13 19:20:56 +00:00
tcpdump MFV r285191: tcpdump 4.7.4. 2015-07-08 16:19:32 +00:00
tests Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
timed Add META_MODE support. 2015-06-13 19:20:56 +00:00
traceroute Add META_MODE support. 2015-06-13 19:20:56 +00:00
traceroute6 Add META_MODE support. 2015-06-13 19:20:56 +00:00
trpt Check and fail if drop of privileges failed. 2015-09-01 06:32:02 +00:00
tzsetup Revert r289269 for now. After looking at share/zoneinfo/Makefile this could 2015-10-27 01:26:50 +00:00
uathload Document why we use -z nonexecstack in the Makefile since it 2015-11-21 16:37:11 +00:00
uefisign Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
ugidfw Add META_MODE support. 2015-06-13 19:20:56 +00:00
uhsoctl Add META_MODE support. 2015-06-13 19:20:56 +00:00
unbound Add more SUBDIR_PARALLEL. 2015-09-26 14:13:51 +00:00
usbconfig Add META_MODE support. 2015-06-13 19:20:56 +00:00
usbdump Add META_MODE support. 2015-06-13 19:20:56 +00:00
utx Add META_MODE support. 2015-06-13 19:20:56 +00:00
vidcontrol Add META_MODE support. 2015-06-13 19:20:56 +00:00
vigr Add missing CLEANFILES. 2015-09-24 23:15:24 +00:00
vipw Add META_MODE support. 2015-06-13 19:20:56 +00:00
wake Fix a few mandoc warnings. 2015-08-12 10:34:05 +00:00
watch Use strlcpy() when the string is expected to be nul-terminated. 2015-10-06 22:49:25 +00:00
watchdogd Add a new exit-timeout option to watchdogd. 2015-08-19 21:46:12 +00:00
wlandebug Belatedly fix documentation on which interface to use as argument. 2015-08-17 09:18:54 +00:00
wlconfig META_MODE: Remove DEP_MACHINE from Makefile.depend files. 2015-09-25 19:44:01 +00:00
wpa Update hostapd/wpa_supplicant to version 2.5. 2015-10-18 21:38:25 +00:00
yp_mkdb Staticfy and constify some variables and clean up the code a bit to make it 2015-07-28 02:32:40 +00:00
ypbind Don't need cast malloc. 2015-11-16 03:18:40 +00:00
ypldap Add include of signal.h for signal() prototype. 2015-11-16 17:28:04 +00:00
yppoll Update META_MODE dependencies. 2015-09-17 05:06:34 +00:00
yppush Staticfy and constify some variables and clean up the code a bit to make it 2015-07-28 02:32:40 +00:00
ypserv Don't need cast malloc. 2015-11-16 06:17:12 +00:00
ypset Rename YP to NIS in the manpages. 2015-09-03 07:18:52 +00:00
zic Use more appropriate ${SHAREDIR} rather than /usr/share. 2015-10-27 23:35:02 +00:00
zzz Add META_MODE support. 2015-06-13 19:20:56 +00:00
Makefile Convert to SUBDIR.yes format. 2015-11-18 17:52:38 +00:00
Makefile.amd64 Add MK_BHYVE knob for building and installing bhyve(4), et al 2015-01-26 06:44:48 +00:00
Makefile.arm
Makefile.arm64 arm64: build usr.sbin/acpi subdirectory 2015-11-08 20:56:04 +00:00
Makefile.i386 Disable hyperv on pc98. 2014-10-18 08:07:17 +00:00
Makefile.inc
Makefile.mips Document why we use -z nonexecstack in the Makefile since it 2015-11-21 16:37:11 +00:00
Makefile.powerpc
Makefile.sparc64