⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 upgrade.h

📁 <B>SMSC USB2.0 Flash硬盘驱动源码</B>
💻 H
字号:
/*============================================================================
  ____________________________________________________________________________
                                ______________________________________________
   SSSS  M   M          CCCC          Standard Microsystems Corporation
  S      MM MM   SSSS  C                    Austin Design Center
   SSS   M M M  S      C                 11000 N. Mopac Expressway
      S  M   M   SSS   C                Stonelake Bldg. 6, Suite 500
  SSSS   M   M      S   CCCC                Austin, Texas 78759
                SSSS            ______________________________________________
  ____________________________________________________________________________

  Copyright(C) 1999, Standard Microsystems Corporation
  All Rights Reserved.

  This program code listing is proprietary to SMSC and may not be copied,
  distributed, or used without a license to do so.  Such license may have
  Limited or Restricted Rights. Please refer to the license for further
  clarification.
  ____________________________________________________________________________

  Notice: The program contained in this listing is a proprietary trade
  secret of SMSC, Hauppauge, New York, and is copyrighted
  under the United States Copyright Act of 1976 as an unpublished work,
  pursuant to Section 104 and Section 408 of Title XVII of the United
  States code. Unauthorized copying, adaption, distribution, use, or
  display is prohibited by this law.
  ____________________________________________________________________________

  Use, duplication, or disclosure by the Government is subject to
  restrictions as set forth in subparagraph(c)(1)(ii) of the Rights
  in Technical Data and Computer Software clause at DFARS 52.227-7013.
  Contractor/Manufacturer is Standard Microsystems Corporation,
  80 Arkay Drive, Hauppauge, New York, 1178-8847.
  ____________________________________________________________________________
  ____________________________________________________________________________

  upgrade.h - firmware upgrade over the usb.
  ____________________________________________________________________________

  comments tbd
  ____________________________________________________________________________

  Revision History
  Date      Who  Comment
  ________  ___  _____________________________________________________________
  05/31/00  tbh  initial version
  11/05/01  tbh  eliminate dfu jumper, replaced with g_dfu_activated
  04/24/02  tbh  added k_dvd_inq_devid
  07/09/02  tbh  upgraded prototypes, added comments
============================================================================*/

//------------------------------------------------------------------------------
// define this to get the dfu functional dscr appended to the config dscr
#define k_append_dfu_dscr

//------------------------------------------------------------------------------
// dfu detach timeout
#define k_dfu_detach_timeout 1000
// dfu maximum transfer size for downloads
#define k_dfu_max_xfer_sz 0xFFFE  // take it all in one dfu_dnload command!

//------------------------------------------------------------------------------
// useful constants for laying out descriptors
#define k_dfu_funcdscrsz          0x07
#define k_dfu_dscr_typ_functional 0x21

//------------------------------------------------------------------------------
// prototypes for functions exported to other modules
t_result dfu_mngr(t_message_ref msgp) reentrant;
t_result dfu_cpex(t_message_ref msgp) reentrant;

//------------------------------------------------------------------------------
// dfu class specific requests
#define k_hci_dfu_detach     0x2100
#define k_hvd_dfu_detach     0x4000  // vendor to device - for crippled dfu implementation
#define k_hvd_wr_eerom       0x4045
#define k_dvd_rd_eerom       0xC046

//------------------------------------------------------------------------------
// vendor specific requests
#define k_dvd_inq_devid      0xC047

//---eof------------------------------------------------------------------------

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -