Commit 22bf789c authored by Federico Vaga's avatar Federico Vaga

sw:fw: rename end point address structure

The end-point is not universal, this is the end-point for a particular
HDL implementation that handles ETH packets
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 9ecd15d5
......@@ -82,7 +82,8 @@ static inline void rmq_ep_in_writel(int slot, uint32_t data, uint32_t addr)
mq_writel( TRTL_RMQ, data, addr + TRTL_MQ_SLOT_ENDPOINT_CONFIG_START + TRTL_MQ_SLOT_IN (slot) );
}
static void rmq_ep_bind_in(int slot, struct trtl_ep_eth_address* addr)
static void rmq_ep_bind_in(int slot, struct
trtl_ep_eth_address* addr)
{
uint32_t cfg = 0;
......@@ -116,7 +117,8 @@ static void rmq_ep_bind_in(int slot, struct trtl_ep_eth_address* addr)
rmq_ep_in_writel( slot, addr->dst_port, TRTL_EP_IN_DST_PORT );
}
static void rmq_ep_bind_out ( int slot, struct trtl_ep_address* addr )
static void rmq_ep_bind_out(int slot,
struct trtl_ep_eth_address* addr)
{
uint32_t tmp;
......@@ -138,7 +140,8 @@ static void rmq_ep_bind_out ( int slot, struct trtl_ep_address* addr )
rmq_ep_out_writel( slot, addr->dst_port, TRTL_EP_OUT_DST_PORT );
}
void mq_bind(enum trtl_mq_type type, int slot, int is_out, struct trtl_ep_address* addr)
void mq_bind(enum trtl_mq_type type, int slot, int is_out,
struct trtl_ep_eth_address* addr)
{
if( type != TRTL_RMQ )
{
......
......@@ -497,7 +497,7 @@ static inline void mq_send(enum trtl_mq_type type, int slot)
* @param[in] addr bind address
*/
void mq_bind(enum trtl_mq_type type, int slot, int is_out,
struct trtl_ep_address* addr);
struct trtl_ep_eth_address* addr);
/**
......
......@@ -53,7 +53,7 @@
#define TRTL_EP_IN_DST_TYPE2 32
#define TRTL_EP_IN_DST_TYPE3 36
struct trtl_ep_address {
struct trtl_ep_eth_address {
uint32_t type;
uint32_t filter;
uint8_t dst_mac[6];
......
......@@ -47,8 +47,7 @@ int main()
{
unsigned v;
int rmq = 0;
struct trtl_ep_address bind_addr;
struct trtl_ep_eth_address bind_addr;
pp_printf("RMQ UDP EP test\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment