diff options
Diffstat (limited to 'bsd_eth_drivers/libbsdport/README')
-rw-r--r-- | bsd_eth_drivers/libbsdport/README | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/bsd_eth_drivers/libbsdport/README b/bsd_eth_drivers/libbsdport/README new file mode 100644 index 0000000..14fd4a5 --- /dev/null +++ b/bsd_eth_drivers/libbsdport/README @@ -0,0 +1,29 @@ +This is a library and collection of header files +intended to ease porting recent FreeBSD (as of 7/2007) +drivers to RTEMS. Currently, only the PCI bus is supported. + +A lot of macro-magic is used in the 'libbsdport.h' +and 'libbsdport_post.h' headers which are te be included +from the driver source file prior and after the driver +includes the normal headers it uses: + +At the top of if_xxx.c add: + +#ifdef __rtems__ +#include <libbsdport.h> +#endif + +... leave all normal include statements in place... +#include <sys/yyy.h> + +lastly, add: + +#ifdef __rtems__ +#include <libbsdport_post.h> +#endif + +Note that libbsdport does not provide the full freebsd +kernel API but only a subset. + +<< MORE TO COME >> + |