mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-21 09:13:37 +00:00
Revert r204992 and just wrap it all in ifdef INVARIANTS to fix the debug and
non-debug cases.
This commit is contained in:
parent
7e0e1004f3
commit
5bbc70dde9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=205003
|
@ -2031,11 +2031,13 @@ siba_pcie_mdio_write(struct siba_pci *spc, uint8_t device, uint8_t address,
|
|||
uint32_t
|
||||
siba_dma_translation(device_t dev)
|
||||
{
|
||||
#ifdef INVARIANTS
|
||||
struct siba_dev_softc *sd = device_get_ivars(dev);
|
||||
struct siba_softc *siba = sd->sd_bus;
|
||||
|
||||
KASSERT(device_get_ivars(dev)->sd_bus->siba_type == SIBA_TYPE_PCI,
|
||||
("unsupported bustype %d\n",
|
||||
device_get_ivars(dev)->sd_bus->siba_type));
|
||||
|
||||
KASSERT(siba->siba_type == SIBA_TYPE_PCI,
|
||||
("unsupported bustype %d\n", siba->siba_type));
|
||||
#endif
|
||||
return (SIBA_PCI_DMA);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue