summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2019-05-05 15:56:46 -0600
committerEvan Lojewski <github@meklort.com>2019-05-05 15:56:46 -0600
commit6b58892f44c907f99e7640949ae36a1357b1bc18 (patch)
tree066ae76c24e157e1bfa621aa2107d69189a5b90f
parentd13e29b4e501e47b8694dc5099fbdc70d04735bd (diff)
downloadbcm5719-ortega-6b58892f44c907f99e7640949ae36a1357b1bc18.tar.gz
bcm5719-ortega-6b58892f44c907f99e7640949ae36a1357b1bc18.zip
Add the Finished bit for releasing the frame.
-rw-r--r--include/APE_APE.h14
-rw-r--r--include/bcm5719_APE.h14
-rw-r--r--ipxact/APE_component.xml6
-rwxr-xr-xipxact/regen.sh1
4 files changed, 26 insertions, 9 deletions
diff --git a/include/APE_APE.h b/include/APE_APE.h
index 4a4d266..f0b11ea 100644
--- a/include/APE_APE.h
+++ b/include/APE_APE.h
@@ -533,6 +533,10 @@ typedef register_container RegAPEEvent_t {
#define APE_RXBUFOFFSET_FUNC0_VALID_MASK 0x40000000u
#define GET_APE_RXBUFOFFSET_FUNC0_VALID(__reg__) (((__reg__) & 0x40000000) >> 30u)
#define SET_APE_RXBUFOFFSET_FUNC0_VALID(__val__) (((__val__) << 30u) & 0x40000000u)
+#define APE_RXBUFOFFSET_FUNC0_FINISHED_SHIFT 31u
+#define APE_RXBUFOFFSET_FUNC0_FINISHED_MASK 0x80000000u
+#define GET_APE_RXBUFOFFSET_FUNC0_FINISHED(__reg__) (((__reg__) & 0x80000000) >> 31u)
+#define SET_APE_RXBUFOFFSET_FUNC0_FINISHED(__val__) (((__val__) << 31u) & 0x80000000u)
/** @brief Register definition for @ref APE_t.RxbufoffsetFunc0. */
typedef register_container RegAPERxbufoffsetFunc0_t {
@@ -553,11 +557,11 @@ typedef register_container RegAPERxbufoffsetFunc0_t {
BITFIELD_MEMBER(APE_APE_H_uint32_t, Count, 26, 4)
/** @brief */
BITFIELD_MEMBER(APE_APE_H_uint32_t, Valid, 30, 1)
- /** @brief Padding */
- BITFIELD_MEMBER(APE_APE_H_uint32_t, reserved_31_31, 31, 1)
+ /** @brief */
+ BITFIELD_MEMBER(APE_APE_H_uint32_t, Finished, 31, 1)
#elif defined(__BIG_ENDIAN__)
- /** @brief Padding */
- BITFIELD_MEMBER(APE_APE_H_uint32_t, reserved_31_31, 31, 1)
+ /** @brief */
+ BITFIELD_MEMBER(APE_APE_H_uint32_t, Finished, 31, 1)
/** @brief */
BITFIELD_MEMBER(APE_APE_H_uint32_t, Valid, 30, 1)
/** @brief */
@@ -597,6 +601,8 @@ typedef register_container RegAPERxbufoffsetFunc0_t {
bits.Count.setName("Count");
bits.Valid.setBaseRegister(&r32);
bits.Valid.setName("Valid");
+ bits.Finished.setBaseRegister(&r32);
+ bits.Finished.setName("Finished");
}
RegAPERxbufoffsetFunc0_t& operator=(const RegAPERxbufoffsetFunc0_t& other)
{
diff --git a/include/bcm5719_APE.h b/include/bcm5719_APE.h
index bfaddcf..162e992 100644
--- a/include/bcm5719_APE.h
+++ b/include/bcm5719_APE.h
@@ -533,6 +533,10 @@ typedef register_container RegAPEEvent_t {
#define APE_RXBUFOFFSET_FUNC0_VALID_MASK 0x40000000u
#define GET_APE_RXBUFOFFSET_FUNC0_VALID(__reg__) (((__reg__) & 0x40000000) >> 30u)
#define SET_APE_RXBUFOFFSET_FUNC0_VALID(__val__) (((__val__) << 30u) & 0x40000000u)
+#define APE_RXBUFOFFSET_FUNC0_FINISHED_SHIFT 31u
+#define APE_RXBUFOFFSET_FUNC0_FINISHED_MASK 0x80000000u
+#define GET_APE_RXBUFOFFSET_FUNC0_FINISHED(__reg__) (((__reg__) & 0x80000000) >> 31u)
+#define SET_APE_RXBUFOFFSET_FUNC0_FINISHED(__val__) (((__val__) << 31u) & 0x80000000u)
/** @brief Register definition for @ref APE_t.RxbufoffsetFunc0. */
typedef register_container RegAPERxbufoffsetFunc0_t {
@@ -553,11 +557,11 @@ typedef register_container RegAPERxbufoffsetFunc0_t {
BITFIELD_MEMBER(BCM5719_APE_H_uint32_t, Count, 26, 4)
/** @brief */
BITFIELD_MEMBER(BCM5719_APE_H_uint32_t, Valid, 30, 1)
- /** @brief Padding */
- BITFIELD_MEMBER(BCM5719_APE_H_uint32_t, reserved_31_31, 31, 1)
+ /** @brief */
+ BITFIELD_MEMBER(BCM5719_APE_H_uint32_t, Finished, 31, 1)
#elif defined(__BIG_ENDIAN__)
- /** @brief Padding */
- BITFIELD_MEMBER(BCM5719_APE_H_uint32_t, reserved_31_31, 31, 1)
+ /** @brief */
+ BITFIELD_MEMBER(BCM5719_APE_H_uint32_t, Finished, 31, 1)
/** @brief */
BITFIELD_MEMBER(BCM5719_APE_H_uint32_t, Valid, 30, 1)
/** @brief */
@@ -597,6 +601,8 @@ typedef register_container RegAPERxbufoffsetFunc0_t {
bits.Count.setName("Count");
bits.Valid.setBaseRegister(&r32);
bits.Valid.setName("Valid");
+ bits.Finished.setBaseRegister(&r32);
+ bits.Finished.setName("Finished");
}
RegAPERxbufoffsetFunc0_t& operator=(const RegAPERxbufoffsetFunc0_t& other)
{
diff --git a/ipxact/APE_component.xml b/ipxact/APE_component.xml
index 38886ce..87046b8 100644
--- a/ipxact/APE_component.xml
+++ b/ipxact/APE_component.xml
@@ -371,6 +371,12 @@
<ipxact:bitWidth>1</ipxact:bitWidth>
<ipxact:access>read-write</ipxact:access>
</ipxact:field>
+ <ipxact:field>
+ <ipxact:name>Finished</ipxact:name>
+ <ipxact:bitOffset>31</ipxact:bitOffset>
+ <ipxact:bitWidth>1</ipxact:bitWidth>
+ <ipxact:access>read-write</ipxact:access>
+ </ipxact:field>
</ipxact:register>
<ipxact:register>
<ipxact:name>RXBufOffset Func1</ipxact:name>
diff --git a/ipxact/regen.sh b/ipxact/regen.sh
index 0925ad0..46b583f 100755
--- a/ipxact/regen.sh
+++ b/ipxact/regen.sh
@@ -56,5 +56,4 @@ ${IPXACT} -p ${PROJECT} APE_full.xml -t ape_cpp APE.cpp
rm APE_APE*.cpp
rm APE_SHM*.cpp
rm APE_NVM*.cpp
-rm APE_DEVICE*.cpp
mv *.cpp ../simulator/
OpenPOWER on IntegriCloud