On Tue July 1 2008 16:03:48 Stephen Wille Padnos wrote: > Sebastian Kuzminsky wrote: > >On Tue July 1 2008 14:03:35 Jeff Epler wrote: > >>> 3. It would be nice if users couldn't accidentally re-program their > >>> FPGAs in mid-run, ie if firmware loading happened at the sole > >>> discretion of the driver rather than having multiple pieces of > >>> code twiddling the boards. > >> > >>If bfload can determine whether the device's pci regions are in use, it > >>could avoid programming while another hardware driver is using the > >>device. Is this possible with any of the pci interface libraries you're > >>looking at? > > > >Good idea! > > > >It's not a feature of the pci libraries, but you can check if > >/sys/devices/pci*/$(DOMAIN):$(BUS):$(DEVICE).$(FUNCTION)/driver exists, > >indicating that a kernel driver has claimed the PCI device. > > > >For EPP, not so much... > > I'd think that a scan of /proc/ioports correlated with detected (or > command-line-supplied) card addresses would tell you which cards are in > use. This should also work for the parallel port, if the driver > correctly uses io_request_region().
Of course. I'll add these checks to bfload. -- Sebastian Kuzminsky my brothers are protons / my sisters are neurons I stir it twice, it's instant family! -- Gogol Bordello ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
