summaryrefslogtreecommitdiffstats
path: root/sys/dev/hfa/fore_var.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/hfa/fore_var.h')
-rw-r--r--sys/dev/hfa/fore_var.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/dev/hfa/fore_var.h b/sys/dev/hfa/fore_var.h
index ba26928..f44d1c3 100644
--- a/sys/dev/hfa/fore_var.h
+++ b/sys/dev/hfa/fore_var.h
@@ -47,6 +47,7 @@
struct fore_vcc {
struct cmn_vcc fv_cmn; /* Common VCC stuff */
Fore_aal fv_aal; /* CP version of AAL */
+ uint32_t rate; /* Rate control (data/idle cell ratio) */
};
typedef struct fore_vcc Fore_vcc;
@@ -227,6 +228,10 @@ struct fore_unit {
Fore_prom *fu_promd; /* Device PROM buffer (DMA) */
struct callout_handle fu_thandle; /* Timer handle */
int fu_ft4; /* Running ForeThought 4 firmware */
+
+ /* shaping enable */
+ u_int fu_shape;
+ u_int fu_num_shaped; /* number of shaped VCCs */
};
typedef struct fore_unit Fore_unit;
@@ -253,6 +258,12 @@ typedef struct fore_unit Fore_unit;
*/
#define FUF_STATCMD 0x80 /* Statistics request in progress */
+/*
+ * Shaping values
+ */
+#define FUS_NO_SHAPING 0
+#define FUS_SHAPE_ONE 1
+#define FUS_SHAPE_ALL 2
/*
* Macros to access CP memory
OpenPOWER on IntegriCloud