void __init prom_init(int argc, char **argv, char **envp, int *prom_vec) { setup_prom_vectors(); if (current_cpu_data.cputype == CPU_R5000) { mips_machtype = MACH_LASAT_200; lasat_ndelay_divider = 8; } else { mips_machtype = MACH_LASAT_100; lasat_ndelay_divider = 20; } at93c = &at93c_defs[mips_machtype]; lasat_init_board_info(); /* Read info from EEPROM */ mips_machgroup = MACH_GROUP_LASAT; /* Get the command line */ if (argc>0) { strncpy(arcs_cmdline, argv[0], CL_SIZE-1); arcs_cmdline[CL_SIZE-1] = '\0'; } /* Set the I/O base address */ set_io_port_base(KSEG1); /* Set memory regions */ ioport_resource.start = 0; /* Should be KSEGx ??? */ ioport_resource.end = 0xffffffff; /* Should be ??? */ add_memory_region(0, lasat_board_info.li_memsize, BOOT_MEM_RAM); }
void __init prom_init(void) { int argc = fw_arg0; char **argv = (char **) fw_arg1; setup_prom_vectors(); if (IS_LASAT_200()) { printk(KERN_INFO "LASAT 200 board\n"); lasat_ndelay_divider = LASAT_200_DIVIDER; at93c = &at93c_defs[1]; } else { printk(KERN_INFO "LASAT 100 board\n"); lasat_ndelay_divider = LASAT_100_DIVIDER; at93c = &at93c_defs[0]; } lasat_init_board_info(); /* */ /* */ if (argc > 0) { strncpy(arcs_cmdline, argv[0], COMMAND_LINE_SIZE-1); arcs_cmdline[COMMAND_LINE_SIZE-1] = '\0'; } /* */ set_io_port_base(KSEG1); /* */ ioport_resource.start = 0; ioport_resource.end = 0xffffffff; /* */ add_memory_region(0, lasat_board_info.li_memsize, BOOT_MEM_RAM); }
void __init prom_init(void) { int argc = fw_arg0; char **argv = (char **) fw_arg1; setup_prom_vectors(); if (current_cpu_data.cputype == CPU_R5000) { printk(KERN_INFO "LASAT 200 board\n"); mips_machtype = MACH_LASAT_200; lasat_ndelay_divider = LASAT_200_DIVIDER; } else { printk(KERN_INFO "LASAT 100 board\n"); mips_machtype = MACH_LASAT_100; lasat_ndelay_divider = LASAT_100_DIVIDER; } at93c = &at93c_defs[mips_machtype]; lasat_init_board_info(); /* Read info from EEPROM */ /* Get the command line */ if (argc > 0) { strncpy(arcs_cmdline, argv[0], CL_SIZE-1); arcs_cmdline[CL_SIZE-1] = '\0'; } /* Set the I/O base address */ set_io_port_base(KSEG1); /* Set memory regions */ ioport_resource.start = 0; ioport_resource.end = 0xffffffff; /* Wrong, fixme. */ add_memory_region(0, lasat_board_info.li_memsize, BOOT_MEM_RAM); }