mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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.
This commit is contained in:
parent
cf93a36f82
commit
e704d0ebe7
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue