]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/stmmac/common.h
stmmac: consolidate and tidy-up the COE support
[net-next-2.6.git] / drivers / net / stmmac / common.h
index e8cbcb5c206eaea4ca7945d1def5d96b7acbce3d..673ef86a063f52f1a68cb2b419e4976a5655b861 100644 (file)
@@ -102,8 +102,6 @@ struct stmmac_extra_stats {
 
 #define SF_DMA_MODE 1 /* DMA STORE-AND-FORWARD Operation Mode */
 
-#define HW_CSUM 1
-#define NO_HW_CSUM 0
 enum rx_frame_status { /* IPC status */
        good_frame = 0,
        discard_frame = 1,
@@ -205,6 +203,8 @@ struct stmmac_dma_ops {
 struct stmmac_ops {
        /* MAC core initialization */
        void (*core_init) (void __iomem *ioaddr) ____cacheline_aligned;
+       /* Support checksum offload engine */
+       int  (*rx_coe) (void __iomem *ioaddr);
        /* Dump MAC registers */
        void (*dump_regs) (void __iomem *ioaddr);
        /* Handle extra events on specific interrupts hw dependent */