]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/chelsio/gmac.h
ide-cd: add TEAC CD-224E to the NO_AUTOCLOSE list
[linux-2.6-omap-h63xx.git] / drivers / net / chelsio / gmac.h
index 746b0eeea96478cacfbb4586def8a944026f931d..d42337457cf74bdc62e625a9688d1cb2728cd929 100644 (file)
 
 #include "common.h"
 
-enum { MAC_STATS_UPDATE_FAST, MAC_STATS_UPDATE_FULL };
-enum { MAC_DIRECTION_RX = 1, MAC_DIRECTION_TX = 2 };
+enum {
+       MAC_STATS_UPDATE_FAST,
+       MAC_STATS_UPDATE_FULL
+};
+
+enum {
+       MAC_DIRECTION_RX = 1,
+       MAC_DIRECTION_TX = 2
+};
 
 struct cmac_statistics {
        /* Transmit */
@@ -62,6 +69,8 @@ struct cmac_statistics {
        u64 TxInternalMACXmitError;
        u64 TxFramesWithExcessiveDeferral;
        u64 TxFCSErrors;
+       u64 TxJumboFramesOK;
+       u64 TxJumboOctetsOK;
 
        /* Receive */
        u64 RxOctetsOK;
@@ -81,6 +90,8 @@ struct cmac_statistics {
        u64 RxInRangeLengthErrors;
        u64 RxOutOfRangeLengthField;
        u64 RxFrameTooLongErrors;
+       u64 RxJumboFramesOK;
+       u64 RxJumboOctetsOK;
 };
 
 struct cmac_ops {
@@ -115,7 +126,7 @@ typedef struct _cmac_instance cmac_instance;
 struct cmac {
        struct cmac_statistics stats;
        adapter_t *adapter;
-       struct cmac_ops *ops;
+       const struct cmac_ops *ops;
        cmac_instance *instance;
 };
 
@@ -125,10 +136,7 @@ struct gmac {
        int (*reset)(adapter_t *);
 };
 
-extern struct gmac t1_pm3393_ops;
-extern struct gmac t1_chelsio_mac_ops;
-extern struct gmac t1_vsc7321_ops;
-extern struct gmac t1_ixf1010_ops;
-extern struct gmac t1_dummy_mac_ops;
+extern const struct gmac t1_pm3393_ops;
+extern const struct gmac t1_vsc7326_ops;
 
 #endif /* _CXGB_GMAC_H_ */