Skip to content

Commit

Permalink
[PATCH] m68knommu: use board defines to distinguish boards
Browse files Browse the repository at this point in the history
Use board name defines to distinguish boards, instead of combinations
of more generic defines.

Signed-off-by: Greg Ungerer <gerg@uclinux.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Greg Ungerer authored and Linus Torvalds committed Nov 2, 2005
1 parent 4f4ef29 commit 95dad9b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions include/asm-m68knommu/mcfne.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* Define the basic hardware resources of NE2000 boards.
*/

#if defined(CONFIG_M5206) && defined(CONFIG_ARNEWSH)
#if defined(CONFIG_ARN5206)
#define NE2000_ADDR 0x40000300
#define NE2000_ODDOFFSET 0x00010000
#define NE2000_IRQ_VECTOR 0xf0
Expand All @@ -44,7 +44,7 @@
#define NE2000_BYTE volatile unsigned short
#endif

#if defined(CONFIG_M5206e) && defined(CONFIG_MOTOROLA)
#if defined(CONFIG_M5206eC3)
#define NE2000_ADDR 0x40000300
#define NE2000_ODDOFFSET 0x00010000
#define NE2000_IRQ_VECTOR 0x1c
Expand All @@ -61,7 +61,7 @@
#define NE2000_BYTE volatile unsigned char
#endif

#if defined(CONFIG_M5206e) && defined(CONFIG_CFV240)
#if defined(CONFIG_CFV240)
#define NE2000_ADDR 0x40010000
#define NE2000_ADDR1 0x40010001
#define NE2000_ODDOFFSET 0x00000000
Expand All @@ -72,7 +72,7 @@
#define NE2000_BYTE volatile unsigned char
#endif

#if defined(CONFIG_M5307) && defined(CONFIG_MOTOROLA)
#if defined(CONFIG_M5307C3)
#define NE2000_ADDR 0x40000300
#define NE2000_ODDOFFSET 0x00010000
#define NE2000_IRQ_VECTOR 0x1b
Expand Down Expand Up @@ -114,7 +114,7 @@
#define RSWAP(w) (((w) << 8) | ((w) >> 8))
#endif

#if defined(CONFIG_M5307) && defined(CONFIG_ARNEWSH)
#if defined(CONFIG_ARN5307)
#define NE2000_ADDR 0xfe600300
#define NE2000_ODDOFFSET 0x00010000
#define NE2000_IRQ_VECTOR 0x1b
Expand All @@ -123,7 +123,7 @@
#define NE2000_BYTE volatile unsigned short
#endif

#if defined(CONFIG_M5407)
#if defined(CONFIG_M5407C3)
#define NE2000_ADDR 0x40000300
#define NE2000_ODDOFFSET 0x00010000
#define NE2000_IRQ_VECTOR 0x1b
Expand Down Expand Up @@ -264,7 +264,7 @@ void ne2000_outsw(unsigned int addr, const void *vbuf, unsigned long len)
* Minor differences between the different board types.
*/

#if defined(CONFIG_M5206) && defined(CONFIG_ARNEWSH)
#if defined(CONFIG_ARN5206)
void ne2000_irqsetup(int irq)
{
volatile unsigned char *icrp;
Expand All @@ -275,7 +275,7 @@ void ne2000_irqsetup(int irq)
}
#endif

#if defined(CONFIG_M5206e) && defined(CONFIG_MOTOROLA)
#if defined(CONFIG_M5206eC3)
void ne2000_irqsetup(int irq)
{
volatile unsigned char *icrp;
Expand All @@ -286,7 +286,7 @@ void ne2000_irqsetup(int irq)
}
#endif

#if defined(CONFIG_M5206e) && defined(CONFIG_CFV240)
#if defined(CONFIG_CFV240)
void ne2000_irqsetup(int irq)
{
volatile unsigned char *icrp;
Expand Down

0 comments on commit 95dad9b

Please sign in to comment.