Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
PPSi
Commits
d4d320e5
Commit
d4d320e5
authored
Mar 21, 2012
by
Grzegorz Daniluk
Committed by
Alessandro Rubini
Mar 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spec: update memory map and add delay function
parent
02fd5db3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
8 deletions
+18
-8
spec.h
arch-spec/spec.h
+18
-8
No files found.
arch-spec/spec.h
View file @
d4d320e5
/*
* Alessandro Rubini for CERN, 2011 -- GNU LGPL v2.1 or later
*/
#ifndef __SPEC_H
#define __SPEC_H
#include <pptp/pptp.h>
/*
* These are the functions provided by the various bare files
...
...
@@ -10,7 +13,7 @@ extern int spec_open_ch(struct pp_instance *ppi);
extern
int
spec_recv_packet
(
struct
pp_instance
*
ppi
,
void
*
pkt
,
int
len
,
TimeInternal
*
t
);
extern
int
spec_send_packet
(
struct
pp_instance
*
ppi
,
void
*
pkt
,
int
len
,
int
use_pdelay_addr
);
int
chtype
,
int
use_pdelay_addr
);
extern
void
spec_main_loop
(
struct
pp_instance
*
ppi
);
extern
void
_irq_entry
(
void
);
/* unused, to make crt0.S happy */
...
...
@@ -51,6 +54,11 @@ extern int ep_get_psval(int32_t *psval);
extern
int
ep_cal_pattern_enable
();
extern
int
ep_cal_pattern_disable
();
static
inline
void
delay
(
int
x
)
{
while
(
x
--
)
asm
volatile
(
"nop"
);
}
/* other network lstuff, bah.... */
struct
spec_ethhdr
{
...
...
@@ -61,13 +69,14 @@ struct spec_ethhdr {
/* Low-level details (from board.h in wr-core-tools) */
#define BASE_UART 0x60800
#define BASE_GPIO 0x60400
#define BASE_TIMER 0x61000
#define BASE_PPSGEN 0x50000
#define BASE_EP 0x20000
#define BASE_MINIC 0x10000
#define BASE_SOFTPLL 0x40000
#define BASE_MINIC 0x20000
#define BASE_EP 0x20100
#define BASE_SOFTPLL 0x20200
#define BASE_PPSGEN 0x20300
#define BASE_SYSCON 0x20400
#define BASE_UART 0x20500
#define BASE_ONEWIRE 0x20600
//#define BASE_TIMER 0x61000
#define CPU_CLOCK 62500000ULL
...
...
@@ -96,3 +105,4 @@ struct hw_timestamp {
#define NULL 0
#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