[Top] [All Lists]

Re: new asm-mips/io.h

To: Ralf Baechle <>
Subject: Re: new asm-mips/io.h
From: Jun Sun <>
Date: Tue, 27 Nov 2001 09:44:51 -0800
Cc: Atsushi Nemoto <>,
References: <> <> <> <>
Ralf Baechle wrote:
> On Tue, Nov 27, 2001 at 01:04:06PM +0900, Atsushi Nemoto wrote:
 Not a bad idea in context of fish and chips.
> Well, talk to it's developers before it's too late.  Or as it has already
> happened for some hardware I think we should simply go with your
> suggestion and make all those functions vectors.

I don't know about the details of function vectors, but would imagine it would
be 1) slow, 2)clumsy with extra layer of abstraction and 3) intrusive to the
most common cases which is the current io file.

My suggestion is to have a separate io file for the board, and then add the
following to the beginning of io.h:

/* for tasteless boards */
#define _ASM_IO_H               /* so that we don't include the rest */
#include <asm/toshiba/tasteless_io.h>

This way not only we have minimum impact to the majority, but also easier to
remove such ad hoc support when toshiba becomes more tasteful.


<Prev in Thread] Current Thread [Next in Thread>