GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / mips / mti-sead3 / sead3-net.c
blob1a5018da12b1559b4ca87ce3e3ad3c83221b8a44
1 /*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
6 * Copyright (C) 2007-2011 MIPS Technologies, Inc.
7 * written by Ralf Baechle (ralf@linux-mips.org)
9 * Probe driver for the SEAD3 network device
12 #include <linux/module.h>
13 #include <linux/init.h>
14 #include <linux/platform_device.h>
15 #include <linux/smsc911x.h>
16 #include <irq.h>
18 static struct smsc911x_platform_config net_data = {
19 .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
20 .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL,
21 .flags = SMSC911X_USE_32BIT | SMSC911X_SAVE_MAC_ADDRESS,
22 .phy_interface = PHY_INTERFACE_MODE_MII,
25 struct resource net_resources[] = {
27 .start = 0x1f010000,
28 .end = 0x1f01ffff,
29 .flags = IORESOURCE_MEM
32 .start = MIPS_CPU_IRQ_BASE + 6,
33 .flags = IORESOURCE_IRQ
37 static struct platform_device net_device = {
38 .name = "smsc911x",
39 .id = 0,
40 .dev = {
41 .platform_data = &net_data,
43 .num_resources = ARRAY_SIZE(net_resources),
44 .resource = net_resources
47 static int __init net_init(void)
49 return platform_device_register(&net_device);
52 module_init(net_init);
54 MODULE_AUTHOR("Chris Dearman <chris@mips.com>");
55 MODULE_LICENSE("GPL");
56 MODULE_DESCRIPTION("Network probe driver for SEAD3");