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

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

?? mkboot.c

?? vxworks嵌入式開發(fā)vmware bsp包 其中已包括網(wǎng)卡的驅動 本人試過 非常好用
?? C
?? 第 1 頁 / 共 2 頁
字號:
	        {	        printErr ("ctrl is out of range (0-%d).\n", ATA_MAX_CTRLS -1);                free (dosVolBootSec);                free (lbaSectorOne);	        return (ERROR);	        }            if ((UINT)drive >= ATA_MAX_DRIVES)	        {	        printErr ("drive is out of range(0-%d).\n", ATA_MAX_DRIVES -1);                free (dosVolBootSec);                free (lbaSectorOne);	        return (ERROR);	        }	            /*                                                                     * ATA disks formatted via Windows always have partitions.             * ATA disks formatted via vxWorks may have partitions or              * they may have the dosFs volume start on LBA sector one             * without any partition.             *             * If the dosFs volume starts on LBA sector one, then                  * the VXDOS, or VXEXT strings will be present there.           	     *             * If the partition table (Master Boot Record) resides                 * on LBA sector one, these strings will not be present.	     *	     * MSDOS compatible hard discs always have FDISK style              * partitions. For those we must find the bootable partition              * sector and modify the dosFs volumes boot sector therein.	     * The master boot record, the initial partition table,	     * is always found on LBA sector one on MSDOS hard discs.	     *	     * Note that the partition should have a FAT12 or FAT16	     * dosFs volume formatted upon it.  FAT32 will not work. 	     */            ataRaw.cylinder   = 0;            ataRaw.head       = 0;            ataRaw.sector     = 1;            ataRaw.pBuf       = lbaSectorOne;            ataRaw.nSecs      = 1;            ataRaw.direction  = 0;            ataRawio (ctrl, drive, &ataRaw);	    pSys	= &lbaSectorOne[DOS_BOOT_SYS_ID];	    pPart	= (DOS_PART_TBL *)&lbaSectorOne[DOS_BOOT_PART_TBL];    	    if ((strncmp(pSys, VXDOS, strlen(VXDOS)) != 0) &&        	(strncmp(pSys, VXEXT, strlen(VXEXT)) != 0))        	{	        for (ix = 0; ix < 4; ix++)		    {	            /* 		     * Note that we are supporting partitions		     * that could have FAT32 filesystems upon them.		     * vxLd 1.x will ONLY work on FAT12 and FAT16		     * filesystem, it will NOT work on FAT32,		     * but we should still accept the partition types.		     * Note that dosFsVolFormat can force FAT type.		     */		    if (pPart->dospt_status == PART_IS_BOOTABLE)		        if ((pPart->dospt_type == PART_TYPE_DOS12 ) ||		            (pPart->dospt_type == PART_TYPE_DOS3  ) ||		            (pPart->dospt_type == PART_TYPE_DOS4  ) ||		            (pPart->dospt_type == PART_TYPE_DOS32 ) ||		            (pPart->dospt_type == PART_TYPE_DOS32X) ||		            (pPart->dospt_type == PART_TYPE_WIN95_D4))			    {			    found = TRUE;			    break;			    }		    pPart++;		    }	    	        if (!found)		    {                    printErr ("Can't find the primary DOS partition.\n");                    free (dosVolBootSec);                    free (lbaSectorOne);	            return (ERROR);		    }	        ataRaw.cylinder	= (pPart->dospt_startSec & 0xf0) >> 4;	        ataRaw.head    	= pPart->dospt_startHead;                ataRaw.sector  	= pPart->dospt_startSec & 0x0f;                ataRaw.pBuf	= dosVolBootSec;                ataRawio (ctrl, drive, &ataRaw); /* read the boot sector */		offset = pPart->dospt_absSec;	        if (strncmp((char *)&dosVolBootSec[3], VXEXT, 					 strlen(VXEXT)) == 0)		    {		    useLongNames = TRUE;		    }                if (vxsysDebug)            	    printErr ("UseLongNames is %s\n", 			      (useLongNames) ? "TRUE":"FALSE");		}	    else  /* disk is formatted with vxWorks without partition */		{	        if (strncmp(pSys, VXEXT, strlen(VXEXT)) == 0)		    {		    useLongNames = TRUE;		    }                if (vxsysDebug)            	    printErr ("UseLongNames is %s\n", 			      (useLongNames) ? "TRUE":"FALSE");                ataRaw.cylinder   = 0;	/* read the dosFs volume boot sector */                ataRaw.head       = 0;                ataRaw.sector     = 1;                ataRaw.pBuf       = dosVolBootSec;                ataRaw.nSecs      = 1;                ataRaw.direction  = 0;                ataRawio (ctrl, drive, &ataRaw);		}	                /*             * Below, we attempt to avoid corrupting a FAT32 image.             * For FAT32, the 16bit sectors per FAT field (at offset             * 0x16 in a MSDOS FAT volumes boot record) will allways             * be zero.  For FAT12, FAT16 it is always non-zero.             * We will not continue if this offset is zero.             */            if ((UINT16) (0x0000) == (UINT16)(dosVolBootSec [0x16]))                 {                printErr ("\nThis appears to be a FAT32 volume.\n");                printErr ("Sectors per FAT, offset 0x16 in the volumes "                          "boot record is zero.\n");                printErr ("mkbootAta supports only FAT16 or FAT12.\n");                printErr ("dosFsVolFormat can force a FAT type.\n");                free (dosVolBootSec);                free (lbaSectorOne);                return (ERROR);                }            if (vxsysBootsec)	        {	        dosVolBootSec[0] = 0xeb;	/* modify the boot sector */	        dosVolBootSec[1] = 0x3c;	        dosVolBootSec[2] = 0x90;                bcopy (bootStrap, (char *)&dosVolBootSec[0x3e], 				sizeof (bootStrap));                ataRaw.direction  = 1;		/* write the boot sector */                ataRawio (ctrl, drive, &ataRaw);	        }	    if ((pBlkDev = ataDevCreate (ctrl, drive, 0, offset)) == NULL)		{		printErr ("Error during fdDevCreate: %x\n", errnoGet ());                free (dosVolBootSec);                free (lbaSectorOne);		return (ERROR);		}	    break;#ifdef INCLUDE_TFFS	case VXSYS_TFFS:            if ((UINT)drive >= TFFS_MAX_DRIVES)	        {	        printErr ("drive is out of range (0-%d).\n", 				TFFS_MAX_DRIVES-1);                free (dosVolBootSec);                free (lbaSectorOne);	        return (ERROR);	        }	    /* mount the TFFS */	    if ((pBlkDev = tffsDevCreate (drive, removable)) == NULL)		{		printErr ("Error during fdDevCreate: %x\n", errnoGet ());                free (dosVolBootSec);                free (lbaSectorOne);		return (ERROR);		}            /* read the partition table */            tffsRawio (drive, TFFS_ABS_READ, 0, 1, (int)&lbaSectorOne);	    offset	= 0;	    pSys	= &lbaSectorOne[DOS_BOOT_SYS_ID];	    pPart	= (DOS_PART_TBL *)&lbaSectorOne[DOS_BOOT_PART_TBL];    	    if ((strncmp(pSys, VXDOS, strlen(VXDOS)) != 0) &&        	(strncmp(pSys, VXEXT, strlen(VXEXT)) != 0))        	{	        for (ix = 0; ix < 4; ix++)		    {		    if (pPart->dospt_status == PART_IS_BOOTABLE)		        if ((pPart->dospt_type == PART_TYPE_DOS12 ) ||		            (pPart->dospt_type == PART_TYPE_DOS3  ) ||		            (pPart->dospt_type == PART_TYPE_DOS4  ) ||		            (pPart->dospt_type == PART_TYPE_DOS32 ) ||		            (pPart->dospt_type == PART_TYPE_DOS32X) ||		            (pPart->dospt_type == PART_TYPE_WIN95_D4))			    {			    found = TRUE;			    break;			    }		    pPart++;		    }	    	        if (found)		    offset = pPart->dospt_absSec;		}            /* read the boot sector */            tffsRawio (drive, TFFS_ABS_READ, offset, 1, (int)&dosVolBootSec);	    if (strncmp((char *)&dosVolBootSec[3], VXEXT, strlen(VXEXT)) == 0)		{		useLongNames = TRUE;		}            if (vxsysDebug)                printErr ("UseLongNames is %s\n", 			  (useLongNames) ? "TRUE":"FALSE");            /*             * Below, we attempt to avoid corrupting a FAT32 image.             * For FAT32, the 16bit sectors per FAT field (at offset             * 0x16 in a MSDOS FAT volumes boot record) will allways             * be zero.  For FAT12, FAT16 it is always non-zero.             * We will not continue if this offset is zero.             */            if ((UINT16)(0x0000) == (UINT16)(dosVolBootSec [0x16]))                 {                printErr ("\nThis appears to be a FAT32 volume.\n");                printErr ("Sectors per FAT, offset 0x16 in the volumes "                          "boot record is zero.\n");                printErr ("mkbootTffs supports only FAT16 or FAT12.\n");                printErr ("dosFsVolFormat can force a FAT type.\n");                free (dosVolBootSec);                free (lbaSectorOne);                return (ERROR);                }            if (vxsysBootsec)	        {	        dosVolBootSec[0] = 0xeb;	/* modify the boot sector */	        dosVolBootSec[1] = 0x3c;	        dosVolBootSec[2] = 0x90;                bcopy (bootStrap, (char *)&dosVolBootSec[0x3e], 				sizeof (bootStrap));                /* write the boot sector */                tffsRawio (drive, TFFS_ABS_WRITE, offset, 1, 				(int)&dosVolBootSec);	        }	    break;#endif /*INCLUDE_TFFS */	default:	    printErr ("unknown device (0-1).\n");            free (dosVolBootSec);            free (lbaSectorOne);	    return (ERROR);	}    if (vxsysBootrom)	{        /* read the header to get a text-size and a data-size */        if ((inFd = open (in, O_RDONLY, 0644)) == ERROR)            {            printErr ("Can't open \"%s\"\n", in);            free (dosVolBootSec);            free (lbaSectorOne);	    return (ERROR);	    }        if ((read (inFd, (char *)&hdr, sizeof(hdr))) == ERROR)	    {	    printErr ("Error during read header: %x\n", errnoGet ());            free (dosVolBootSec);            free (lbaSectorOne);	    return (ERROR);	    }        if (vxsysDebug)            printErr ("text=0x%x data=0x%x\n", hdr.a_text, hdr.a_data);	/* check the magic number to find out if it is a.out or binary */	if ((hdr.a_magic & AOUT_MAGIC_MASK) == AOUT_MAGIC)	/* a.out */	    {            bytes = hdr.a_text + hdr.a_data;	    }	else							/* binary */	    {            bytes = ROM_SIZE;	    close (inFd);	    if ((inFd = open (in, O_RDONLY, 0644)) == ERROR)		{		printErr ("Can't open \"%s\"\n", in);                free (dosVolBootSec);                free (lbaSectorOne);		return (ERROR);		}	    }                                                                               if (NULL == dosFsVolDescGet(VXSYS_DOSDEV, (u_char **)&pSys))            {            if ((dosFsDevInit (VXSYS_DOSDEV, pBlkDev, NULL)) == NULL)	        {	        printErr ("Error during dosFsDevInit: %x\n", errnoGet ());                free (dosVolBootSec);                free (lbaSectorOne);	        return (ERROR);	        }            }	if (useLongNames == FALSE)	    {            if ((outFd = open (VXSYS_FILE, O_CREAT | O_RDWR, 0644)) == ERROR)	        {                close (inFd);                printErr ("Can't open \"%s\"\n", VXSYS_FILE);                free (dosVolBootSec);                free (lbaSectorOne);	        return (ERROR);	        }	    }	else /* useLongNames file name */	    {            if ((outFd = open (VXSYS_FILE_VXEXT, O_CREAT | O_RDWR, 0644)) 		== ERROR)	        {                close (inFd);                printErr ("Can't open \"%s\"\n", VXSYS_FILE);                free (dosVolBootSec);                free (lbaSectorOne);	        return (ERROR);	        }	    }        if (ioctl (outFd, FIOCONTIG, bytes) == ERROR)	    {	    printErr ("Error during ioctl FIOCONTIG: %x\n", errnoGet ());            free (dosVolBootSec);            free (lbaSectorOne);	    return (ERROR);	    }        /* read text and data, write them to the diskette */        for (ix = 0; ix < bytes; ix += MAX_SECTOR_SIZE)	    {	    if (read (inFd, dosVolBootSec, MAX_SECTOR_SIZE) == ERROR)	        {	        printErr ("Error during read file: %x\n", errnoGet ());                free (dosVolBootSec);                free (lbaSectorOne);	        return (ERROR);	        }	    if (write (outFd, dosVolBootSec, MAX_SECTOR_SIZE) == ERROR)	        {	        printErr ("Error during write fd: %x\n", errnoGet ());                free (dosVolBootSec);                free (lbaSectorOne);	        return (ERROR);	        }	    }        free (dosVolBootSec);        free (lbaSectorOne);	iosDevDelete (iosDevFind (VXSYS_DOSDEV,&pSys));        close (inFd);        close (outFd);        }    return (OK);    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
毛片av中文字幕一区二区| 国产成人精品影视| 国产成人一级电影| 欧美视频你懂的| 中文字幕不卡三区| 蜜桃av一区二区| 欧美日韩高清不卡| 亚洲天堂成人在线观看| 国产乱对白刺激视频不卡| 欧美日韩久久久久久| 亚洲欧美在线另类| 国产成人精品www牛牛影视| 91精品国产综合久久精品app| 中文字幕亚洲欧美在线不卡| 久久se精品一区二区| 欧美日韩国产三级| 亚洲国产成人av网| 91福利精品视频| 亚洲女人****多毛耸耸8| 国产成人在线视频网址| 精品国产一区a| 国精品**一区二区三区在线蜜桃| 宅男噜噜噜66一区二区66| 一区二区激情小说| 色综合久久中文综合久久97 | 自拍偷拍欧美激情| 国产成都精品91一区二区三| 精品电影一区二区三区| 久久精品国产精品青草| 欧美一区二区三区日韩| 日韩国产欧美视频| 日韩欧美精品在线视频| 美女国产一区二区三区| 欧美电影精品一区二区| 久久99精品久久久久久| 精品国产成人在线影院| 国产专区综合网| 国产欧美日韩视频在线观看| 国产成人精品亚洲日本在线桃色| 久久这里只有精品首页| 高清视频一区二区| 综合激情网...| 欧美三日本三级三级在线播放| 亚洲在线视频网站| 欧美一区二区三区视频| 久久99九九99精品| 国产精品色呦呦| 99精品1区2区| 午夜精品福利在线| 久久无码av三级| 99精品热视频| 一级做a爱片久久| 日韩一区二区高清| 成人免费视频播放| 亚洲成a人片在线观看中文| 欧美一级理论片| 成人黄色免费短视频| 亚洲色图欧洲色图| 日韩一级欧美一级| 成人99免费视频| 婷婷综合另类小说色区| 国产日韩欧美综合在线| 91成人免费电影| 精品综合久久久久久8888| 国产精品久久久久久户外露出 | 亚洲电影在线免费观看| 日韩女优毛片在线| 99热在这里有精品免费| 日本在线播放一区二区三区| 久久精品夜色噜噜亚洲aⅴ| 91农村精品一区二区在线| 蜜桃一区二区三区四区| 国产精品久久久久精k8| 欧美一区二区免费观在线| www.久久精品| 免费观看一级欧美片| 亚洲三级视频在线观看| 2021久久国产精品不只是精品| 91在线精品一区二区三区| 麻豆91在线播放| 亚洲影视在线播放| 国产女主播视频一区二区| 欧美日韩国产高清一区二区 | 日韩精品91亚洲二区在线观看| 国产亚洲精品资源在线26u| 欧美无人高清视频在线观看| 成人a免费在线看| 久久成人免费网| 日日夜夜精品免费视频| 亚洲黄色免费电影| 国产亚洲欧美一级| 精品少妇一区二区三区日产乱码| 91福利国产精品| 91香蕉国产在线观看软件| 国产一区二区三区免费看| 亚洲成人免费影院| 亚洲最大成人网4388xx| 国产精品不卡在线观看| 26uuu精品一区二区| 日韩欧美国产综合一区| 欧美日韩一区三区四区| 色94色欧美sute亚洲线路一ni| 成人综合日日夜夜| 国产成人亚洲综合a∨婷婷| 麻豆一区二区三区| 久久69国产一区二区蜜臀| 日本欧美在线看| 免费不卡在线视频| 麻豆精品在线看| 久久成人免费网| 视频在线观看一区二区三区| 中文字幕中文字幕在线一区| 欧美精品一区二区不卡| 日韩欧美的一区二区| 日韩欧美一区在线| 亚洲精品一区二区三区在线观看 | 中文字幕永久在线不卡| 中文天堂在线一区| 18欧美亚洲精品| 亚洲日本成人在线观看| 亚洲特级片在线| 玉足女爽爽91| 午夜欧美在线一二页| 日本在线不卡一区| 国产综合久久久久久鬼色| 国产91在线观看| 91浏览器在线视频| 欧美裸体一区二区三区| 日韩一区二区免费电影| 久久久久久久久久看片| 国产精品久久夜| 亚洲一区二区在线观看视频| 亚洲国产精品影院| 日本成人中文字幕| 国产成人免费在线视频| gogogo免费视频观看亚洲一| 一本一道波多野结衣一区二区| 日本道免费精品一区二区三区| 欧美日韩一区二区不卡| 欧美一级xxx| 中文字幕精品在线不卡| 一区二区三区四区精品在线视频 | 91国产免费看| 欧美一级二级在线观看| 国产三级精品视频| 亚洲乱码国产乱码精品精可以看| 婷婷丁香激情综合| 国产精品影视在线| 欧美人体做爰大胆视频| 精品国产百合女同互慰| 成人欧美一区二区三区小说 | 99精品久久免费看蜜臀剧情介绍| 欧美视频一区二区| 久久蜜臀中文字幕| 亚洲精品成人精品456| 精品无人码麻豆乱码1区2区| av中文一区二区三区| 欧美一区二区三区在线电影| 日韩一区中文字幕| 韩国一区二区三区| 欧美视频在线播放| 国产精品国产三级国产aⅴ原创 | 一本久久综合亚洲鲁鲁五月天 | 日韩av在线播放中文字幕| 成人精品免费视频| 精品欧美一区二区三区精品久久| 中文字幕在线观看不卡视频| 男人的天堂亚洲一区| 色悠久久久久综合欧美99| 久久亚洲综合色一区二区三区| 亚洲综合久久av| thepron国产精品| 国产视频亚洲色图| 日本不卡一区二区三区| 一本到高清视频免费精品| 欧美国产日韩a欧美在线观看| 美国十次综合导航| 精品婷婷伊人一区三区三| 亚洲三级小视频| jizz一区二区| 国产精品色呦呦| 国产精品自拍一区| 日韩免费视频线观看| 午夜天堂影视香蕉久久| 色综合夜色一区| 亚洲人成人一区二区在线观看| 国产成人免费视频| 欧美刺激午夜性久久久久久久| 日本美女视频一区二区| 欧美写真视频网站| 亚洲一区在线观看网站| 色狠狠一区二区三区香蕉| 综合久久综合久久| 一本一本大道香蕉久在线精品| 亚洲欧美影音先锋| 色婷婷亚洲婷婷| 亚洲一区二区三区四区在线| 在线观看亚洲专区| 亚洲电影一区二区三区| 欧美久久久久中文字幕|