tag | line | file | source code |
hd_info | 82 | drivers/block/hd.c | static struct hd_i_struct hd_info[] = { HD_TYPE }; |
hd_info | 84 | drivers/block/hd.c | static int NR_HD = ((sizeof (hd_info))/(sizeof (struct hd_i_struct))); |
hd_info | 86 | drivers/block/hd.c | static struct hd_i_struct hd_info[] = { {0,0,0,0,0,0},{0,0,0,0,0,0} }; |
hd_info | 122 | drivers/block/hd.c | bios_info[hdind].head = hd_info[hdind].head = ints[2]; |
hd_info | 123 | drivers/block/hd.c | bios_info[hdind].sect = hd_info[hdind].sect = ints[3]; |
hd_info | 124 | drivers/block/hd.c | bios_info[hdind].cyl = hd_info[hdind].cyl = ints[1]; |
hd_info | 125 | drivers/block/hd.c | bios_info[hdind].wpcom = hd_info[hdind].wpcom = 0; |
hd_info | 126 | drivers/block/hd.c | bios_info[hdind].lzone = hd_info[hdind].lzone = ints[1]; |
hd_info | 127 | drivers/block/hd.c | bios_info[hdind].ctl = hd_info[hdind].ctl = (ints[2] > 8 ? 8 : 0); |
hd_info | 239 | drivers/block/hd.c | outb_p(hd_info[drive].ctl,HD_CMD); |
hd_info | 241 | drivers/block/hd.c | outb_p(hd_info[drive].wpcom>>2,++port); |
hd_info | 293 | drivers/block/hd.c | hd_info[dev].cyl*hd_info[dev].head*hd_info[dev].sect / 2048, |
hd_info | 294 | drivers/block/hd.c | hd_info[dev].cyl, hd_info[dev].head, hd_info[dev].sect); |
hd_info | 310 | drivers/block/hd.c | hd_info[dev].cyl = id->cur_cyls; |
hd_info | 311 | drivers/block/hd.c | hd_info[dev].head = id->cur_heads; |
hd_info | 312 | drivers/block/hd.c | hd_info[dev].sect = id->cur_sectors; |
hd_info | 379 | drivers/block/hd.c | outb_p(hd_info[0].ctl & 0x0f,HD_CMD); |
hd_info | 414 | drivers/block/hd.c | hd_out(i,hd_info[i].sect,hd_info[i].sect,hd_info[i].head-1, |
hd_info | 415 | drivers/block/hd.c | hd_info[i].cyl,WIN_SPECIFY,&reset_hd); |
hd_info | 662 | drivers/block/hd.c | hd_out(dev,hd_info[dev].sect,0,0,0,WIN_RESTORE,&recal_intr); |
hd_info | 676 | drivers/block/hd.c | if (hd_info[dev].head > 16) { |
hd_info | 733 | drivers/block/hd.c | sec = block % hd_info[dev].sect + 1; |
hd_info | 734 | drivers/block/hd.c | track = block / hd_info[dev].sect; |
hd_info | 735 | drivers/block/hd.c | head = track % hd_info[dev].head; |
hd_info | 736 | drivers/block/hd.c | cyl = track / hd_info[dev].head; |
hd_info | 966 | drivers/block/hd.c | bios_info[drive].cyl = hd_info[drive].cyl = *(unsigned short *) BIOS; |
hd_info | 967 | drivers/block/hd.c | bios_info[drive].head = hd_info[drive].head = *(2+BIOS); |
hd_info | 968 | drivers/block/hd.c | bios_info[drive].wpcom = hd_info[drive].wpcom = *(unsigned short *) (5+BIOS); |
hd_info | 969 | drivers/block/hd.c | bios_info[drive].ctl = hd_info[drive].ctl = *(8+BIOS); |
hd_info | 970 | drivers/block/hd.c | bios_info[drive].lzone = hd_info[drive].lzone = *(unsigned short *) (12+BIOS); |
hd_info | 971 | drivers/block/hd.c | bios_info[drive].sect = hd_info[drive].sect = *(14+BIOS); |
hd_info | 973 | drivers/block/hd.c | if (hd_info[drive].cyl && NR_HD == drive) |