Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Copyright (C) 2004-6 Patrick Boettcher (patrick.boettcher@posteo.de)
0004  * see dvb-usb-init.c for copyright information.
0005  *
0006  * This file contains functions for downloading the firmware to Cypress FX 1
0007  * and 2 based devices.
0008  *
0009  */
0010 
0011 #ifndef CYPRESS_FIRMWARE_H
0012 #define CYPRESS_FIRMWARE_H
0013 
0014 #define CYPRESS_AN2135  0
0015 #define CYPRESS_AN2235  1
0016 #define CYPRESS_FX2     2
0017 
0018 /* commonly used firmware download types and function */
0019 struct hexline {
0020     u8 len;
0021     u32 addr;
0022     u8 type;
0023     u8 data[255];
0024     u8 chk;
0025 };
0026 
0027 int cypress_load_firmware(struct usb_device *, const struct firmware *, int);
0028 
0029 #endif