On Tuesday 22 December 2009 18:11:30 David Wooff wrote: > So, although I could talk to my FPGA via ioctl commands, how should I > talk to the I/O cards > when they are plugged in? Should each of these be recognised as a > single char device? > My other option is to keep it simple and use the driver just to talk to > the FPGA and > let the application code make sense of the remote I/O cards, for now at > least. >
Here is the place for your fantasy. At the first glance it seems reasonable to use FPGA driver ioctl's for initializing FPGA and tuning FPGA knobs (signals, registers, whatever) and have another driver for each type of the I/O card, which could be char/block/socket, depending on the nature of the given card. Of course that card driver will use some functions exported by the FPGA driver. -- HTH Vitaly Demyanec _______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev