亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? sysscsi.c

?? mtx604在vxworks下的bsp源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
#ifdef INCLUDE_SCSI2SEQ_DEV *	pSd0;TAPE_CONFIG *	pTapeConfig;#endif /* INCLUDE_SCSI2 *//********************************************************************************* sysScsiConfig - system SCSI configuration** This routine is an example SCSI configuration routine.** Most of the code for this routine shows how to declare a SCSI peripheral* configuration.  This routine must be edited to reflect the actual* configuration of the user's SCSI bus.  This example can also be found in* src/config/usrScsi.c.** For users just getting started, hardware configurations can be tested* by defining SCSI_AUTO_CONFIG in config.h, which probes the bus and* displays all devices found.  No device should have the same SCSI bus ID as* the VxWorks SCSI port (default = 7), or the same ID as any other device.* Check for proper bus termination.** This routine includes three configuration examples that demonstrate* configuration of a SCSI hard disk (any type), of an OMTI 3500 floppy disk,* and of a tape drive (any type).** The hard disk is divided into two 32-megabyte partitions and a third* partition with the remainder of the disk.  The first partition is* initialized as a dosFs device.  ** It is recommended that the first partition on a block device (BLK_DEV) be* a dosFs device, if the intention is eventually to boot VxWorks from the* device.  This will simplify the task considerably.** The floppy, since it is a removable medium device, is allowed to have only* a single partition, and dosFs is the file system of choice because it* facilitates media compatibility with IBM PC machines.** While the hard disk configuration is fairly straightforward, the floppy* setup in this example is more intricate.  Note that the* scsiPhysDevCreate() call is issued twice.  The first time is merely to get* a "handle" to pass to scsiModeSelect(); the default media type is* sometimes inappropriate (in the case of generic SCSI-to-floppy cards).* After the hardware is correctly configured, the handle is discarded using* scsiPhysDevDelete(), after which a second call to scsiPhysDevCreate()* correctly configures the peripheral.  (Before the scsiModeSelect() call,* the configuration information was incorrect.)  Also note that following* the scsiBlkDevCreate() call, correct values for <sectorsPerTrack> and* <nHeads> must be set using scsiBlkDevInit().  This is necessary for IBM PC* compatibility.** Similarly, the tape configuration is more complex because certain device* parameters must be turned off within VxWorks and the tape fixed block size* must be defined, assuming that the tape supports fixed blocks.** The last parameter to the dosFsDevInit() call is a pointer to a* DOS_VOL_CONFIG structure.  If NULL is specified, dosFsDevInit() reads this* information off the disk in the drive.  The read may fail if no disk is* present or if the disk has no valid dosFs directory.  Should that happen,* use dosFsMkfs() to create a new directory on a disk.  This routine uses* default parameters (see dosFsLib) that may not be suitable an application,* in which case, use dosFsDevInit() with a pointer to a valid DOS_VOL_CONFIG* structure that has been created and initialized by the user.  If* dosFsDevInit() is used, a call to diskInit() should be made to write a new* directory on the disk, if the disk is blank or disposable.** NOTE: The variable <pSbdFloppy> is global to allow the above calls to be* made from the VxWorks shell, for example:* .CS*     -> dosFsMkfs "/fd0/", pSbdFloppy* .CE* If a disk is new, use diskFormat() to format it.** INTERNAL* The fourth parameter passed to scsiPhysDevCreate() is now* <reqSenseLength> (previously <selTimeout>).*/STATUS sysScsiConfig (void)    {#if FALSE  /* EXAMPLE CODE IS NOT COMPILED */    UINT which;    int  scsiId;    char modeData [4];		/* array for floppy MODE SELECT data */    SCSI_OPTIONS options;    /*     * NOTE: Either of the following global variables may be set or reset     * from the VxWorks shell. Under 5.0, they should NOT both be set at the     * same time, or output will be interleaved and hard to read!! They are     * intended as an aid to trouble-shooting SCSI problems.     */    scsiDebug = FALSE;		/* enable SCSI debugging output */    scsiIntsDebug = FALSE;	/* enable SCSI interrupt debugging output */    /*     * The following section of code provides sample configurations within     * VxWorks of SCSI peripheral devices and VxWorks file systems. It      * should however be noted that the actual parameters provided to     * scsiPhysDevCreate(), scsiBlkDevCreate(), dosFsDevInit() etc., are     * highly dependent upon the user environment and should therefore be      * modified accordingly.     */    /*     * HARD DRIVE CONFIGURATION     *     * In order to configure a hard disk and initialise a dosFs      * file system, the following initialisation code will serve as an     * example.     */    /* configure a SCSI hard disk at busId = 2, LUN = 0 */    if ((pSpd20 = scsiPhysDevCreate (pSysScsiCtrl, 2, 0, 0, NONE, 0, 0, 0))        == (SCSI_PHYS_DEV *) NULL)	{        printErr ("usrScsiConfig: scsiPhysDevCreate failed.\n",			0, 0, 0, 0, 0, 0);	}    else	{	/* create block devices */        if (((pSbd0 = scsiBlkDevCreate (pSpd20, 0x10000, 0)) == NULL)       ||            ((pSbd1 = scsiBlkDevCreate (pSpd20, 0x10000, 0x10000)) == NULL) ||            ((pSbd2 = scsiBlkDevCreate (pSpd20, 0, 0x20000)) == NULL))	    {    	    return (ERROR);	    }        if ((dosFsDevInit  ("/sd0/", pSbd0, NULL) == NULL) )	    {	    return (ERROR);	    }	}    /*      * FLOPPY DRIVE CONFIGURATION     *      * In order to configure a removable media floppy drive with a     * dosFs file system, the following device specific code will serve     * as an example. Note that some arguments like mode parameters are     * highly devcie and vendor specific. Thus, the appropriate peripheral     * hardware manual should be consulted.     */    /* configure floppy at busId = 3, LUN = 1 */    if ((pSpd31 = scsiPhysDevCreate (pSysScsiCtrl, 3, 1, 0, NONE, 0, 0, 0))	== (SCSI_PHYS_DEV *) NULL)	{        printErr ("usrScsiConfig: scsiPhysDevCreate failed.\n");	return (ERROR);	}    /*      * Zero modeData array, then set byte 1 to "medium code" (0x1b). NOTE:     * MODE SELECT data is highly device-specific. If your device requires     * configuration via MODE SELECT, please consult the device's Programmer's     * Reference for the relevant data format.     */    bzero (modeData, sizeof (modeData));    modeData [1] = 0x1b;    /* issue the MODE SELECT command to correctly configure floppy controller */    scsiModeSelect (pSpd31, 1, 0, modeData, sizeof (modeData));    /*     * delete and re-create the SCSI_PHYS_DEV so that INQUIRY will return the     * new device parameters, i.e., correct number of blocks     */    scsiPhysDevDelete (pSpd31);    if ((pSpd31 = scsiPhysDevCreate (pSysScsiCtrl, 3, 1, 0, NONE, 0, 0, 0))	== (SCSI_PHYS_DEV *) NULL)	{        printErr ("usrScsiConfig: scsiPhysDevCreate failed.\n");	return (ERROR);	}    if ((pSbdFloppy = scsiBlkDevCreate (pSpd31, 0, 0)) == NULL)	{        printErr ("usrScsiConfig: scsiBlkDevCreate failed.\n");	return (ERROR);	}    /*     * Fill in the <blksPerTrack> (blocks (or sectors) per track) and <nHeads>     * (number of heads) BLK_DEV fields, since it is impossible to ascertain     * this information from the SCSI adapter card. This is important for     * PC compatibility, primarily.     */    scsiBlkDevInit ((SCSI_BLK_DEV *) pSbdFloppy, 15, 2);    /* Initialize as a dosFs device */    /*     * NOTE: pSbdFloppy is declared globally in case the following call     * fails, in which case dosFsMkfs or dosFsDevInit can be     * called (from the shell) with pSbdFloppy as an argument     * (assuming pSbdFloppy != NULL)     */    if (dosFsDevInit ("/fd0/", pSbdFloppy, NULL) == NULL)	{        printErr ("usrScsiConfig: dosFsDevInit failed.\n");	return (ERROR);	}    /*      * TAPE DRIVE CONFIGURATION     *      * In order to configure a sequential access tape device and a tapeFs     * file system, the following code will serve as an example. Note that     * sequential access and tapeFs support are only available via SCSI-2.     * To make sure that SCSI-2 is being used, check for the INCLUDE_SCSI2     * macro definition in the BSP.     *     * The tape device does not support synchronous data transfers     * or wide data transfers. Therefore, turn off the automatic configuration     * of these features within VxWorks.     */    scsiId = 4;    which = SCSI_SET_OPT_XFER_PARAMS | SCSI_SET_OPT_WIDE_PARAMS;    options.maxOffset = SCSI_SYNC_XFER_ASYNC_OFFSET;    options.minPeriod = SCSI_SYNC_XFER_ASYNC_PERIOD;    options.xferWidth = SCSI_WIDE_XFER_SIZE_NARROW;    if (scsiTargetOptionsSet (pSysScsiCtrl, scsiId, &options, which) == ERROR)        {        printf ("Could not set target option parameters\n");        return (ERROR);        }    /* create SCSI physical device and sequential device */    if ((pSpd40 = scsiPhysDevCreate (pSysScsiCtrl, scsiId, 0,0,NONE,0,0,0))             == NULL)        {        printErr ("scsiPhysDevCreate failed.\n");        return (ERROR);        }    if ((pSd0 = scsiSeqDevCreate (pSpd40)) == NULL)        {        printErr ("scsiSeqDevCreate failed.\n");        return (ERROR);        }    /* configure a fixed block and rewind, tape file system */    pTapeConfig = (TAPE_CONFIG *) calloc (sizeof(TAPE_CONFIG),1);    pTapeConfig->rewind = TRUE;		/* rewind device */    pTapeConfig->blkSize = 512;		/* fixed 512 byte block */     if (tapeFsDevInit ("/tape1", pSd0, pTapeConfig) == NULL)	{	printErr ("tapeFsDevInit failed.\n");	return (ERROR);	}#endif /*FALSE, END OF EXAMPLE CODE */    return (OK);    }/********************************************************************************* sysScsiInByte - BSP-specific byte input routine** This routine reads one byte at the specified address in a BSP-specific* manner.  It is invoked by the SCSI-2 driver, and is a wrapper to a PowerPC* assembler routine.** RETURNS: unsigned byte*/UINT8 sysScsiInByte    (    UINT32 adr		/* address of where to read byte */    )    {    return (sysInByte (adr));    }/********************************************************************************* sysScsiOutByte - BSP-specific byte output routine** This routine writes one byte at the specified address in a BSP-specific* manner.  It is invoked by the SCSI-2 driver, and is a wrapper to a PowerPC* assembler routine.** RETURNS: N/A.*/void sysScsiOutByte    (    UINT32 adr,		/* address of where to write byte */    UINT8  val		/* value of byte to write */    )    {    sysOutByte (adr, val);    }#endif /* INCLUDE_SCSI */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩大陆一区二区| 国产精品1024| 国产精品久久久久影院亚瑟| 精品视频1区2区| 成av人片一区二区| 麻豆免费精品视频| 亚洲精品日产精品乱码不卡| 久久久国产综合精品女国产盗摄| 欧美日韩在线不卡| 色综合天天综合狠狠| 国产在线日韩欧美| 日本不卡一区二区| 亚洲午夜国产一区99re久久| 国产精品成人免费| 久久精品人人做人人综合| 7777精品伊人久久久大香线蕉经典版下载 | 欧美一a一片一级一片| 国产福利91精品一区二区三区| 丝袜美腿亚洲色图| 有坂深雪av一区二区精品| 中文字幕欧美日本乱码一线二线| 欧美变态tickling挠脚心| 欧美日韩国产综合久久| 色婷婷av久久久久久久| 99国产一区二区三精品乱码| 国产成人aaaa| 夜夜嗨av一区二区三区四季av| 色狠狠色噜噜噜综合网| 成人激情黄色小说| 国产很黄免费观看久久| 国内久久婷婷综合| 精品一区二区免费看| 免费视频最近日韩| 麻豆精品在线观看| 久久精品久久精品| 狠狠色综合日日| 美女视频网站黄色亚洲| 久久超碰97中文字幕| 蜜臀av一区二区在线免费观看| 美女网站视频久久| 另类小说综合欧美亚洲| 美女一区二区久久| 国产真实乱子伦精品视频| 久草中文综合在线| 国产精品资源在线观看| 国产精品888| 成人福利视频网站| 99久久精品国产一区| 91在线码无精品| 欧美在线视频不卡| 91精品国产综合久久久久久久久久| 制服丝袜亚洲精品中文字幕| 91精品蜜臀在线一区尤物| 日韩一二三四区| 国产婷婷色一区二区三区在线| 中文字幕av一区二区三区高| 亚洲天堂av一区| 亚洲成人免费在线观看| 热久久国产精品| 国产精品一二三四五| av不卡在线播放| 欧美亚洲图片小说| 日韩三级视频在线看| 欧美国产一区二区在线观看| 成人欧美一区二区三区| 亚洲午夜久久久久| 狠狠色2019综合网| 91在线云播放| 日韩一级片网站| 亚洲欧洲精品一区二区三区不卡| 亚洲成人一区在线| 国产大陆a不卡| 在线观看成人小视频| 欧美一级专区免费大片| 国产欧美一区二区精品仙草咪| 亚洲人成7777| 久久国产夜色精品鲁鲁99| av资源站一区| 91精品国产91久久久久久一区二区 | av一区二区三区在线| 欧美午夜精品久久久| 久久综合色播五月| 亚洲激情校园春色| 激情五月婷婷综合| 色欧美日韩亚洲| 欧美影院一区二区三区| 99re免费视频精品全部| 欧美一区二区三区播放老司机| 国产欧美一区二区精品忘忧草 | 日韩电影一区二区三区四区| 国产999精品久久久久久| 欧美男同性恋视频网站| 亚洲国产精品黑人久久久| 天天亚洲美女在线视频| 97久久精品人人做人人爽50路| 91精品国产乱| 亚洲综合成人网| 懂色av一区二区夜夜嗨| 88在线观看91蜜桃国自产| 亚洲色图视频网| 国产乱子伦一区二区三区国色天香| 欧洲生活片亚洲生活在线观看| 色噜噜狠狠色综合欧洲selulu| 久久日韩精品一区二区五区| 午夜精品一区二区三区电影天堂| 99视频精品全部免费在线| 欧美精品一区视频| 日韩中文字幕区一区有砖一区 | 麻豆精品在线观看| 欧美色网一区二区| 亚洲欧美日韩综合aⅴ视频| 国产一区二区网址| 日韩三级免费观看| 日韩av在线发布| 欧美日韩免费高清一区色橹橹| 亚洲天堂福利av| 97久久超碰国产精品电影| 亚洲国产精品传媒在线观看| 国产精品一卡二卡| 久久久久99精品国产片| 蜜臀av一区二区| 日韩午夜电影av| 日韩精品成人一区二区在线| 欧美猛男gaygay网站| 一区二区成人在线视频| 99视频在线观看一区三区| 亚洲国产成人在线| 高清不卡一区二区| 国产精品午夜在线观看| 国产成人在线色| 日本一区二区三区四区 | 99精品视频免费在线观看| 欧美高清在线精品一区| 国产成人免费视频网站| 久久久综合九色合综国产精品| 久久不见久久见免费视频1| 欧美成人三级电影在线| 久久www免费人成看片高清| 亚洲精品在线免费播放| 久久99国产精品麻豆| www久久久久| 国产资源在线一区| 欧美激情一区二区三区| 99视频热这里只有精品免费| 亚洲精品国产高清久久伦理二区| 一本久久综合亚洲鲁鲁五月天 | 99久久伊人久久99| 亚洲天堂av一区| 欧美日韩亚洲国产综合| 欧美bbbbb| 国产视频亚洲色图| 色综合久久88色综合天天6| 亚洲一二三四在线| 欧美不卡一区二区三区四区| 国产精品自拍三区| 日韩理论片一区二区| 欧美三级韩国三级日本一级| 日欧美一区二区| 久久亚洲欧美国产精品乐播| 国产suv精品一区二区三区| 《视频一区视频二区| 欧美日韩综合在线| 激情久久五月天| 国产精品久久久久久久久晋中| 91黄色激情网站| 麻豆精品视频在线| 欧美国产日韩在线观看| 欧美丝袜自拍制服另类| 久久精品免费观看| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 972aa.com艺术欧美| 天天综合天天综合色| 国产亚洲精品资源在线26u| 91麻豆免费看| 蜜桃av一区二区三区| 亚洲欧美在线视频| 欧美一二三四区在线| 91丨porny丨户外露出| 日日夜夜精品视频天天综合网| 久久久久久综合| 欧美日韩在线三级| 国产不卡在线视频| 日韩电影免费一区| 日韩理论在线观看| 久久蜜臀精品av| 欧美日韩国产高清一区| 国产高清在线精品| 日韩电影在线免费| 亚洲美女视频在线| 久久久精品tv| 日韩欧美国产一区二区在线播放| 色综合久久久久久久久| 国产精品乡下勾搭老头1| 亚洲大片免费看| 中文字幕在线不卡视频| 日韩免费在线观看| 欧美日韩国产欧美日美国产精品| 粉嫩绯色av一区二区在线观看| 麻豆精品在线观看| 图片区小说区区亚洲影院|