summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/uC5282/include
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-03-04 16:03:46 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-03-04 16:03:46 +0000
commit3f60fb4f3aac86eaa327438004e59ee348a3d84d (patch)
treef9905848f62fe7ab794e7a574b647d946327c588 /c/src/lib/libbsp/m68k/uC5282/include
parent2011-03-04 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff)
downloadrtems-3f60fb4f3aac86eaa327438004e59ee348a3d84d.tar.bz2
2011-03-04 Till Straumann <strauman@slac.stanford.edu>
PR 1738/bsps * clock/clock.c, include/bsp.h, network/network.c: system clock driver programs the PIT w/o assuming the CPU clock frequency being a power of two.
Diffstat (limited to 'c/src/lib/libbsp/m68k/uC5282/include')
-rw-r--r--c/src/lib/libbsp/m68k/uC5282/include/bsp.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/m68k/uC5282/include/bsp.h b/c/src/lib/libbsp/m68k/uC5282/include/bsp.h
index 899dda7d43..47e379781f 100644
--- a/c/src/lib/libbsp/m68k/uC5282/include/bsp.h
+++ b/c/src/lib/libbsp/m68k/uC5282/include/bsp.h
@@ -134,6 +134,31 @@ int BSP_vme2local_adrs(unsigned am, unsigned long vmeaddr, unsigned long *plocal
void *bsp_idle_thread( uintptr_t ignored );
#define BSP_IDLE_TASK_BODY bsp_idle_thread
+/*
+ * SRAM. The BSP uses SRAM for maintaining some clock-driver data
+ * and for ethernet descriptors (and the initial stack during
+ * early boot).
+ */
+
+typedef struct mcf5282BufferDescriptor_ {
+ volatile uint16_t status;
+ uint16_t length;
+ volatile void *buffer;
+} mcf5282BufferDescriptor_t;
+
+extern struct {
+ uint32_t idle_counter;
+ uint32_t filtered_idle;
+ uint32_t max_idle_count;
+ uint32_t pitc_per_tick;
+ uint32_t nsec_per_pitc;
+ uint32_t pad[3]; /* align to 16-bytes for descriptors */
+ mcf5282BufferDescriptor_t fec_descriptors[];
+ /* buffer descriptors are allocated from here */
+
+ /* initial stack is at top of SRAM (start.S) */
+} __SRAMBASE;
+
#ifdef __cplusplus
}
#endif