Fix a potential bug where RXCNT returns an out of range value.
Sync over performance improvements and additional safety checks from Windows.
Increase the timeout check duration to handle situations with lower clock rates.
Merge branch 'master' of github.com:commtech/fscc-linux