Go to file
John Baldwin 1587a9db92 pci_cfgreg: Add a PCI domain argument to the low-level register API
This commit changes the API of pci_cfgreg(read|write) to add a domain
argument (referred to as a segment in ACPI parlance) (note that this
is not the same as a NUMA domain, but something PCI-specific).  This
does not yet enable access to domains other than 0, but updates the
API to support domains.

Places that use hard-coded bus/slot/function addresses have been
updated to hardcode a domain of 0.  A few places that have the PCI
domain (segment) available such as the acpi_pcib_acpi.c Host-PCI
bridge driver pass the PCI domain.

The hpt27xx(4) and hptnr(4) drivers fail to attach to a device not on
domain 0 since they provide APIs to their binary blobs that only
permit bus/slot/function addressing.

The x86 non-ACPI PCI bus drivers all hardcode a domain of 0 as they do
not support multiple domains.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D42827
2023-11-29 10:31:47 -08:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2021-08-04 15:02:00 -04:00
.github MAINTAINERS: Add myself to stand 2023-05-07 22:30:10 -06:00
bin pwait.1: add missing prompt and command in examples 2023-11-27 10:59:52 -06:00
cddl zfsd: fault disks that generate too many I/O delay events 2023-11-29 07:51:11 -07:00
contrib compiler-rt: remove unnecessary include 2023-11-28 19:17:54 +01:00
crypto OpenSSL: update to 3.0.12 2023-10-24 14:55:56 -04:00
etc misc: Remove ancient SCCS tags. 2023-11-26 22:23:27 -07:00
gnu misc: Remove ancient SCCS tags. 2023-11-26 22:23:27 -07:00
include FreeBSD: Fix ZFS so that snapshots under .zfs/snapshot are NFS visible 2023-11-27 16:31:03 -08:00
kerberos5 sccs: Manual changes 2023-11-26 22:23:58 -07:00
lib memfd_create: don't allocate heap memory 2023-11-28 17:09:27 +00:00
libexec libexec: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
release Makefile.vm: Fix duplicate rc.conf files 2023-11-27 13:35:41 -08:00
rescue misc: Remove ancient SCCS tags. 2023-11-26 22:23:27 -07:00
sbin route: introduce add interface route test cases 2023-11-28 16:16:25 -05:00
secure secure: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
share share: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
stand pmbr: Only load the first 545k rather than error out 2023-11-27 15:45:56 -07:00
sys pci_cfgreg: Add a PCI domain argument to the low-level register API 2023-11-29 10:31:47 -08:00
targets loader: add target for dirdeps build 2023-11-02 19:35:08 -04:00
tests zfsd: fault disks that generate too many I/O delay events 2023-11-29 07:51:11 -07:00
tools tools: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
usr.bin tail.1: Add an example for +n 1 2023-11-28 17:55:58 +01:00
usr.sbin snmp_pf: use libpfctl's pfctl_get_rules_info() rather than DIOCGETRULES 2023-11-27 21:36:48 +01:00
.arcconfig arcanist: use FreeBSD/git project repository instead of FreeBSD/svn 2022-08-23 14:16:41 +00:00
.arclint arc lint: ignore /tests/ in chmod 2017-12-19 03:38:06 +00:00
.cirrus.yml Cirrus CI: Trigger on pull requests or downstream repos 2023-10-09 15:13:21 -04:00
.clang-format Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
.git-blame-ignore-revs git-blame-ignore-revs: OptionalObsoleteFiles.inc sorting commits 2023-11-15 17:47:02 +00:00
.gitattributes Revert "awk: Merge upstream 2nd Edition Awk Book" 2023-11-15 15:28:05 -07:00
.gitignore .gitignore: Ignore LSP generated .cache 2023-03-07 10:04:18 -05:00
.mailmap Fix Sumit's email address 2023-10-19 15:49:05 -06:00
CONTRIBUTING.md CONTRIBUTING.md: add author identity info 2023-09-20 19:28:28 -04:00
COPYRIGHT misc: Remove ancient SCCS tags. 2023-11-26 22:23:27 -07:00
LOCKS Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
MAINTAINERS Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
Makefile Makefile: Support universe-toolchain on non-FreeBSD 2023-08-23 18:00:16 +01:00
Makefile.inc1 Makefile.inc1: Remove beri straggler 2023-11-20 20:30:02 -07:00
Makefile.libcompat build{libcompat}: Pass UNIVERSE_TOOLCHAIN_PATH to the _lc_build-tools submake 2023-08-21 21:00:45 -07:00
Makefile.sys.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ObsoleteFiles.inc ping6(8): Add ping6(8) as MLINK to ping(8) 2023-11-08 05:17:37 +08:00
README.md FreeBSD: Fix the build on FreeBSD 12 2023-11-27 12:58:03 -08:00
RELNOTES RELNOTES: Add an entry about bhyve's slirp backend 2023-11-22 15:19:10 -05:00
UPDATING UPDATING: Add unset hint.acpi.0.disabled as workaround for no ACPI 2023-11-22 21:12:28 -07:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

Source Roadmap:

Directory Description
bin System/user commands.
cddl Various commands and libraries under the Common Development and Distribution License.
contrib Packages contributed by 3rd parties.
crypto Cryptography stuff (see crypto/README).
etc Template files for /etc.
gnu Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB for more information.
include System include files.
kerberos5 Kerberos5 (Heimdal) package.
lib System libraries.
libexec System daemons.
release Release building Makefile & associated tools.
rescue Build system for statically linked /rescue utilities.
sbin System commands.
secure Cryptographic libraries and commands.
share Shared resources.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
tests Regression tests which can be run by Kyua. See tests/README for additional information.
tools Utilities for regression testing and miscellaneous tasks.
usr.bin User commands.
usr.sbin System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see FreeBSD Handbook.