lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 30 Dec 2010 21:39:15 -0800
From:	Randy Dunlap <rdunlap@...otime.net>
To:	"Igor M. Liplianin" <liplianin@...by>
Cc:	mchehab@...radead.org, linux-media@...r.kernel.org,
	linux-kernel@...r.kernel.org, aospan@...up.ru
Subject: Re: [PATCH 01/18] Altera FPGA firmware download module.

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@...up.ru>
> ---
>  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-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ