Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
273af6ca
Commit
273af6ca
authored
Jan 02, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modifications for Programmer's Referens Manual
parent
a6976a2b
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
460 additions
and
260 deletions
+460
-260
src/exp/inc/src/pwr.h
src/exp/inc/src/pwr.h
+105
-77
src/lib/co/src/co_cdh.c
src/lib/co/src/co_cdh.c
+170
-54
src/lib/co/src/co_cdh.h
src/lib/co/src/co_cdh.h
+160
-107
src/lib/co/src/co_time.c
src/lib/co/src/co_time.c
+0
-5
src/lib/rt/src/rt_errh.c
src/lib/rt/src/rt_errh.c
+6
-4
src/lib/rt/src/rt_mh_appl.c
src/lib/rt/src/rt_mh_appl.c
+1
-0
src/lib/rt/src/rt_qcom.h
src/lib/rt/src/rt_qcom.h
+18
-13
No files found.
src/exp/inc/src/pwr.h
View file @
273af6ca
This diff is collapsed.
Click to expand it.
src/lib/co/src/co_cdh.c
View file @
273af6ca
This diff is collapsed.
Click to expand it.
src/lib/co/src/co_cdh.h
View file @
273af6ca
This diff is collapsed.
Click to expand it.
src/lib/co/src/co_time.c
View file @
273af6ca
...
@@ -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
[]
=
...
...
src/lib/rt/src/rt_errh.c
View file @
273af6ca
...
@@ -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
)
)
...
...
src/lib/rt/src/rt_mh_appl.c
View file @
273af6ca
...
@@ -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
;
...
...
src/lib/rt/src/rt_qcom.h
View file @
273af6ca
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment