lkml.org 
[lkml]   [2000]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: List of drivers that dereference ioremap return
From
Date
>>>>> "Abramo" == Abramo Bagnara <abramo@alsa-project.org> writes:

Abramo> This is the list I deduce from 2.4.0-test6 with the code lines
Abramo> that show this.

Abramo> I think this stuff need to be reported in 2.4 and in 2.2 TODOs
Abramo> (for the relevant part).

Abramo> ./drivers/video/retz3fb.c:1400: zinfo->base =
Abramo> ioremap(board_addr, board_size);
Abramo> ./drivers/video/retz3fb.c:958: volatile unsigned char *acm =
Abramo> zinfo->base + ACM_OFFSET; ./drivers/video/retz3fb.c:963:
Abramo> blt_status = *((acm) + (ACM_START_STATUS + 2));

Abramo> ./drivers/video/virgefb.c:1160: CyberVGARegs = (unsigned
Abramo> long)ioremap(board_addr+0x0c000000, 0x00010000);
Abramo> ./drivers/video/virgefb.c:57: (*((unsigned char
Abramo> *)(CyberVGARegs + (reg ^ 3))) = dat); \

These two are safe, they are both drivers for Amiga video cards,
ie. the ioremap is not a PCI remap but a Zorro III one where it is
valid to dereference what comes back.

Jes

-
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:58    [W:0.041 / U:0.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site