Commit eb69874b authored by claes's avatar claes

Connection with Qcom and no neth added

parent 87abb9f9
/*
* Proview $Id: rt_qcom.h,v 1.10 2008-01-25 14:34:18 claes Exp $
* Proview $Id: rt_qcom.h,v 1.11 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;
......
/*
* Proview $Id: rt_qdb.c,v 1.11 2007-09-21 09:05:41 claes Exp $
* Proview $Id: rt_qdb.c,v 1.12 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
......
/*
* Proview $Id: rt_qdb.h,v 1.11 2007-11-22 15:10:23 claes Exp $
* Proview $Id: rt_qdb.h,v 1.12 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 {
......
/*
* 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);
......
/*
* 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;
......
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