Commit 273af6ca authored by claes's avatar claes

Modifications for Programmer's Referens Manual

parent a6976a2b
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -47,11 +47,6 @@ ...@@ -47,11 +47,6 @@
pwr_Assert((p->tv_sec < 0) ? (p->tv_nsec <= 0 && p->tv_nsec > -1000000000) : TRUE);\ pwr_Assert((p->tv_sec < 0) ? (p->tv_nsec <= 0 && p->tv_nsec > -1000000000) : TRUE);\
} while (0) } while (0)
typedef struct {
int tv_sec;
int tv_nsec;
} tTime;
/* String representations of months. */ /* String representations of months. */
static const char *monStr[] = static const char *monStr[] =
......
...@@ -121,7 +121,9 @@ static void log_message (errh_sLog*, char, char*, va_list); ...@@ -121,7 +121,9 @@ static void log_message (errh_sLog*, char, char*, va_list);
static int msg_vsprintf (char *, const char *, aa_list, va_list); static int msg_vsprintf (char *, const char *, aa_list, va_list);
#if defined(OS_LYNX) || defined(OS_LINUX) || defined(OS_ELN) #if defined(OS_LYNX) || defined(OS_LINUX) || defined(OS_ELN)
static size_t strnlen (const char*, size_t); static size_t errh_strnlen (const char*, size_t);
#else
#define errh_strnlen strnlen
#endif #endif
static unsigned int do_div (int*, unsigned int); static unsigned int do_div (int*, unsigned int);
...@@ -818,7 +820,7 @@ repeat: ...@@ -818,7 +820,7 @@ repeat:
if (!s) if (!s)
s = "<NULL>"; s = "<NULL>";
len = strnlen(s, precision); len = errh_strnlen(s, precision);
if (!(flags & LEFT)) if (!(flags & LEFT))
while (len < field_width--) while (len < field_width--)
...@@ -907,7 +909,7 @@ repeat: ...@@ -907,7 +909,7 @@ repeat:
whatever comes true first. */ whatever comes true first. */
static size_t static size_t
strnlen ( errh_strnlen (
const char *s, const char *s,
size_t count size_t count
) )
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include "rt_mh_util.h" #include "rt_mh_util.h"
#include "rt_errh.h" #include "rt_errh.h"
//! Application context.
typedef struct { typedef struct {
mh_sHead head; mh_sHead head;
qcom_sQid handler; qcom_sQid handler;
......
...@@ -129,9 +129,7 @@ static const qcom_sQid qcom_cQhdClient = {qcom_cIhdClient, 0}; ...@@ -129,9 +129,7 @@ static const qcom_sQid qcom_cQhdClient = {qcom_cIhdClient, 0};
static const qcom_sQid qcom_cQnacp = {qcom_cInacp, 0}; static const qcom_sQid qcom_cQnacp = {qcom_cInacp, 0};
static const qcom_sQid qcom_cQini = {qcom_cIini, 0}; static const qcom_sQid qcom_cQini = {qcom_cIini, 0};
/** //! Application identity
* ZZZ
*/
typedef struct { typedef struct {
qcom_tAix aix; /**< Application index */ qcom_tAix aix; /**< Application index */
pwr_tNodeId nid; /**< Node identity */ pwr_tNodeId nid; /**< Node identity */
...@@ -139,27 +137,32 @@ typedef struct { ...@@ -139,27 +137,32 @@ typedef struct {
static const qcom_sAid qcom_cNAid = {0, 0}; static const qcom_sAid qcom_cNAid = {0, 0};
//! Qcom application
typedef struct { typedef struct {
qcom_sAid aid; qcom_sAid aid;
pid_t pid; pid_t pid;
} qcom_sAppl; } qcom_sAppl;
//! Qcom event
typedef struct { typedef struct {
qcom_sAid aid; qcom_sAid aid;
pid_t pid; pid_t pid;
int mask; int mask;
} qcom_sEvent; } qcom_sEvent;
//! Queue attributes
typedef struct { typedef struct {
qcom_eQtype type; qcom_eQtype type;
unsigned int quota; unsigned int quota;
} qcom_sQattr; } qcom_sQattr;
//! Qcom type
typedef struct { typedef struct {
qcom_eBtype b; qcom_eBtype b;
qcom_eStype s; qcom_eStype s;
} qcom_sType; } qcom_sType;
//! Put data structure.
typedef struct { typedef struct {
qcom_sQid reply; qcom_sQid reply;
qcom_sType type; qcom_sType type;
...@@ -167,6 +170,7 @@ typedef struct { ...@@ -167,6 +170,7 @@ typedef struct {
void *data; void *data;
} qcom_sPut; } qcom_sPut;
//! Get data structure
typedef struct { typedef struct {
qcom_sAid sender; qcom_sAid sender;
pid_t pid; pid_t pid;
...@@ -179,8 +183,10 @@ typedef struct { ...@@ -179,8 +183,10 @@ typedef struct {
void *data; void *data;
} qcom_sGet; } qcom_sGet;
//! Node status
typedef union { typedef union {
pwr_tBitMask m; pwr_tBitMask m;
//! Bitmask representation
pwr_32Bits ( pwr_32Bits (
pwr_Bits( initiated , 1), pwr_Bits( initiated , 1),
pwr_Bits( connected , 1), pwr_Bits( connected , 1),
...@@ -203,17 +209,16 @@ typedef union { ...@@ -203,17 +209,16 @@ typedef union {
} qcom_mNode; } qcom_mNode;
/**
* Strucure describing a node ??? //! Data for a Qcom node.
*/
typedef struct { typedef struct {
pwr_tNodeId nid; /**< node index */ pwr_tNodeId nid; //!< node index
qcom_mNode flags; /**< node flags */ qcom_mNode flags; //!< node flags
char name[80]; /**< node name */ char name[80]; //!< node name
co_eOS os; /**< operating system */ co_eOS os; //!< operating system
co_eHW hw; /**< hardware */ co_eHW hw; //!< hardware
co_eBO bo; /**< big/little endian */ co_eBO bo; //!< big/little endian
co_eFT ft; /**< float type */ co_eFT ft; //!< float type
} qcom_sNode; } qcom_sNode;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment