Device firmware upload question.

PlasmaJohn (lkml@projectplasma.com)
Wed, 27 Nov 2002 11:26:46 -0500 (EST)


Hi,

I'm writing a device driver for a PCI card[1] that has no flash but requires
firmware to function. The firmware in question is quite proprietary and is
assuredly not GPL compatible. That said, it's not boot critical, so loading
the images via userspace would suffice.

I'd like some recommendations on the preferred method of transferring the
images to the driver from userspace. My personal preference would be to just
use cat image.rom > $target where target is either a file in procfs (or sysfs)
or the /dev entry on an alternate minor[2]. I'd rather not do this via an
ioctl() as that would require a special loader.

Thanks,
John

PS - I'm trying to document enough of the card's interface so that somebody
else can write the real driver. My driver is to self check my information and
to get some driver writing experience.

[1] Hauppauge's WinTV PVR250.

[2] It'll be a V4L2 device, so already the minors are going to be crowded.
However, I don't expect (myself) to be running enough cards for it to
become an issue.

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