tag | line | file | source code |
hd_info | 77 | drivers/block/hd.c | struct hd_i_struct hd_info[] = { HD_TYPE }; |
hd_info | 78 | drivers/block/hd.c | static int NR_HD = ((sizeof (hd_info))/(sizeof (struct hd_i_struct))); |
hd_info | 80 | drivers/block/hd.c | struct hd_i_struct hd_info[] = { {0,0,0,0,0,0},{0,0,0,0,0,0} }; |
hd_info | 110 | drivers/block/hd.c | if (hd_info[0].head != 0) |
hd_info | 112 | drivers/block/hd.c | hd_info[hdind].head = ints[2]; |
hd_info | 113 | drivers/block/hd.c | hd_info[hdind].sect = ints[3]; |
hd_info | 114 | drivers/block/hd.c | hd_info[hdind].cyl = ints[1]; |
hd_info | 115 | drivers/block/hd.c | hd_info[hdind].wpcom = 0; |
hd_info | 116 | drivers/block/hd.c | hd_info[hdind].lzone = ints[1]; |
hd_info | 117 | drivers/block/hd.c | hd_info[hdind].ctl = (ints[2] > 8 ? 8 : 0); |
hd_info | 200 | drivers/block/hd.c | outb_p(hd_info[drive].ctl,HD_CMD); |
hd_info | 202 | drivers/block/hd.c | outb_p(hd_info[drive].wpcom>>2,++port); |
hd_info | 233 | drivers/block/hd.c | outb(hd_info[0].ctl & 0x0f ,HD_CMD); |
hd_info | 256 | drivers/block/hd.c | hd_out(i,hd_info[i].sect,hd_info[i].sect,hd_info[i].head-1, |
hd_info | 257 | drivers/block/hd.c | hd_info[i].cyl,WIN_SPECIFY,&reset_hd); |
hd_info | 470 | drivers/block/hd.c | sec = block % hd_info[dev].sect + 1; |
hd_info | 471 | drivers/block/hd.c | track = block / hd_info[dev].sect; |
hd_info | 472 | drivers/block/hd.c | head = track % hd_info[dev].head; |
hd_info | 473 | drivers/block/hd.c | cyl = track / hd_info[dev].head; |
hd_info | 490 | drivers/block/hd.c | hd_out(dev,hd_info[dev].sect,0,0,0,WIN_RESTORE,&recal_intr); |
hd_info | 536 | drivers/block/hd.c | put_fs_byte(hd_info[dev].head, |
hd_info | 538 | drivers/block/hd.c | put_fs_byte(hd_info[dev].sect, |
hd_info | 540 | drivers/block/hd.c | put_fs_word(hd_info[dev].cyl, |
hd_info | 611 | drivers/block/hd.c | (void *) hd_info, /* internal */ |
hd_info | 652 | drivers/block/hd.c | hd_info[drive].cyl = *(unsigned short *) BIOS; |
hd_info | 653 | drivers/block/hd.c | hd_info[drive].head = *(2+BIOS); |
hd_info | 654 | drivers/block/hd.c | hd_info[drive].wpcom = *(unsigned short *) (5+BIOS); |
hd_info | 655 | drivers/block/hd.c | hd_info[drive].ctl = *(8+BIOS); |
hd_info | 656 | drivers/block/hd.c | hd_info[drive].lzone = *(unsigned short *) (12+BIOS); |
hd_info | 657 | drivers/block/hd.c | hd_info[drive].sect = *(14+BIOS); |
hd_info | 692 | drivers/block/hd.c | if (hd_info[i].head > 16) { |
hd_info | 696 | drivers/block/hd.c | hd_info[i].cyl, |
hd_info | 697 | drivers/block/hd.c | hd_info[i].sect, |
hd_info | 698 | drivers/block/hd.c | hd_info[i].head); |
hd_info | 703 | drivers/block/hd.c | hd[i<<6].nr_sects = hd_info[i].head* |
hd_info | 704 | drivers/block/hd.c | hd_info[i].sect*hd_info[i].cyl; |
hd_info | 747 | drivers/block/hd.c | #define CAPACITY (hd_info[target].head*hd_info[target].sect*hd_info[target].cyl) |