History

staging/rdma/hfi1: Clean up macro indentation

In preparation for implementing Expected TID caching we do some simple clean up of header file macros.

Mitko Haralanov committed 11 years ago

Commit 3bd4dce1 parent 9e10af42 files · +21 −20Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/rdma/hfi/hfi1_user.h+13−13
@@ -127,13 +127,13 @@ · 126 unmodified lines
127127 #define HFI1_CMD_TID_UPDATE 4 /* update expected TID entries */
128128 #define HFI1_CMD_TID_FREE 5 /* free expected TID entries */
129129 #define HFI1_CMD_CREDIT_UPD 6 /* force an update of PIO credit */
130−#define HFI1_CMD_SDMA_STATUS_UPD 7 /* force update of SDMA status ring */
130+#define HFI1_CMD_SDMA_STATUS_UPD 7 /* force update of SDMA status ring */
131131
132132 #define HFI1_CMD_RECV_CTRL 8 /* control receipt of packets */
133133 #define HFI1_CMD_POLL_TYPE 9 /* set the kind of polling we want */
134134 #define HFI1_CMD_ACK_EVENT 10 /* ack & clear user status bits */
135−#define HFI1_CMD_SET_PKEY 11 /* set context's pkey */
136−#define HFI1_CMD_CTXT_RESET 12 /* reset context's HW send context */
135+#define HFI1_CMD_SET_PKEY 11 /* set context's pkey */
136+#define HFI1_CMD_CTXT_RESET 12 /* reset context's HW send context */
137137 /* separate EPROM commands from normal PSM commands */
138138 #define HFI1_CMD_EP_INFO 64 /* read EPROM device ID */
139139 #define HFI1_CMD_EP_ERASE_CHIP 65 /* erase whole EPROM */
@@ -144,18 +144,18 @@ · 4 unmodified lines
144144 #define HFI1_CMD_EP_WRITE_P0 70 /* write EPROM partition 0 */
145145 #define HFI1_CMD_EP_WRITE_P1 71 /* write EPROM partition 1 */
146146
147−#define _HFI1_EVENT_FROZEN_BIT 0
148−#define _HFI1_EVENT_LINKDOWN_BIT 1
149−#define _HFI1_EVENT_LID_CHANGE_BIT 2
150−#define _HFI1_EVENT_LMC_CHANGE_BIT 3
151−#define _HFI1_EVENT_SL2VL_CHANGE_BIT 4
147+#define _HFI1_EVENT_FROZEN_BIT 0
148+#define _HFI1_EVENT_LINKDOWN_BIT 1
149+#define _HFI1_EVENT_LID_CHANGE_BIT 2
150+#define _HFI1_EVENT_LMC_CHANGE_BIT 3
151+#define _HFI1_EVENT_SL2VL_CHANGE_BIT 4
152152 #define _HFI1_MAX_EVENT_BIT _HFI1_EVENT_SL2VL_CHANGE_BIT
153153
154−#define HFI1_EVENT_FROZEN (1UL << _HFI1_EVENT_FROZEN_BIT)
155−#define HFI1_EVENT_LINKDOWN_BIT (1UL << _HFI1_EVENT_LINKDOWN_BIT)
156−#define HFI1_EVENT_LID_CHANGE_BIT (1UL << _HFI1_EVENT_LID_CHANGE_BIT)
157−#define HFI1_EVENT_LMC_CHANGE_BIT (1UL << _HFI1_EVENT_LMC_CHANGE_BIT)
158−#define HFI1_EVENT_SL2VL_CHANGE_BIT (1UL << _HFI1_EVENT_SL2VL_CHANGE_BIT)
154+#define HFI1_EVENT_FROZEN (1UL << _HFI1_EVENT_FROZEN_BIT)
155+#define HFI1_EVENT_LINKDOWN (1UL << _HFI1_EVENT_LINKDOWN_BIT)
156+#define HFI1_EVENT_LID_CHANGE (1UL << _HFI1_EVENT_LID_CHANGE_BIT)
157+#define HFI1_EVENT_LMC_CHANGE (1UL << _HFI1_EVENT_LMC_CHANGE_BIT)
158+#define HFI1_EVENT_SL2VL_CHANGE (1UL << _HFI1_EVENT_SL2VL_CHANGE_BIT)
159159
160160 /*
161161 * These are the status bits readable (in ASCII form, 64bit value)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t