powerpc/powernv/vas: Define vas_rx_win_open() interface
[linux-2.6-block.git] / arch / powerpc / platforms / powernv / vas.h
index 60a3c3c1615bfc29601f5b6c19ca42657c8d5351..d3e4f554a11c51742b482441ebf68d902bbcd100 100644 (file)
@@ -289,6 +289,9 @@ enum vas_notify_after_count {
 /*
  * One per instance of VAS. Each instance will have a separate set of
  * receive windows, one per coprocessor type.
+ *
+ * See also function header of set_vinst_win() for details on ->windows[]
+ * and ->rxwin[] tables.
  */
 struct vas_instance {
        int vas_id;
@@ -393,6 +396,16 @@ extern struct vas_instance *find_vas_instance(int vasid);
 #define VREG(r)                VREG_SFX(r, _OFFSET)
 
 #ifdef vas_debug
+static inline void dump_rx_win_attr(struct vas_rx_win_attr *attr)
+{
+       pr_err("VAS: fault %d, notify %d, intr %d early %d\n",
+                       attr->fault_win, attr->notify_disable,
+                       attr->intr_disable, attr->notify_early);
+
+       pr_err("VAS: rx_fifo_size %d, max value %d\n",
+                               attr->rx_fifo_size, VAS_RX_FIFO_SIZE_MAX);
+}
+
 static inline void vas_log_write(struct vas_window *win, char *name,
                        void *regptr, u64 val)
 {
@@ -405,6 +418,7 @@ static inline void vas_log_write(struct vas_window *win, char *name,
 #else  /* vas_debug */
 
 #define vas_log_write(win, name, reg, val)
+#define dump_rx_win_attr(attr)
 
 #endif /* vas_debug */