Loading...
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2004-6 Patrick Boettcher (patrick.boettcher@posteo.de)
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
11#ifndef CYPRESS_FIRMWARE_H
12#define CYPRESS_FIRMWARE_H
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 */
19struct hexline {
20 u8 len;
21 u32 addr;
22 u8 type;
23 u8 data[255];
24 u8 chk;
25};
26
27int cypress_load_firmware(struct usb_device *, const struct firmware *, int);
28
29#endif
1/*
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
10#ifndef CYPRESS_FIRMWARE_H
11#define CYPRESS_FIRMWARE_H
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 */
18struct hexline {
19 u8 len;
20 u32 addr;
21 u8 type;
22 u8 data[255];
23 u8 chk;
24};
25
26int cypress_load_firmware(struct usb_device *, const struct firmware *, int);
27
28#endif