cypress_firmware.h 588 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (C) 2004-6 Patrick Boettcher (patrick.boettcher@posteo.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. #ifndef CYPRESS_FIRMWARE_H
  10. #define CYPRESS_FIRMWARE_H
  11. #define CYPRESS_AN2135 0
  12. #define CYPRESS_AN2235 1
  13. #define CYPRESS_FX2 2
  14. /* commonly used firmware download types and function */
  15. struct hexline {
  16. u8 len;
  17. u32 addr;
  18. u8 type;
  19. u8 data[255];
  20. u8 chk;
  21. };
  22. int cypress_load_firmware(struct usb_device *, const struct firmware *, int);
  23. #endif