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