Hi Michael, On Tue, Aug 12, 2014 at 11:40 PM, Michael Schmitz <schmitzmic@xxxxxxxxx> wrote:
Would you be OK if I expanded the comment like this? /* ne.c is used on m68k Atari and Q40 computers - the Atari ROM-port adapter is 8-bit, Q40 uses ISA */
DaveM already applied it to his tree, and sent a pull request to Linus.
This would limit the runtime test to the case where it is actually needed (untested): #elif defined(CONFIG_ATARI) && defined(CONFIG_Q40) /* multiplatform m68k kernel - the Atari ROM-port adapter is 8-bit, Q40 uses ISA */ # define DCR_VAL (MACH_IS_ATARI ? 0x48 : 0x49) #elif defined(CONFIG_ATARI) /* no Q40 support - 8-bit mode on Atari ROM port */ # define DCR_VAL 0x48 #else # define DCR_VAL 0x49 #endif
MACH_IS_ATARI already evaluates to a constant on single-platform kernels, so this is optimized at compile time. Hence there's not really a need for this.
Are there any other m68k platforms that use the ne.c driver, Geert? apne, hydra and zorro8390 all have their own separate drivers - any others?
Not that I'm aware of. Only Q40 has CONFIG_NE2000 in defconfig. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- To unsubscribe from this list: send the line "unsubscribe linux-m68k" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html