diff options
| author | Lojewski, Evan <github@meklort.com> | 2019-05-11 08:31:30 -0600 |
|---|---|---|
| committer | Lojewski, Evan <github@meklort.com> | 2019-05-11 08:31:30 -0600 |
| commit | bc89c73168282c7de5eaa1ae836f3c1bd3c3fc5e (patch) | |
| tree | 9366e0e7464eda2a35e3bc5a39b1d3f8edf9a6f4 /simulator | |
| parent | a7c487b03ac7fed1f6d1ac87363feb7c5bd18484 (diff) | |
| download | bcm5719-ortega-bc89c73168282c7de5eaa1ae836f3c1bd3c3fc5e.tar.gz bcm5719-ortega-bc89c73168282c7de5eaa1ae836f3c1bd3c3fc5e.zip | |
Update register generation to use type identifieres for port0 - 3.
Diffstat (limited to 'simulator')
| -rw-r--r-- | simulator/APE_RX_PORT0.cpp (renamed from simulator/APE_RX_PORT.cpp) | 14 | ||||
| -rw-r--r-- | simulator/APE_RX_PORT0_sim.cpp (renamed from simulator/APE_RX_PORT_sim.cpp) | 24 | ||||
| -rw-r--r-- | simulator/APE_TX_PORT0.cpp (renamed from simulator/APE_TX_PORT.cpp) | 14 | ||||
| -rw-r--r-- | simulator/APE_TX_PORT0_sim.cpp (renamed from simulator/APE_TX_PORT_sim.cpp) | 24 |
4 files changed, 38 insertions, 38 deletions
diff --git a/simulator/APE_RX_PORT.cpp b/simulator/APE_RX_PORT0.cpp index 4eb4e45..8a9b1c0 100644 --- a/simulator/APE_RX_PORT.cpp +++ b/simulator/APE_RX_PORT0.cpp @@ -1,10 +1,10 @@ //////////////////////////////////////////////////////////////////////////////// /// -/// @file APE_RX_PORT.cpp +/// @file APE_RX_PORT0.cpp /// /// @project ape /// -/// @brief APE_RX_PORT +/// @brief APE_RX_PORT0 /// //////////////////////////////////////////////////////////////////////////////// /// @@ -42,14 +42,14 @@ /// @endcond //////////////////////////////////////////////////////////////////////////////// -#include <APE_RX_PORT.h> +#include <APE_RX_PORT0.h> -RX_PORT_t RX_PORT; +RX_PORT_t RX_PORT0; -void init_APE_RX_PORT(void) +void init_APE_RX_PORT0(void) { - /** @brief Component Registers for @ref RX_PORT. */ - /** @brief Bitmap for @ref RX_PORT_t.In. */ + /** @brief Component Registers for @ref RX_PORT0. */ + /** @brief Bitmap for @ref RX_PORT0_t.In. */ } diff --git a/simulator/APE_RX_PORT_sim.cpp b/simulator/APE_RX_PORT0_sim.cpp index 9f63ecb..3f357b7 100644 --- a/simulator/APE_RX_PORT_sim.cpp +++ b/simulator/APE_RX_PORT0_sim.cpp @@ -1,10 +1,10 @@ //////////////////////////////////////////////////////////////////////////////// /// -/// @file APE_RX_PORT_sim.cpp +/// @file APE_RX_PORT0_sim.cpp /// /// @project ape /// -/// @brief APE_RX_PORT_sim +/// @brief APE_RX_PORT0_sim /// //////////////////////////////////////////////////////////////////////////////// /// @@ -45,7 +45,7 @@ #include <stdint.h> #include <utility> #include <bcm5719_SHM.h> -#include <APE_RX_PORT.h> +#include <APE_RX_PORT0.h> static uint32_t loader_read_mem(uint32_t val, uint32_t offset, void *args) { @@ -76,23 +76,23 @@ static uint32_t loader_write_mem(uint32_t val, uint32_t offset, void *args) return val; } -void init_APE_RX_PORT_sim(void *arg0) +void init_APE_RX_PORT0_sim(void *arg0) { (void)arg0; // unused void* base = (void*)0xa0000000; - RX_PORT.mIndexReadCallback = loader_read_mem; - RX_PORT.mIndexReadCallbackArgs = base; + RX_PORT0.mIndexReadCallback = loader_read_mem; + RX_PORT0.mIndexReadCallbackArgs = base; - RX_PORT.mIndexWriteCallback = loader_write_mem; - RX_PORT.mIndexWriteCallbackArgs = base; + RX_PORT0.mIndexWriteCallback = loader_write_mem; + RX_PORT0.mIndexWriteCallbackArgs = base; - /** @brief Component Registers for @ref RX_PORT. */ - /** @brief Bitmap for @ref RX_PORT_t.In. */ + /** @brief Component Registers for @ref RX_PORT0. */ + /** @brief Bitmap for @ref RX_PORT0_t.In. */ for(int i = 0; i < 4096; i++) { - RX_PORT.In[i].r32.installReadCallback(loader_read_mem, (uint8_t *)base); - RX_PORT.In[i].r32.installWriteCallback(loader_write_mem, (uint8_t *)base); + RX_PORT0.In[i].r32.installReadCallback(loader_read_mem, (uint8_t *)base); + RX_PORT0.In[i].r32.installWriteCallback(loader_write_mem, (uint8_t *)base); } diff --git a/simulator/APE_TX_PORT.cpp b/simulator/APE_TX_PORT0.cpp index 0c23069..0e71fbe 100644 --- a/simulator/APE_TX_PORT.cpp +++ b/simulator/APE_TX_PORT0.cpp @@ -1,10 +1,10 @@ //////////////////////////////////////////////////////////////////////////////// /// -/// @file APE_TX_PORT.cpp +/// @file APE_TX_PORT0.cpp /// /// @project ape /// -/// @brief APE_TX_PORT +/// @brief APE_TX_PORT0 /// //////////////////////////////////////////////////////////////////////////////// /// @@ -42,14 +42,14 @@ /// @endcond //////////////////////////////////////////////////////////////////////////////// -#include <APE_TX_PORT.h> +#include <APE_TX_PORT0.h> -TX_PORT_t TX_PORT; +TX_PORT_t TX_PORT0; -void init_APE_TX_PORT(void) +void init_APE_TX_PORT0(void) { - /** @brief Component Registers for @ref TX_PORT. */ - /** @brief Bitmap for @ref TX_PORT_t.Out. */ + /** @brief Component Registers for @ref TX_PORT0. */ + /** @brief Bitmap for @ref TX_PORT0_t.Out. */ } diff --git a/simulator/APE_TX_PORT_sim.cpp b/simulator/APE_TX_PORT0_sim.cpp index 1e7bac7..5fd048a 100644 --- a/simulator/APE_TX_PORT_sim.cpp +++ b/simulator/APE_TX_PORT0_sim.cpp @@ -1,10 +1,10 @@ //////////////////////////////////////////////////////////////////////////////// /// -/// @file APE_TX_PORT_sim.cpp +/// @file APE_TX_PORT0_sim.cpp /// /// @project ape /// -/// @brief APE_TX_PORT_sim +/// @brief APE_TX_PORT0_sim /// //////////////////////////////////////////////////////////////////////////////// /// @@ -45,7 +45,7 @@ #include <stdint.h> #include <utility> #include <bcm5719_SHM.h> -#include <APE_TX_PORT.h> +#include <APE_TX_PORT0.h> static uint32_t loader_read_mem(uint32_t val, uint32_t offset, void *args) { @@ -76,23 +76,23 @@ static uint32_t loader_write_mem(uint32_t val, uint32_t offset, void *args) return val; } -void init_APE_TX_PORT_sim(void *arg0) +void init_APE_TX_PORT0_sim(void *arg0) { (void)arg0; // unused void* base = (void*)0xa0020000; - TX_PORT.mIndexReadCallback = loader_read_mem; - TX_PORT.mIndexReadCallbackArgs = base; + TX_PORT0.mIndexReadCallback = loader_read_mem; + TX_PORT0.mIndexReadCallbackArgs = base; - TX_PORT.mIndexWriteCallback = loader_write_mem; - TX_PORT.mIndexWriteCallbackArgs = base; + TX_PORT0.mIndexWriteCallback = loader_write_mem; + TX_PORT0.mIndexWriteCallbackArgs = base; - /** @brief Component Registers for @ref TX_PORT. */ - /** @brief Bitmap for @ref TX_PORT_t.Out. */ + /** @brief Component Registers for @ref TX_PORT0. */ + /** @brief Bitmap for @ref TX_PORT0_t.Out. */ for(int i = 0; i < 2048; i++) { - TX_PORT.Out[i].r32.installReadCallback(loader_read_mem, (uint8_t *)base); - TX_PORT.Out[i].r32.installWriteCallback(loader_write_mem, (uint8_t *)base); + TX_PORT0.Out[i].r32.installReadCallback(loader_read_mem, (uint8_t *)base); + TX_PORT0.Out[i].r32.installWriteCallback(loader_write_mem, (uint8_t *)base); } |

