Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Software for White Rabbit PTP Core
Manage
Activity
Members
Labels
Plan
Issues
35
Issue boards
Milestones
Wiki
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
Software for White Rabbit PTP Core
Commits
c398d889
Commit
c398d889
authored
13 years ago
by
Tomasz Wlostowski
Browse files
Options
Downloads
Patches
Plain Diff
endpoint.h: added definitions and types for the packet filter
parent
b209a440
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/endpoint.h
+21
-0
21 additions, 0 deletions
include/endpoint.h
with
21 additions
and
0 deletions
include/endpoint.h
+
21
−
0
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
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment