Re: The IO problem on multiple PCI busses

From: Oliver Xymoron (oxymoron@waste.org)
Date: Tue Mar 06 2001 - 18:01:52 EST


On Fri, 2 Mar 2001, David S. Miller wrote:

> > On PPC, we don't have an "IO" space neither, all we have is a range of
> > memory addresses that will cause IO cycles to happen on the PCI bus.
>
> This is precisely what the "next MMAP is XXX space" ioctl I've
> suggested is for. I think I've addressed this concern in my
> proposal already. Look:
>
> fd = open("/proc/bus/pci/${BUS}/${DEV}", ...);
> if (fd < 0)
> return -errno;
> err = ioctl(fd, PCI_MMAP_IO, 0);

I know I'm coming in on this late, but wouldn't it be cleaner to have
separate files for memory and io cycles, eg ${BUS}/${DEV}.(io|mem)?
They're logically different so they might as well be embodied separately.

--
 "Love the dolphins," she advised him. "Write by W.A.S.T.E.."

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



This archive was generated by hypermail 2b29 : Wed Mar 07 2001 - 21:00:21 EST