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
fb79e77a
Commit
fb79e77a
authored
Nov 12, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Listen to qcom events
parent
975bbfaa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
src/exe/rt_sevhistmon/src/rt_sevhistmon.cpp
src/exe/rt_sevhistmon/src/rt_sevhistmon.cpp
+16
-1
No files found.
src/exe/rt_sevhistmon/src/rt_sevhistmon.cpp
View file @
fb79e77a
/*
* Proview $Id: rt_sevhistmon.cpp,v 1.
4 2008-11-10 08:00:06
claes Exp $
* Proview $Id: rt_sevhistmon.cpp,v 1.
5 2008-11-12 15:49:57
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -26,6 +26,7 @@
#include "rt_gdh.h"
#include "rt_qcom.h"
#include "rt_qcom_msg.h"
#include "rt_ini_event.h"
#include "rt_errh.h"
#include "rt_sevhistmon.h"
#include "rt_sev_net.h"
...
...
@@ -44,6 +45,7 @@ int rt_sevhistmon::init()
unsigned
int
a_size
,
a_offset
,
a_dim
;
pwr_tAName
hname
;
qcom_sQid
qid
;
qcom_sQid
qini
;
qcom_sNode
node
;
pwr_tNid
nid
;
pwr_tOid
conf_oid
;
...
...
@@ -86,6 +88,10 @@ int rt_sevhistmon::init()
throw
co_error
(
sts
);
}
qini
=
qcom_cQini
;
if
(
!
qcom_Bind
(
&
sts
,
&
qid
,
&
qini
))
throw
co_error
(
sts
);
// Get all qcom nodes
qcom_MyNode
(
&
m_sts
,
&
node
);
if
(
EVEN
(
m_sts
))
throw
co_error
(
m_sts
);
...
...
@@ -439,6 +445,15 @@ int rt_sevhistmon::mainloop()
default:
;
}
break
;
case
qcom_eBtype_event
:
{
ini_mEvent
new_event
;
qcom_sEvent
*
ep
=
(
qcom_sEvent
*
)
get
.
data
;
new_event
.
m
=
ep
->
mask
;
if
(
new_event
.
b
.
terminate
)
exit
(
0
);
break
;
}
default:
;
}
...
...
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