Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
28
Issues
28
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
c398d889
Commit
c398d889
authored
Nov 05, 2011
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
endpoint.h: added definitions and types for the packet filter
parent
b209a440
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
endpoint.h
include/endpoint.h
+21
-0
No files found.
include/endpoint.h
View file @
c398d889
...
...
@@ -4,6 +4,17 @@
#define DMTD_AVG_SAMPLES 256
#define DMTD_MAX_PHASE 16384
typedef
enum
{
AND
=
0
,
NAND
=
4
,
OR
=
1
,
NOR
=
5
,
XOR
=
2
,
XNOR
=
6
,
MOV
=
3
,
NOT
=
7
}
pfilter_op_t
;
void
ep_init
(
uint8_t
mac_addr
[]);
void
get_mac_addr
(
uint8_t
dev_addr
[]);
int
ep_enable
(
int
enabled
,
int
autoneg
);
...
...
@@ -12,4 +23,14 @@ int ep_get_deltas(uint32_t *delta_tx, uint32_t *delta_rx);
int
ep_get_psval
(
int32_t
*
psval
);
int
ep_cal_pattern_enable
();
int
ep_cal_pattern_disable
();
void
pfilter_new
();
void
pfilter_cmp
(
int
offset
,
int
value
,
int
mask
,
pfilter_op_t
op
,
int
rd
);
void
pfilter_btst
(
int
offset
,
int
bit_index
,
pfilter_op_t
op
,
int
rd
);
void
pfilter_nop
();
void
pfilter_logic2
(
int
rd
,
int
ra
,
pfilter_op_t
op
,
int
rb
);
static
void
pfilter_logic3
(
int
rd
,
int
ra
,
pfilter_op_t
op
,
int
rb
,
pfilter_op_t
op2
,
int
rc
);
void
pfilter_load
();
void
pfilter_init_default
();
#endif
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