diff options
Diffstat (limited to 'rtemsbsd')
-rw-r--r-- | rtemsbsd/include/rtems/bsd/local/opt_platform.h | 0 | ||||
-rw-r--r-- | rtemsbsd/include/rtems/bsd/sys/param.h | 8 | ||||
-rw-r--r-- | rtemsbsd/rtems/rtems-kernel-init.c | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/rtemsbsd/include/rtems/bsd/local/opt_platform.h b/rtemsbsd/include/rtems/bsd/local/opt_platform.h new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/rtemsbsd/include/rtems/bsd/local/opt_platform.h diff --git a/rtemsbsd/include/rtems/bsd/sys/param.h b/rtemsbsd/include/rtems/bsd/sys/param.h index fb9b80cc..8042746c 100644 --- a/rtemsbsd/include/rtems/bsd/sys/param.h +++ b/rtemsbsd/include/rtems/bsd/sys/param.h @@ -177,6 +177,14 @@ #endif /* + * ALIGNED_POINTER is a boolean macro that checks whether an address + * is valid to fetch data elements of type t from on this architecture. + * This does not reflect the optimal alignment, just the possibility + * (within reasonable limits). + */ +#define ALIGNED_POINTER(p, t) ((((u_long)(p)) & (sizeof(t) - 1)) == 0) + +/* * Some macros for units conversion */ diff --git a/rtemsbsd/rtems/rtems-kernel-init.c b/rtemsbsd/rtems/rtems-kernel-init.c index d6ba174c..6b37ad1c 100644 --- a/rtemsbsd/rtems/rtems-kernel-init.c +++ b/rtemsbsd/rtems/rtems-kernel-init.c @@ -50,6 +50,8 @@ #include <sys/proc.h> #include <sys/stat.h> +#include <net80211/ieee80211_freebsd.h> + #include <rtems/bsd/bsd.h> SYSINIT_REFERENCE(configure1); @@ -61,6 +63,8 @@ SYSINIT_DRIVER_REFERENCE(nexus, root); RTEMS_BSD_DEFINE_SET(modmetadata_set, struct mod_metadata *); RTEMS_BSD_DEFINE_SET(sysctl_set, struct sysctl_oid *); +RTEMS_BSD_DEFINE_SET(ieee80211_ioctl_getset, ieee80211_ioctl_getfunc *); +RTEMS_BSD_DEFINE_SET(ieee80211_ioctl_setset, ieee80211_ioctl_setfunc *); RTEMS_BSD_DEFINE_RWSET(sysinit_set, struct sysinit *); |