cypress_firmware.h 740 B

12345678910111213141516171819202122232425262728293031
  1. /* cypress_firmware.h is part of the DVB USB library.
  2. *
  3. * Copyright (C) 2004-6 Patrick Boettcher (patrick.boettcher@desy.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. #ifndef CYPRESS_FIRMWARE_H
  11. #define CYPRESS_FIRMWARE_H
  12. #define CYPRESS_AN2135 0
  13. #define CYPRESS_AN2235 1
  14. #define CYPRESS_FX2 2
  15. /* commonly used firmware download types and function */
  16. struct hexline {
  17. u8 len;
  18. u32 addr;
  19. u8 type;
  20. u8 data[255];
  21. u8 chk;
  22. };
  23. extern int usbv2_cypress_load_firmware(struct usb_device *,
  24. const struct firmware *, int);
  25. extern int dvb_usbv2_get_hexline(const struct firmware *,
  26. struct hexline *, int *);
  27. #endif