Commit 831fb338 authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by David S. Miller

ftgmac100: Reorder struct fields and comment

Reorder the fields in struct ftgmac in slightly more logical
groups. Will make more sense as I add/remove some.

No code change.
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3f6af0ee
...@@ -52,34 +52,39 @@ struct ftgmac100_descs { ...@@ -52,34 +52,39 @@ struct ftgmac100_descs {
}; };
struct ftgmac100 { struct ftgmac100 {
/* Registers */
struct resource *res; struct resource *res;
void __iomem *base; void __iomem *base;
struct ftgmac100_descs *descs; struct ftgmac100_descs *descs;
dma_addr_t descs_dma_addr; dma_addr_t descs_dma_addr;
/* Rx ring */
struct page *rx_pages[RX_QUEUE_ENTRIES]; struct page *rx_pages[RX_QUEUE_ENTRIES];
unsigned int rx_pointer; unsigned int rx_pointer;
u32 rxdes0_edorr_mask;
/* Tx ring */
unsigned int tx_clean_pointer; unsigned int tx_clean_pointer;
unsigned int tx_pointer; unsigned int tx_pointer;
unsigned int tx_pending; unsigned int tx_pending;
u32 txdes0_edotr_mask;
spinlock_t tx_lock; spinlock_t tx_lock;
/* Component structures */
struct net_device *netdev; struct net_device *netdev;
struct device *dev; struct device *dev;
struct ncsi_dev *ndev; struct ncsi_dev *ndev;
struct napi_struct napi; struct napi_struct napi;
struct mii_bus *mii_bus; struct mii_bus *mii_bus;
/* Link management */
int old_speed; int old_speed;
int int_mask_all;
bool use_ncsi; bool use_ncsi;
bool enabled;
u32 rxdes0_edorr_mask; /* Misc */
u32 txdes0_edotr_mask; int int_mask_all;
bool enabled;
}; };
static int ftgmac100_alloc_rx_page(struct ftgmac100 *priv, static int ftgmac100_alloc_rx_page(struct ftgmac100 *priv,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment