Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: "Roman Mashak" <mrv@corecom.co.kr>
To: <linux-mips@linux-mips.org>
Subject: compiling BCM5700 driver
Date: Tue, 30 May 2006 11:10:45 +0900	[thread overview]
Message-ID: <000101c6838e$437abdf0$9d0ba8c0@mrv> (raw)

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 

WARNING: multiple messages have this Message-ID (diff)
From: "Roman Mashak" <mrv@corecom.co.kr>
To: linux-mips@linux-mips.org
Subject: compiling BCM5700 driver
Date: Tue, 30 May 2006 11:10:45 +0900	[thread overview]
Message-ID: <000101c6838e$437abdf0$9d0ba8c0@mrv> (raw)
Message-ID: <20060530021045.mNWFcYGbS7JuE354IVqvOCMxAyDI8hgbscc67HAeKtE@z> (raw)

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 

             reply	other threads:[~2006-05-30  2:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-30  2:10 Roman Mashak [this message]
2006-05-30  2:10 ` compiling BCM5700 driver Roman Mashak
2006-05-30 13:03 ` John W. Linville
2006-05-30 14:06 ` Ralf Baechle
2006-05-31  1:54   ` Roman Mashak
2006-05-31  1:54     ` Roman Mashak
2006-05-31 11:19     ` Ralf Baechle
  -- strict thread matches above, loose matches on Subject: below --
2006-05-31 16:06 Raj Palani
2006-06-01  1:41 ` Roman Mashak
2006-06-01  1:41   ` Roman Mashak
2006-06-01 23:22 Raj Palani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000101c6838e$437abdf0$9d0ba8c0@mrv' \
    --to=mrv@corecom.co.kr \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox