aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/stmmac_main.c')
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/stmmac_main.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index a9856a8bf8ad..9f983dd069d5 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -57,36 +57,36 @@
57/* Module parameters */ 57/* Module parameters */
58#define TX_TIMEO 5000 58#define TX_TIMEO 5000
59static int watchdog = TX_TIMEO; 59static int watchdog = TX_TIMEO;
60module_param(watchdog, int, S_IRUGO | S_IWUSR); 60module_param(watchdog, int, 0644);
61MODULE_PARM_DESC(watchdog, "Transmit timeout in milliseconds (default 5s)"); 61MODULE_PARM_DESC(watchdog, "Transmit timeout in milliseconds (default 5s)");
62 62
63static int debug = -1; 63static int debug = -1;
64module_param(debug, int, S_IRUGO | S_IWUSR); 64module_param(debug, int, 0644);
65MODULE_PARM_DESC(debug, "Message Level (-1: default, 0: no output, 16: all)"); 65MODULE_PARM_DESC(debug, "Message Level (-1: default, 0: no output, 16: all)");
66 66
67static int phyaddr = -1; 67static int phyaddr = -1;
68module_param(phyaddr, int, S_IRUGO); 68module_param(phyaddr, int, 0444);
69MODULE_PARM_DESC(phyaddr, "Physical device address"); 69MODULE_PARM_DESC(phyaddr, "Physical device address");
70 70
71#define STMMAC_TX_THRESH (DMA_TX_SIZE / 4) 71#define STMMAC_TX_THRESH (DMA_TX_SIZE / 4)
72#define STMMAC_RX_THRESH (DMA_RX_SIZE / 4) 72#define STMMAC_RX_THRESH (DMA_RX_SIZE / 4)
73 73
74static int flow_ctrl = FLOW_OFF; 74static int flow_ctrl = FLOW_OFF;
75module_param(flow_ctrl, int, S_IRUGO | S_IWUSR); 75module_param(flow_ctrl, int, 0644);
76MODULE_PARM_DESC(flow_ctrl, "Flow control ability [on/off]"); 76MODULE_PARM_DESC(flow_ctrl, "Flow control ability [on/off]");
77 77
78static int pause = PAUSE_TIME; 78static int pause = PAUSE_TIME;
79module_param(pause, int, S_IRUGO | S_IWUSR); 79module_param(pause, int, 0644);
80MODULE_PARM_DESC(pause, "Flow Control Pause Time"); 80MODULE_PARM_DESC(pause, "Flow Control Pause Time");
81 81
82#define TC_DEFAULT 64 82#define TC_DEFAULT 64
83static int tc = TC_DEFAULT; 83static int tc = TC_DEFAULT;
84module_param(tc, int, S_IRUGO | S_IWUSR); 84module_param(tc, int, 0644);
85MODULE_PARM_DESC(tc, "DMA threshold control value"); 85MODULE_PARM_DESC(tc, "DMA threshold control value");
86 86
87#define DEFAULT_BUFSIZE 1536 87#define DEFAULT_BUFSIZE 1536
88static int buf_sz = DEFAULT_BUFSIZE; 88static int buf_sz = DEFAULT_BUFSIZE;
89module_param(buf_sz, int, S_IRUGO | S_IWUSR); 89module_param(buf_sz, int, 0644);
90MODULE_PARM_DESC(buf_sz, "DMA buffer size"); 90MODULE_PARM_DESC(buf_sz, "DMA buffer size");
91 91
92#define STMMAC_RX_COPYBREAK 256 92#define STMMAC_RX_COPYBREAK 256
@@ -97,7 +97,7 @@ static const u32 default_msg_level = (NETIF_MSG_DRV | NETIF_MSG_PROBE |
97 97
98#define STMMAC_DEFAULT_LPI_TIMER 1000 98#define STMMAC_DEFAULT_LPI_TIMER 1000
99static int eee_timer = STMMAC_DEFAULT_LPI_TIMER; 99static int eee_timer = STMMAC_DEFAULT_LPI_TIMER;
100module_param(eee_timer, int, S_IRUGO | S_IWUSR); 100module_param(eee_timer, int, 0644);
101MODULE_PARM_DESC(eee_timer, "LPI tx expiration time in msec"); 101MODULE_PARM_DESC(eee_timer, "LPI tx expiration time in msec");
102#define STMMAC_LPI_T(x) (jiffies + msecs_to_jiffies(x)) 102#define STMMAC_LPI_T(x) (jiffies + msecs_to_jiffies(x))
103 103
@@ -105,7 +105,7 @@ MODULE_PARM_DESC(eee_timer, "LPI tx expiration time in msec");
105 * but allow user to force to use the chain instead of the ring 105 * but allow user to force to use the chain instead of the ring
106 */ 106 */
107static unsigned int chain_mode; 107static unsigned int chain_mode;
108module_param(chain_mode, int, S_IRUGO); 108module_param(chain_mode, int, 0444);
109MODULE_PARM_DESC(chain_mode, "To use chain instead of ring mode"); 109MODULE_PARM_DESC(chain_mode, "To use chain instead of ring mode");
110 110
111static irqreturn_t stmmac_interrupt(int irq, void *dev_id); 111static irqreturn_t stmmac_interrupt(int irq, void *dev_id);
@@ -4001,7 +4001,7 @@ static int stmmac_init_fs(struct net_device *dev)
4001 4001
4002 /* Entry to report DMA RX/TX rings */ 4002 /* Entry to report DMA RX/TX rings */
4003 priv->dbgfs_rings_status = 4003 priv->dbgfs_rings_status =
4004 debugfs_create_file("descriptors_status", S_IRUGO, 4004 debugfs_create_file("descriptors_status", 0444,
4005 priv->dbgfs_dir, dev, 4005 priv->dbgfs_dir, dev,
4006 &stmmac_rings_status_fops); 4006 &stmmac_rings_status_fops);
4007 4007
@@ -4013,9 +4013,9 @@ static int stmmac_init_fs(struct net_device *dev)
4013 } 4013 }
4014 4014
4015 /* Entry to report the DMA HW features */ 4015 /* Entry to report the DMA HW features */
4016 priv->dbgfs_dma_cap = debugfs_create_file("dma_cap", S_IRUGO, 4016 priv->dbgfs_dma_cap = debugfs_create_file("dma_cap", 0444,
4017 priv->dbgfs_dir, 4017 priv->dbgfs_dir,
4018 dev, &stmmac_dma_cap_fops); 4018 dev, &stmmac_dma_cap_fops);
4019 4019
4020 if (!priv->dbgfs_dma_cap || IS_ERR(priv->dbgfs_dma_cap)) { 4020 if (!priv->dbgfs_dma_cap || IS_ERR(priv->dbgfs_dma_cap)) {
4021 netdev_err(priv->dev, "ERROR creating stmmac MMC debugfs file\n"); 4021 netdev_err(priv->dev, "ERROR creating stmmac MMC debugfs file\n");