Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linux 0.11 ÄÚºËѧϰ floppy.c£¬Çý¶¯ÄãµÄÈíÅÌ


/*
 *  linux/kernel/floppy.c
 *
 *  (C) 1991  Linus Torvalds
 */
/*
 * 02.12.91 - Changed to static variables to indicate need for reset
 * and recalibrate. This makes some things easier (output_byte reset
 * checking etc), and means less interrupt jumping in case of errors,
 * so the code is hopefully easier to understand.
 */
/*
 * This file is certainly a mess. I've tried my best to get it working,
 * but I don't like programming floppies, and I have only one anyway.
 * Urgel. I should check for more errors, and do more graceful error
 * recovery. Seems there are problems with several drives. I've tried to
 * correct them. No promises. 
 */
/*
 * As with hd.c, all routines within this file can (and will) be called
 * by interrupts, so extreme caution is needed. A hardware interrupt
 * handler may not sleep, or a kernel panic will happen. Thus I cannot
 * call "floppy-on" directly, but have to set a special timer interrupt
 * etc.
 *
 * Also, I'm not certain this works on more than 1 floppy. Bugs may
 * abund.
 */
#include <linux/sched.h>
#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/fdreg.h> // ÈíÇýÍ·Îļþ£¬ÆäÖаüº¬ÈíÇýµÄ³£Óú¯ÊýµÄ¶¨Òå
#include <asm/system.h>
#include <asm/io.h>
#include <asm/segment.h>
#define MAJOR_NR 2 // ÈíÇýÖ÷É豸ºÅ
#include "blk.h"
/* È«¾Ö±êÖ¾±äÁ¿ */
static int recalibrate = 0; // ÐèÒªÖØÐÂУÕý
static int reset = 0; // ÐèÒªÖØÐÂÖÃλ
static int seek = 0; // Ñ°µÀ
extern unsigned char current_DOR; // ÔÚÎļþsched.cÖж¨Òå
#define immoutb_p(val,port) \ // ×Ö½ÚvalÖ±½ÓÊä³öµ½port
__asm__("outb %0,%1\n\tjmp 1f\n1:\tjmp 1f\n1:"::"a" ((char) (val)),"i" (port))
#define TYPE(x) ((x)>>2) // ÈíÇýÀàÐÍ£¬2--1.2MB£¬7--1.44MB
#define DRIVE(x) ((x)&0x03) // ÈíÇýÐòÁкÅ0-3¶ÔÓ¦A-D
/*
 * Note that MAX_ERRORS=8


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì (Æß) SDPЭÒé

Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖЭÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀЭÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......

Linux Ó²Á´½ÓÓëÈíÁ´½Ó½éÉÜ

¼òÒª½éÉÜ£º
Á´½ÓÓÐÁ½ÖÖ£¬Ò»ÖÖ±»³ÆΪӲÁ´½Ó£¨Hard Link£©£¬ÁíÒ»ÖÖ±»³ÆΪ·ûºÅÁ´½Ó£¨Symbolic
Link£©¡£ÈíÁ´½ÓÏ൱ÓÚwindowsÖеĿì½Ý·½Ê½£¬Ó²Á´½ÓÏ൱ÓÚÒ»¸öÊý¾Ýͬ²½±¸·Ý£¬Êý¾Ý´æ·ÅÔÚÁ½´¦£¬Ó븴ÖƲ»Í¬µÄÊÇÁ½´¦Ö®¼ä´æÔÚͬ²½»úÖÆ£¬Ò»´¦Êý¾ÝµÄ¸Ä±ä»áʵʱͬ²½µ½ÁíÒ»´¦,ÁíÍ⣬һ´¦Êý¾ÝÈç¹û±»É¾³ýÁË£¬²»»áÓ°Ïìµ½ÁíÒ»´¦µÄÊý¾Ý¡£
ÏÞ ......

VMwareÈýÖÖÍøÂçģʽÓëlinuxÏÂʹÓÃʵÀý


VMwareÈýÖÖÍøÂçģʽ¸ù±¾Çø±ð(ͼ)
 
Ìáµ½VMware´ó¼Ò¾ÍÏëÆðÁËÐéÄâ»ú¼¼Êõ£¬ÐéÄâ»ú¼¼ÊõÔÚ×î½üµÄ¼¸ÄêÖеõ½Á˹㷺µÄ·¢Õ¹£¬Ò»Ð©´óÐÍÍøÂç·þÎñÉ̶¼¿ªÊ¼²ÉÓÃÐéÄâ»ú¼¼Êõ£¬²»½ö½ÚÊ¡ÁËͶ×ʳɱ¾£¬¸ü½ÚÔ¼ÁËÄÜÔ´µÄÏûºÄ¡£
ÎÒÃÇÖªµÀVMwareÒ²·Ö¼¸ÖÖ°æ±¾£¬ÆÕͨÓû§×î³£ÓõľÍÊÇWorkstation£¬µ«ÊDz»¹ÜʹÓÃÄÄÖÖ°æ±¾£¬ÎÒÃǶ¼ÄÜ·¢ÏÖÔÚ°²× ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ