www.pudn.com > SMSC USB2.0.zip > project.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. 
  ____________________________________________________________________________ 
  ____________________________________________________________________________ 
  project.h - set features command & definitions 
  ____________________________________________________________________________ 
  comments tbd 
  ____________________________________________________________________________ 
  Revision History 
  Date      Who  Comment 
  ________  ___  _____________________________________________________________ 
  06/08/01  cds  initial version 
  12/06/01  tbh  revised include file scheme 
  02/21/02  tbh  moved "build" specific options out of c files into here to 
                 facilitate customization w/out checking in customized c files. 
  02/26/02  tbh  moved lun references out into lun.c/h 
  06/21/02  cds  added nand lun and nand_media headers to support new fixed  
                 media nand lun 
  07/16/02  cds  added nand_2k_media.h and ecc.h to project includes                  
  10/10/02  cds  added security.h to the include list 
  11/03/02  ds   added nand_int_media.h to the list of headers 
============================================================================*/ 
#ifdef k_pfm_profile 
#define __profile__ 
#endif 
 
#define __manager__ 
#include "..\inc\minimos.h" 
#include "version.inc" 
#include "fastmath.h" 
#include "eeprom.h" 
#include "stream.h" 
#include "upgrade.h" 
#include "protocol.h" 
#include "mscbot.h" 
#include "fmc.h" 
#include "map.h" 
#include "ecc.h" 
#include "security.h" 
 
//------------------------------------------------------------------------------ 
#if defined(__ata_dot_c__) 
  #include "lun.h" 
  #include "ata.h" 
#elif defined(__cf_dot_c__) 
  #include "lun.h" 
  #include "ata.h" 
  #include "cf.h" 
#elif defined(__ms_dot_c__) 
  #include "lun.h" 
  #include "ms.h" 
#elif defined(__sm_dot_c__) 
  #include "lun.h" 
  #include "sm.h" 
#elif defined(__sd_dot_c__) 
  #include "lun.h" 
  #include "sd.h" 
#elif defined(__mmc_dot_c__) 
  #include "lun.h" 
  #include "sd.h" 
  #include "mmc.h" 
#elif defined(__nand_dot_c__) 
  #include "lun.h" 
  #include "sm.h" 
  #include "nand.h" 
#else 
  #include "lun.h" 
  #include "ata.h" 
  #include "cf.h" 
  #include "ms.h" 
  #include "sm.h" 
  #include "nand.h" 
  #include "sd.h" 
  #include "mmc.h" 
#endif 
 
//------------------------------------------------------------------------------ 
#if defined(__sm_media_dot_c__ ) 
  #include "media.h" 
  #include "sm_media.h" 
#elif defined (__ms_media_dot_c__ ) 
  #include "media.h" 
  #include "ms_media.h" 
#elif defined (__nand_media_dot_c__ ) 
  #include "media.h" 
  #include "sm_media.h" 
  #include "nand_media.h" 
#elif defined (__nand_2k_media_dot_c__) 
  #include "media.h" 
  #include "sm_media.h" 
  #include "nand_media.h" 
  #include "nand_2k_media.h" 
#elif defined (__nand_int_media_dot_c__) 
  #include "media.h" 
  #include "sm_media.h" 
  #include "nand_media.h" 
  #include "nand_int_media.h" 
#else 
  #include "media.h" 
  #include "ms_media.h" 
  #include "sm_media.h" 
  #include "nand_media.h" 
  #include "nand_2k_media.h" 
  #include "nand_int_media.h" 
#endif 
 
 
//------------------------------------------------------------------------------ 
// MinimOS synchronizers used in this project 
// mscbot 
#define kbm_sync_abort  kbm_sync_usr0 
#define kbm_sync_cbw    kbm_sync_usr2 
 
// fmc 
#define kbm_sync_fmc_blk kbm_sync_usr1 
#define kbm_sync_fmc_irq kbm_sync_usr3 
 
// ata 
#define kbm_sync_ata_irq kbm_sync_usr3  // (synonym for kbm_sync_fmc_irq) 
#define kbm_sync_ata_rdy kbm_sync_usr4 
 
//------------------------------------------------------------------------------ 
// there didn't seem to be a really good place to put this stuff, so its here for now 
// fatal exception handling 
void dev_exception(uint16 err) reentrant; 
#define k_err_none                    (0) 
#define k_err_unreachable_code        (1) 
#define k_err_unexpected_synchronizer (2) 
 
//---eof------------------------------------------------------------------------