30 #ifndef __LINUX__UWB_SPEC_H__
31 #define __LINUX__UWB_SPEC_H__
33 #include <linux/types.h>
34 #include <linux/bitmap.h>
36 #define i1480_FW 0x00000303
59 #define UWB_MAS_PER_ZONE (UWB_NUM_MAS / UWB_NUM_ZONES)
64 #define UWB_USABLE_MAS_PER_ROW (UWB_NUM_ZONES - 1)
124 #define UWB_SUPERFRAME_LENGTH_US (UWB_MAS_LENGTH_US * UWB_NUM_MAS)
314 static inline int uwb_ie_drp_stream_index(
struct uwb_ie_drp *ie)
319 static inline int uwb_ie_drp_reason_code(
struct uwb_ie_drp *ie)
324 static inline int uwb_ie_drp_status(
struct uwb_ie_drp *ie)
329 static inline int uwb_ie_drp_owner(
struct uwb_ie_drp *ie)
334 static inline int uwb_ie_drp_tiebreaker(
struct uwb_ie_drp *ie)
339 static inline int uwb_ie_drp_unsafe(
struct uwb_ie_drp *ie)
347 drp_control = (drp_control & ~(0x7 << 0)) | (type << 0);
351 static inline void uwb_ie_drp_set_stream_index(
struct uwb_ie_drp *ie,
int stream_index)
354 drp_control = (drp_control & ~(0x7 << 3)) | (stream_index << 3);
358 static inline void uwb_ie_drp_set_reason_code(
struct uwb_ie_drp *ie,
362 drp_control = (ie->
drp_control & ~(0x7 << 6)) | (reason_code << 6);
369 drp_control = (drp_control & ~(0x1 << 9)) | (status << 9);
373 static inline void uwb_ie_drp_set_owner(
struct uwb_ie_drp *ie,
int owner)
376 drp_control = (drp_control & ~(0x1 << 10)) | (owner << 10);
380 static inline void uwb_ie_drp_set_tiebreaker(
struct uwb_ie_drp *ie,
int tiebreaker)
383 drp_control = (drp_control & ~(0x1 << 11)) | (tiebreaker << 11);
387 static inline void uwb_ie_drp_set_unsafe(
struct uwb_ie_drp *ie,
int unsafe)
390 drp_control = (drp_control & ~(0x1 << 12)) | (unsafe << 12);
417 ctrl = (ctrl & ~(0xf << 0)) | (reason_code << 0);
683 static inline int uwb_rc_evt_bp_slot_change_slot_num(
689 static inline int uwb_rc_evt_bp_slot_change_no_slot(