diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-21 17:49:31 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-21 17:49:31 +0000 |
commit | a17bc421735489d6935c486814332ae1b4e4b84e (patch) | |
tree | b6929be47db1bf3ed9feae13a122e14ea9479d6b /c/src/lib/libbsp/arm/gumstix/include | |
parent | 2009-08-21 Xi Yang <hiyangxi@gmail.com> (diff) | |
download | rtems-a17bc421735489d6935c486814332ae1b4e4b84e.tar.bz2 |
2009-08-21 Xi Yang <hiyangxi@gmail.com>
* Makefile.am: Add fb/fb.c add rtl8019 Ethernet card support
* preinstall.am: Install skyeye_fb.h, Install wd80x3
* fb/fb.c, fb/skyeye_fb.h: Framebuffer support for skyeye simulator
* rtl8019/wd80x3, rtl8019/rtl8019.c: rtl8019 support
* startup/memmap.c: Change the size of Map I/O to 1216M
* bsp/bsp.h: Add rtl8019 related infomation
Diffstat (limited to 'c/src/lib/libbsp/arm/gumstix/include')
-rwxr-xr-x | c/src/lib/libbsp/arm/gumstix/include/bsp.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/arm/gumstix/include/bsp.h b/c/src/lib/libbsp/arm/gumstix/include/bsp.h index 326f87f722..83af58ed78 100755 --- a/c/src/lib/libbsp/arm/gumstix/include/bsp.h +++ b/c/src/lib/libbsp/arm/gumstix/include/bsp.h @@ -22,6 +22,7 @@ extern "C" { #include <rtems/clockdrv.h> #include <libchip/serial.h> + /* What is the input clock freq in hertz */ #define BSP_MAIN_FREQ 3686400 /* 3.6864 MHz */ #define BSP_SLCK_FREQ 32768 /* 32.768 KHz */ @@ -42,6 +43,24 @@ extern rtems_configuration_table Configuration; #define ST_PIMR_PIV 33 /* 33 ticks of the 32.768Khz clock ~= 1msec */ +#define outport_byte(port,val) *((unsigned char volatile*)(port)) = (val) +#define inport_byte(port,val) (val) = *((unsigned char volatile*)(port)) +#define outport_word(port,val) *((unsigned short volatile*)(port)) = (val) +#define inport_word(port,val) (val) = *((unsigned short volatile*)(port)) + +struct rtems_bsdnet_ifconfig; +extern int rtems_ne_driver_attach(struct rtems_bsdnet_ifconfig *, int); +#define BSP_NE2000_NETWORK_DRIVER_NAME "ne1" +#define BSP_NE2000_NETWORK_DRIVER_ATTACH rtems_ne_driver_attach + +#ifndef RTEMS_BSP_NETWORK_DRIVER_NAME +#define RTEMS_BSP_NETWORK_DRIVER_NAME BSP_NE2000_NETWORK_DRIVER_NAME +#endif + +#ifndef RTEMS_BSP_NETWORK_DRIVER_ATTACH +#define RTEMS_BSP_NETWORK_DRIVER_ATTACH BSP_NE2000_NETWORK_DRIVER_ATTACH +#endif + #ifdef __cplusplus } #endif |