[PATCH] <NOT WORKING> port FB and TDA drivers

Vijay Kumar Banerjee vijaykumar9597 at gmail.com
Tue Jun 18 19:53:09 UTC 2019


This Patch series contains the patches to import and port
the drivers for FB and TDA from FreeBSD. This is not a working
patch and the purpose of sending the patch to the list is to
ask for a help regarding a build issue with the FB files that
use /arm/include/bus.h file. 
In rtemsbsd/ we have the bus.h file for RTEMS and I think that
is the one to be used by the drivers and the bus.h is not 
supposed to be imported from the FreeBSD. The error I'm
seeing is this:

```
../../freebsd/sys/dev/vt/hw/fb/vt_early_fb.c:244:7: error: 'BUS_SPACE_MAP_PREFETCHABLE' undeclared (first use in this function); did you mean 'BUS_SPACE_MAXSIZE_32BIT'?
       BUS_SPACE_MAP_PREFETCHABLE,
       ^~~~~~~~~~~~~~~~~~~~~~~~~~
       BUS_SPACE_MAXSIZE_32BIT
```
After a discussion with the mentors, Christian told me that 
most likely RTEMS doesn't use the 'bus_space_map' flags.

Should I use "#ifndef __rtems__" codeguards to ommit this
from the build? How to deal with this error here ?

Thanks,
Vijay



More information about the devel mailing list