diff options
Diffstat (limited to 'drivers/infiniband/hw/qib/qib.h')
-rw-r--r-- | drivers/infiniband/hw/qib/qib.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/drivers/infiniband/hw/qib/qib.h b/drivers/infiniband/hw/qib/qib.h index c00ae093b6f8..ffd48bfc4923 100644 --- a/drivers/infiniband/hw/qib/qib.h +++ b/drivers/infiniband/hw/qib/qib.h | |||
@@ -1082,12 +1082,6 @@ struct qib_devdata { | |||
1082 | /* control high-level access to EEPROM */ | 1082 | /* control high-level access to EEPROM */ |
1083 | struct mutex eep_lock; | 1083 | struct mutex eep_lock; |
1084 | uint64_t traffic_wds; | 1084 | uint64_t traffic_wds; |
1085 | /* active time is kept in seconds, but logged in hours */ | ||
1086 | atomic_t active_time; | ||
1087 | /* Below are nominal shadow of EEPROM, new since last EEPROM update */ | ||
1088 | uint8_t eep_st_errs[QIB_EEP_LOG_CNT]; | ||
1089 | uint8_t eep_st_new_errs[QIB_EEP_LOG_CNT]; | ||
1090 | uint16_t eep_hrs; | ||
1091 | /* | 1085 | /* |
1092 | * masks for which bits of errs, hwerrs that cause | 1086 | * masks for which bits of errs, hwerrs that cause |
1093 | * each of the counters to increment. | 1087 | * each of the counters to increment. |
@@ -1309,8 +1303,7 @@ int qib_twsi_blk_rd(struct qib_devdata *dd, int dev, int addr, void *buffer, | |||
1309 | int qib_twsi_blk_wr(struct qib_devdata *dd, int dev, int addr, | 1303 | int qib_twsi_blk_wr(struct qib_devdata *dd, int dev, int addr, |
1310 | const void *buffer, int len); | 1304 | const void *buffer, int len); |
1311 | void qib_get_eeprom_info(struct qib_devdata *); | 1305 | void qib_get_eeprom_info(struct qib_devdata *); |
1312 | int qib_update_eeprom_log(struct qib_devdata *dd); | 1306 | #define qib_inc_eeprom_err(dd, eidx, incr) |
1313 | void qib_inc_eeprom_err(struct qib_devdata *dd, u32 eidx, u32 incr); | ||
1314 | void qib_dump_lookup_output_queue(struct qib_devdata *); | 1307 | void qib_dump_lookup_output_queue(struct qib_devdata *); |
1315 | void qib_force_pio_avail_update(struct qib_devdata *); | 1308 | void qib_force_pio_avail_update(struct qib_devdata *); |
1316 | void qib_clear_symerror_on_linkup(unsigned long opaque); | 1309 | void qib_clear_symerror_on_linkup(unsigned long opaque); |
@@ -1467,11 +1460,14 @@ const char *qib_get_unit_name(int unit); | |||
1467 | * Flush write combining store buffers (if present) and perform a write | 1460 | * Flush write combining store buffers (if present) and perform a write |
1468 | * barrier. | 1461 | * barrier. |
1469 | */ | 1462 | */ |
1463 | static inline void qib_flush_wc(void) | ||
1464 | { | ||
1470 | #if defined(CONFIG_X86_64) | 1465 | #if defined(CONFIG_X86_64) |
1471 | #define qib_flush_wc() asm volatile("sfence" : : : "memory") | 1466 | asm volatile("sfence" : : : "memory"); |
1472 | #else | 1467 | #else |
1473 | #define qib_flush_wc() wmb() /* no reorder around wc flush */ | 1468 | wmb(); /* no reorder around wc flush */ |
1474 | #endif | 1469 | #endif |
1470 | } | ||
1475 | 1471 | ||
1476 | /* global module parameter variables */ | 1472 | /* global module parameter variables */ |
1477 | extern unsigned qib_ibmtu; | 1473 | extern unsigned qib_ibmtu; |