Port IEEE 802.11.

This commit is contained in:
Christian Mauderer
2016-12-12 12:31:33 +01:00
parent a241ea8e92
commit efc782bd1c
5 changed files with 56 additions and 2 deletions

View File

@@ -176,6 +176,14 @@
#define _ALIGN(p) (((uintptr_t)(p) + _ALIGNBYTES) &~ _ALIGNBYTES)
#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
*/

View File

@@ -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 *);