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
eb69874b
Commit
eb69874b
authored
Sep 05, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Connection with Qcom and no neth added
parent
87abb9f9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
7 deletions
+19
-7
src/lib/rt/src/rt_qcom.h
src/lib/rt/src/rt_qcom.h
+7
-2
src/lib/rt/src/rt_qdb.c
src/lib/rt/src/rt_qdb.c
+2
-1
src/lib/rt/src/rt_qdb.h
src/lib/rt/src/rt_qdb.h
+2
-1
src/lib/rt/src/rt_qini.c
src/lib/rt/src/rt_qini.c
+6
-2
src/lib/rt/src/rt_qini.h
src/lib/rt/src/rt_qini.h
+2
-1
No files found.
src/lib/rt/src/rt_qcom.h
View file @
eb69874b
/*
* Proview $Id: rt_qcom.h,v 1.1
0 2008-01-25 14:34:18
claes Exp $
* Proview $Id: rt_qcom.h,v 1.1
1 2008-09-05 08:58:49
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -121,6 +121,11 @@ typedef enum {
qcom_eQtype_
}
qcom_eQtype
;
typedef
enum
{
qcom_eNodeConnectionFull
=
0
,
qcom_eNodeConnectionQcom
=
1
}
qcom_eNodeConnection
;
/**
* @brief ZZZ Text that appers when the Data structure is listed.
...
...
@@ -224,7 +229,6 @@ typedef union {
}
qcom_mNode
;
//! Data for a Qcom node.
typedef
struct
{
pwr_tNodeId
nid
;
//!< node index
...
...
@@ -234,6 +238,7 @@ typedef struct {
co_eHW
hw
;
//!< hardware
co_eBO
bo
;
//!< big/little endian
co_eFT
ft
;
//!< float type
qcom_eNodeConnection
connection
;
//!< type of connection
}
qcom_sNode
;
...
...
src/lib/rt/src/rt_qdb.c
View file @
eb69874b
/*
* Proview $Id: rt_qdb.c,v 1.1
1 2007-09-21 09:05:41
claes Exp $
* Proview $Id: rt_qdb.c,v 1.1
2 2008-09-05 08:59:23
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -1453,6 +1453,7 @@ qdb_NodeInfo (
node
->
hw
=
np
->
hw
;
node
->
bo
=
np
->
bo
;
node
->
ft
=
np
->
ft
;
node
->
connection
=
np
->
connection
;
}
void
...
...
src/lib/rt/src/rt_qdb.h
View file @
eb69874b
/*
* Proview $Id: rt_qdb.h,v 1.1
1 2007-11-22 15:10
:23 claes Exp $
* Proview $Id: rt_qdb.h,v 1.1
2 2008-09-05 08:59
:23 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -650,6 +650,7 @@ typedef struct {
struct
sockaddr_in
sa
;
void
*
mon
;
/* Monitor private data. */
qcom_eNodeConnection
connection
;
/* Type of connection */
}
qdb_sNode
;
typedef
struct
{
...
...
src/lib/rt/src/rt_qini.c
View file @
eb69874b
/*
* Proview $Id: rt_qini.c,v 1.
2 2005-09-01 14:57:56
claes Exp $
* Proview $Id: rt_qini.c,v 1.
3 2008-09-05 08:59:23
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -51,6 +51,8 @@ addNode (
memcpy
(
&
np
->
arp
.
arp_pa
.
sa_data
,
&
np
->
sa
.
sin_addr
.
s_addr
,
sizeof
(
np
->
sa
.
sin_addr
.
s_addr
));
np
->
connection
=
nep
->
connection
;
return
np
;
}
...
...
@@ -105,6 +107,7 @@ qini_ParseFile (
char
s_nid
[
80
];
char
s_naddr
[
80
];
char
s_port
[
80
];
char
s_connection
[
80
];
pwr_tNodeId
nid
;
struct
in_addr
naddr
;
qini_sNode
*
nep
;
...
...
@@ -117,7 +120,7 @@ qini_ParseFile (
continue
;
}
n
=
sscanf
(
s
,
"%s %s %s %s
"
,
name
,
s_nid
,
s_naddr
,
s_port
);
n
=
sscanf
(
s
,
"%s %s %s %s
%s"
,
name
,
s_nid
,
s_naddr
,
s_port
,
s_connection
);
if
(
n
<
3
)
{
errh_Error
(
"error in line, <wrong number of arguments>, skip to next line.
\n
>> %s"
,
s
);
(
*
errors
)
++
;
...
...
@@ -154,6 +157,7 @@ qini_ParseFile (
strcpy
(
nep
->
name
,
name
);
nep
->
naddr
.
s_addr
=
htonl
(
naddr
.
s_addr
);
if
(
n
>
3
)
nep
->
port
=
htons
(
atoi
(
s_port
));
if
(
n
>
4
)
nep
->
connection
=
atoi
(
s_connection
);
memset
(
&
arpreq
,
0
,
sizeof
(
arpreq
));
memcpy
(
&
arpreq
.
arp_pa
.
sa_data
,
&
naddr
,
sizeof
(
naddr
));
inet_GetArpEntry
(
&
sts
,
0
,
&
arpreq
);
...
...
src/lib/rt/src/rt_qini.h
View file @
eb69874b
/*
* Proview $Id: rt_qini.h,v 1.
2 2005-09-01 14:57:56
claes Exp $
* Proview $Id: rt_qini.h,v 1.
3 2008-09-05 08:59:23
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -91,6 +91,7 @@ typedef struct {
char
name
[
80
];
struct
in_addr
naddr
;
int
port
;
qcom_eNodeConnection
connection
;
pwr_tBoolean
connect
;
}
qini_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