summaryrefslogtreecommitdiffstats
path: root/drivers/net/ac3200.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-04-29 21:13:14 +0000
committer <ralf@linux-mips.org>1997-04-29 21:13:14 +0000
commit19c9bba94152148523ba0f7ef7cffe3d45656b11 (patch)
tree40b1cb534496a7f1ca0f5c314a523c69f1fee464 /drivers/net/ac3200.c
parent7206675c40394c78a90e74812bbdbf8cf3cca1be (diff)
Import of Linux/MIPS 2.1.36
Diffstat (limited to 'drivers/net/ac3200.c')
-rw-r--r--drivers/net/ac3200.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/net/ac3200.c b/drivers/net/ac3200.c
index 0337bab78..63af6498b 100644
--- a/drivers/net/ac3200.c
+++ b/drivers/net/ac3200.c
@@ -25,6 +25,7 @@ static const char *version =
#include <linux/string.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
+#include <linux/init.h>
#include <asm/system.h>
#include <asm/io.h>
@@ -54,7 +55,7 @@ static const char *version =
*/
/* Decoding of the configuration register. */
-static unsigned char config2irqmap[8] = {15, 12, 11, 10, 9, 7, 5, 3};
+static unsigned char config2irqmap[8] __initdata = {15, 12, 11, 10, 9, 7, 5, 3};
static int addrmap[8] =
{0xFF0000, 0xFE0000, 0xFD0000, 0xFFF0000, 0xFFE0000, 0xFFC0000, 0xD0000, 0 };
static const char *port_name[4] = { "10baseT", "invalid", "AUI", "10base2"};
@@ -88,7 +89,7 @@ static int ac_close_card(struct device *dev);
or the unique value in the station address PROM.
*/
-int ac3200_probe(struct device *dev)
+__initfunc(int ac3200_probe(struct device *dev))
{
unsigned short ioaddr = dev->base_addr;
@@ -111,7 +112,7 @@ int ac3200_probe(struct device *dev)
return ENODEV;
}
-static int ac_probe1(int ioaddr, struct device *dev)
+__initfunc(static int ac_probe1(int ioaddr, struct device *dev))
{
int i;
@@ -137,7 +138,7 @@ static int ac_probe1(int ioaddr, struct device *dev)
for (i = 0; i < 4; i++)
if (inl(ioaddr + AC_ID_PORT) != AC_EISA_ID) {
printk("EISA ID mismatch, %8x vs %8x.\n",
- inl(ioaddr + AC_ID_PORT), AC_EISA_ID);
+ inl(ioaddr + AC_ID_PORT), AC_EISA_ID);
return ENODEV;
}
@@ -329,6 +330,9 @@ static struct device dev_ac32[MAX_AC32_CARDS] = {
static int io[MAX_AC32_CARDS] = { 0, };
static int irq[MAX_AC32_CARDS] = { 0, };
static int mem[MAX_AC32_CARDS] = { 0, };
+MODULE_PARM(io, "1-" __MODULE_STRING(MAX_AC32_CARDS) "i");
+MODULE_PARM(irq, "1-" __MODULE_STRING(MAX_AC32_CARDS) "i");
+MODULE_PARM(mem, "1-" __MODULE_STRING(MAX_AC32_CARDS) "i");
int
init_module(void)