| .. | .. |
|---|
| 10 | 10 | #define SMCD_ISM_H |
|---|
| 11 | 11 | |
|---|
| 12 | 12 | #include <linux/uio.h> |
|---|
| 13 | +#include <linux/mutex.h> |
|---|
| 13 | 14 | |
|---|
| 14 | 15 | #include "smc.h" |
|---|
| 15 | 16 | |
|---|
| 16 | 17 | struct smcd_dev_list { /* List of SMCD devices */ |
|---|
| 17 | 18 | struct list_head list; |
|---|
| 18 | | - spinlock_t lock; /* Protects list of devices */ |
|---|
| 19 | + struct mutex mutex; /* Protects list of devices */ |
|---|
| 19 | 20 | }; |
|---|
| 20 | 21 | |
|---|
| 21 | | -extern struct smcd_dev_list smcd_dev_list; /* list of smcd devices */ |
|---|
| 22 | +extern struct smcd_dev_list smcd_dev_list; /* list of smcd devices */ |
|---|
| 23 | +extern bool smc_ism_v2_capable; /* HW supports ISM V2 and thus |
|---|
| 24 | + * System EID is defined |
|---|
| 25 | + */ |
|---|
| 22 | 26 | |
|---|
| 23 | 27 | struct smc_ism_vlanid { /* VLAN id set on ISM device */ |
|---|
| 24 | 28 | struct list_head list; |
|---|
| .. | .. |
|---|
| 45 | 49 | int smc_ism_unregister_dmb(struct smcd_dev *dev, struct smc_buf_desc *dmb_desc); |
|---|
| 46 | 50 | int smc_ism_write(struct smcd_dev *dev, const struct smc_ism_position *pos, |
|---|
| 47 | 51 | void *data, size_t len); |
|---|
| 52 | +int smc_ism_signal_shutdown(struct smc_link_group *lgr); |
|---|
| 53 | +void smc_ism_get_system_eid(struct smcd_dev *dev, u8 **eid); |
|---|
| 54 | +u16 smc_ism_get_chid(struct smcd_dev *dev); |
|---|
| 55 | +void smc_ism_init(void); |
|---|
| 48 | 56 | #endif |
|---|