mad.h (3a485c2be49dde899e506684bb5f06d5b3f73e82) mad.h (d61ea0751aa097182291c7ceed447bc73e020109)
1/*
2 * Copyright(c) 2015 - 2017 Intel Corporation.
3 *
4 * This file is provided under a dual BSD/GPLv2 license. When using or
5 * redistributing this file, you may do so under either license.
6 *
7 * GPL LICENSE SUMMARY
8 *

--- 225 unchanged lines hidden (view full) ---

234#define OPA_CC_LOG_TYPE_HFI 2
235
236struct opa_hfi1_cong_log_event_internal {
237 u32 lqpn;
238 u32 rqpn;
239 u8 sl;
240 u8 svc_type;
241 u32 rlid;
1/*
2 * Copyright(c) 2015 - 2017 Intel Corporation.
3 *
4 * This file is provided under a dual BSD/GPLv2 license. When using or
5 * redistributing this file, you may do so under either license.
6 *
7 * GPL LICENSE SUMMARY
8 *

--- 225 unchanged lines hidden (view full) ---

234#define OPA_CC_LOG_TYPE_HFI 2
235
236struct opa_hfi1_cong_log_event_internal {
237 u32 lqpn;
238 u32 rqpn;
239 u8 sl;
240 u8 svc_type;
241 u32 rlid;
242 s64 timestamp; /* wider than 32 bits to detect 32 bit rollover */
242 u64 timestamp; /* wider than 32 bits to detect 32 bit rollover */
243};
244
245struct opa_hfi1_cong_log_event {
246 u8 local_qp_cn_entry[3];
247 u8 remote_qp_number_cn_entry[3];
248 u8 sl_svc_type_cn_entry; /* 5 bits SL, 3 bits svc type */
249 u8 reserved;
250 __be32 remote_lid_cn_entry;

--- 172 unchanged lines hidden (view full) ---

423#define COUNTER_MASK0_9 \
424 cpu_to_be32(COUNTER_MASK(1, 0) | \
425 COUNTER_MASK(1, 1) | \
426 COUNTER_MASK(1, 2) | \
427 COUNTER_MASK(1, 3) | \
428 COUNTER_MASK(1, 4))
429
430void hfi1_event_pkey_change(struct hfi1_devdata *dd, u8 port);
243};
244
245struct opa_hfi1_cong_log_event {
246 u8 local_qp_cn_entry[3];
247 u8 remote_qp_number_cn_entry[3];
248 u8 sl_svc_type_cn_entry; /* 5 bits SL, 3 bits svc type */
249 u8 reserved;
250 __be32 remote_lid_cn_entry;

--- 172 unchanged lines hidden (view full) ---

423#define COUNTER_MASK0_9 \
424 cpu_to_be32(COUNTER_MASK(1, 0) | \
425 COUNTER_MASK(1, 1) | \
426 COUNTER_MASK(1, 2) | \
427 COUNTER_MASK(1, 3) | \
428 COUNTER_MASK(1, 4))
429
430void hfi1_event_pkey_change(struct hfi1_devdata *dd, u8 port);
431void hfi1_handle_trap_timer(unsigned long data);
431void hfi1_handle_trap_timer(struct timer_list *t);
432
433#endif /* _HFI1_MAD_H */
432
433#endif /* _HFI1_MAD_H */