Home | History | Annotate | Download | only in bios

Lines Matching defs:Bit16u

269 typedef unsigned short Bit16u;
281 Bit16u seg;
282 Bit16u offset;
283 Bit16u value;
284 Bit16u count;
320 Bit16u dseg;
321 Bit16u doffset;
322 Bit16u sseg;
323 Bit16u soffset;
324 Bit16u count;
367 Bit16u dseg;
368 Bit16u doffset;
369 Bit16u sseg;
370 Bit16u soffset;
371 Bit16u count;
417 Bit16u seg;
418 Bit16u offset;
443 Bit16u seg;
444 Bit16u offset;
620 Bit16u ticks_low;
621 Bit16u ticks_high;
629 Bit16u heads; // # heads
630 Bit16u cylinders; // # cylinders
631 Bit16u spt; // # sectors / track
636 Bit16u iobase1;
637 Bit16u iobase2;
644 Bit16u options;
645 Bit16u reserved;
652 Bit16u iobase1; // IO Base 1
653 Bit16u iobase2; // IO Base 2
663 Bit16u blksize; // block size
690 Bit16u trsfsectors;
702 Bit16u device_spec;
704 Bit16u buffer_segment;
705 Bit16u load_segment;
706 Bit16u sector_count;
744 Bit16u count;
745 Bit16u offset;
746 Bit16u segment;
755 Bit16u size;
756 Bit16u infos;
762 Bit16u blksize;
763 Bit16u dpte_offset;
764 Bit16u dpte_segment;
765 Bit16u key;
768 Bit16u reserved2;
784 Bit16u di, si, bp, sp;
785 Bit16u bx, dx, cx, ax;
788 Bit16u filler[4];
801 Bit16u di, filler1, si, filler2, bp, filler3, sp, filler4;
802 Bit16u bx, filler5, dx, filler6, cx, filler7, ax, filler8;
807 Bit16u filler1;
809 Bit16u filler2;
811 Bit16u filler3;
813 Bit16u filler4;
821 Bit16u flags;
837 Bit16u ip;
838 Bit16u cs;
843 Bit16u type;
844 Bit16u flags;
856 static Bit16u inw();
862 static Bit16u read_word();
887 static Bit16u get_CS();
888 static Bit16u get_SS();
922 Bit16u ata_cmd_non_data();
923 Bit16u ata_cmd_data_in();
924 Bit16u ata_cmd_data_out();
925 Bit16u ata_cmd_packet();
927 Bit16u atapi_get_sense();
928 Bit16u atapi_is_ready();
929 Bit16u atapi_is_cdrom();
939 Bit16u cdrom_boot();
1028 Bit16u normal;
1029 Bit16u shift;
1030 Bit16u control;
1031 Bit16u alt;
1127 Bit16u port;
1143 Bit16u
1145 Bit16u port;
1163 Bit16u port;
1185 Bit16u port;
1186 Bit16u val;
1260 Bit16u count;
1273 Bit16u seg;
1274 Bit16u offset;
1294 Bit16u
1296 Bit16u seg;
1297 Bit16u offset;
1319 Bit16u seg;
1320 Bit16u offset;
1345 Bit16u seg;
1346 Bit16u offset;
1347 Bit16u data;
1369 Bit16u
1377 Bit16u
1408 Bit16u base_port;
1414 Bit16u base_port;
1420 Bit16u base_port;
1426 Bit16u base_port;
1456 Bit16u action;
1475 Bit16u action;
1491 Bit16u action;
1508 Bit16u action;
1524 Bit16u action;
1525 Bit16u segment;
1526 Bit16u offset;
1538 Bit16u ticks;
1604 Bit16u ticks, count;
1606 Bit16u i;
1624 Bit16u action;
1630 Bit16u *arg_ptr;
1631 Bit16u arg_seg, arg, nibble, hibyte, shift_count, format_width, hexadd;
1749 Bit16u max;
1901 Bit16u status;
1915 Bit16u status;
1971 Bit16u count = 0;
1972 Bit16u ss = get_SS();
2005 Bit16u i; ipl_entry_t *e;
2007 Bit16u count;
2008 Bit16u ss = get_SS();
2022 Bit16u count;
2026 Bit16u ss = get_SS();
2027 Bit16u valid_choice = 0;
2061 memcpyb(ss, &description, (Bit16u)(e.description >> 16), (Bit16u)(e.description & 0xffff), 32);
2100 Bit16u type;
2102 Bit16u ss = get_SS();
2111 memcpyb(ss, &description, (Bit16u)(e->description >> 16), (Bit16u)(e->description & 0xffff), 32);
2125 Bit16u type; Bit8u reason;
2146 Bit16u code;
2381 Bit16u ebda_seg=read_word(0x0040,0x000E);
2434 Bit16u base;
2435 Bit16u timeout;
2438 Bit16u status;
2480 Bit16u ebda_seg=read_word(0x0040,0x000E);
2516 Bit16u iobase1, iobase2;
2572 Bit16u cylinders, heads, spt, blksize;
2648 cylinders = (Bit16u)((Bit32u)(cylinders)*16/15);
2678 Bit16u blksize;
2704 Bit16u ataversion;
2713 ataversion=((Bit16u)(read_byte(get_SS(),buffer+161))<<8)|read_byte(get_SS(),buffer+160);
2746 printf(" ATA-%d Hard-Disk (%4u MBytes)\n", version, (Bit16u)sizeinmb);
2748 printf(" ATA-%d Hard-Disk (%4u GBytes)\n", version, (Bit16u)(sizeinmb>>10));
2785 Bit16u device;
2787 Bit16u ebda_seg=read_word(0x0040,0x000E);
2788 Bit16u iobase1, iobase2;
2791 Bit16u max;
2838 Bit16u ata_cmd_non_data()
2853 Bit16u ata_cmd_data_in(device, command, count, cylinder, head, sector, lba_low, lba_high, segment, offset)
2854 Bit16u device, command, count, cylinder, head, sector, segment, offset;
2857 Bit16u ebda_seg=read_word(0x0040,0x000E);
2858 Bit16u iobase1, iobase2, blksize;
2894 sector = (Bit16u) (lba_low & 0x000000ffL);
2895 cylinder = (Bit16u) ((lba_low>>8) & 0x0000ffffL);
2896 head = ((Bit16u) ((lba_low>>24) & 0x0000000fL)) | ATA_CB_DH_LBA;
3004 Bit16u
3005 Bit16u device, command, count, cylinder, head, sector, segment, offset;
3008 Bit16u ebda_seg=read_word(0x0040,0x000E);
3009 Bit16u iobase1, iobase2, blksize;
3045 sector = (Bit16u) (lba_low & 0x000000ffL);
3046 cylinder = (Bit16u) ((lba_low>>8) & 0x0000ffffL);
3047 head = ((Bit16u) ((lba_low>>24) & 0x0000000fL)) | ATA_CB_DH_LBA;
3153 Bit16u ata_cmd_packet(device, cmdlen, cmdseg, cmdoff, header, length, inout, bufseg, bufoff)
3155 Bit16u device,cmdseg, cmdoff, bufseg, bufoff;
3156 Bit16u header;
3159 Bit16u ebda_seg=read_word(0x0040,0x000E);
3160 Bit16u iobase1, iobase2;
3161 Bit16u lcount, lbefore, lafter, count;
3248 Bit16u loops = 0;
3277 lcount = ((Bit16u)(inb(iobase1 + ATA_CB_CH))<<8)+inb(iobase1 + ATA_CB_CL);
3429 Bit16u
3431 Bit16u device;
3451 Bit16u
3453 Bit16u device;
3463 Bit16u ebda_seg = read_word(0x0040,0x000E);
3530 Bit16u
3534 Bit16u ebda_seg=read_word(0x0040,0x000E);
3563 Bit16u ebda_seg=read_word(0x0040,0x000E);
3572 Bit16u ebda_seg=read_word(0x0040,0x000E);
3580 Bit16u ebda_seg=read_word(0x0040,0x000E);
3590 Bit16u
3593 Bit16u ebda_seg=read_word(0x0040,0x000E);
3596 Bit16u boot_segment, nbsectors, i, error;
3742 Bit16u ds; // previous DS:, DS set to 0x0000 by asm wrapper
3745 Bit16u addr,timer,val16;
3818 Bit16u ES, DS, FLAGS;
3820 Bit16u ebda_seg=read_word(0x0040,0x000E);
3822 Bit16u base15_00;
3824 Bit16u ss;
3825 Bit16u CX,DX;
3827 Bit16u bRegister;
4130 Bit16u ES, DS, FLAGS;
4132 Bit16u ebda_seg=read_word(0x0040,0x000E);
4134 Bit16u mouse_driver_seg;
4135 Bit16u mouse_driver_offset;
4446 Bit16u ES;
4447 Bit16u DI;
4452 Bit16u type;
4473 Bit16u ES, DS, FLAGS;
4477 Bit16u CX,DX;
4670 Bit16u DI, SI, BP, SP, BX, DX, CX, AX, FLAGS;
4673 Bit16u kbd_code, max;
4821 Bit16u buffer_start, buffer_end, buffer_head, buffer_tail;
4822 Bit16u ss;
4920 Bit16u ss;
4946 Bit16u DI, SI, BP, SP, BX, DX, CX, AX;
5132 Bit16u buffer_start, buffer_end, buffer_head, buffer_tail, temp_tail;
5163 Bit16u make_farcall, Z, Y, X, status;
5165 Bit16u ebda_seg=read_word(0x0040,0x000E);
5213 Bit16u EHAX, DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS;
5216 Bit16u ebda_seg=read_word(0x0040,0x000E);
5217 Bit16u cylinder, head, sector;
5218 Bit16u segment, offset;
5219 Bit16u npc, nph, npspt, nlc, nlh, nlspt;
5220 Bit16u size, count;
5264 cylinder |= ( ((Bit16u) GET_CL()) << 2) & 0x300;
5384 count=read_word(DS, SI+(Bit16u)&Int13Ext->count);
5385 segment=read_word(DS, SI+(Bit16u)&Int13Ext->segment);
5386 offset=read_word(DS, SI+(Bit16u)&Int13Ext->offset);
5389 lba_high=read_dword(DS, SI+(Bit16u)&Int13Ext->lba2);
5396 lba_low=read_dword(DS, SI+(Bit16u)&Int13Ext->lba1);
5414 write_word(DS, SI+(Bit16u)&Int13Ext->count, count);
5436 size=read_word(DS,SI+(Bit16u)&Int13DPT->size);
5444 Bit16u blksize;
5453 write_word(DS, SI+(Bit16u)&Int13DPT->size, 0x1a);
5456 write_word(DS, SI+(Bit16u)&Int13DPT->infos, 0x00); // geometry is invalid
5457 write_dword(DS, SI+(Bit16u)&Int13DPT->cylinders, 0x3fff);
5461 write_word(DS, SI+(Bit16u)&Int13DPT->infos, 0x02); // geometry is valid
5462 write_dword(DS, SI+(Bit16u)&Int13DPT->cylinders, (Bit32u)npc);
5464 write_dword(DS, SI+(Bit16u)&Int13DPT->heads, (Bit32u)nph);
5465 write_dword(DS, SI+(Bit16u)&Int13DPT->spt, (Bit32u)npspt);
5466 write_dword(DS, SI+(Bit16u)&Int13DPT->sector_count1, lba_low);
5467 write_dword(DS, SI+(Bit16u)&Int13DPT->sector_count2, lba_high);
5468 write_word(DS, SI+(Bit16u)&Int13DPT->blksize, blksize);
5474 Bit16u iobase1, iobase2, options;
5476 write_word(DS, SI+(Bit16u)&Int13DPT->size, 0x1e);
5478 write_word(DS, SI+(Bit16u)&Int13DPT->dpte_segment, ebda_seg);
5479 write_word(DS, SI+(Bit16u)&Int13DPT->dpte_offset, &EbdaData->ata.dpte);
5519 Bit16u iobase1;
5525 write_word(DS, SI+(Bit16u)&Int13DPT->size, 0x42);
5526 write_word(DS, SI+(Bit16u)&Int13DPT->key, 0xbedd);
5527 write_byte(DS, SI+(Bit16u)&Int13DPT->dpi_length, 0x24);
5528 write_byte(DS, SI+(Bit16u)&Int13DPT->reserved1, 0);
5529 write_word(DS, SI+(Bit16u)&Int13DPT->reserved2, 0);
5532 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[0], 'I');
5533 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[1], 'S');
5534 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[2], 'A');
5535 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[3], 0);
5540 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[0], 'A');
5541 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[1], 'T');
5542 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[2], 'A');
5543 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[3], 0);
5546 write_word(DS, SI+(Bit16u)&Int13DPT->iface_path[0], iobase1);
5547 write_word(DS, SI+(Bit16u)&Int13DPT->iface_path[2], 0);
5548 write_dword(DS, SI+(Bit16u)&Int13DPT->iface_path[4], 0L);
5553 write_byte(DS, SI+(Bit16u)&Int13DPT->device_path[0], device%2);
5554 write_byte(DS, SI+(Bit16u)&Int13DPT->device_path[1], 0);
5555 write_word(DS, SI+(Bit16u)&Int13DPT->device_path[2], 0);
5556 write_dword(DS, SI+(Bit16u)&Int13DPT->device_path[4], 0L);
5561 write_byte(DS, SI+(Bit16u)&Int13DPT->checksum, checksum);
5622 Bit16u EHBX, DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS;
5624 Bit16u ebda_seg=read_word(0x0040,0x000E);
5628 Bit16u
5697 count=read_word(DS, SI+(Bit16u)&Int13Ext->count);
5698 segment=read_word(DS, SI+(Bit16u)&Int13Ext->segment);
5699 offset=read_word(DS, SI+(Bit16u)&Int13Ext->offset);
5702 lba=read_dword(DS, SI+(Bit16u)&Int13Ext->lba2);
5709 lba=read_dword(DS, SI+(Bit16u)&Int13Ext->lba1);
5725 count = (Bit16u)(read_dword(ebda_seg, &EbdaData->ata.trsfbytes) >> 11);
5726 write_word(DS, SI+(Bit16u)&Int13Ext->count, count);
5801 size = read_word(DS,SI+(Bit16u)&Int13Ext->size);
5809 Bit16u cylinders, heads, spt, blksize;
5813 write_word(DS, SI+(Bit16u)&Int13DPT->size, 0x1a);
5814 write_word(DS, SI+(Bit16u)&Int13DPT->infos, 0x74); // removable, media change, lockable, max values
5815 write_dword(DS, SI+(Bit16u)&Int13DPT->cylinders, 0xffffffff);
5816 write_dword(DS, SI+(Bit16u)&Int13DPT->heads, 0xffffffff);
5817 write_dword(DS, SI+(Bit16u)&Int13DPT->spt, 0xffffffff);
5818 write_dword(DS, SI+(Bit16u)&Int13DPT->sector_count1, 0xffffffff); // FIXME should be Bit64
5819 write_dword(DS, SI+(Bit16u)&Int13DPT->sector_count2, 0xffffffff);
5820 write_word(DS, SI+(Bit16u)&Int13DPT->blksize, blksize);
5826 Bit16u iobase1, iobase2, options;
5828 write_word(DS, SI+(Bit16u)&Int13DPT->size, 0x1e);
5830 write_word(DS, SI+(Bit16u)&Int13DPT->dpte_segment, ebda_seg);
5831 write_word(DS, SI+(Bit16u)&Int13DPT->dpte_offset, &EbdaData->ata.dpte);
5867 Bit16u iobase1;
5873 write_word(DS, SI+(Bit16u)&Int13DPT->size, 0x42);
5874 write_word(DS, SI+(Bit16u)&Int13DPT->key, 0xbedd);
5875 write_byte(DS, SI+(Bit16u)&Int13DPT->dpi_length, 0x24);
5876 write_byte(DS, SI+(Bit16u)&Int13DPT->reserved1, 0);
5877 write_word(DS, SI+(Bit16u)&Int13DPT->reserved2, 0);
5880 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[0], 'I');
5881 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[1], 'S');
5882 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[2], 'A');
5883 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[3], 0);
5888 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[0], 'A');
5889 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[1], 'T');
5890 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[2], 'A');
5891 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[3], 0);
5894 write_word(DS, SI+(Bit16u)&Int13DPT->iface_path[0], iobase1);
5895 write_word(DS, SI+(Bit16u)&Int13DPT->iface_path[2], 0);
5896 write_dword(DS, SI+(Bit16u)&Int13DPT->iface_path[4], 0L);
5901 write_byte(DS, SI+(Bit16u)&Int13DPT->device_path[0], device%2);
5902 write_byte(DS, SI+(Bit16u)&Int13DPT->device_path[1], 0);
5903 write_word(DS, SI+(Bit16u)&Int13DPT->device_path[2], 0);
5904 write_dword(DS, SI+(Bit16u)&Int13DPT->device_path[4], 0L);
5909 write_byte(DS, SI+(Bit16u)&Int13DPT->checksum, checksum);
5976 Bit16u DS, ES, DI, SI, BP, SP, BX, DX, CX, AX, IP, CS, FLAGS;
5978 Bit16u ebda_seg=read_word(0x0040,0x000E);
6046 Bit16u DS, ES, DI, SI, BP, SP, BX, DX, CX, AX, IP, CS, FLAGS;
6048 Bit16u ebda_seg=read_word(0x0040,0x000E);
6050 Bit16u vheads, vspt, vcylinders;
6051 Bit16u head, sector, cylinder, nbsectors;
6053 Bit16u before, segment, offset;
6143 before= (Bit16u)vlba%4;
6150 atacmd[7]=((Bit16u)(elba-slba+1) & 0xff00) >> 8; // Sectors
6151 atacmd[8]=((Bit16u)(elba-slba+1) & 0x00ff); // Sectors
6250 Bit16u cylinder;
6251 Bit16u hd_heads;
6252 Bit16u head;
6253 Bit16u hd_sectors;
6254 Bit16u sector;
6255 Bit16u dl;
6303 Bit16u EHAX, DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS;
6308 Bit16u cyl_mod, ax;
6309 Bit16u max_cylinder, cylinder, total_sectors;
6310 Bit16u hd_cylinders;
6312 Bit16u val16;
6315 Bit16u tempbx;
6316 Bit16u dpsize;
6318 Bit16u count, segment, offset;
6320 Bit16u error;
6521 cylinder |= ( ((Bit16u) GET_CL()) << 2) & 0x300;
6831 Bit16u *hd_cylinders;
6836 Bit16u ss;
6837 Bit16u cylinders;
6894 Bit16u drive;
6940 Bit16u drive;
6943 Bit16u media_state_offset;
6967 Bit16u drive;
6970 Bit16u media_state_offset;
7083 Bit16u drive;
7086 Bit16u curr_cyl_offset;
7130 Bit16u drive;
7148 Bit16u DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS;
7151 Bit16u base_address, base_count, base_es;
7155 Bit16u es, last_addr;
7845 Bit16u DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS;
7887 Bit16u drive;
7933 Bit16u ds; // previous DS:, DS set to 0x0000 by asm wrapper
7936 Bit16u addr,timeout;
7977 Bit16u seq_nr;
7979 Bit16u ebda_seg=read_word(0x0040,0x000E);
7980 Bit16u bootdev;
7983 Bit16u bootseg;
7984 Bit16u bootip;
7985 Bit16u status;
7986 Bit16u bootfirst;
8159 Bit16u ds; // previous DS:, DS set to 0x0000 by asm wrapper
8363 Bit16u ds; // previous DS:, DS set to 0x0000 by asm wrapper
8392 Bit16u segment, offset;