Added support for FIONREAD and FIONWRITE, added input / output processing support for UART and CDCACM serial ports. Implemented by Mike Smith, Andrew Tridgell and Lorenz Meier