Lines Matching refs:hd_info

99 static struct hd_i_struct hd_info[] = { HD_TYPE };  variable
100 static int NR_HD = ((sizeof (hd_info))/(sizeof (struct hd_i_struct)));
102 static struct hd_i_struct hd_info[MAX_HD]; variable
154 if (hd_info[0].head != 0) in hd_setup()
156 hd_info[hdind].head = ints[2]; in hd_setup()
157 hd_info[hdind].sect = ints[3]; in hd_setup()
158 hd_info[hdind].cyl = ints[1]; in hd_setup()
159 hd_info[hdind].wpcom = 0; in hd_setup()
160 hd_info[hdind].lzone = ints[1]; in hd_setup()
161 hd_info[hdind].ctl = (ints[2] > 8 ? 8 : 0); in hd_setup()
284 outb_p(hd_info[drive].ctl,HD_CMD); in hd_out()
286 outb_p(hd_info[drive].wpcom>>2,++port); in hd_out()
317 outb_p(hd_info[0].ctl & 0x0f,HD_CMD); in reset_controller()
341 hd_out(i,hd_info[i].sect,hd_info[i].sect,hd_info[i].head-1, in reset_hd()
342 hd_info[i].cyl,WIN_SPECIFY,&reset_hd); in reset_hd()
530 hd_out(dev,hd_info[dev].sect,0,0,0,WIN_RESTORE,&recal_intr); in do_special_op()
533 if (hd_info[dev].head > 16) { in do_special_op()
589 sec = block % hd_info[dev].sect + 1; in hd_request()
590 track = block / hd_info[dev].sect; in hd_request()
591 head = track % hd_info[dev].head; in hd_request()
592 cyl = track / hd_info[dev].head; in hd_request()
641 g.heads = hd_info[dev].head; in hd_ioctl()
642 g.sectors = hd_info[dev].sect; in hd_ioctl()
643 g.cylinders = hd_info[dev].cyl; in hd_ioctl()
755 hd_info[drive].cyl = *(unsigned short *) BIOS; in hd_geninit()
756 hd_info[drive].head = *(2+BIOS); in hd_geninit()
757 hd_info[drive].wpcom = *(unsigned short *) (5+BIOS); in hd_geninit()
758 hd_info[drive].ctl = *(8+BIOS); in hd_geninit()
759 hd_info[drive].lzone = *(unsigned short *) (12+BIOS); in hd_geninit()
760 hd_info[drive].sect = *(14+BIOS); in hd_geninit()
762 if (hd_info[drive].cyl && NR_HD == drive) in hd_geninit()
815 hd[drive<<6].nr_sects = hd_info[drive].head * in hd_geninit()
816 hd_info[drive].sect * hd_info[drive].cyl; in hd_geninit()
818 hd[drive<<6].nr_sects / 2048, hd_info[drive].cyl, in hd_geninit()
819 hd_info[drive].head, hd_info[drive].sect); in hd_geninit()
837 &hd_fops, hd_info[drive].head * hd_info[drive].sect * in hd_geninit()
838 hd_info[drive].cyl); in hd_geninit()
858 #define CAPACITY (hd_info[target].head*hd_info[target].sect*hd_info[target].cyl)