lkml.org 
[lkml]   [1999]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectrequest_region for MMIO?

Is it OK to use request_region() for claiming memory mapped I/O registers?

The specific cases I have in mind are frame buffer and MMIO regions used by
frame buffer devices. Furthermore this would allow us to get rid of the ugly
zorro_{config,unconfig}_board() calls in the drivers for Zorro bus devices.

Is there any good reason why

| typedef struct resource_entry_t {
| u_long from, num;
^^^^^^
| const char *name;
| struct resource_entry_t *next;
| } resource_entry_t;

while get_ioport_list() uses `%04lx' to print the claimed regions? This makes
me think I should use request_region() for `PC' I/O port regions only.

If we can use request_region() for claiming MMIO, the format specifiers have to
become `%p', so the full 32 (or 64) bit addresses are dumped.

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/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.050 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site