diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2011-06-06 15:33:15 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2011-06-06 15:33:15 +0000 |
| commit | a59f78daa93a7bb8e73984f08abab5dbb6d20a9d (patch) | |
| tree | ad8282a9c27361d80357136d1d61f6269e00f6ce /sys/dev/puc | |
| parent | a53dafae57945eab9b83f31f77acdbed2aaa04ec (diff) | |
Notes
Diffstat (limited to 'sys/dev/puc')
| -rw-r--r-- | sys/dev/puc/pucdata.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/puc/pucdata.c b/sys/dev/puc/pucdata.c index a56971e19a0a..2b38d9b171ef 100644 --- a/sys/dev/puc/pucdata.c +++ b/sys/dev/puc/pucdata.c @@ -51,12 +51,12 @@ static puc_config_f puc_config_amc; static puc_config_f puc_config_diva; static puc_config_f puc_config_exar; static puc_config_f puc_config_icbook; +static puc_config_f puc_config_oxford_pcie; static puc_config_f puc_config_quatech; static puc_config_f puc_config_syba; static puc_config_f puc_config_siig; static puc_config_f puc_config_timedia; static puc_config_f puc_config_titan; -static puc_config_f puc_config_oxford_pcie; const struct puc_cfg puc_pci_devices[] = { @@ -1366,14 +1366,12 @@ puc_config_oxford_pcie(struct puc_softc *sc, enum puc_cfg_cmd cmd, int port, bar = puc_get_bar(sc, cfg->rid); if (bar == NULL) return (ENXIO); - for (idx = 0; idx < sc->sc_nports; idx++) { - value = bus_read_1(bar->b_res, 0x1000 + (idx << 9) - + 0x92); + value = bus_read_1(bar->b_res, 0x1000 + (idx << 9) + + 0x92); bus_write_1(bar->b_res, 0x1000 + (idx << 9) + 0x92, - value | 0x10); + value | 0x10); } - return (0); case PUC_CFG_GET_LEN: *res = 0x200; |
