Re: Sparc64 and ATI fb, cannot mmap() - why?

From: Richard Henderson (rth@twiddle.net)
Date: Wed Jun 21 2000 - 18:48:15 EST


On Tue, Jun 20, 2000 at 07:28:00AM -0700, David S. Miller wrote:
> It would almost make more sense to have bus based mmap routines, and
> this can handle also all the issues of 32-bit X server on 64-bit
> kernel (more common than you think) et al. Let's use PCI as an
> example, you could say something like:
>
> struct pci_dev_specifier {
> int bus, dev, fn;
> } pdev;
>
> fd = open("/dev/pci");
> if (fd < 0) {
> perror("open");
> exit(1);
> }
> bus = whatever;
> dev = whatever;
> fn = whatever;
> err = ioctl(fd, PCI_DEV_SPECIFY, &pdev);

Have you looked at the pciconfig_iobase syscall I added for Alpha?
That plus /dev/mem gets what you're proposing here.

r~

-
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/



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:23 EST