Is your feature request related to a problem? Please describe.
Currently only STM32 has support to TIOCGICOUNT, it should be extended to all other STM32 families, and eventually to all MCUs supported by NuttX.
Describe the solution you'd like
Add TIOCGICOUNT suppose using existing implementation from STM32 as reference
Describe alternatives you've considered
No response
Verification