Uthernet support for RPi

This commit is contained in:
David Schmenk 2013-11-16 00:28:17 +00:00
parent 6f584ae2df
commit eb50826de5
6 changed files with 17 additions and 11 deletions

View File

@ -23,6 +23,10 @@
#ifndef _PROTOS_TFE_H
#define _PROTOS_TFE_H
#ifndef FALSE
#define FALSE 0
#define TRUE !FALSE
#endif
extern int tfe_enabled;
void tfe_init(void);

View File

@ -36,7 +36,7 @@
#include <pcap.h>
#endif
#include "..\defc.h"
#include "../defc.h"
#include "tfesupp.h"
#include "protos_tfe.h"
#include "types.h"
@ -48,7 +48,7 @@
/* #define TFE_DEBUG_WARN_REG 1 */ /* warn about invalid register accesses */
/* #define TFE_DEBUG_WARN_RXTX 1 */ /* warn about invalid rx or tx conditions */
/** #define TFE_DEBUG_INIT 1 **/
/** #define TFE_DEBUG_INIT 1 **/
/** #define TFE_DEBUG_LOAD 1 **/ /* enable to see tfe port reads */
/** #define TFE_DEBUG_STORE 1 **/ /* enable to see tfe port writes */
/** #define TFE_DEBUG_REGISTERS 1 **/ /* enable to see CS8900a register I/O */

View File

@ -39,11 +39,12 @@
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#ifdef WIN32
#include <windows.h>
#include <windowsx.h>
#include <commctrl.h>
#include <commdlg.h>
#endif
#include "tfesupp.h"

View File

@ -50,4 +50,5 @@ extern int util_string_set(char **str, const char *new_value);
extern unsigned long crc32_buf(const char *buffer, unsigned int len);
#define log_message(level,...) fprintf(stderr,__VA_ARGS__)
#endif

View File

@ -1,15 +1,15 @@
TARGET = gsportfb
OBJECTS = $(OBJECTS1) fbdriver.o
TFEOBJ = tfe/tfe.o arch/unix/tfearch.o tfe/tfesupp.o
OBJECTS = $(OBJECTS1) $(TFEOBJ) fbdriver.o
CC = g++
CCOPTS = -O2 -Wall -fomit-frame-pointer -march=armv6
OPTS = -DGSPORT_LITTLE_ENDIAN
OPTS = -DGSPORT_LITTLE_ENDIAN -DHAVE_TFE
SUFFIX =
NAME = gsportfb
LDFLAGS =
LDOPTS =
LD = $(CC)
EXTRA_LIBS =
EXTRA_LIBS = -lpcap
EXTRA_SPECIALS =
AS = cc

View File

@ -1,15 +1,15 @@
TARGET = gsportx
OBJECTS = $(OBJECTS1) xdriver.o
TFEOBJ = tfe/tfe.o arch/unix/tfearch.o tfe/tfesupp.o
OBJECTS = $(OBJECTS1) $(TFEOBJ) xdriver.o
CC = g++
CCOPTS = -O2 -Wall -fomit-frame-pointer -march=armv6
OPTS = -DGSPORT_LITTLE_ENDIAN
OPTS = -DGSPORT_LITTLE_ENDIAN -DHAVE_TFE
SUFFIX =
NAME = gsportx
LDFLAGS =
LDOPTS =
LD = $(CC)
EXTRA_LIBS = -lXext
EXTRA_LIBS = -lXext -lpcap
EXTRA_SPECIALS =
AS = cc