mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 19:08:58 +00:00
The encoding for the bus being passed to SAL was completely wrong.
This commit is contained in:
parent
592fcea788
commit
712bc4a99a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=84412
@ -51,7 +51,7 @@ nexus_pcib_maxslots(device_t dev)
|
||||
/* read configuration space register */
|
||||
|
||||
#define SAL_PCI_ADDRESS(bus, slot, func, reg) \
|
||||
(((bus) << 23) | ((slot) << 11) | ((func) << 8) | (reg))
|
||||
(((bus) << 16) | ((slot) << 11) | ((func) << 8) | (reg))
|
||||
|
||||
static u_int32_t
|
||||
nexus_pcib_read_config(device_t dev, int bus, int slot, int func,
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include <machine/sal.h>
|
||||
|
||||
#define SAL_PCI_ADDRESS(bus, slot, func, reg) \
|
||||
(((bus) << 23) | ((slot) << 11) | ((func) << 8) | (reg))
|
||||
(((bus) << 16) | ((slot) << 11) | ((func) << 8) | (reg))
|
||||
|
||||
int
|
||||
pci_cfgregopen(void)
|
||||
@ -51,9 +51,8 @@ pci_cfgregread(int bus, int slot, int func, int reg, int bytes)
|
||||
return (~0);
|
||||
else
|
||||
return (res.sal_result[0]);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
pci_cfgregwrite(int bus, int slot, int func, int reg, u_int32_t data, int bytes)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user