linux-mips
[Top] [All Lists]

compiling BCM5700 driver

To: <linux-mips@linux-mips.org>
Subject: compiling BCM5700 driver
From: "Roman Mashak" <mrv@corecom.co.kr>
Date: Tue, 30 May 2006 11:10:45 +0900
Fl-build: Fidolook 2002 (SL) 6.0.2800.86 - 14/6/2003 22:16:25
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hello,

I try to compile BCM5700 driver of gigabit ethernet card for MIPS target. I used both toolchains (from PMC-sierra and self-made following http://www.kegel.com/crosstool recommendations). Get same errors:

In file included from mm.h:151,
                from b57um.c:19:
tigon3.h:2225: unnamed fields of type other than struct or union are not allowed
tigon3.h:2225: warning: no semicolon at end of struct or union
tigon3.h:2225: syntax error before numeric constant
tigon3.h:2225: warning: no semicolon at end of struct or union
tigon3.h:2239: syntax error before '}' token
tigon3.h:2239: warning: type defaults to `int' in declaration of `reg'
tigon3.h:2239: warning: data definition has no type or storage class
tigon3.h:2240: syntax error before '}' token

Here is abstract from tigon3.h where compiler complains:

typedef unsigned int   LM_UINT32,  *PLM_UINT32;
...
typedef volatile LM_UINT32 T3_32BIT_REGISTER, *PT3_32BIT_REGISTER;
...

typedef union T3_CPU
{
 struct
 {
   T3_32BIT_REGISTER mode;
   #define CPU_MODE_HALT   BIT_10
   #define CPU_MODE_RESET  BIT_0
   T3_32BIT_REGISTER state;
   T3_32BIT_REGISTER EventMask;
   T3_32BIT_REGISTER reserved1[4];
   T3_32BIT_REGISTER PC;                                /* ERROR! */
   T3_32BIT_REGISTER Instruction;
   T3_32BIT_REGISTER SpadUnderflow;
   T3_32BIT_REGISTER WatchdogClear;
   T3_32BIT_REGISTER WatchdogVector;
   T3_32BIT_REGISTER WatchdogSavedPC;
   T3_32BIT_REGISTER HardwareBp;
   T3_32BIT_REGISTER reserved2[3];
   T3_32BIT_REGISTER WatchdogSavedState;
   T3_32BIT_REGISTER LastBrchAddr;
   T3_32BIT_REGISTER SpadUnderflowSet;
   T3_32BIT_REGISTER reserved3[(0x200-0x50)/4];
   T3_32BIT_REGISTER Regs[32];
   T3_32BIT_REGISTER reserved4[(0x400-0x280)/4];
 }reg;
}T3_CPU, *PT3_CPU;

I used the following compiler flags:

CFLAGS=-DMODULE -D__KERNEL__ -DDBG=0 -DT3_JUMBO_RCV_RCB_ENTRY_COUNT=256 -DNICE_SUPPORT -DPCIX_TARGET_WORKAROUND=1 -DINCLUDE_TBI_SUPPORT -DINCLUDE_5701_AX_FIX=1 -Wall -Wstrict-prototypes -mabi=32 -pipe -mips4 -mlong-calls -fno-common -fomit-frame-pointer -fno-pic -mno-abicalls -G0 -I$(LINUX)/include

What may be the reason?

Thanks in advance for hints!

With best regards, Roman Mashak. E-mail: mrv@corecom.co.kr


<Prev in Thread] Current Thread [Next in Thread>