forked from Imagelibrary/rtems
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:
committed by
Gedare Bloom
parent
f636ba640e
commit
67b1ce4a69
@@ -58,6 +58,8 @@ extern int rtems_smc91111_driver_attach_leon2(
|
|||||||
#define RTEMS_BSP_NETWORK_DRIVER_ATTACH_SMC91111 \
|
#define RTEMS_BSP_NETWORK_DRIVER_ATTACH_SMC91111 \
|
||||||
rtems_smc91111_driver_attach_leon2
|
rtems_smc91111_driver_attach_leon2
|
||||||
|
|
||||||
|
#define HAS_SMC91111
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The synchronous trap is an arbitrarily chosen software trap.
|
* The synchronous trap is an arbitrarily chosen software trap.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -71,6 +71,8 @@ extern int rtems_leon_greth_driver_attach(
|
|||||||
#define RTEMS_BSP_NETWORK_DRIVER_ATTACH RTEMS_BSP_NETWORK_DRIVER_ATTACH_GRETH
|
#define RTEMS_BSP_NETWORK_DRIVER_ATTACH RTEMS_BSP_NETWORK_DRIVER_ATTACH_GRETH
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define HAS_SMC91111
|
||||||
|
|
||||||
extern int CPU_SPARC_HAS_SNOOPING;
|
extern int CPU_SPARC_HAS_SNOOPING;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -15,11 +15,11 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(__sparc__) || defined(HAS_SMC91111)
|
#if defined(HAS_SMC91111)
|
||||||
#define SMC91111_SUPPORTED
|
#define SMC91111_SUPPORTED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(SMC91111_SUPPORTED)
|
#if defined(HAS_SMC91111)
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user