static int litex_sim_module_pads_get( struct pad_s *pads, char *name, void **signal)
{
- int ret;
+ int ret = RC_OK;
void *sig=NULL;
int i;
static int clocker_new(void **sess, char *args)
{
- int ret=RC_OK;
+ int ret = RC_OK;
struct session_s *s=NULL;
static int litex_sim_module_pads_get(struct pad_s *pads, char *name, void **signal)
{
- int ret;
+ int ret = RC_OK;
void *sig = NULL;
int i;
static int ethernet_add_pads(void *sess, struct pad_list_s *plist)
{
- int ret=RC_OK;
+ int ret = RC_OK;
struct session_s *s = (struct session_s*)sess;
struct pad_s *pads;
if(!sess || !plist) {
struct event_base *base;
static int litex_sim_module_pads_get(struct pad_s *pads, char *name, void **signal)
{
- int ret;
+ int ret = RC_OK;
void *sig = NULL;
int i;
static int serial2console_new(void **sess, char *args)
{
- int ret=RC_OK;
+ int ret = RC_OK;
struct timeval tv = {1, 0};
struct session_s *s = NULL;
static int litex_sim_module_pads_get( struct pad_s *pads, char *name, void **signal)
{
- int ret;
+ int ret = RC_OK;
void *sig = NULL;
int i;
static int serial2tcp_add_pads(void *sess, struct pad_list_s *plist)
{
- int ret=RC_OK;
+ int ret = RC_OK;
struct session_s *s=(struct session_s*)sess;
struct pad_s *pads;
if(!sess || !plist) {
static int spdeeprom_new(void **sess, char *args)
{
- int ret=RC_OK;
+ int ret = RC_OK;
int i;
char *spd_filename;
FILE *spd_file;
static int litex_sim_module_pads_get(struct pad_s *pads, char *name, void **signal)
{
- int ret;
+ int ret = RC_OK;
void *sig=NULL;
int i;
static int litex_sim_module_pads_get(struct pad_s *pads, char *name, void **signal)
{
- int ret;
+ int ret = RC_OK;
void *sig = NULL;
int i;
static int xgmii_ethernet_add_pads(void *sess, struct pad_list_s *plist)
{
- int ret=RC_OK;
+ int ret = RC_OK;
struct session_s *s = (struct session_s*)sess;
struct pad_s *pads;
if(!sess || !plist) {
printf("Received: %ld\n", s->ethpack->len );
for(int i=0; i< s->ethpack->len;) {
printf("%02x ", s->inbuf[i++] & 0xff);
- if (i%8 == 0 && i > 0);
}
printf("\n");
s->inlen = s->ethpack->len;