Lines Matching refs:drive

6518   Bit8u    drive, num_sectors, sector, head, status, mod;
6583 drive = GET_ELDL();
6584 get_hd_geometry(drive, &hd_cylinders, &hd_heads, &hd_sectors);
6642 outLBA(cylinder,hd_heads,head,hd_sectors,sector,drive);
6648 outb(0x01f6, 0xa0 | ((drive & 0x01)<<4) | (head & 0x0f));
6729 drive = GET_ELDL ();
6730 get_hd_geometry(drive, &hd_cylinders, &hd_heads, &hd_sectors);
6879 drive = GET_ELDL ();
6880 get_hd_geometry(drive, &hd_cylinders, &hd_heads, &hd_sectors);
6993 drive = GET_ELDL();
6994 get_hd_geometry(drive, &hd_cylinders, &hd_heads, &hd_sectors);
7042 get_hd_geometry(drive, hd_cylinders, hd_heads, hd_sectors)
7043 Bit8u drive;
7054 if (drive == 0x80) {
7106 void floppy_prepare_controller(drive)
7107 Bit16u drive;
7118 if (drive)
7123 dor |= drive;
7152 floppy_media_known(drive)
7153 Bit16u drive;
7159 if (drive)
7166 if (drive)
7179 floppy_media_sense(drive)
7180 Bit16u drive;
7186 if (floppy_drive_recal(drive) == 0) {
7222 if (drive == 0)
7284 if (drive == 0)
7295 floppy_drive_recal(drive)
7296 Bit16u drive;
7301 floppy_prepare_controller(drive);
7305 outb(0x03f5, drive); // 0=drive0, 1=drive1
7326 if (drive) {
7342 floppy_drive_exists(drive)
7343 Bit16u drive;
7349 if (drive == 0)
7363 Bit8u drive, num_sectors, track, sector, head, status;
7377 drive = GET_ELDL();
7378 if (drive > 1) {
7386 if (drive == 0)
7399 set_diskette_current_cyl(drive, 0); // current cylinder
7418 drive = GET_ELDL();
7420 if ((drive > 1) || (head > 1) || (sector == 0) ||
7431 if (floppy_drive_exists(drive) == 0) {
7440 if (floppy_media_known(drive) == 0) {
7441 if (floppy_media_sense(drive) == 0) {
7511 floppy_prepare_controller(drive);
7515 outb(0x03f5, (head << 2) | drive); // HD DR1 DR2
7586 set_diskette_current_cyl(drive, track);
7645 floppy_prepare_controller(drive);
7649 outb(0x03f5, (head << 2) | drive); // HD DR1 DR2
7725 set_diskette_current_cyl(drive, track);
7734 set_diskette_current_cyl(drive, track);
7748 drive = GET_ELDL();
7750 if ((drive > 1) || (head > 1) || (track > 79) ||
7758 if (floppy_drive_exists(drive) == 0) {
7766 if (floppy_media_known(drive) == 0) {
7767 if (floppy_media_sense(drive) == 0) {
7812 floppy_prepare_controller(drive);
7816 outb(0x03f5, (head << 2) | drive); // HD DR1 DR2
7886 set_diskette_current_cyl(drive, 0);
7893 drive = GET_ELDL();
7895 if (drive > 1) {
7914 if (drive == 0)
7991 drive = GET_ELDL();
7992 if (drive > 1) {
8000 if (drive == 0)
8016 drive = GET_ELDL();
8017 if (drive > 1) {
8089 set_diskette_current_cyl(drive, cyl)
8090 Bit8u drive;
8093 if (drive > 1)
8095 write_byte(0x0040, 0x0094+drive, cyl);
8099 determine_floppy_media(drive)
8100 Bit16u drive;
8106 if (drive==1)
8112 if (drive == 0) {
8375 ;; Set the magic number in ax and the boot drive in dl.
8735 ;; check if access to the emulated drive
8739 cmp al,dl ;; int13 on emulated drive
8771 dec dl ;; real drive is dl - 1
8920 mov 0x043e, al ;; drive 0 & 1 uncalibrated, no interrupt has occurred
8940 mov al, #0x10 ;; get CMOS diskette drive type
8946 shr al, #4 ;; look at top 4 bits for drive 0
8955 and al, #0x0f ;; look at bottom 4 bits for drive 1
8968 ;; drive type has not been determined,
9061 mov (0x003d + 0x08), al ;; drive control byte
9207 mov (0x004d + 0x08), al ;; drive control byte
9392 ;; chosen so it could be divided by either 3 to drive the 5Mhz CPU
9393 ;; at the time, or 4 to drive the CGA video adapter. The div3
11409 ;; Since no provisions are made for multiple drive types, most
11441 ;; Since no provisions are made for multiple drive types, most
11457 db 4 ;; drive type in cmos
11641 ;; time to turn off drive(s)?