| .. | .. |
|---|
| 52 | 52 | #include <linux/kref.h> |
|---|
| 53 | 53 | #include <linux/sched.h> |
|---|
| 54 | 54 | #include <linux/kthread.h> |
|---|
| 55 | +#include <linux/xarray.h> |
|---|
| 55 | 56 | #include <rdma/ib_hdrs.h> |
|---|
| 56 | 57 | #include <rdma/rdma_vt.h> |
|---|
| 57 | 58 | |
|---|
| .. | .. |
|---|
| 618 | 619 | /* LID mask control */ |
|---|
| 619 | 620 | u8 lmc; |
|---|
| 620 | 621 | u8 link_width_supported; |
|---|
| 621 | | - u8 link_speed_supported; |
|---|
| 622 | + u16 link_speed_supported; |
|---|
| 622 | 623 | u8 link_width_enabled; |
|---|
| 623 | | - u8 link_speed_enabled; |
|---|
| 624 | + u16 link_speed_enabled; |
|---|
| 624 | 625 | u8 link_width_active; |
|---|
| 625 | | - u8 link_speed_active; |
|---|
| 626 | + u16 link_speed_active; |
|---|
| 626 | 627 | u8 vls_supported; |
|---|
| 627 | 628 | u8 vls_operational; |
|---|
| 628 | 629 | /* Rx Polarity inversion (compensate for ~tx on partner) */ |
|---|
| .. | .. |
|---|
| 1105 | 1106 | int rec_cpu_num; /* for cpu affinity; -1 if none */ |
|---|
| 1106 | 1107 | }; |
|---|
| 1107 | 1108 | |
|---|
| 1108 | | -extern struct list_head qib_dev_list; |
|---|
| 1109 | | -extern spinlock_t qib_devs_lock; |
|---|
| 1109 | +extern struct xarray qib_dev_table; |
|---|
| 1110 | 1110 | extern struct qib_devdata *qib_lookup(int unit); |
|---|
| 1111 | 1111 | extern u32 qib_cpulist_count; |
|---|
| 1112 | 1112 | extern unsigned long *qib_cpulist; |
|---|
| .. | .. |
|---|
| 1390 | 1390 | */ |
|---|
| 1391 | 1391 | |
|---|
| 1392 | 1392 | extern const char ib_qib_version[]; |
|---|
| 1393 | +extern const struct attribute_group qib_attr_group; |
|---|
| 1393 | 1394 | |
|---|
| 1394 | 1395 | int qib_device_create(struct qib_devdata *); |
|---|
| 1395 | 1396 | void qib_device_remove(struct qib_devdata *); |
|---|
| 1396 | 1397 | |
|---|
| 1397 | 1398 | int qib_create_port_files(struct ib_device *ibdev, u8 port_num, |
|---|
| 1398 | 1399 | struct kobject *kobj); |
|---|
| 1399 | | -int qib_verbs_register_sysfs(struct qib_devdata *); |
|---|
| 1400 | 1400 | void qib_verbs_unregister_sysfs(struct qib_devdata *); |
|---|
| 1401 | 1401 | /* Hook for sysfs read of QSFP */ |
|---|
| 1402 | 1402 | extern int qib_qsfp_dump(struct qib_pportdata *ppd, char *buf, int len); |
|---|