diff options
author | marius <marius@FreeBSD.org> | 2009-07-21 19:06:39 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2009-07-21 19:06:39 +0000 |
commit | 109d6f3c87933f2d5603d091a6f77e034c23d09f (patch) | |
tree | d20fd6b04b77509b7c65aa31778fa749fdabac73 /sys/sparc64 | |
parent | 0d00f45642b88a95b53e69a9c2beb4d34619bd7a (diff) | |
download | FreeBSD-src-109d6f3c87933f2d5603d091a6f77e034c23d09f.zip FreeBSD-src-109d6f3c87933f2d5603d091a6f77e034c23d09f.tar.gz |
Add a MD __PCI_BAR_ZERO_VALID which denotes that BARs containing 0
actually specify valid bases that should be treated just as normal.
The PCI specifications have no indication that 0 would be a magic value
indicating a disabled BAR as commonly used on at least amd64 and i386
but not sparc64. It's unclear what to do in pci_delete_resource()
instead of writing 0 to a BAR though as there's no (other) way do
disable individual BARs so its decoding is left enabled in case of
__PCI_BAR_ZERO_VALID for now.
Approved by: re (kib), jhb
MFC after: 1 week
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/include/param.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sparc64/include/param.h b/sys/sparc64/include/param.h index ebd7f0d..2642a8a 100644 --- a/sys/sparc64/include/param.h +++ b/sys/sparc64/include/param.h @@ -48,6 +48,8 @@ #ifndef _NO_NAMESPACE_POLLUTION +#define __PCI_BAR_ZERO_VALID + #ifndef _MACHINE_PARAM_H_ #define _MACHINE_PARAM_H_ |