[PATCH 00/21] Hide internal data structures from <rtems.h>

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Nov 8 12:51:53 UTC 2018


After this patch set only the follwowing score header files are visible
via #include <rtems.h>:

rtems/score/address.h
rtems/score/assert.h
rtems/score/atomic.h
rtems/score/basedefs.h
rtems/score/chain.h
rtems/score/chainimpl.h
rtems/score/cpuatomic.h
rtems/score/cpu.h
rtems/score/cpuopts.h
rtems/score/cpustdatomic.h
rtems/score/heap.h
rtems/score/interr.h
rtems/score/isr.h
rtems/score/isrlevel.h
rtems/score/isrlock.h
rtems/score/object.h
rtems/score/rbtree.h
rtems/score/smp.h
rtems/score/smplock.h
rtems/score/smplockstats.h
rtems/score/smplockticket.h
rtems/score/sparc.h
rtems/score/stack.h
rtems/score/userext.h
rtems/score/watchdog.h
rtems/score/watchdogticks.h

Sebastian Huber (21):
  rtems: Move internal structures to ratemondata.h
  rtems: Move internal structures to asrdata.h
  rtems: Remove Modes_Control
  rtems: Move internal structures to barrierdata.h
  rtems: Move internal structures to dpmemdata.h
  rtems: Move internal structures to eventdata.h
  rtems: Move internal structures to messagedata.h
  rtems: Move internal structures to partdata.h
  rtems: Move internal structures to regiondata.h
  rtems: Move internal structures to semdata.h
  rtems: Move internal structures to tasksdata.h
  rtems: Move internal structures to timerdata.h
  rtems: Move internal structures to extensiondata.h
  score: Remove empty <rtems/score/tod.h>
  score: Avoid include of <rtems/score/thread.h>
  rtems: Avoid <rtems/score/timecounter.h> in API
  score: Introduce <rtems/score/watchdogticks.h>
  rtems: Remove superfluous include
  score: Avoid complex include in heap.h
  rtems: Avoid include of <rtems/score/thread.h>
  rtems: Avoid include of <rtems/score/scheduler.h>

 cpukit/Makefile.am                         |   2 +
 cpukit/headers.am                          |  14 ++-
 cpukit/include/rtems/confdefs.h            |  10 +++
 cpukit/include/rtems/extension.h           |  12 +--
 cpukit/include/rtems/extensiondata.h       |  46 ++++++++++
 cpukit/include/rtems/extensionimpl.h       |  16 +++-
 cpukit/include/rtems/imfs.h                |   1 +
 cpukit/include/rtems/rtems/asr.h           |  19 ----
 cpukit/include/rtems/rtems/asrdata.h       |  58 ++++++++++++
 cpukit/include/rtems/rtems/asrimpl.h       |   2 +-
 cpukit/include/rtems/rtems/barrier.h       |  36 ++------
 cpukit/include/rtems/rtems/barrierdata.h   |  54 +++++++++++
 cpukit/include/rtems/rtems/barrierimpl.h   |  12 +--
 cpukit/include/rtems/rtems/clock.h         |  10 +--
 cpukit/include/rtems/rtems/dpmem.h         |  37 +-------
 cpukit/include/rtems/rtems/dpmemdata.h     |  56 ++++++++++++
 cpukit/include/rtems/rtems/dpmemimpl.h     |   2 +-
 cpukit/include/rtems/rtems/event.h         |  23 +----
 cpukit/include/rtems/rtems/eventdata.h     |  43 +++++++++
 cpukit/include/rtems/rtems/eventimpl.h     |   4 +-
 cpukit/include/rtems/rtems/message.h       |  45 ++--------
 cpukit/include/rtems/rtems/messagedata.h   |  54 +++++++++++
 cpukit/include/rtems/rtems/messageimpl.h   |   9 +-
 cpukit/include/rtems/rtems/modes.h         |   4 +-
 cpukit/include/rtems/rtems/modesimpl.h     |  26 +++---
 cpukit/include/rtems/rtems/part.h          |  43 +--------
 cpukit/include/rtems/rtems/partdata.h      |  63 +++++++++++++
 cpukit/include/rtems/rtems/partimpl.h      |   2 +-
 cpukit/include/rtems/rtems/ratemon.h       | 111 -----------------------
 cpukit/include/rtems/rtems/ratemondata.h   | 140 +++++++++++++++++++++++++++++
 cpukit/include/rtems/rtems/ratemonimpl.h   |   2 +-
 cpukit/include/rtems/rtems/region.h        |  35 +-------
 cpukit/include/rtems/rtems/regiondata.h    |  56 ++++++++++++
 cpukit/include/rtems/rtems/regionimpl.h    |   2 +-
 cpukit/include/rtems/rtems/sem.h           |  84 +----------------
 cpukit/include/rtems/rtems/semdata.h       | 102 +++++++++++++++++++++
 cpukit/include/rtems/rtems/semimpl.h       |  16 +++-
 cpukit/include/rtems/rtems/tasks.h         |  82 +++--------------
 cpukit/include/rtems/rtems/tasksdata.h     |  77 ++++++++++++++++
 cpukit/include/rtems/rtems/tasksimpl.h     |   2 +-
 cpukit/include/rtems/rtems/timer.h         |  54 ++---------
 cpukit/include/rtems/rtems/timerdata.h     |  67 ++++++++++++++
 cpukit/include/rtems/rtems/timerimpl.h     |   2 +-
 cpukit/include/rtems/rtems/types.h         |  11 +--
 cpukit/include/rtems/score/heap.h          |   5 +-
 cpukit/include/rtems/score/threadq.h       |   4 +-
 cpukit/include/rtems/score/tod.h           |  32 -------
 cpukit/include/rtems/score/todimpl.h       |   1 -
 cpukit/include/rtems/score/userext.h       |  29 +++---
 cpukit/include/rtems/score/userextimpl.h   |   3 +-
 cpukit/include/rtems/score/watchdog.h      |  39 +-------
 cpukit/include/rtems/score/watchdogimpl.h  |   1 +
 cpukit/include/rtems/score/watchdogticks.h |  73 +++++++++++++++
 cpukit/libmisc/monitor/mon-extension.c     |   1 +
 cpukit/libmisc/monitor/mon-part.c          |   1 +
 cpukit/libmisc/monitor/mon-region.c        |   1 +
 cpukit/libmisc/monitor/mon-task.c          |   1 +
 cpukit/rtems/src/clockgetuptimeseconds.c   |  31 +++++++
 cpukit/rtems/src/eventreceive.c            |   2 +-
 cpukit/rtems/src/eventsend.c               |   2 +-
 cpukit/rtems/src/modes.c                   |   2 +-
 cpukit/rtems/src/rtemsmaxprio.c            |  31 +++++++
 cpukit/rtems/src/semcreate.c               |   1 +
 cpukit/rtems/src/signalcatch.c             |   4 +-
 cpukit/rtems/src/signalsend.c              |   2 +-
 cpukit/rtems/src/systemeventreceive.c      |   2 +-
 cpukit/rtems/src/systemeventsend.c         |   2 +-
 cpukit/rtems/src/taskmode.c                |   2 +-
 cpukit/score/src/watchdogtickssinceboot.c  |   2 +-
 testsuites/sptests/sp08/init.c             |   3 +-
 testsuites/sptests/sp47/init.c             |   3 +-
 71 files changed, 1135 insertions(+), 691 deletions(-)
 create mode 100644 cpukit/include/rtems/extensiondata.h
 create mode 100644 cpukit/include/rtems/rtems/asrdata.h
 create mode 100644 cpukit/include/rtems/rtems/barrierdata.h
 create mode 100644 cpukit/include/rtems/rtems/dpmemdata.h
 create mode 100644 cpukit/include/rtems/rtems/eventdata.h
 create mode 100644 cpukit/include/rtems/rtems/messagedata.h
 create mode 100644 cpukit/include/rtems/rtems/partdata.h
 create mode 100644 cpukit/include/rtems/rtems/ratemondata.h
 create mode 100644 cpukit/include/rtems/rtems/regiondata.h
 create mode 100644 cpukit/include/rtems/rtems/semdata.h
 create mode 100644 cpukit/include/rtems/rtems/tasksdata.h
 create mode 100644 cpukit/include/rtems/rtems/timerdata.h
 delete mode 100644 cpukit/include/rtems/score/tod.h
 create mode 100644 cpukit/include/rtems/score/watchdogticks.h
 create mode 100644 cpukit/rtems/src/clockgetuptimeseconds.c
 create mode 100644 cpukit/rtems/src/rtemsmaxprio.c

-- 
2.16.4



More information about the devel mailing list