Lines Matching refs:Bit16u

181 #define E820_SEG (Bit16u)(E820_PHYSICAL_ADDRESS >> 4)
286 typedef unsigned short Bit16u; typedef
298 Bit16u seg; in memsetb()
299 Bit16u offset;
300 Bit16u value;
301 Bit16u count;
337 Bit16u dseg; in memcpyb()
338 Bit16u doffset;
339 Bit16u sseg;
340 Bit16u soffset;
341 Bit16u count;
384 Bit16u dseg; in memcpyd()
385 Bit16u doffset;
386 Bit16u sseg;
387 Bit16u soffset;
388 Bit16u count;
434 Bit16u seg; in read_dword()
435 Bit16u offset;
460 Bit16u seg;
461 Bit16u offset;
637 Bit16u ticks_low;
638 Bit16u ticks_high;
646 Bit16u heads; // # heads
647 Bit16u cylinders; // # cylinders
648 Bit16u spt; // # sectors / track
653 Bit16u iobase1;
654 Bit16u iobase2;
661 Bit16u options;
662 Bit16u reserved;
669 Bit16u iobase1; // IO Base 1
670 Bit16u iobase2; // IO Base 2
680 Bit16u blksize; // block size
707 Bit16u trsfsectors;
719 Bit16u device_spec;
721 Bit16u buffer_segment;
722 Bit16u load_segment;
723 Bit16u sector_count;
767 Bit16u count;
768 Bit16u offset;
769 Bit16u segment;
778 Bit16u size;
779 Bit16u infos;
785 Bit16u blksize;
786 Bit16u dpte_offset;
787 Bit16u dpte_segment;
788 Bit16u key;
791 Bit16u reserved2;
807 Bit16u di, si, bp, sp;
808 Bit16u bx, dx, cx, ax;
811 Bit16u filler[4];
824 Bit16u di, filler1, si, filler2, bp, filler3, sp, filler4;
825 Bit16u bx, filler5, dx, filler6, cx, filler7, ax, filler8;
830 Bit16u filler1;
832 Bit16u filler2;
834 Bit16u filler3;
836 Bit16u filler4;
844 Bit16u flags;
860 Bit16u ip;
861 Bit16u cs;
866 Bit16u type;
867 Bit16u flags;
879 static Bit16u inw();
885 static Bit16u read_word();
910 static Bit16u get_CS();
911 static Bit16u get_SS();
945 Bit16u ata_cmd_non_data();
946 Bit16u ata_cmd_data_in();
947 Bit16u ata_cmd_data_out();
948 Bit16u ata_cmd_packet();
950 Bit16u atapi_get_sense();
951 Bit16u atapi_is_ready();
952 Bit16u atapi_is_cdrom();
962 Bit16u cdrom_boot();
1051 Bit16u normal;
1052 Bit16u shift;
1053 Bit16u control;
1054 Bit16u alt;
1150 Bit16u port;
1166 Bit16u
1168 Bit16u port;
1186 Bit16u port;
1208 Bit16u port;
1209 Bit16u val;
1283 Bit16u count;
1296 Bit16u seg;
1297 Bit16u offset;
1317 Bit16u
1319 Bit16u seg;
1320 Bit16u offset;
1342 Bit16u seg;
1343 Bit16u offset;
1368 Bit16u seg;
1369 Bit16u offset;
1370 Bit16u data;
1392 Bit16u
1400 Bit16u
1455 Bit16u base_port;
1461 Bit16u base_port;
1467 Bit16u base_port;
1473 Bit16u base_port;
1503 Bit16u action;
1525 Bit16u action;
1541 Bit16u action;
1558 Bit16u action;
1574 Bit16u action;
1575 Bit16u segment;
1576 Bit16u offset;
1588 Bit16u ticks;
1654 Bit16u ticks, count;
1656 Bit16u i;
1674 Bit16u action;
1680 Bit16u *arg_ptr;
1681 Bit16u arg_seg, arg, nibble, hibyte, shift_count, format_width, hexadd;
1799 Bit16u max;
1951 Bit16u status;
2008 Bit16u status;
2070 Bit16u count = 0;
2071 Bit16u ss = get_SS();
2072 Bit16u ebda_seg = read_word(0x0040, 0x000E);
2105 Bit16u i; ipl_entry_t *e;
2107 Bit16u count;
2108 Bit16u ss = get_SS();
2109 Bit16u ebda_seg = read_word(0x0040, 0x000E);
2123 Bit16u count;
2127 Bit16u ss = get_SS();
2128 Bit16u valid_choice = 0;
2129 Bit16u ebda_seg = read_word(0x0040, 0x000E);
2160 … memcpyb(ss, &description, (Bit16u)(e.description >> 16), (Bit16u)(e.description & 0xffff), 32);
2198 Bit16u type; Bit32u desc;
2201 Bit16u ss = get_SS();
2209 memcpyb(ss, &description, (Bit16u)(desc >> 16), (Bit16u)(desc & 0xffff), 32);
2223 Bit16u type; Bit8u reason;
2244 Bit16u code;
2483 Bit16u ebda_seg=read_word(0x0040,0x000E);
2536 Bit16u base;
2537 Bit16u timeout;
2581 Bit16u ebda_seg=read_word(0x0040,0x000E);
2617 Bit16u iobase1, iobase2;
2673 Bit16u cylinders, heads, spt, blksize;
2754 cylinders = (Bit16u)((Bit32u)(cylinders)*16/15);
2784 Bit16u blksize;
2815 Bit16u ataversion;
2824 ataversion=((Bit16u)(read_byte(get_SS(),buffer+161))<<8)|read_byte(get_SS(),buffer+160);
2857 printf(" ATA-%d Hard-Disk (%4u MBytes)\n", version, (Bit16u)sizeinmb);
2859 printf(" ATA-%d Hard-Disk (%4u GBytes)\n", version, (Bit16u)(sizeinmb>>10));
2896 Bit16u device;
2898 Bit16u ebda_seg=read_word(0x0040,0x000E);
2899 Bit16u iobase1, iobase2;
2902 Bit16u max;
2949 Bit16u ata_cmd_non_data()
2964 Bit16u ata_cmd_data_in(device, command, count, cylinder, head, sector, lba_low, lba_high, segment, …
2965 Bit16u device, command, count, cylinder, head, sector, segment, offset;
2968 Bit16u ebda_seg=read_word(0x0040,0x000E);
2969 Bit16u iobase1, iobase2, blksize;
3005 sector = (Bit16u) (lba_low & 0x000000ffL);
3006 cylinder = (Bit16u) ((lba_low>>8) & 0x0000ffffL);
3007 head = ((Bit16u) ((lba_low>>24) & 0x0000000fL)) | ATA_CB_DH_LBA;
3113 Bit16u ata_cmd_data_out(device, command, count, cylinder, head, sector, lba_low, lba_high, segment,…
3114 Bit16u device, command, count, cylinder, head, sector, segment, offset;
3117 Bit16u ebda_seg=read_word(0x0040,0x000E);
3118 Bit16u iobase1, iobase2, blksize;
3154 sector = (Bit16u) (lba_low & 0x000000ffL);
3155 cylinder = (Bit16u) ((lba_low>>8) & 0x0000ffffL);
3156 head = ((Bit16u) ((lba_low>>24) & 0x0000000fL)) | ATA_CB_DH_LBA;
3261 Bit16u ata_cmd_packet(device, cmdlen, cmdseg, cmdoff, header, length, inout, bufseg, bufoff)
3263 Bit16u device,cmdseg, cmdoff, bufseg, bufoff;
3264 Bit16u header;
3267 Bit16u ebda_seg=read_word(0x0040,0x000E);
3268 Bit16u iobase1, iobase2;
3269 Bit16u lcount, lbefore, lafter, count;
3354 Bit16u loops = 0;
3382 lcount = ((Bit16u)(inb(iobase1 + ATA_CB_CH))<<8)+inb(iobase1 + ATA_CB_CL);
3534 Bit16u
3536 Bit16u device;
3556 Bit16u
3558 Bit16u device;
3568 Bit16u ebda_seg = read_word(0x0040,0x000E);
3635 Bit16u
3639 Bit16u ebda_seg=read_word(0x0040,0x000E);
3668 Bit16u ebda_seg=read_word(0x0040,0x000E);
3677 Bit16u ebda_seg=read_word(0x0040,0x000E);
3685 Bit16u ebda_seg=read_word(0x0040,0x000E);
3695 Bit16u
3698 Bit16u ebda_seg=read_word(0x0040,0x000E);
3701 Bit16u boot_segment, nbsectors, i, error;
3860 Bit16u ds; // previous DS:, DS set to 0x0000 by asm wrapper
3863 Bit16u addr,timer,val16;
3936 Bit16u ES, DS, FLAGS;
3938 Bit16u ebda_seg=read_word(0x0040,0x000E);
3940 Bit16u base15_00;
3942 Bit16u ss;
3943 Bit16u CX,DX;
3945 Bit16u bRegister;
4248 Bit16u ES, DS, FLAGS;
4250 Bit16u ebda_seg=read_word(0x0040,0x000E);
4252 Bit16u mouse_driver_seg;
4253 Bit16u mouse_driver_offset;
4564 Bit16u ES;
4565 Bit16u DI;
4568 Bit16u type;
4588 Bit16u ES, DS, FLAGS;
4591 Bit16u CX,DX;
4593 Bit16u off, e820_table_size;
4712 regs.u.r16.dx = (Bit16u)(size >> 16);
4879 Bit16u DI, SI, BP, SP, BX, DX, CX, AX, FLAGS;
4882 Bit16u kbd_code, max;
5030 Bit16u buffer_start, buffer_end, buffer_head, buffer_tail;
5031 Bit16u ss;
5129 Bit16u ss;
5155 Bit16u DI, SI, BP, SP, BX, DX, CX, AX;
5345 Bit16u buffer_start, buffer_end, buffer_head, buffer_tail, temp_tail;
5376 Bit16u make_farcall, Z, Y, X, status;
5378 Bit16u ebda_seg=read_word(0x0040,0x000E);
5426 Bit16u EHAX, DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS;
5429 Bit16u ebda_seg=read_word(0x0040,0x000E);
5430 Bit16u cylinder, head, sector;
5431 Bit16u segment, offset;
5432 Bit16u npc, nph, npspt, nlc, nlh, nlspt;
5433 Bit16u size, count;
5477 cylinder |= ( ((Bit16u) GET_CL()) << 2) & 0x300;
5597 count=read_word(DS, SI+(Bit16u)&Int13Ext->count);
5598 segment=read_word(DS, SI+(Bit16u)&Int13Ext->segment);
5599 offset=read_word(DS, SI+(Bit16u)&Int13Ext->offset);
5602 lba_high=read_dword(DS, SI+(Bit16u)&Int13Ext->lba2);
5609 lba_low=read_dword(DS, SI+(Bit16u)&Int13Ext->lba1);
5627 write_word(DS, SI+(Bit16u)&Int13Ext->count, count);
5649 size=read_word(DS,SI+(Bit16u)&Int13DPT->size);
5657 Bit16u blksize;
5666 write_word(DS, SI+(Bit16u)&Int13DPT->size, 0x1a);
5669 write_word(DS, SI+(Bit16u)&Int13DPT->infos, 0x00); // geometry is invalid
5670 write_dword(DS, SI+(Bit16u)&Int13DPT->cylinders, 0x3fff);
5674 write_word(DS, SI+(Bit16u)&Int13DPT->infos, 0x02); // geometry is valid
5675 write_dword(DS, SI+(Bit16u)&Int13DPT->cylinders, (Bit32u)npc);
5677 write_dword(DS, SI+(Bit16u)&Int13DPT->heads, (Bit32u)nph);
5678 write_dword(DS, SI+(Bit16u)&Int13DPT->spt, (Bit32u)npspt);
5679 write_dword(DS, SI+(Bit16u)&Int13DPT->sector_count1, lba_low);
5680 write_dword(DS, SI+(Bit16u)&Int13DPT->sector_count2, lba_high);
5681 write_word(DS, SI+(Bit16u)&Int13DPT->blksize, blksize);
5687 Bit16u iobase1, iobase2, options;
5689 write_word(DS, SI+(Bit16u)&Int13DPT->size, 0x1e);
5691 write_word(DS, SI+(Bit16u)&Int13DPT->dpte_segment, ebda_seg);
5692 write_word(DS, SI+(Bit16u)&Int13DPT->dpte_offset, &EbdaData->ata.dpte);
5732 Bit16u iobase1;
5738 write_word(DS, SI+(Bit16u)&Int13DPT->size, 0x42);
5739 write_word(DS, SI+(Bit16u)&Int13DPT->key, 0xbedd);
5740 write_byte(DS, SI+(Bit16u)&Int13DPT->dpi_length, 0x24);
5741 write_byte(DS, SI+(Bit16u)&Int13DPT->reserved1, 0);
5742 write_word(DS, SI+(Bit16u)&Int13DPT->reserved2, 0);
5745 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[0], 'I');
5746 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[1], 'S');
5747 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[2], 'A');
5748 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[3], 0);
5753 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[0], 'A');
5754 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[1], 'T');
5755 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[2], 'A');
5756 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[3], 0);
5759 write_word(DS, SI+(Bit16u)&Int13DPT->iface_path[0], iobase1);
5760 write_word(DS, SI+(Bit16u)&Int13DPT->iface_path[2], 0);
5761 write_dword(DS, SI+(Bit16u)&Int13DPT->iface_path[4], 0L);
5766 write_byte(DS, SI+(Bit16u)&Int13DPT->device_path[0], device%2);
5767 write_byte(DS, SI+(Bit16u)&Int13DPT->device_path[1], 0);
5768 write_word(DS, SI+(Bit16u)&Int13DPT->device_path[2], 0);
5769 write_dword(DS, SI+(Bit16u)&Int13DPT->device_path[4], 0L);
5774 write_byte(DS, SI+(Bit16u)&Int13DPT->checksum, checksum);
5835 Bit16u EHBX, DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS;
5837 Bit16u ebda_seg=read_word(0x0040,0x000E);
5841 Bit16u count, segment, offset, i, size;
5910 count=read_word(DS, SI+(Bit16u)&Int13Ext->count);
5911 segment=read_word(DS, SI+(Bit16u)&Int13Ext->segment);
5912 offset=read_word(DS, SI+(Bit16u)&Int13Ext->offset);
5915 lba=read_dword(DS, SI+(Bit16u)&Int13Ext->lba2);
5922 lba=read_dword(DS, SI+(Bit16u)&Int13Ext->lba1);
5938 count = (Bit16u)(read_dword(ebda_seg, &EbdaData->ata.trsfbytes) >> 11);
5939 write_word(DS, SI+(Bit16u)&Int13Ext->count, count);
6014 size = read_word(DS,SI+(Bit16u)&Int13Ext->size);
6022 Bit16u cylinders, heads, spt, blksize;
6026 write_word(DS, SI+(Bit16u)&Int13DPT->size, 0x1a);
6027 …write_word(DS, SI+(Bit16u)&Int13DPT->infos, 0x74); // removable, media change, lockable, max values
6028 write_dword(DS, SI+(Bit16u)&Int13DPT->cylinders, 0xffffffff);
6029 write_dword(DS, SI+(Bit16u)&Int13DPT->heads, 0xffffffff);
6030 write_dword(DS, SI+(Bit16u)&Int13DPT->spt, 0xffffffff);
6031 write_dword(DS, SI+(Bit16u)&Int13DPT->sector_count1, 0xffffffff); // FIXME should be Bit64
6032 write_dword(DS, SI+(Bit16u)&Int13DPT->sector_count2, 0xffffffff);
6033 write_word(DS, SI+(Bit16u)&Int13DPT->blksize, blksize);
6039 Bit16u iobase1, iobase2, options;
6041 write_word(DS, SI+(Bit16u)&Int13DPT->size, 0x1e);
6043 write_word(DS, SI+(Bit16u)&Int13DPT->dpte_segment, ebda_seg);
6044 write_word(DS, SI+(Bit16u)&Int13DPT->dpte_offset, &EbdaData->ata.dpte);
6080 Bit16u iobase1;
6086 write_word(DS, SI+(Bit16u)&Int13DPT->size, 0x42);
6087 write_word(DS, SI+(Bit16u)&Int13DPT->key, 0xbedd);
6088 write_byte(DS, SI+(Bit16u)&Int13DPT->dpi_length, 0x24);
6089 write_byte(DS, SI+(Bit16u)&Int13DPT->reserved1, 0);
6090 write_word(DS, SI+(Bit16u)&Int13DPT->reserved2, 0);
6093 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[0], 'I');
6094 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[1], 'S');
6095 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[2], 'A');
6096 write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[3], 0);
6101 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[0], 'A');
6102 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[1], 'T');
6103 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[2], 'A');
6104 write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[3], 0);
6107 write_word(DS, SI+(Bit16u)&Int13DPT->iface_path[0], iobase1);
6108 write_word(DS, SI+(Bit16u)&Int13DPT->iface_path[2], 0);
6109 write_dword(DS, SI+(Bit16u)&Int13DPT->iface_path[4], 0L);
6114 write_byte(DS, SI+(Bit16u)&Int13DPT->device_path[0], device%2);
6115 write_byte(DS, SI+(Bit16u)&Int13DPT->device_path[1], 0);
6116 write_word(DS, SI+(Bit16u)&Int13DPT->device_path[2], 0);
6117 write_dword(DS, SI+(Bit16u)&Int13DPT->device_path[4], 0L);
6122 write_byte(DS, SI+(Bit16u)&Int13DPT->checksum, checksum);
6189 Bit16u DS, ES, DI, SI, BP, SP, BX, DX, CX, AX, IP, CS, FLAGS;
6191 Bit16u ebda_seg=read_word(0x0040,0x000E);
6259 Bit16u DS, ES, DI, SI, BP, SP, BX, DX, CX, AX, IP, CS, FLAGS;
6261 Bit16u ebda_seg=read_word(0x0040,0x000E);
6263 Bit16u vheads, vspt, vcylinders;
6264 Bit16u head, sector, cylinder, nbsectors;
6266 Bit16u before, segment, offset;
6356 before= (Bit16u)vlba%4;
6363 atacmd[7]=((Bit16u)(elba-slba+1) & 0xff00) >> 8; // Sectors
6364 atacmd[8]=((Bit16u)(elba-slba+1) & 0x00ff); // Sectors
6463 Bit16u cylinder;
6464 Bit16u hd_heads;
6465 Bit16u head;
6466 Bit16u hd_sectors;
6467 Bit16u sector;
6468 Bit16u dl;
6516 Bit16u EHAX, DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS;
6521 Bit16u cyl_mod, ax;
6522 Bit16u max_cylinder, cylinder, total_sectors;
6523 Bit16u hd_cylinders;
6525 Bit16u val16;
6528 Bit16u tempbx;
6529 Bit16u dpsize;
6531 Bit16u count, segment, offset;
6533 Bit16u error;
6734 cylinder |= ( ((Bit16u) GET_CL()) << 2) & 0x300;
7044 Bit16u *hd_cylinders;
7049 Bit16u ss;
7050 Bit16u cylinders;
7107 Bit16u drive;
7153 Bit16u drive;
7156 Bit16u media_state_offset;
7180 Bit16u drive;
7183 Bit16u media_state_offset;
7296 Bit16u drive;
7299 Bit16u curr_cyl_offset;
7343 Bit16u drive;
7361 Bit16u DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS;
7364 Bit16u base_address, base_count, base_es;
7368 Bit16u es, last_addr;
8058 Bit16u DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS;
8100 Bit16u drive;
8146 Bit16u ds; // previous DS:, DS set to 0x0000 by asm wrapper
8149 Bit16u addr,timeout;
8190 Bit16u seq_nr;
8192 Bit16u ebda_seg=read_word(0x0040,0x000E);
8193 Bit16u bootdev;
8196 Bit16u bootseg;
8197 Bit16u bootip;
8198 Bit16u status;
8199 Bit16u bootfirst;
8391 Bit16u ds; // previous DS:, DS set to 0x0000 by asm wrapper
8595 Bit16u ds; // previous DS:, DS set to 0x0000 by asm wrapper
8624 Bit16u segment, offset;