Messages in this thread | | | Date | Mon, 1 Feb 1999 14:12:20 +0100 (CET) | From | Geert Uytterhoeven <> | Subject | Re: [linux-fbdev] Re: request_region for MMIO? |
| |
On 1 Feb 1999, Jes Sorensen wrote: > >>>>> "Geert" == Geert Uytterhoeven <Geert.Uytterhoeven@cs.kuleuven.ac.be> writes: > Geert> Is it OK to use request_region() for claiming memory mapped I/O > Geert> registers? > > Certainly not. > > Geert> Is there any good reason why > > Geert> | typedef struct resource_entry_t { | u_long from, num; ^^^^^^ > Geert> | const char *name; | struct resource_entry_t *next; | } > Geert> resource_entry_t; > > Geert> while get_ioport_list() uses `%04lx' to print the claimed > Geert> regions? This makes me think I should use request_region() for > Geert> `PC' I/O port regions only. > > Correct
Then what should I use?
BTW, on m68k we never used request_region() and friends, so we are wasting memory for that 128-entry table in kernel/resource.c ;-(
Greetings,
Geert
-- Geert Uytterhoeven Geert.Uytterhoeven@cs.kuleuven.ac.be Wavelets, Linux/{m68k~Amiga,PPC~CHRP} http://www.cs.kuleuven.ac.be/~geert/ Department of Computer Science -- Katholieke Universiteit Leuven -- Belgium
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |