lkml.org 
[lkml]   [2001]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: device driver questions
Date
From
> My device shows up in /proc/iomem even before I load my device driver,
> indicating that the pci subsystem mapped it into the kernel pages. But bar0

Actually the addresses you see there are physical bus addresses not neccessarily
and on x86 quite likely not actually mapped.

> Why didn't the pci subsystem configure the device to appear on a page
> boundary?

The device didnt ask to be on a page boundary

> the user program? I know I could create an ioctl call, but I would think
> there must be some other method already in place, since this would affect
> all pci devices.

If you want to mmap the device then you really want to put the device in its
own 4K aligned 4K sized PCI window, otherwise adjacent devices will become
accessible too and that might not be desirable.

Or you could avoid providing mmap.

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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