summaryrefslogtreecommitdiffstats
path: root/c/src/libchip/network/smc91111config.h
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2006-01-12 06:13:03 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2006-01-12 06:13:03 +0000
commit2be6d66bc9f94da00f6c073b82a266c42cb90c75 (patch)
treede2e5c6b75259e8ad17cc69415f606ebff907349 /c/src/libchip/network/smc91111config.h
parentRegenerate. (diff)
downloadrtems-2be6d66bc9f94da00f6c073b82a266c42cb90c75.tar.bz2
2006-01-12 Ralf Corsepius <ralf.corsepius@rtems.org>
* libchip/Makefile.am: Build libchip/network/smc91111. * libchip/network/smc91111.c, libchip/network/smc91111config.h: Eliminate cyg_int* crap.
Diffstat (limited to '')
-rw-r--r--c/src/libchip/network/smc91111config.h26
1 files changed, 8 insertions, 18 deletions
diff --git a/c/src/libchip/network/smc91111config.h b/c/src/libchip/network/smc91111config.h
index 5c293e37fb..82e8021586 100644
--- a/c/src/libchip/network/smc91111config.h
+++ b/c/src/libchip/network/smc91111config.h
@@ -40,31 +40,21 @@
/* ----------------- compat layer ----------------- */
-/* -------------------------------------------------------------------------
- Define basic types for using integers in memory and structures;
- depends on compiler defaults and CPU type. */
-
-typedef unsigned char cyg_uint8 ;
-typedef signed char cyg_int8 ;
-typedef unsigned short cyg_uint16 ;
-typedef signed short cyg_int16 ;
-typedef unsigned int cyg_uint32 ;
-typedef signed int cyg_int32 ;
-typedef unsigned int cyg_bool ;
-
-typedef cyg_uint32 CYG_WORD;
-typedef cyg_uint8 CYG_BYTE;
-typedef cyg_uint16 CYG_WORD16;
-typedef cyg_uint32 CYG_WORD32;
+#include <rtems/stdint.h>
+
+typedef uint32_t CYG_WORD;
+typedef uint8_t CYG_BYTE;
+typedef uint16_t CYG_WORD16;
+typedef uint32_t CYG_WORD32;
#ifndef CYG_SWAP16
# define CYG_SWAP16(_x_) \
- ({ cyg_uint16 _x = (_x_); ((_x << 8) | (_x >> 8)); })
+ ({ uint16_t _x = (_x_); ((_x << 8) | (_x >> 8)); })
#endif
#ifndef CYG_SWAP32
# define CYG_SWAP32(_x_) \
- ({ cyg_uint32 _x = (_x_); \
+ ({ uint32_t _x = (_x_); \
((_x << 24) | \
((0x0000FF00UL & _x) << 8) | \
((0x00FF0000UL & _x) >> 8) | \