mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-20 18:45:30 +08:00
rtems: From <rtems.h> to <rtems/rtems/mp.h>
Move multiprocessing related definitions to <rtems/rtems/mp.h>. This makes <rtems.h> an include only header file.
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
*
|
||||
* @brief RTEMS Classic API definitions and modules.
|
||||
*/
|
||||
/** @{ */
|
||||
|
||||
#include <rtems/rtems/status.h>
|
||||
#include <rtems/rtems/types.h>
|
||||
@@ -57,29 +56,5 @@
|
||||
|
||||
#include <rtems/rtems/support.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief An MPCI must support packets of at least this size.
|
||||
*/
|
||||
#define RTEMS_MINIMUM_PACKET_SIZE MP_PACKET_MINIMUM_PACKET_SIZE
|
||||
|
||||
/**
|
||||
* @brief Defines the count of @c uint32_t numbers in a packet which must be
|
||||
* converted to native format in a heterogeneous system.
|
||||
*
|
||||
* In packets longer than this value, some of the extra data may be a user
|
||||
* message buffer which is not automatically endian swapped.
|
||||
*/
|
||||
#define RTEMS_MINIMUN_HETERO_CONVERSION MP_PACKET_MINIMUN_HETERO_CONVERSION
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
/** @} */
|
||||
|
||||
#endif
|
||||
/* end of include file */
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
#ifndef _RTEMS_RTEMS_MP_H
|
||||
#define _RTEMS_RTEMS_MP_H
|
||||
|
||||
#include <rtems/score/mppkt.h>
|
||||
|
||||
/**
|
||||
* @defgroup ClassicMP Multiprocessing
|
||||
*
|
||||
@@ -32,6 +34,20 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief An MPCI must support packets of at least this size.
|
||||
*/
|
||||
#define RTEMS_MINIMUM_PACKET_SIZE MP_PACKET_MINIMUM_PACKET_SIZE
|
||||
|
||||
/**
|
||||
* @brief Defines the count of @c uint32_t numbers in a packet which must be
|
||||
* converted to native format in a heterogeneous system.
|
||||
*
|
||||
* In packets longer than this value, some of the extra data may be a user
|
||||
* message buffer which is not automatically endian swapped.
|
||||
*/
|
||||
#define RTEMS_MINIMUN_HETERO_CONVERSION MP_PACKET_MINIMUN_HETERO_CONVERSION
|
||||
|
||||
/**
|
||||
* @brief RTEMS Multiprocessing Announce
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user