[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian non-x86 kernel arches



On Sun, May 23, 2004 at 11:52:07PM +0200, Christoph Hellwig wrote:
> On Sun, May 23, 2004 at 11:33:15PM +0200, Jens Schmalzing wrote:
> > Someone had to write that patch in the first place.  That's what all
> > this is about, and when I asked on debian-powerpc nobody cared to
> > answer, so I kludged around it as well as I could.  Thanks to
> > Christoph, who dug up an ugly but working patch, the g5 flavour is now
> > history.  Meaning, I finished building, testing, and uploading new
> > kernel-image packages less than an hour ago.
> 
> There's a few more patches of that style in SuSE's tree.  I've attached
> them, but if you don't actually need them I'd say hide them in your
> closet for the time beeing :)

Is there any ppc machine we still need floppy support on? Can floppy be
made a module only?

Serial is a bigger mess.. So what can we do that mainline would accept?

Would something like the following work?

	if(no_isa_blind_probe()) {
		printk("%s: Machine is not safe for blind ISA probe\n,'
			__FUNCTION__);
		return -ENODEV;
	}


where PPC would have:

	static inline no_isa_blind_probe() {
		if (_machine == _MACH_Pmac)
			return 1;
		else
			return 0;
	}

And x86 could have:

	static inline no_isa_blind_probe() { return 0;}
	

>  
>  MODULE_AUTHOR("Vojtech Pavlik <vojtech@ucw.cz>");
>  MODULE_DESCRIPTION("PC Speaker beeper driver");
> @@ -67,6 +70,12 @@ static int pcspkr_event(struct input_dev
>  
>  static int __init pcspkr_init(void)
>  {
> +#ifdef CONFIG_PPC_PMAC
> +	if(_machine == _MACH_Pmac) {
> +		printk("%s: nothing to do on PowerMac\n",__FUNCTION__);
> +		return -ENODEV;
> +	}
> +#endif
>  	pcspkr_dev.evbit[0] = BIT(EV_SND);
>  	pcspkr_dev.sndbit[0] = BIT(SND_BELL) | BIT(SND_TONE);
>  	pcspkr_dev.event = pcspkr_event;


-- 
--------------------------------------------------------------------------
Troy Benjegerdes                'da hozer'                hozer@hozed.org  

Somone asked my why I work on this free (http://www.fsf.org/philosophy/)
software stuff and not get a real job. Charles Shultz had the best answer:

"Why do musicians compose symphonies and poets write poems? They do it
because life wouldn't have any meaning for them if they didn't. That's why
I draw cartoons. It's my life." -- Charles Shultz



Reply to: