diff options
author | peter <peter@FreeBSD.org> | 2007-06-07 06:28:48 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2007-06-07 06:28:48 +0000 |
commit | 33fc7010cd55a06528eef2437d7d80d0ec7c45ce (patch) | |
tree | 194f8a4a84405ffdd3385d45ddc1b6ad8d639dce /sys/dev/puc | |
parent | 18410e441b288d038f769633f23c419c859a200f (diff) | |
download | FreeBSD-src-33fc7010cd55a06528eef2437d7d80d0ec7c45ce.zip FreeBSD-src-33fc7010cd55a06528eef2437d7d80d0ec7c45ce.tar.gz |
Calculate the correct PCI BAR for the Timedia based serial cards. The
Linux equivalent gives BAR offsets relative to the implied base of 0x10.
Our PUC_CFG_GET_RID functions have to add the base offset themselves.
Diffstat (limited to 'sys/dev/puc')
-rw-r--r-- | sys/dev/puc/pucdata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/puc/pucdata.c b/sys/dev/puc/pucdata.c index 17cdf80..10cd688 100644 --- a/sys/dev/puc/pucdata.c +++ b/sys/dev/puc/pucdata.c @@ -1110,7 +1110,7 @@ puc_config_timedia(struct puc_softc *sc, enum puc_cfg_cmd cmd, int port, *res = (port == 1 || port == 3) ? 8 : 0; return (0); case PUC_CFG_GET_RID: - *res = (port > 3) ? port - 2 : port >> 1; + *res = 0x10 + ((port > 3) ? port - 2 : port >> 1); return (0); case PUC_CFG_GET_TYPE: *res = PUC_TYPE_SERIAL; |