Go to the documentation of this file.
27 #ifndef _LINUX_UWB_WHCI_H_
28 #define _LINUX_UWB_WHCI_H_
30 #include <linux/pci.h>
37 #define UWBCAPINFO 0x00
38 # define UWBCAPINFO_TO_N_CAPS(c) (((c) >> 0) & 0xFull)
39 #define UWBCAPDATA(n) (8*(n))
40 # define UWBCAPDATA_TO_VERSION(c) (((c) >> 32) & 0xFFFFull)
41 # define UWBCAPDATA_TO_OFFSET(c) (((c) >> 18) & 0x3FFFull)
42 # define UWBCAPDATA_TO_BAR(c) (((c) >> 16) & 0x3ull)
43 # define UWBCAPDATA_TO_SIZE(c) ((((c) >> 8) & 0xFFull) * sizeof(u32))
44 # define UWBCAPDATA_TO_CAP_ID(c) (((c) >> 0) & 0xFFull)
48 #define UWBCAPDATA_SIZE(n) (8 + 8*(n))
57 # define URCCMD_RESET (1 << 31)
58 # define URCCMD_RS (1 << 30)
59 # define URCCMD_EARV (1 << 29)
60 # define URCCMD_ACTIVE (1 << 15)
61 # define URCCMD_IWR (1 << 14)
62 # define URCCMD_SIZE_MASK 0x00000fff
64 # define URCSTS_EPS (1 << 17)
65 # define URCSTS_HALTED (1 << 16)
66 # define URCSTS_HSE (1 << 10)
67 # define URCSTS_ER (1 << 9)
68 # define URCSTS_RCI (1 << 8)
69 # define URCSTS_INT_MASK 0x00000700
70 # define URCSTS_ISI 0x000000ff
72 # define URCINTR_EN_ALL 0x000007ff
73 #define URCCMDADDR 0x10
74 #define URCEVTADDR 0x18
75 # define URCEVTADDR_OFFSET_MASK 0xfff
115 unsigned long max_ms,
const char *
tag);