SMC91111: ERC32 was never supported by driver

Moved the intelligence whether the driver is supported or not
completely to the BSP, now that bsp.h is included (even though it
is a driver... hmm). The ERC32 was never supported, so HAS_SMC91111
is not added to erc32/include/bsp.h.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
This commit is contained in:
Daniel Hellstrom
2012-02-06 15:15:49 +01:00
committed by Gedare Bloom
parent f636ba640e
commit 67b1ce4a69
3 changed files with 6 additions and 2 deletions

View File

@@ -58,6 +58,8 @@ extern int rtems_smc91111_driver_attach_leon2(
#define RTEMS_BSP_NETWORK_DRIVER_ATTACH_SMC91111 \
rtems_smc91111_driver_attach_leon2
#define HAS_SMC91111
/*
* The synchronous trap is an arbitrarily chosen software trap.
*/

View File

@@ -71,6 +71,8 @@ extern int rtems_leon_greth_driver_attach(
#define RTEMS_BSP_NETWORK_DRIVER_ATTACH RTEMS_BSP_NETWORK_DRIVER_ATTACH_GRETH
#endif
#define HAS_SMC91111
extern int CPU_SPARC_HAS_SNOOPING;

View File

@@ -15,11 +15,11 @@
*
*/
#if defined(__sparc__) || defined(HAS_SMC91111)
#if defined(HAS_SMC91111)
#define SMC91111_SUPPORTED
#endif
#if defined(SMC91111_SUPPORTED)
#if defined(HAS_SMC91111)
#include <stdlib.h>
#include <stdio.h>