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
29
Issues
29
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
5dd890fd
Commit
5dd890fd
authored
May 02, 2012
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev/endpoint.c: make pcs_read/pcs_write functions non static for the testing tools
parent
dcc9dcbb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
endpoint.c
dev/endpoint.c
+2
-4
No files found.
dev/endpoint.c
View file @
5dd890fd
...
...
@@ -30,14 +30,14 @@ static int autoneg_enabled;
static
volatile
struct
EP_WB
*
EP
=
(
volatile
struct
EP_WB
*
)
BASE_EP
;
/* functions for accessing PCS (MDIO) registers */
static
uint16_t
pcs_read
(
int
location
)
uint16_t
pcs_read
(
int
location
)
{
EP
->
MDIO_CR
=
EP_MDIO_CR_ADDR_W
(
location
>>
2
);
while
((
EP
->
MDIO_ASR
&
EP_MDIO_ASR_READY
)
==
0
);
return
EP_MDIO_ASR_RDATA_R
(
EP
->
MDIO_ASR
)
&
0xffff
;
}
static
void
pcs_write
(
int
location
,
int
value
)
void
pcs_write
(
int
location
,
int
value
)
{
EP
->
MDIO_CR
=
EP_MDIO_CR_ADDR_W
(
location
>>
2
)
|
EP_MDIO_CR_DATA_W
(
value
)
...
...
@@ -101,8 +101,6 @@ int ep_enable(int enabled, int autoneg)
/* Disable the endpoint */
EP
->
ECR
=
0
;
mprintf
(
"ID: %x"
,
EP
->
IDCODE
);
/* Load default packet classifier rules - see ep_pfilter.c for details */
pfilter_init_default
();
...
...
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