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:
Peter Wemm 2007-06-07 06:28:48 +00:00
parent cf93a36f82
commit e704d0ebe7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170394

View file

@ -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;