versadac
1
versadac - Scalable Recorder Firmware
Main Page
Classes
Files
File List
File Members
core
profinet_io
include
os_vxwks
sndrecpacket.h
1
/*---------------------------------------------------------------------------*/
2
/* Copyright (C) 2006 Woodhead Software & Electonics. All rights reserved. */
3
/*---------------------------------------------------------------------------*/
4
/* This program is protected by international copyright. */
5
/* */
6
/* The use of this software including but not limited to its Source Code */
7
/* is subject to restrictions as agreed in the license agreement between */
8
/* you and Woodhead. */
9
/* Copying or distribution is not allowed unless expressly permitted */
10
/* according to your license agreement with Woodhead. */
11
/*---------------------------------------------------------------------------*/
12
/* */
13
/* Project : STACK PROFINET Controller */
14
/* Component : Send / Receive Pacet */
15
/* $Workfile:: sndrecpacket.h $*/
16
/* $Revision:: 1 $*/
17
/* $Date:: 7/06/10 11:05 $*/
18
/* */
19
/*---------------------------------------------------------------------------*/
20
/* */
21
/* D e s c r i p t i o n : */
22
/* Network Abstraction Layer */
23
/* */
24
/*---------------------------------------------------------------------------*/
25
26
27
#ifndef _SNDRECPACKET_H
28
#define _SNDRECPACKET_H
29
30
31
#include <errnoLib.h>
32
#include <muxTkLib.h>
33
#include <private/muxLibP.h>
34
#include <end.h>
35
#include <m2Lib.h>
36
#include <net/mbuf.h>
37
#include <net/protosw.h>
38
#include <end.h>
39
40
#include <netBufLib.h>
41
42
#include <netinet/if_ether.h>
43
#include <stdio.h>
44
#include <bootLib.h>
45
46
47
typedef
struct
RethProtoCtrl
{
48
void
* pCookie;
/* identifies net device attachment */
49
int
mtuSize;
/* Max device frame size */
50
int
bufferSize;
/* Max device frame size */
51
uchar_t * pBuffer;
/* pointer to temporary buffer */
52
BOOL busy;
/* temporary buffer in use */
53
uchar_t returnAddress[30];
/* return Address (6 chars for ethernet) */
54
}
RETH_PROTO_CTRL
;
55
56
#define MUX_PROTO_RETH 0x8892
57
59
#define MAX_FRAME_SIZE 2000
60
61
#define MAX_FRAMES_COUNT 100
62
63
64
void
* myProtocolInit(
char
* pDevice,
int
unit);
65
int
myProtocolTx(
void
* pCookie,
char
* data,
int
dataSize,
char
* dstMacAddr);
66
int
myProtocolTxOnPort(
void
* pCookie,
char
* data,
int
dataSize,
char
* dstMacAddr,
unsigned
short
port);
67
68
69
#endif
70
RethProtoCtrl
Definition:
sndrecpacket.h:47
Generated on Wed Aug 19 2020 10:33:44 for versadac by
1.8.9.1