ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

data.c
Go to the documentation of this file.
00001 /*++
00002 
00003 Copyright (C) Microsoft Corporation, 1991 - 1999
00004 
00005 Module Name:
00006 
00007 
00008 Abstract:
00009 
00010 
00011 Environment:
00012 
00013 
00014 Notes:
00015 
00016 Revision History:
00017 
00018 --*/
00019 
00020 #include "ntddk.h"
00021 #include "classpnp.h"
00022 #include "trace.h"
00023 
00024 #ifdef ALLOC_DATA_PRAGMA
00025 #pragma data_seg("PAGE")
00026 #endif
00027 
00028 /*
00029 
00030 #define CDROM_HACK_DEC_RRD                 (0x00000001)
00031 #define CDROM_HACK_FUJITSU_FMCD_10x        (0x00000002)
00032 #define CDROM_HACK_HITACHI_1750            (0x00000004)
00033 #define CDROM_HACK_HITACHI_GD_2000         (0x00000008)
00034 #define CDROM_HACK_TOSHIBA_SD_W1101        (0x00000010)
00035 #define CDROM_HACK_TOSHIBA_XM_3xx          (0x00000020)
00036 #define CDROM_HACK_NEC_CDDA                (0x00000040)
00037 #define CDROM_HACK_PLEXTOR_CDDA            (0x00000080)
00038 #define CDROM_HACK_BAD_GET_CONFIG_SUPPORT  (0x00000100)
00039 #define CDROM_HACK_FORCE_READ_CD_DETECTION (0x00000200)
00040 #define CDROM_HACK_READ_CD_SUPPORTED       (0x00000400)
00041 
00042 */
00043 
00044 CLASSPNP_SCAN_FOR_SPECIAL_INFO CdromHackItems[] = {
00045     // digital put out drives using 512 byte block sizes,
00046     // and needed us to send a mode page to set the sector
00047     // size back to 2048.
00048     { "DEC"     , "RRD"                            , NULL,   0x0001 },
00049     // these fujitsu drives take longer than ten seconds to
00050     // timeout commands when audio discs are placed in them
00051     { "FUJITSU" , "FMCD-101"                       , NULL,   0x0002 },
00052     { "FUJITSU" , "FMCD-102"                       , NULL,   0x0002 },
00053     // these hitachi drives don't work properly in PIO mode
00054     { "HITACHI ", "CDR-1750S"                      , NULL,   0x0004 },
00055     { "HITACHI ", "CDR-3650/1650S"                 , NULL,   0x0004 },
00056     // this particular gem doesn't automatcially spin up
00057     // on some media access commands.
00058     { ""        , "HITACHI GD-2000"                , NULL,   0x0008 },
00059     { ""        , "HITACHI DVD-ROM GD-2000"        , NULL,   0x0008 },
00060     // this particular drive doesn't support DVD playback.
00061     // just print an error message in CHK builds.
00062     { "TOSHIBA ", "SD-W1101 DVD-RAM"               , NULL,   0x0010 },
00063     // not sure what this device's issue was.  seems to
00064     // require mode selects at various times.
00065     { "TOSHIBA ", "CD-ROM XM-3"                    , NULL,   0x0020 },
00066     // NEC defined a "READ_CD" type command before there was
00067     // a standard, so fall back on this as an option.
00068     { "NEC"     , ""                               , NULL,   0x0040 },
00069     // plextor defined a "READ_CD" type command before there was
00070     // a standard, so fall back on this as an option.
00071     { "PLEXTOR ", ""                               , NULL,   0x0080 },
00072     // this drive times out and sometimes disappears from the bus
00073     // when send GET_CONFIGURATION commands.  don't send them.
00074     { ""        , "LG DVD-ROM DRD-840B"            , NULL,   0x0100 },
00075     { ""        , "SAMSUNG DVD-ROM SD-608"         , NULL,   0x0300 },
00076     // these drives should have supported READ_CD, but at least
00077     // some firmware revisions did not.  force READ_CD detection.
00078     { ""        , "SAMSUNG DVD-ROM SD-"            , NULL,   0x2000 },
00079     // the mitsumi drive below doesn't follow the block-only spec,
00080     // and we end up hanging when sending it commands it doesn't
00081     // understand.  this causes complications later, also.
00082     { "MITSUMI ", "CR-4802TE       "               , NULL,   0x0100 },
00083     // some drives return various funky errors (such as 3/2/0 NO_SEEK_COMPLETE)
00084     // during the detection of READ_CD support, resulting in iffy detection.
00085     // since they probably don't support mode switching, which is really old
00086     // legacy stuff anyways, the ability to read digitally is lost when
00087     // these drives return unexpected error codes.  note: MMC compliant drives
00088     // are presumed to support READ_CD, as are DVD drives, and anything
00089     // connected to a bus type other than IDE or SCSI, and therefore don't
00090     // need to be here.
00091     { "YAMAHA  ", "CRW8424S        "               , NULL,   0x0400 },
00092     // and finally, a place to finish the list. :)
00093     { NULL      , NULL                             , NULL,   0x0000 }
00094 };
00095 
00096 #ifdef ALLOC_DATA_PRAGMA
00097 #pragma data_seg()
00098 #endif
00099 

Generated on Sun May 27 2012 04:28:09 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.