Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/bhnd/bhndb/bhndb_pci.c
| Context not available. | |||||
| if ((error = bhndb_pci_fast_setregwin(sc, rw, addr))) | if ((error = bhndb_pci_fast_setregwin(sc, rw, addr))) | ||||
| return (error); | return (error); | ||||
| if (pci_read_config(parent, rw->dyn.cfg_offset, 4) == addr) | if (pci_read_config(parent, rw->win_spec.dyn.cfg_offset, 4) == addr) | ||||
| return (0); | return (0); | ||||
| DELAY(10); | DELAY(10); | ||||
| Context not available. | |||||
| if (addr % rw->win_size != 0) | if (addr % rw->win_size != 0) | ||||
| return (EINVAL); | return (EINVAL); | ||||
| pci_write_config(parent, rw->dyn.cfg_offset, addr, 4); | pci_write_config(parent, rw->win_spec.dyn.cfg_offset, addr, 4); | ||||
| break; | break; | ||||
| default: | default: | ||||
| return (ENODEV); | return (ENODEV); | ||||
| Context not available. | |||||