/* * linux/arch/sh/edosk7760/setup.c * * Copyright (C) 2000 Kazumoto Kojima * * * Modified for EDOSK7760 by * Richard Bister * * Port to 2.6 by * Luca Santini www.spesonline.com */ #include #include #include #include #include #include #include #include #include /* eth initialization functions */ static struct resource smc91x_res[] = { [0] = { .start = SMC_IOADDR, .end = SMC_IOADDR + 0xf, //0xff, .flags = IORESOURCE_MEM, }, [1] = { .start = IRQ_ETHERNET, .end = IRQ_ETHERNET, .flags = IORESOURCE_IRQ, } }; static struct platform_device smc91x_dev = { .name = "smc91x", .id = -1, .num_resources = ARRAY_SIZE(smc91x_res), .resource = smc91x_res, }; static struct platform_device *edosk7760_devices[] __initdata = { &smc91x_dev, }; static int __init init_edosk7760_devices(void){ int ret = -1; /* Setup smc91c96 Ethernet card: */ ret = platform_add_devices(edosk7760_devices, ARRAY_SIZE(edosk7760_devices)); SpesPrint("SPES init_edosk7760 - platform_add_devices \n "); //ret[%d] \n",ret); return 0; } __initcall(init_edosk7760_devices); /* * The Machine Vector */ /// have a look to include/asm-sh/machvec.h struct sh_machine_vector mv_edosk7760 __initmv = { mv_name: "EDOSK7760", mv_nr_irqs: 128, };