Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Hans Verkuil | 79a63c6 | 2013-03-25 06:43:12 -0300 | [diff] [blame] | 2 | /* |
Patrick Boettcher | 99e44da | 2016-01-24 12:56:58 -0200 | [diff] [blame] | 3 | * Copyright (C) 2004-6 Patrick Boettcher (patrick.boettcher@posteo.de) |
Antti Palosaari | b00a901 | 2012-06-11 23:35:09 -0300 | [diff] [blame] | 4 | * see dvb-usb-init.c for copyright information. |
| 5 | * |
| 6 | * This file contains functions for downloading the firmware to Cypress FX 1 |
| 7 | * and 2 based devices. |
| 8 | * |
| 9 | */ |
| 10 | |
Antti Palosaari | 355b4b2 | 2012-08-01 21:38:46 -0300 | [diff] [blame] | 11 | #ifndef CYPRESS_FIRMWARE_H |
| 12 | #define CYPRESS_FIRMWARE_H |
Antti Palosaari | b00a901 | 2012-06-11 23:35:09 -0300 | [diff] [blame] | 13 | |
| 14 | #define CYPRESS_AN2135 0 |
| 15 | #define CYPRESS_AN2235 1 |
| 16 | #define CYPRESS_FX2 2 |
| 17 | |
| 18 | /* commonly used firmware download types and function */ |
| 19 | struct hexline { |
| 20 | u8 len; |
| 21 | u32 addr; |
| 22 | u8 type; |
| 23 | u8 data[255]; |
| 24 | u8 chk; |
| 25 | }; |
Hans Verkuil | 79a63c6 | 2013-03-25 06:43:12 -0300 | [diff] [blame] | 26 | |
| 27 | int cypress_load_firmware(struct usb_device *, const struct firmware *, int); |
Antti Palosaari | b00a901 | 2012-06-11 23:35:09 -0300 | [diff] [blame] | 28 | |
| 29 | #endif |