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
32
Issues
32
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
726884c7
Commit
726884c7
authored
Aug 31, 2017
by
hongming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused ETHERBONE related para.
parent
0827ea80
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1974 additions
and
1984 deletions
+1974
-1984
devicelist.c
dev/devicelist.c
+0
-2
fake-hw.c
host/fake-hw.c
+2
-2
memlayout.h
include/hw/memlayout.h
+0
-1
ipv4.c
lib/ipv4.c
+0
-7
wrc.bram
wrc.bram
+1972
-1972
No files found.
dev/devicelist.c
View file @
726884c7
...
...
@@ -18,7 +18,6 @@ unsigned char *BASE_PPS_GEN;
unsigned
char
*
BASE_SYSCON
;
unsigned
char
*
BASE_UART
;
unsigned
char
*
BASE_ONEWIRE
;
unsigned
char
*
BASE_ETHERBONE_CFG
;
unsigned
char
*
BASE_EXT_CFG
;
/* The sdb filesystem itself */
...
...
@@ -72,7 +71,6 @@ struct wrc_device devs[] = {
{
&
BASE_SYSCON
,
VID_CERN
,
0xff07fc47
},
{
&
BASE_UART
,
VID_CERN
,
0xe2d13d04
},
{
&
BASE_ONEWIRE
,
VID_CERN
,
0x779c5443
},
{
&
BASE_ETHERBONE_CFG
,
VID_GSI
,
0x68202b22
},
{
&
BASE_EXT_CFG
,
VID_THU
,
0xc0413599
},
};
...
...
host/fake-hw.c
View file @
726884c7
...
...
@@ -11,5 +11,5 @@ unsigned char *BASE_PPS_GEN = (void *)&_pps;
static
unsigned
char
_pll
[
sizeof
(
struct
SPLL_WB
)];
unsigned
char
*
BASE_SOFTPLL
=
(
void
*
)
&
_pll
;
static
unsigned
char
_ebone
[
EB_IPV4
+
4
];
unsigned
char
*
BASE_ETHERBONE_CFG
=
(
void
*
)
&
_ebone
;
//
static unsigned char _ebone[EB_IPV4 + 4];
//
unsigned char *BASE_ETHERBONE_CFG = (void *)&_ebone;
include/hw/memlayout.h
View file @
726884c7
...
...
@@ -15,7 +15,6 @@ extern unsigned char *BASE_PPS_GEN;
extern
unsigned
char
*
BASE_SYSCON
;
extern
unsigned
char
*
BASE_UART
;
extern
unsigned
char
*
BASE_ONEWIRE
;
extern
unsigned
char
*
BASE_ETHERBONE_CFG
;
extern
unsigned
char
*
BASE_EXT_CFG
;
#define FMC_EEPROM_ADR 0x50
...
...
lib/ipv4.c
View file @
726884c7
...
...
@@ -200,17 +200,10 @@ DEFINE_WRC_TASK(ipv4) = {
void
setIP
(
unsigned
char
*
IP
)
{
volatile
unsigned
int
*
eb_ip
=
(
unsigned
int
*
)(
BASE_ETHERBONE_CFG
+
EB_IPV4
);
unsigned
int
ip
;
memcpy
(
myIP
,
IP
,
4
);
ip
=
(
myIP
[
0
]
<<
24
)
|
(
myIP
[
1
]
<<
16
)
|
(
myIP
[
2
]
<<
8
)
|
(
myIP
[
3
]);
*
eb_ip
=
ip
;
ext_config
(
IP
);
if
(
ip
==
0
)
ip_status
=
IP_TRAINING
;
bootp_retry
=
0
;
}
...
...
wrc.bram
View file @
726884c7
This diff is collapsed.
Click to expand it.
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