On Fri, 31 Dec 2010 08:26:31 +0300 Igor M. Liplianin wrote: > It uses STAPL files and programs Altera FPGA through JTAG. > Interface to JTAG must be provided from main device module, > for example through cx23885 GPIO. > > Signed-off-by: Igor M. Liplianin <liplianin@xxxxxxxx> > --- > drivers/misc/Kconfig | 1 + > drivers/misc/Makefile | 1 + > drivers/misc/altera-stapl/Kconfig | 8 + > drivers/misc/altera-stapl/Makefile | 3 + > drivers/misc/altera-stapl/altera-comp.c | 142 ++ > drivers/misc/altera-stapl/altera-exprt.h | 33 + > drivers/misc/altera-stapl/altera-jtag.c | 1010 ++++++++++++ > drivers/misc/altera-stapl/altera-jtag.h | 113 ++ > drivers/misc/altera-stapl/altera-lpt.c | 70 + > drivers/misc/altera-stapl/altera.c | 2484 ++++++++++++++++++++++++++++++ > include/misc/altera.h | 49 + > 11 files changed, 3914 insertions(+), 0 deletions(-) > create mode 100644 drivers/misc/altera-stapl/Kconfig > create mode 100644 drivers/misc/altera-stapl/Makefile > create mode 100644 drivers/misc/altera-stapl/altera-comp.c > create mode 100644 drivers/misc/altera-stapl/altera-exprt.h > create mode 100644 drivers/misc/altera-stapl/altera-jtag.c > create mode 100644 drivers/misc/altera-stapl/altera-jtag.h > create mode 100644 drivers/misc/altera-stapl/altera-lpt.c > create mode 100644 drivers/misc/altera-stapl/altera.c > create mode 100644 include/misc/altera.h > > diff --git a/drivers/misc/altera-stapl/Kconfig b/drivers/misc/altera-stapl/Kconfig > new file mode 100644 > index 0000000..711a4a2 > --- /dev/null > +++ b/drivers/misc/altera-stapl/Kconfig > @@ -0,0 +1,8 @@ > +comment "Altera FPGA firmware download module" > + > +config ALTERA_STAPL > + tristate "Altera FPGA firmware download module" > + depends on I2C > + default m > + help Please do not enable random drivers to build by default. > +static int altera_get_note(u8 *p, s32 program_size, > + s32 *offset, char *key, char *value, int length) > +/* > +Gets key and value of NOTE fields in the JBC file. > +Can be called in two modes: if offset pointer is NULL, > +then the function searches for note fields which match > +the key string provided. If offset is not NULL, then > +the function finds the next note field of any key, > +starting at the offset specified by the offset pointer. > +Returns 0 for success, else appropriate error code */ > +{ /* * Throughout all source files: * The multi-line comment format for Linux kernel is like this multi-line comment. */ --- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** desserts: http://www.xenotime.net/linux/recipes/ -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html