Go to the documentation of this file.
35 #ifndef ASM_RMI_MSIDEF_H
36 #define ASM_RMI_MSIDEF_H
47 #define MSI_DATA_VECTOR_SHIFT 0
48 #define MSI_DATA_VECTOR_MASK 0x000000ff
49 #define MSI_DATA_VECTOR(v) (((v) << MSI_DATA_VECTOR_SHIFT) & \
52 #define MSI_DATA_DELIVERY_MODE_SHIFT 8
53 #define MSI_DATA_DELIVERY_FIXED (0 << MSI_DATA_DELIVERY_MODE_SHIFT)
54 #define MSI_DATA_DELIVERY_LOWPRI (1 << MSI_DATA_DELIVERY_MODE_SHIFT)
56 #define MSI_DATA_LEVEL_SHIFT 14
57 #define MSI_DATA_LEVEL_DEASSERT (0 << MSI_DATA_LEVEL_SHIFT)
58 #define MSI_DATA_LEVEL_ASSERT (1 << MSI_DATA_LEVEL_SHIFT)
60 #define MSI_DATA_TRIGGER_SHIFT 15
61 #define MSI_DATA_TRIGGER_EDGE (0 << MSI_DATA_TRIGGER_SHIFT)
62 #define MSI_DATA_TRIGGER_LEVEL (1 << MSI_DATA_TRIGGER_SHIFT)
68 #define MSI_ADDR_BASE_HI 0
69 #define MSI_ADDR_BASE_LO 0xfee00000
71 #define MSI_ADDR_DEST_MODE_SHIFT 2
72 #define MSI_ADDR_DEST_MODE_PHYSICAL (0 << MSI_ADDR_DEST_MODE_SHIFT)
73 #define MSI_ADDR_DEST_MODE_LOGICAL (1 << MSI_ADDR_DEST_MODE_SHIFT)
75 #define MSI_ADDR_REDIRECTION_SHIFT 3
76 #define MSI_ADDR_REDIRECTION_CPU (0 << MSI_ADDR_REDIRECTION_SHIFT)
77 #define MSI_ADDR_REDIRECTION_LOWPRI (1 << MSI_ADDR_REDIRECTION_SHIFT)
79 #define MSI_ADDR_DEST_ID_SHIFT 12
80 #define MSI_ADDR_DEST_ID_MASK 0x00ffff0
81 #define MSI_ADDR_DEST_ID(dest) (((dest) << MSI_ADDR_DEST_ID_SHIFT) & \
82 MSI_ADDR_DEST_ID_MASK)