diff options
author | Julien Delange <julien.delange@gmail.com> | 2012-03-26 09:51:49 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-03-26 09:51:49 -0500 |
commit | a52104cf463a461f6fcccd2cc6b11bd6691908c8 (patch) | |
tree | 31a617ce2a74d3e799bd95fd634332f20347583f /freebsd/dev/e1000/e1000_mac.c | |
parent | Use new block device API (diff) | |
download | rtems-libbsd-a52104cf463a461f6fcccd2cc6b11bd6691908c8.tar.bz2 |
e1000 driver now compiles with fewer modifications
- Change some include path in the e1000 drivers
- Add some files from the FreeBSD source tree (modification in
freebsd-to-rtems.py)
- Avoid inconsistent functions declarations: the bool_t and/or
boolean_t are not the same between rtems and freebsd so that a
function with the prototype bool_t foobar() and another boolean_t
foobar() does not compile on rtems. (see if_igb.c for example)
Joel Note: These are still inconsistent on the FreeBSD side and need
to be addressed by them. We will just make the prototype
match the body until they give us a solution.
Diffstat (limited to 'freebsd/dev/e1000/e1000_mac.c')
-rw-r--r-- | freebsd/dev/e1000/e1000_mac.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/freebsd/dev/e1000/e1000_mac.c b/freebsd/dev/e1000/e1000_mac.c index 90550c89..8b38ef9d 100644 --- a/freebsd/dev/e1000/e1000_mac.c +++ b/freebsd/dev/e1000/e1000_mac.c @@ -34,10 +34,10 @@ ******************************************************************************/ /*$FreeBSD$*/ -#ifndef __rtems__ -#include <freebsd/local/e1000_api.h> -#else +#ifdef __rtems__ #include <freebsd/dev/e1000/e1000_api.h> +#else +#include <freebsd/local/e1000_api.h> #endif static s32 e1000_validate_mdi_setting_generic(struct e1000_hw *hw); |