BOOK.PS
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:2328k
源码类别:
操作系统开发
开发平台:
C/C++
- (09318)210 648 A
- (switch)252 1110 A
- ((m_ptr->m_type))630 1404 A
- 2076({)S
- 3060 V
- (09319)210 648 A
- (case)168 1110 A
- (DEV_OPEN:)378 1320 A
- (return(ENODEV);)630 2034 A
- 3150 V
- (09320)210 648 A
- (case)168 1110 A
- (DEV_CLOSE:)420 1320 A
- (return(OK);)462 2034 A
- 3240 V
- (09321)210 648 A
- (case)168 1110 A
- (DEV_IOCTL:)420 1320 A
- (return(ENOTTY);)630 2034 A
- 3330 V
- (09322)210 648 A
- (default:)336 1110 A
- (return(EIO);)504 2034 A
- 3420 V
- (09323)210 648 A
- 1110(})S
- 3510 V
- (09324)210 648 A
- 1026(})S
- 3690 V
- (09326)210 648 A
- (/*===========================================================================*)3276 1026 A
- 3780 V
- (09327)210 648 A
- 1068(*)S
- (nop_finish)420 2370 A
- 4260(*)S
- 3870 V
- (09328)210 648 A
- (*===========================================================================*/)3276 1068 A
- 3960 V
- (09329)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (nop_finish())504 1488 A
- 4050 V
- (09330)210 648 A
- 1026({)S
- 4140 V
- (09331)210 648 A
- 1026(/*)S
- (Nothing)294 1152 A
- 1488(to)S
- (finish,)294 1614 A
- (all)126 1950 A
- (the)126 2118 A
- (work)168 2286 A
- (has)126 2496 A
- (been)168 2664 A
- (done)168 2874 A
- 3084(by)S
- (dp->dr_schedule.)672 3210 A
- 3924(*/)S
- 4230 V
- (09332)210 648 A
- (return(OK);)462 1110 A
- 4320 V
- (09333)210 648 A
- 1026(})S
- 4500 V
- (09335)210 648 A
- (/*===========================================================================*)3276 1026 A
- 4590 V
- (09336)210 648 A
- 1068(*)S
- (nop_cleanup)462 2370 A
- 4260(*)S
- 4680 V
- (09337)210 648 A
- (*===========================================================================*/)3276 1068 A
- 4770 V
- (09338)210 648 A
- (PUBLIC)252 1026 A
- (void)168 1320 A
- (nop_cleanup())546 1530 A
- 4860 V
- (09339)210 648 A
- 1026({)S
- 4950 V
- (09340)210 648 A
- 1026(/*)S
- (Nothing)294 1152 A
- 1488(to)S
- (clean)210 1614 A
- (up.)126 1866 A
- 2034(*/)S
- 5040 V
- (09341)210 648 A
- 1026(})S
- 5220 V
- (09343)210 648 A
- (/*===========================================================================*)3276 1026 A
- 5310 V
- (09344)210 648 A
- 1068(*)S
- (clock_mess)420 2370 A
- 4260(*)S
- 5400 V
- (09345)210 648 A
- (*===========================================================================*/)3276 1068 A
- 5490 V
- (09346)210 648 A
- (PUBLIC)252 1026 A
- (void)168 1320 A
- (clock_mess(ticks,)714 1530 A
- (func))210 2286 A
- 5580 V
- (09347)210 648 A
- (int)126 1026 A
- (ticks;)252 1194 A
- 2370(/*)S
- (how)126 2496 A
- (many)168 2664 A
- (clock)210 2874 A
- (ticks)210 3126 A
- 3378(to)S
- (wait)168 3504 A
- 3714(*/)S
- 5670 V
- (09348)210 648 A
- (watchdog_t)420 1026 A
- (func;)210 1488 A
- 2370(/*)S
- (function)336 2496 A
- 2874(to)S
- (call)168 3000 A
- (upon)168 3210 A
- (time)168 3420 A
- (out)126 3630 A
- 3798(*/)S
- 5760 V
- (09349)210 648 A
- 1026({)S
- 5850 V
- (09350)210 648 A
- 1026(/*)S
- (Send)168 1152 A
- (the)126 1362 A
- (clock)210 1530 A
- (task)168 1782 A
- 1992(a)S
- (message.)336 2076 A
- 2454(*/)S
- 5940 V
- (09351)210 648 A
- 6030 V
- (09352)210 648 A
- (message)294 1110 A
- (mess;)210 1446 A
- 6120 V
- (09353)210 648 A
- 6210 V
- (09354)210 648 A
- (mess.m_type)462 1110 A
- 1614(=)S
- (SET_ALARM;)420 1698 A
- 8418 V
- EP
- %%Page: 119 119
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2015(File:)S
- 2248(src/kernel/driver.c)S
- 12 B
- (119)180 4248 A
- 900 V
- 7 LST
- (09355)210 648 A
- (mess.CLOCK_PROC_NR)756 1110 A
- 1908(=)S
- (proc_number(proc_ptr);)924 1992 A
- 990 V
- (09356)210 648 A
- (mess.DELTA_TICKS)672 1110 A
- 1824(=)S
- ((long))252 1908 A
- (ticks;)252 2202 A
- 1080 V
- (09357)210 648 A
- (mess.FUNC_TO_CALL)714 1110 A
- 1866(=)S
- ((sighandler_t))588 1950 A
- (func;)210 2580 A
- 1170 V
- (09358)210 648 A
- (sendrec(CLOCK,)588 1110 A
- (&mess);)294 1740 A
- 1260 V
- (09359)210 648 A
- 1026(})S
- 1440 V
- (09361)210 648 A
- (/*============================================================================*)3318 1026 A
- 1530 V
- (09362)210 648 A
- 1068(*)S
- (do_diocntl)420 2370 A
- 4302(*)S
- 1620 V
- (09363)210 648 A
- (*============================================================================*/)3318 1068 A
- 1710 V
- (09364)210 648 A
- (PUBLIC)252 1026 A
- (int)126 1320 A
- (do_diocntl(dp,)588 1488 A
- (m_ptr))252 2118 A
- 1800 V
- (09365)210 648 A
- (struct)252 1026 A
- (driver)252 1320 A
- (*dp;)168 1614 A
- 1890 V
- (09366)210 648 A
- (message)294 1026 A
- (*m_ptr;)294 1362 A
- 2370(/*)S
- (pointer)294 2496 A
- 2832(to)S
- (ioctl)210 2958 A
- (request)294 3210 A
- 3546(*/)S
- 1980 V
- (09367)210 648 A
- 1026({)S
- 2070 V
- (09368)210 648 A
- 1026(/*)S
- (Carry)210 1152 A
- (out)126 1404 A
- 1572(a)S
- (partition)378 1656 A
- (setting/getting)630 2076 A
- (request.)336 2748 A
- 3126(*/)S
- 2160 V
- (09369)210 648 A
- (struct)252 1110 A
- (device)252 1404 A
- (*dv;)168 1698 A
- 2250 V
- (09370)210 648 A
- (phys_bytes)420 1110 A
- (user_phys,)420 1572 A
- (entry_phys;)462 2034 A
- 2340 V
- (09371)210 648 A
- (struct)252 1110 A
- (partition)378 1404 A
- (entry;)252 1824 A
- 2430 V
- (09372)210 648 A
- 2520 V
- (09373)210 648 A
- 1110(if)S
- ((m_ptr->REQUEST)630 1236 A
- 1908(!=)S
- (DIOCSETP)336 2034 A
- 2412(&&)S
- (m_ptr->REQUEST)588 2538 A
- 3168(!=)S
- (DIOCGETP))378 3294 A
- (return(ENOTTY);)630 3714 A
- 2610 V
- (09374)210 648 A
- 2700 V
- (09375)210 648 A
- 1110(/*)S
- (Decode)252 1236 A
- (the)126 1530 A
- (message)294 1698 A
- (parameters.)462 2034 A
- 2538(*/)S
- 2790 V
- (09376)210 648 A
- 1110(if)S
- (((dv)168 1236 A
- 1446(=)S
- ((*dp->dr_prepare)(m_ptr->DEVICE)))1386 1530 A
- 2958(==)S
- (NIL_DEV))336 3084 A
- (return(ENXIO);)588 3462 A
- 2880 V
- (09377)210 648 A
- 2970 V
- (09378)210 648 A
- (user_phys)378 1110 A
- 1530(=)S
- (numap(m_ptr->PROC_NR,)882 1614 A
- ((vir_bytes))462 2538 A
- (m_ptr->ADDRESS,)630 3042 A
- (sizeof(entry));)630 3714 A
- 3060 V
- (09379)210 648 A
- 1110(if)S
- ((user_phys)420 1236 A
- 1698(==)S
- 1824(0))S
- (return(EFAULT);)630 1950 A
- 3150 V
- (09380)210 648 A
- 3240 V
- (09381)210 648 A
- (entry_phys)420 1110 A
- 1572(=)S
- (vir2phys(&entry);)714 1656 A
- 3330 V
- (09382)210 648 A
- 3420 V
- (09383)210 648 A
- 1110(if)S
- ((m_ptr->REQUEST)630 1236 A
- 1908(==)S
- (DIOCSETP))378 2034 A
- 2454({)S
- 3510 V
- (09384)210 648 A
- 1362(/*)S
- (Copy)168 1488 A
- (just)168 1698 A
- (this)168 1908 A
- (one)126 2118 A
- (partition)378 2286 A
- (table)210 2706 A
- (entry.)252 2958 A
- 3252(*/)S
- 3600 V
- (09385)210 648 A
- (phys_copy(user_phys,)840 1362 A
- (entry_phys,)462 2244 A
- ((phys_bytes))504 2748 A
- (sizeof(entry));)630 3294 A
- 3690 V
- (09386)210 648 A
- (dv->dv_base)462 1362 A
- 1866(=)S
- (entry.base;)462 1950 A
- 3780 V
- (09387)210 648 A
- (dv->dv_size)462 1362 A
- 1866(=)S
- (entry.size;)462 1950 A
- 3870 V
- (09388)210 648 A
- 1110(})S
- (else)168 1194 A
- 1404({)S
- 3960 V
- (09389)210 648 A
- 1362(/*)S
- (Return)252 1488 A
- 1782(a)S
- (partition)378 1866 A
- (table)210 2286 A
- (entry)210 2538 A
- (and)126 2790 A
- (the)126 2958 A
- (geometry)336 3126 A
- 3504(of)S
- (the)126 3630 A
- (drive.)252 3798 A
- 4092(*/)S
- 4050 V
- (09390)210 648 A
- (entry.base)420 1362 A
- 1824(=)S
- (dv->dv_base;)504 1908 A
- 4140 V
- (09391)210 648 A
- (entry.size)420 1362 A
- 1824(=)S
- (dv->dv_size;)504 1908 A
- 4230 V
- (09392)210 648 A
- ((*dp->dr_geometry)(&entry);)1134 1362 A
- 4320 V
- (09393)210 648 A
- (phys_copy(entry_phys,)882 1362 A
- (user_phys,)420 2286 A
- ((phys_bytes))504 2748 A
- (sizeof(entry));)630 3294 A
- 4410 V
- (09394)210 648 A
- 1110(})S
- 4500 V
- (09395)210 648 A
- (return(OK);)462 1110 A
- 4590 V
- (09396)210 648 A
- 1026(})S
- 5040 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 5130 V
- (src/kernel/drvlib.h)798 2034 A
- 5220 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 5400 V
- (09400)210 648 A
- 1026(/*)S
- (IBM)126 1152 A
- (device)252 1320 A
- (driver)252 1614 A
- (definitions)462 1908 A
- (Author:)294 3378 A
- (Kees)168 3714 A
- 3924(J.)S
- (Bot)126 4050 A
- 5490 V
- (09401)210 648 A
- 1068(*)S
- 3714(7)S
- (Dec)126 3798 A
- (1995)168 3966 A
- 5580 V
- (09402)210 648 A
- 1068(*/)S
- 5670 V
- (09403)210 648 A
- 5760 V
- (09404)210 648 A
- (#include)336 1026 A
- (<ibm/partition.h>)714 1404 A
- 5850 V
- (09405)210 648 A
- 5940 V
- (09406)210 648 A
- (_PROTOTYPE()462 1026 A
- (void)168 1530 A
- (partition,)420 1740 A
- ((struct)294 2202 A
- (driver)252 2538 A
- (*dr,)168 2832 A
- (int)126 3042 A
- (device,)294 3210 A
- (int)126 3546 A
- (style))252 3714 A
- 4008();)S
- 6030 V
- (09407)210 648 A
- 6120 V
- (09408)210 648 A
- 1026(/*)S
- (BIOS)168 1152 A
- (parameter)378 1362 A
- (table)210 1782 A
- (layout.)294 2034 A
- 2370(*/)S
- 6210 V
- (09409)210 648 A
- (#define)294 1026 A
- (bp_cylinders(t))630 1362 A
- 2370((*)S
- ((u16_t)252 2496 A
- 2790(*))S
- ((&(t)[0])))420 2916 A
- 8418 V
- EP
- %%Page: 120 120
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (120)180 648 A
- 11 R
- 2013(File:)S
- 2246(src/kernel/drvlib.h)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (09410)210 648 A
- (#define)294 1026 A
- (bp_heads(t))462 1362 A
- 2370((*)S
- ((u8_t)210 2496 A
- 2748(*))S
- ((&(t)[2])))420 2916 A
- 990 V
- (09411)210 648 A
- (#define)294 1026 A
- (bp_reduced_wr(t))672 1362 A
- 2370((*)S
- ((u16_t)252 2496 A
- 2790(*))S
- ((&(t)[3])))420 2916 A
- 1080 V
- (09412)210 648 A
- (#define)294 1026 A
- (bp_precomp(t))546 1362 A
- 2370((*)S
- ((u16_t)252 2496 A
- 2790(*))S
- ((&(t)[5])))420 2916 A
- 1170 V
- (09413)210 648 A
- (#define)294 1026 A
- (bp_max_ecc(t))546 1362 A
- 2370((*)S
- ((u8_t)210 2496 A
- 2748(*))S
- ((&(t)[7])))420 2916 A
- 1260 V
- (09414)210 648 A
- (#define)294 1026 A
- (bp_ctlbyte(t))546 1362 A
- 2370((*)S
- ((u8_t)210 2496 A
- 2748(*))S
- ((&(t)[8])))420 2916 A
- 1350 V
- (09415)210 648 A
- (#define)294 1026 A
- (bp_landingzone(t))714 1362 A
- 2370((*)S
- ((u16_t)252 2496 A
- 2790(*))S
- ((&(t)[12])))462 2916 A
- 1440 V
- (09416)210 648 A
- (#define)294 1026 A
- (bp_sectors(t))546 1362 A
- 2370((*)S
- ((u8_t)210 2496 A
- 2748(*))S
- ((&(t)[14])))462 2916 A
- 1530 V
- (09417)210 648 A
- 1620 V
- (09418)210 648 A
- 1026(/*)S
- (Miscellaneous.)588 1152 A
- 1782(*/)S
- 1710 V
- (09419)210 648 A
- (#define)294 1026 A
- (DEV_PER_DRIVE)546 1362 A
- 2034((1)S
- 2160(+)S
- (NR_PARTITIONS))588 2244 A
- 1800 V
- (09420)210 648 A
- (#define)294 1026 A
- (MINOR_hd1a)420 1362 A
- (128)126 2034 A
- 1890 V
- (09421)210 648 A
- (#define)294 1026 A
- (MINOR_fd0a)420 1362 A
- ((28<<2))294 2034 A
- 1980 V
- (09422)210 648 A
- (#define)294 1026 A
- (P_FLOPPY)336 1362 A
- 2034(0)S
- 2070 V
- (09423)210 648 A
- (#define)294 1026 A
- (P_PRIMARY)378 1362 A
- 2034(1)S
- 2160 V
- (09424)210 648 A
- (#define)294 1026 A
- (P_SUB)210 1362 A
- 2034(2)S
- 2790 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 2880 V
- (src/kernel/drvlib.c)798 2034 A
- 2970 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 3150 V
- (09500)210 648 A
- 1026(/*)S
- (IBM)126 1152 A
- (device)252 1320 A
- (driver)252 1614 A
- (utility)294 1908 A
- (functions.)420 2244 A
- (Author:)294 3378 A
- (Kees)168 3714 A
- 3924(J.)S
- (Bot)126 4050 A
- 3240 V
- (09501)210 648 A
- 1068(*)S
- 3714(7)S
- (Dec)126 3798 A
- (1995)168 3966 A
- 3330 V
- (09502)210 648 A
- 1068(*)S
- (Entry)210 1152 A
- (point:)252 1404 A
- 3420 V
- (09503)210 648 A
- 1068(*)S
- (partition:)420 1236 A
- (partition)378 1698 A
- 2118(a)S
- (disk)168 2202 A
- 2412(to)S
- (the)126 2538 A
- (partition)378 2706 A
- (table(s))336 3126 A
- 3504(on)S
- (it.)126 3630 A
- 3510 V
- (09504)210 648 A
- 1068(*/)S
- 3600 V
- (09505)210 648 A
- 3690 V
- (09506)210 648 A
- (#include)336 1026 A
- ("kernel.h")420 1404 A
- 3780 V
- (09507)210 648 A
- (#include)336 1026 A
- ("driver.h")420 1404 A
- 3870 V
- (09508)210 648 A
- (#include)336 1026 A
- ("drvlib.h")420 1404 A
- 3960 V
- (09509)210 648 A
- 4050 V
- (09510)210 648 A
- 4140 V
- (09511)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (extpartition,)546 2076 A
- ((struct)294 2664 A
- (driver)252 3000 A
- (*dp,)168 3294 A
- (int)126 3504 A
- (extdev,)294 3672 A
- 4230 V
- (09512)210 648 A
- (unsigned)336 3042 A
- (long)168 3420 A
- (extbase))336 3630 A
- 4008();)S
- 4320 V
- (09513)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (int)126 1866 A
- (get_part_table,)630 2034 A
- ((struct)294 2706 A
- (driver)252 3042 A
- (*dp,)168 3336 A
- (int)126 3546 A
- (device,)294 3714 A
- 4410 V
- (09514)210 648 A
- (unsigned)336 2034 A
- (long)168 2412 A
- (offset,)294 2622 A
- (struct)252 2958 A
- (part_entry)420 3252 A
- (*table))294 3714 A
- 4050();)S
- 4500 V
- (09515)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (sort,)210 2076 A
- ((struct)294 2328 A
- (part_entry)420 2664 A
- (*table))294 3126 A
- 3462();)S
- 4590 V
- (09516)210 648 A
- 4680 V
- (09517)210 648 A
- 4770 V
- (09518)210 648 A
- (/*============================================================================*)3318 1026 A
- 4860 V
- (09519)210 648 A
- 1068(*)S
- (partition)378 2370 A
- 4302(*)S
- 4950 V
- (09520)210 648 A
- (*============================================================================*/)3318 1068 A
- 5040 V
- (09521)210 648 A
- (PUBLIC)252 1026 A
- (void)168 1320 A
- (partition(dp,)546 1530 A
- (device,)294 2118 A
- (style))252 2454 A
- 5130 V
- (09522)210 648 A
- (struct)252 1026 A
- (driver)252 1320 A
- (*dp;)168 1614 A
- 2034(/*)S
- (device)252 2160 A
- (dependent)378 2454 A
- (entry)210 2874 A
- (points)252 3126 A
- 3420(*/)S
- 5220 V
- (09523)210 648 A
- (int)126 1026 A
- (device;)294 1194 A
- 2034(/*)S
- (device)252 2160 A
- 2454(to)S
- (partition)378 2580 A
- 3000(*/)S
- 5310 V
- (09524)210 648 A
- (int)126 1026 A
- (style;)252 1194 A
- 2034(/*)S
- (partitioning)504 2160 A
- (style:)252 2706 A
- (floppy,)294 3000 A
- (primary,)336 3336 A
- (sub.)168 3714 A
- 3924(*/)S
- 5400 V
- (09525)210 648 A
- 1026({)S
- 5490 V
- (09526)210 648 A
- 1026(/*)S
- (This)168 1152 A
- (routine)294 1362 A
- 1698(is)S
- (called)252 1824 A
- 2118(on)S
- (first)210 2244 A
- (open)168 2496 A
- 2706(to)S
- (initialize)420 2832 A
- (the)126 3294 A
- (partition)378 3462 A
- (tables)252 3882 A
- 5580 V
- (09527)210 648 A
- 1068(*)S
- 1152(of)S
- 1278(a)S
- (device.)294 1362 A
- 1740(It)S
- (makes)210 1866 A
- (sure)168 2118 A
- (that)168 2328 A
- (each)168 2538 A
- (partition)378 2748 A
- (falls)210 3168 A
- (safely)252 3420 A
- (within)252 3714 A
- (the)126 4008 A
- 5670 V
- (09528)210 648 A
- 1068(*)S
- (device's)336 1152 A
- (limits.)294 1530 A
- (Depending)378 1908 A
- 2328(on)S
- (the)126 2454 A
- (partition)378 2622 A
- (style)210 3042 A
- 3294(we)S
- (are)126 3420 A
- (either)252 3588 A
- (making)252 3882 A
- 5760 V
- (09529)210 648 A
- 1068(*)S
- (floppy)252 1152 A
- (partitions,)462 1446 A
- (primary)294 1950 A
- (partitions)420 2286 A
- 2748(or)S
- (subpartitions.)588 2874 A
- (Only)168 3546 A
- (primary)294 3756 A
- 5850 V
- (09530)210 648 A
- 1068(*)S
- (partitions)420 1152 A
- (are)126 1614 A
- (sorted,)294 1782 A
- (because)294 2118 A
- (they)168 2454 A
- (are)126 2664 A
- (shared)252 2832 A
- (with)168 3126 A
- (other)210 3336 A
- (operating)378 3588 A
- 5940 V
- (09531)210 648 A
- 1068(*)S
- (systems)294 1152 A
- (that)168 1488 A
- (expect)252 1698 A
- (this.)210 1992 A
- 6030 V
- (09532)210 648 A
- 1068(*/)S
- 6120 V
- (09533)210 648 A
- (struct)252 1110 A
- (part_entry)420 1404 A
- (table[NR_PARTITIONS],)882 1866 A
- (*pe;)168 2790 A
- 6210 V
- (09534)210 648 A
- (int)126 1110 A
- (disk,)210 1278 A
- (par;)168 1530 A
- 8418 V
- EP
- %%Page: 121 121
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2015(File:)S
- 2248(src/kernel/drvlib.c)S
- 12 B
- (121)180 4248 A
- 900 V
- 7 LST
- (09535)210 648 A
- (struct)252 1110 A
- (device)252 1404 A
- (*dv;)168 1698 A
- 990 V
- (09536)210 648 A
- (unsigned)336 1110 A
- (long)168 1488 A
- (base,)210 1698 A
- (limit,)252 1950 A
- (part_limit;)462 2244 A
- 1080 V
- (09537)210 648 A
- 1170 V
- (09538)210 648 A
- 1110(/*)S
- (Get)126 1236 A
- (the)126 1404 A
- (geometry)336 1572 A
- 1950(of)S
- (the)126 2076 A
- (device)252 2244 A
- 2538(to)S
- (partition)378 2664 A
- 3084(*/)S
- 1260 V
- (09539)210 648 A
- 1110(if)S
- (((dv)168 1236 A
- 1446(=)S
- ((*dp->dr_prepare)(device)))1092 1530 A
- 2664(==)S
- (NIL_DEV)294 2790 A
- 3126(||)S
- (dv->dv_size)462 3252 A
- 3756(==)S
- 3882(0))S
- (return;)294 4008 A
- 1350 V
- (09540)210 648 A
- (base)168 1110 A
- 1320(=)S
- (dv->dv_base)462 1404 A
- 1908(>>)S
- (SECTOR_SHIFT;)546 2034 A
- 1440 V
- (09541)210 648 A
- (limit)210 1110 A
- 1362(=)S
- (base)168 1446 A
- 1656(+)S
- ((dv->dv_size)504 1740 A
- 2286(>>)S
- (SECTOR_SHIFT);)588 2412 A
- 1530 V
- (09542)210 648 A
- 1620 V
- (09543)210 648 A
- 1110(/*)S
- (Read)168 1236 A
- (the)126 1446 A
- (partition)378 1614 A
- (table)210 2034 A
- (for)126 2286 A
- (the)126 2454 A
- (device.)294 2622 A
- 2958(*/)S
- 1710 V
- (09544)210 648 A
- 1110(if)S
- ((!get_part_table(dp,)840 1236 A
- (device,)294 2118 A
- (0L,)126 2454 A
- (table)))294 2622 A
- (return;)294 2958 A
- 1800 V
- (09545)210 648 A
- 1890 V
- (09546)210 648 A
- 1110(/*)S
- (Compute)294 1236 A
- (the)126 1572 A
- (device)252 1740 A
- (number)252 2034 A
- 2328(of)S
- (the)126 2454 A
- (first)210 2622 A
- (partition.)420 2874 A
- 3336(*/)S
- 1980 V
- (09547)210 648 A
- (switch)252 1110 A
- ((style))294 1404 A
- 1740({)S
- 2070 V
- (09548)210 648 A
- (case)168 1110 A
- (P_FLOPPY:)378 1320 A
- 2160 V
- (09549)210 648 A
- (device)252 1362 A
- 1656(+=)S
- (MINOR_fd0a;)462 1782 A
- 2250 V
- (09550)210 648 A
- (break;)252 1362 A
- 2340 V
- (09551)210 648 A
- (case)168 1110 A
- (P_PRIMARY:)420 1320 A
- 2430 V
- (09552)210 648 A
- (sort(table);)504 1362 A
- 2370(/*)S
- (sort)168 2496 A
- 2706(a)S
- (primary)294 2790 A
- (partition)378 3126 A
- (table)210 3546 A
- 3798(*/)S
- 2520 V
- (09553)210 648 A
- (device)252 1362 A
- 1656(+=)S
- 1782(1;)S
- 2610 V
- (09554)210 648 A
- (break;)252 1362 A
- 2700 V
- (09555)210 648 A
- (case)168 1110 A
- (P_SUB:)252 1320 A
- 2790 V
- (09556)210 648 A
- (disk)168 1362 A
- 1572(=)S
- (device)252 1656 A
- 1950(/)S
- (DEV_PER_DRIVE;)588 2034 A
- 2880 V
- (09557)210 648 A
- (par)126 1362 A
- 1530(=)S
- (device)252 1614 A
- 1908(%)S
- (DEV_PER_DRIVE)546 1992 A
- 2580(-)S
- 2664(1;)S
- 2970 V
- (09558)210 648 A
- (device)252 1362 A
- 1656(=)S
- (MINOR_hd1a)420 1740 A
- 2202(+)S
- ((disk)210 2286 A
- 2538(*)S
- (NR_PARTITIONS)546 2622 A
- 3210(+)S
- (par))168 3294 A
- 3504(*)S
- (NR_PARTITIONS;)588 3588 A
- 3060 V
- (09559)210 648 A
- 1110(})S
- 3150 V
- (09560)210 648 A
- 3240 V
- (09561)210 648 A
- 1110(/*)S
- (Find)168 1236 A
- 1446(an)S
- (array)210 1572 A
- 1824(of)S
- (devices.)336 1950 A
- 2328(*/)S
- 3330 V
- (09562)210 648 A
- 1110(if)S
- (((dv)168 1236 A
- 1446(=)S
- ((*dp->dr_prepare)(device)))1092 1530 A
- 2664(==)S
- (NIL_DEV))336 2790 A
- (return;)294 3168 A
- 3420 V
- (09563)210 648 A
- 3510 V
- (09564)210 648 A
- 1110(/*)S
- (Set)126 1236 A
- (the)126 1404 A
- (geometry)336 1572 A
- 1950(of)S
- (the)126 2076 A
- (partitions)420 2244 A
- (from)168 2706 A
- (the)126 2916 A
- (partition)378 3084 A
- (table.)252 3504 A
- 3798(*/)S
- 3600 V
- (09565)210 648 A
- (for)126 1110 A
- ((par)168 1278 A
- 1488(=)S
- 1572(0;)S
- (par)126 1698 A
- 1866(<)S
- (NR_PARTITIONS;)588 1950 A
- (par++,)252 2580 A
- (dv++))210 2874 A
- 3126({)S
- 3690 V
- (09566)210 648 A
- 1362(/*)S
- (Shrink)252 1488 A
- (the)126 1782 A
- (partition)378 1950 A
- 2370(to)S
- (fit)126 2496 A
- (within)252 2664 A
- (the)126 2958 A
- (device.)294 3126 A
- 3462(*/)S
- 3780 V
- (09567)210 648 A
- 1362(pe)S
- 1488(=)S
- (&table[par];)504 1572 A
- 3870 V
- (09568)210 648 A
- (part_limit)420 1362 A
- 1824(=)S
- (pe->lowsec)420 1908 A
- 2370(+)S
- (pe->size;)378 2454 A
- 3960 V
- (09569)210 648 A
- 1362(if)S
- ((part_limit)462 1488 A
- 1992(<)S
- (pe->lowsec))462 2076 A
- (part_limit)420 2580 A
- 3042(=)S
- (limit;)252 3126 A
- 4050 V
- (09570)210 648 A
- 1362(if)S
- ((part_limit)462 1488 A
- 1992(>)S
- (limit))252 2076 A
- (part_limit)420 2370 A
- 2832(=)S
- (limit;)252 2916 A
- 4140 V
- (09571)210 648 A
- 1362(if)S
- ((pe->lowsec)462 1488 A
- 1992(<)S
- (base))210 2076 A
- (pe->lowsec)420 2328 A
- 2790(=)S
- (base;)210 2874 A
- 4230 V
- (09572)210 648 A
- 1362(if)S
- ((part_limit)462 1488 A
- 1992(<)S
- (pe->lowsec))462 2076 A
- (part_limit)420 2580 A
- 3042(=)S
- (pe->lowsec;)462 3126 A
- 4320 V
- (09573)210 648 A
- 4410 V
- (09574)210 648 A
- (dv->dv_base)462 1362 A
- 1866(=)S
- (pe->lowsec)420 1950 A
- 2412(<<)S
- (SECTOR_SHIFT;)546 2538 A
- 4500 V
- (09575)210 648 A
- (dv->dv_size)462 1362 A
- 1866(=)S
- ((part_limit)462 1950 A
- 2454(-)S
- (pe->lowsec))462 2538 A
- 3042(<<)S
- (SECTOR_SHIFT;)546 3168 A
- 4590 V
- (09576)210 648 A
- 4680 V
- (09577)210 648 A
- 1362(if)S
- ((style)252 1488 A
- 1782(==)S
- (P_PRIMARY))420 1908 A
- 2370({)S
- 4770 V
- (09578)210 648 A
- 1698(/*)S
- (Each)168 1824 A
- (Minix)210 2034 A
- (primary)294 2286 A
- (partition)378 2622 A
- (can)126 3042 A
- 3210(be)S
- (subpartitioned.)630 3336 A
- 4008(*/)S
- 4860 V
- (09579)210 648 A
- 1698(if)S
- ((pe->sysind)462 1824 A
- 2328(==)S
- (MINIX_PART))462 2454 A
- 4950 V
- (09580)210 648 A
- (partition(dp,)546 2034 A
- (device)252 2622 A
- 2916(+)S
- (par,)168 3000 A
- (P_SUB);)294 3210 A
- 5040 V
- (09581)210 648 A
- 5130 V
- (09582)210 648 A
- 1698(/*)S
- 1824(An)S
- (extended)336 1950 A
- (partition)378 2328 A
- (has)126 2748 A
- (logical)294 2916 A
- (partitions.)462 3252 A
- 3756(*/)S
- 5220 V
- (09583)210 648 A
- 1698(if)S
- ((pe->sysind)462 1824 A
- 2328(==)S
- (EXT_PART))378 2454 A
- 5310 V
- (09584)210 648 A
- (extpartition(dp,)672 2034 A
- (device)252 2748 A
- 3042(+)S
- (par,)168 3126 A
- (pe->lowsec);)504 3336 A
- 5400 V
- (09585)210 648 A
- 1362(})S
- 5490 V
- (09586)210 648 A
- 1110(})S
- 5580 V
- (09587)210 648 A
- 1026(})S
- 5850 V
- (09590)210 648 A
- (/*============================================================================*)3318 1026 A
- 5940 V
- (09591)210 648 A
- 1068(*)S
- (extpartition)504 2370 A
- 4302(*)S
- 6030 V
- (09592)210 648 A
- (*============================================================================*/)3318 1068 A
- 6120 V
- (09593)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (extpartition(dp,)672 1572 A
- (extdev,)294 2286 A
- (extbase))336 2622 A
- 6210 V
- (09594)210 648 A
- (struct)252 1026 A
- (driver)252 1320 A
- (*dp;)168 1614 A
- 2034(/*)S
- (device)252 2160 A
- (dependent)378 2454 A
- (entry)210 2874 A
- (points)252 3126 A
- 3420(*/)S
- 8418 V
- EP
- %%Page: 122 122
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (122)180 648 A
- 11 R
- 2015(File:)S
- 2248(src/kernel/drvlib.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (09595)210 648 A
- (int)126 1026 A
- (extdev;)294 1194 A
- 2034(/*)S
- (extended)336 2160 A
- (partition)378 2538 A
- 2958(to)S
- (scan)168 3084 A
- 3294(*/)S
- 990 V
- (09596)210 648 A
- (unsigned)336 1026 A
- (long)168 1404 A
- (extbase;)336 1614 A
- 2034(/*)S
- (sector)252 2160 A
- (offset)252 2454 A
- 2748(of)S
- (the)126 2874 A
- (base)168 3042 A
- (extended)336 3252 A
- (partition)378 3630 A
- 4050(*/)S
- 1080 V
- (09597)210 648 A
- 1026({)S
- 1170 V
- (09598)210 648 A
- 1026(/*)S
- (Extended)336 1152 A
- (partitions)420 1530 A
- (cannot)252 1992 A
- 2286(be)S
- (ignored)294 2412 A
- (alas,)210 2748 A
- (because)294 3000 A
- (people)252 3336 A
- (like)168 3630 A
- 3840(to)S
- (move)168 3966 A
- 1260 V
- (09599)210 648 A
- 1068(*)S
- (files)210 1152 A
- 1404(to)S
- (and)126 1530 A
- (from)168 1698 A
- (DOS)126 1908 A
- (partitions.)462 2076 A
- (Avoid)210 2622 A
- (reading)294 2874 A
- (this)168 3210 A
- (code,)210 3420 A
- (it's)168 3672 A
- 3882(no)S
- (fun.)168 4008 A
- 1350 V
- (09600)210 648 A
- 1068(*/)S
- 1440 V
- (09601)210 648 A
- (struct)252 1110 A
- (part_entry)420 1404 A
- (table[NR_PARTITIONS],)882 1866 A
- (*pe;)168 2790 A
- 1530 V
- (09602)210 648 A
- (int)126 1110 A
- (subdev,)294 1278 A
- (disk,)210 1614 A
- (par;)168 1866 A
- 1620 V
- (09603)210 648 A
- (struct)252 1110 A
- (device)252 1404 A
- (*dv;)168 1698 A
- 1710 V
- (09604)210 648 A
- (unsigned)336 1110 A
- (long)168 1488 A
- (offset,)294 1698 A
- (nextoffset;)462 2034 A
- 1800 V
- (09605)210 648 A
- 1890 V
- (09606)210 648 A
- (disk)168 1110 A
- 1320(=)S
- (extdev)252 1404 A
- 1698(/)S
- (DEV_PER_DRIVE;)588 1782 A
- 1980 V
- (09607)210 648 A
- (par)126 1110 A
- 1278(=)S
- (extdev)252 1362 A
- 1656(%)S
- (DEV_PER_DRIVE)546 1740 A
- 2328(-)S
- 2412(1;)S
- 2070 V
- (09608)210 648 A
- (subdev)252 1110 A
- 1404(=)S
- (MINOR_hd1a)420 1488 A
- 1950(+)S
- ((disk)210 2034 A
- 2286(*)S
- (NR_PARTITIONS)546 2370 A
- 2958(+)S
- (par))168 3042 A
- 3252(*)S
- (NR_PARTITIONS;)588 3336 A
- 2160 V
- (09609)210 648 A
- 2250 V
- (09610)210 648 A
- (offset)252 1110 A
- 1404(=)S
- 1488(0;)S
- 2340 V
- (09611)210 648 A
- 1110(do)S
- 1236({)S
- 2430 V
- (09612)210 648 A
- 1362(if)S
- ((!get_part_table(dp,)840 1488 A
- (extdev,)294 2370 A
- (offset,)294 2706 A
- (table)))294 3042 A
- (return;)294 3378 A
- 2520 V
- (09613)210 648 A
- (sort(table);)504 1362 A
- 2610 V
- (09614)210 648 A
- 2700 V
- (09615)210 648 A
- 1362(/*)S
- (The)126 1488 A
- (table)210 1656 A
- (should)252 1908 A
- (contain)294 2202 A
- (one)126 2538 A
- (logical)294 2706 A
- (partition)378 3042 A
- (and)126 3462 A
- (optionally)420 3630 A
- 2790 V
- (09616)210 648 A
- 1404(*)S
- (another)294 1488 A
- (extended)336 1824 A
- (partition.)420 2202 A
- ((It's)210 2706 A
- 2958(a)S
- (linked)252 3042 A
- (list.))252 3336 A
- 2880 V
- (09617)210 648 A
- 1404(*/)S
- 2970 V
- (09618)210 648 A
- (nextoffset)420 1362 A
- 1824(=)S
- 1908(0;)S
- 3060 V
- (09619)210 648 A
- (for)126 1362 A
- ((par)168 1530 A
- 1740(=)S
- 1824(0;)S
- (par)126 1950 A
- 2118(<)S
- (NR_PARTITIONS;)588 2202 A
- (par++))252 2832 A
- 3126({)S
- 3150 V
- (09620)210 648 A
- 1698(pe)S
- 1824(=)S
- (&table[par];)504 1908 A
- 3240 V
- (09621)210 648 A
- 1698(if)S
- ((pe->sysind)462 1824 A
- 2328(==)S
- (EXT_PART))378 2454 A
- 2874({)S
- 3330 V
- (09622)210 648 A
- (nextoffset)420 2034 A
- 2496(=)S
- (pe->lowsec;)462 2580 A
- 3420 V
- (09623)210 648 A
- 1698(})S
- (else)168 1782 A
- 3510 V
- (09624)210 648 A
- 1698(if)S
- ((pe->sysind)462 1824 A
- 2328(!=)S
- (NO_PART))336 2454 A
- 2832({)S
- 3600 V
- (09625)210 648 A
- 2034(if)S
- (((dv)168 2160 A
- 2370(=)S
- ((*dp->dr_prepare)(subdev)))1092 2454 A
- 3588(==)S
- (NIL_DEV))336 3714 A
- (return;)294 4092 A
- 3690 V
- (09626)210 648 A
- 3780 V
- (09627)210 648 A
- (dv->dv_base)462 2034 A
- 2538(=)S
- ((extbase)336 2622 A
- 3000(+)S
- (offset)252 3084 A
- 3870 V
- (09628)210 648 A
- 2706(+)S
- (pe->lowsec))462 2790 A
- 3294(<<)S
- (SECTOR_SHIFT;)546 3420 A
- 3960 V
- (09629)210 648 A
- (dv->dv_size)462 2034 A
- 2538(=)S
- (pe->size)336 2622 A
- 3000(<<)S
- (SECTOR_SHIFT;)546 3126 A
- 4050 V
- (09630)210 648 A
- 4140 V
- (09631)210 648 A
- 2034(/*)S
- (Out)126 2160 A
- 2328(of)S
- (devices?)336 2454 A
- 2832(*/)S
- 4230 V
- (09632)210 648 A
- 2034(if)S
- ((++subdev)378 2160 A
- 2580(%)S
- (NR_PARTITIONS)546 2664 A
- 3252(==)S
- 3378(0))S
- (return;)294 3504 A
- 4320 V
- (09633)210 648 A
- 1698(})S
- 4410 V
- (09634)210 648 A
- 1362(})S
- 4500 V
- (09635)210 648 A
- 1110(})S
- (while)210 1194 A
- (((offset)336 1446 A
- 1824(=)S
- (nextoffset))462 1908 A
- 2412(!=)S
- (0);)126 2538 A
- 4590 V
- (09636)210 648 A
- 1026(})S
- 4860 V
- (09639)210 648 A
- (/*============================================================================*)3318 1026 A
- 4950 V
- (09640)210 648 A
- 1068(*)S
- (get_part_table)588 2370 A
- 4302(*)S
- 5040 V
- (09641)210 648 A
- (*============================================================================*/)3318 1068 A
- 5130 V
- (09642)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (get_part_table(dp,)756 1530 A
- (device,)294 2328 A
- (offset,)294 2664 A
- (table))252 3000 A
- 5220 V
- (09643)210 648 A
- (struct)252 1026 A
- (driver)252 1320 A
- (*dp;)168 1614 A
- 5310 V
- (09644)210 648 A
- (int)126 1026 A
- (device;)294 1194 A
- 5400 V
- (09645)210 648 A
- (unsigned)336 1026 A
- (long)168 1404 A
- (offset;)294 1614 A
- 2370(/*)S
- (sector)252 2496 A
- (offset)252 2790 A
- 3084(to)S
- (the)126 3210 A
- (table)210 3378 A
- 3630(*/)S
- 5490 V
- (09646)210 648 A
- (struct)252 1026 A
- (part_entry)420 1320 A
- (*table;)294 1782 A
- 2370(/*)S
- (four)168 2496 A
- (entries)294 2706 A
- 3042(*/)S
- 5580 V
- (09647)210 648 A
- 1026({)S
- 5670 V
- (09648)210 648 A
- 1026(/*)S
- (Read)168 1152 A
- (the)126 1362 A
- (partition)378 1530 A
- (table)210 1950 A
- (for)126 2202 A
- (the)126 2370 A
- (device,)294 2538 A
- (return)252 2874 A
- (true)168 3168 A
- (iff)126 3378 A
- (there)210 3546 A
- (were)168 3798 A
- 4008(no)S
- 5760 V
- (09649)210 648 A
- 1068(*)S
- (errors.)294 1152 A
- 5850 V
- (09650)210 648 A
- 1068(*/)S
- 5940 V
- (09651)210 648 A
- (message)294 1110 A
- (mess;)210 1446 A
- 6030 V
- (09652)210 648 A
- 6120 V
- (09653)210 648 A
- (mess.DEVICE)462 1110 A
- 1614(=)S
- (device;)294 1698 A
- 6210 V
- (09654)210 648 A
- (mess.POSITION)546 1110 A
- 1698(=)S
- (offset)252 1782 A
- 2076(<<)S
- (SECTOR_SHIFT;)546 2202 A
- 8418 V
- EP
- %%Page: 123 123
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2015(File:)S
- 2248(src/kernel/drvlib.c)S
- 12 B
- (123)180 4248 A
- 900 V
- 7 LST
- (09655)210 648 A
- (mess.COUNT)420 1110 A
- 1572(=)S
- (SECTOR_SIZE;)504 1656 A
- 990 V
- (09656)210 648 A
- (mess.ADDRESS)504 1110 A
- 1656(=)S
- ((char)210 1740 A
- 1992(*))S
- (tmp_buf;)336 2118 A
- 1080 V
- (09657)210 648 A
- (mess.PROC_NR)504 1110 A
- 1656(=)S
- (proc_number(proc_ptr);)924 1740 A
- 1170 V
- (09658)210 648 A
- (mess.m_type)462 1110 A
- 1614(=)S
- (DEV_READ;)378 1698 A
- 1260 V
- (09659)210 648 A
- 1350 V
- (09660)210 648 A
- 1110(if)S
- ((do_rdwt(dp,)504 1236 A
- (&mess))252 1782 A
- 2076(!=)S
- (SECTOR_SIZE))504 2202 A
- 2748({)S
- 1440 V
- (09661)210 648 A
- (printf("%s:)462 1362 A
- (can't)210 1866 A
- (read)168 2118 A
- (partition)378 2328 A
- (table\n",)378 2748 A
- ((*dp->dr_name)());)756 3168 A
- 1530 V
- (09662)210 648 A
- (return)252 1362 A
- 1656(0;)S
- 1620 V
- (09663)210 648 A
- 1110(})S
- 1710 V
- (09664)210 648 A
- 1110(if)S
- ((tmp_buf[510])546 1236 A
- 1824(!=)S
- (0x55)168 1950 A
- 2160(||)S
- (tmp_buf[511])504 2286 A
- 2832(!=)S
- (0xAA))210 2958 A
- 3210({)S
- 1800 V
- (09665)210 648 A
- 1362(/*)S
- (Invalid)294 1488 A
- (partition)378 1824 A
- (table.)252 2244 A
- 2538(*/)S
- 1890 V
- (09666)210 648 A
- (return)252 1362 A
- 1656(0;)S
- 1980 V
- (09667)210 648 A
- 1110(})S
- 2070 V
- (09668)210 648 A
- (memcpy(table,)546 1110 A
- ((tmp_buf)336 1698 A
- 2076(+)S
- (PART_TABLE_OFF),)672 2160 A
- (NR_PARTITIONS)546 2874 A
- 3462(*)S
- (sizeof(table[0]));)756 3546 A
- 2160 V
- (09669)210 648 A
- (return)252 1110 A
- 1404(1;)S
- 2250 V
- (09670)210 648 A
- 1026(})S
- 2520 V
- (09673)210 648 A
- (/*===========================================================================*)3276 1026 A
- 2610 V
- (09674)210 648 A
- 1068(*)S
- (sort)168 2370 A
- 4260(*)S
- 2700 V
- (09675)210 648 A
- (*===========================================================================*/)3276 1068 A
- 2790 V
- (09676)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (sort(table))462 1572 A
- 2880 V
- (09677)210 648 A
- (struct)252 1026 A
- (part_entry)420 1320 A
- (*table;)294 1782 A
- 2970 V
- (09678)210 648 A
- 1026({)S
- 3060 V
- (09679)210 648 A
- 1026(/*)S
- (Sort)168 1152 A
- 1362(a)S
- (partition)378 1446 A
- (table.)252 1866 A
- 2160(*/)S
- 3150 V
- (09680)210 648 A
- (struct)252 1110 A
- (part_entry)420 1404 A
- (*pe,)168 1866 A
- (tmp;)168 2076 A
- 3240 V
- (09681)210 648 A
- (int)126 1110 A
- 1278(n)S
- 1362(=)S
- (NR_PARTITIONS;)588 1446 A
- 3330 V
- (09682)210 648 A
- 3420 V
- (09683)210 648 A
- 1110(do)S
- 1236({)S
- 3510 V
- (09684)210 648 A
- (for)126 1362 A
- ((pe)126 1530 A
- 1698(=)S
- (table;)252 1782 A
- 2076(pe)S
- 2202(<)S
- (table)210 2286 A
- 2538(+)S
- (NR_PARTITIONS-1;)672 2622 A
- (pe++))210 3336 A
- 3588({)S
- 3600 V
- (09685)210 648 A
- 1698(if)S
- ((pe[0].sysind)546 1824 A
- 2412(==)S
- (NO_PART)294 2538 A
- 3690 V
- (09686)210 648 A
- 2034(||)S
- ((pe[0].lowsec)546 2160 A
- 2748(>)S
- (pe[1].lowsec)504 2832 A
- 3780 V
- (09687)210 648 A
- 2706(&&)S
- (pe[1].sysind)504 2832 A
- 3378(!=)S
- (NO_PART)))378 3504 A
- 3924({)S
- 3870 V
- (09688)210 648 A
- (tmp)126 2034 A
- 2202(=)S
- (pe[0];)252 2286 A
- (pe[0])210 2580 A
- 2832(=)S
- (pe[1];)252 2916 A
- (pe[1])210 3210 A
- 3462(=)S
- (tmp;)168 3546 A
- 3960 V
- (09689)210 648 A
- 1698(})S
- 4050 V
- (09690)210 648 A
- 1362(})S
- 4140 V
- (09691)210 648 A
- 1110(})S
- (while)210 1194 A
- ((--n)168 1446 A
- 1656(>)S
- (0);)126 1740 A
- 4230 V
- (09692)210 648 A
- 1026(})S
- 4590 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 4680 V
- (src/kernel/memory.c)798 2034 A
- 4770 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 4950 V
- (09700)210 648 A
- 1026(/*)S
- (This)168 1152 A
- (file)168 1362 A
- (contains)336 1572 A
- (the)126 1950 A
- (device)252 2118 A
- (dependent)378 2412 A
- (part)168 2832 A
- 3042(of)S
- (the)126 3168 A
- (drivers)294 3336 A
- (for)126 3672 A
- (the)126 3840 A
- 5040 V
- (09701)210 648 A
- 1068(*)S
- (following)378 1152 A
- (special)294 1572 A
- (files:)252 1908 A
- 5130 V
- (09702)210 648 A
- 1068(*)S
- (/dev/null)378 1320 A
- 2034(-)S
- (null)168 2118 A
- (device)252 2328 A
- ((data)210 2622 A
- (sink))210 2874 A
- 5220 V
- (09703)210 648 A
- 1068(*)S
- (/dev/mem)336 1320 A
- 2034(-)S
- (absolute)336 2118 A
- (memory)252 2496 A
- 5310 V
- (09704)210 648 A
- 1068(*)S
- (/dev/kmem)378 1320 A
- 2034(-)S
- (kernel)252 2118 A
- (virtual)294 2412 A
- (memory)252 2748 A
- 5400 V
- (09705)210 648 A
- 1068(*)S
- (/dev/ram)336 1320 A
- 2034(-)S
- (RAM)126 2118 A
- (disk)168 2286 A
- 5490 V
- (09706)210 648 A
- 1068(*)S
- 5580 V
- (09707)210 648 A
- 1068(*)S
- (The)126 1152 A
- (file)168 1320 A
- (contains)336 1530 A
- (one)126 1908 A
- (entry)210 2076 A
- (point:)252 2328 A
- 5670 V
- (09708)210 648 A
- 1068(*)S
- 5760 V
- (09709)210 648 A
- 1068(*)S
- (mem_task:)378 1236 A
- (main)168 1698 A
- (entry)210 1908 A
- (when)168 2160 A
- (system)252 2370 A
- 2664(is)S
- (brought)294 2790 A
- 3126(up)S
- 5850 V
- (09710)210 648 A
- 1068(*)S
- 5940 V
- (09711)210 648 A
- 1068(*)S
- (Changes:)336 1194 A
- 6030 V
- (09712)210 648 A
- 1068(*)S
- 1362(20)S
- (Apr)126 1488 A
- (1992)168 1698 A
- 1908(by)S
- (Kees)168 2034 A
- 2244(J.)S
- (Bot:)168 2370 A
- (device)252 2580 A
- (dependent/independent)882 2874 A
- (split)210 3798 A
- 6120 V
- (09713)210 648 A
- 1068(*/)S
- 6210 V
- (09714)210 648 A
- 8418 V
- EP
- %%Page: 124 124
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (124)180 648 A
- 11 R
- 1963(File:)S
- 2196(src/kernel/memory.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (09715)210 648 A
- (#include)336 1026 A
- ("kernel.h")420 1404 A
- 990 V
- (09716)210 648 A
- (#include)336 1026 A
- ("driver.h")420 1404 A
- 1080 V
- (09717)210 648 A
- (#include)336 1026 A
- (<sys/ioctl.h>)546 1404 A
- 1170 V
- (09718)210 648 A
- 1260 V
- (09719)210 648 A
- (#define)294 1026 A
- (NR_RAMS)294 1362 A
- 2160(4)S
- 2370(/*)S
- (number)252 2496 A
- 2790(of)S
- (RAM-type)336 2916 A
- (devices)294 3294 A
- 3630(*/)S
- 1350 V
- (09720)210 648 A
- 1440 V
- (09721)210 648 A
- (PRIVATE)294 1026 A
- (struct)252 1362 A
- (device)252 1656 A
- (m_geom[NR_RAMS];)672 1950 A
- 2706(/*)S
- (Base)168 2832 A
- (and)126 3042 A
- (size)168 3210 A
- 3420(of)S
- (each)168 3546 A
- (RAM)126 3756 A
- (disk)168 3924 A
- 4134(*/)S
- 1530 V
- (09722)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (m_device;)378 1530 A
- 2370(/*)S
- (current)294 2496 A
- (device)252 2832 A
- 3126(*/)S
- 1620 V
- (09723)210 648 A
- 1710 V
- (09724)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (struct)252 1866 A
- (device)252 2160 A
- (*m_prepare,)462 2454 A
- ((int)168 2958 A
- (device))294 3168 A
- 3504();)S
- 1800 V
- (09725)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (int)126 1866 A
- (m_schedule,)462 2034 A
- ((int)168 2538 A
- (proc_nr,)336 2748 A
- (struct)252 3126 A
- (iorequest_s)462 3420 A
- (*iop))210 3924 A
- 4176();)S
- 1890 V
- (09726)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (int)126 1866 A
- (m_do_open,)420 2034 A
- ((struct)294 2496 A
- (driver)252 2832 A
- (*dp,)168 3126 A
- (message)294 3336 A
- (*m_ptr))294 3672 A
- 4008();)S
- 1980 V
- (09727)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (m_init,)294 2076 A
- ((void))252 2412 A
- 2706();)S
- 2070 V
- (09728)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (int)126 1866 A
- (m_ioctl,)336 2034 A
- ((struct)294 2412 A
- (driver)252 2748 A
- (*dp,)168 3042 A
- (message)294 3252 A
- (*m_ptr))294 3588 A
- 3924();)S
- 2160 V
- (09729)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (m_geometry,)462 2076 A
- ((struct)294 2580 A
- (partition)378 2916 A
- (*entry))294 3336 A
- 3672();)S
- 2250 V
- (09730)210 648 A
- 2340 V
- (09731)210 648 A
- 2430 V
- (09732)210 648 A
- 1026(/*)S
- (Entry)210 1152 A
- (points)252 1404 A
- 1698(to)S
- (this)168 1824 A
- (driver.)294 2034 A
- 2370(*/)S
- 2520 V
- (09733)210 648 A
- (PRIVATE)294 1026 A
- (struct)252 1362 A
- (driver)252 1656 A
- (m_dtab)252 1950 A
- 2244(=)S
- 2328({)S
- 2610 V
- (09734)210 648 A
- (no_name,)336 1110 A
- 1698(/*)S
- (current)294 1824 A
- (device's)336 2160 A
- (name)168 2538 A
- 2748(*/)S
- 2700 V
- (09735)210 648 A
- (m_do_open,)420 1110 A
- 1698(/*)S
- (open)168 1824 A
- 2034(or)S
- (mount)210 2160 A
- 2412(*/)S
- 2790 V
- (09736)210 648 A
- (do_nop,)294 1110 A
- 1698(/*)S
- (nothing)294 1824 A
- 2160(on)S
- 2286(a)S
- (close)210 2370 A
- 2622(*/)S
- 2880 V
- (09737)210 648 A
- (m_ioctl,)336 1110 A
- 1698(/*)S
- (specify)294 1824 A
- (ram)126 2160 A
- (disk)168 2328 A
- (geometry)336 2538 A
- 2916(*/)S
- 2970 V
- (09738)210 648 A
- (m_prepare,)420 1110 A
- 1698(/*)S
- (prepare)294 1824 A
- (for)126 2160 A
- (I/O)126 2328 A
- 2496(on)S
- 2622(a)S
- (given)210 2706 A
- (minor)210 2958 A
- (device)252 3210 A
- 3504(*/)S
- 3060 V
- (09739)210 648 A
- (m_schedule,)462 1110 A
- 1698(/*)S
- 1824(do)S
- (the)126 1950 A
- (I/O)126 2118 A
- 2286(*/)S
- 3150 V
- (09740)210 648 A
- (nop_finish,)462 1110 A
- 1698(/*)S
- (schedule)336 1824 A
- (does)168 2202 A
- (the)126 2412 A
- (work,)210 2580 A
- 2832(no)S
- (need)168 2958 A
- 3168(to)S
- 3294(be)S
- (smart)210 3420 A
- 3672(*/)S
- 3240 V
- (09741)210 648 A
- (nop_cleanup,)504 1110 A
- 1698(/*)S
- (nothing's)378 1824 A
- (dirty)210 2244 A
- 2496(*/)S
- 3330 V
- (09742)210 648 A
- (m_geometry,)462 1110 A
- 1698(/*)S
- (memory)252 1824 A
- (device)252 2118 A
- ("geometry")420 2412 A
- 2874(*/)S
- 3420 V
- (09743)210 648 A
- 1026(};)S
- 3510 V
- (09744)210 648 A
- 3600 V
- (09745)210 648 A
- 3690 V
- (09746)210 648 A
- (/*===========================================================================*)3276 1026 A
- 3780 V
- (09747)210 648 A
- 1068(*)S
- (mem_task)336 2370 A
- 4260(*)S
- 3870 V
- (09748)210 648 A
- (*===========================================================================*/)3276 1068 A
- 3960 V
- (09749)210 648 A
- (PUBLIC)252 1026 A
- (void)168 1320 A
- (mem_task())420 1530 A
- 4050 V
- (09750)210 648 A
- 1026({)S
- 4140 V
- (09751)210 648 A
- (m_init();)378 1110 A
- 4230 V
- (09752)210 648 A
- (driver_task(&m_dtab);)882 1110 A
- 4320 V
- (09753)210 648 A
- 1026(})S
- 4590 V
- (09756)210 648 A
- (/*===========================================================================*)3276 1026 A
- 4680 V
- (09757)210 648 A
- 1068(*)S
- (m_prepare)378 2370 A
- 4260(*)S
- 4770 V
- (09758)210 648 A
- (*===========================================================================*/)3276 1068 A
- 4860 V
- (09759)210 648 A
- (PRIVATE)294 1026 A
- (struct)252 1362 A
- (device)252 1656 A
- (*m_prepare(device))756 1950 A
- 4950 V
- (09760)210 648 A
- (int)126 1026 A
- (device;)294 1194 A
- 5040 V
- (09761)210 648 A
- 1026({)S
- 5130 V
- (09762)210 648 A
- 1026(/*)S
- (Prepare)294 1152 A
- (for)126 1488 A
- (I/O)126 1656 A
- 1824(on)S
- 1950(a)S
- (device.)294 2034 A
- 2370(*/)S
- 5220 V
- (09763)210 648 A
- 5310 V
- (09764)210 648 A
- 1110(if)S
- ((device)294 1236 A
- 1572(<)S
- 1656(0)S
- 1740(||)S
- (device)252 1866 A
- 2160(>=)S
- (NR_RAMS))336 2286 A
- (return(NIL_DEV);)672 2664 A
- 5400 V
- (09765)210 648 A
- (m_device)336 1110 A
- 1488(=)S
- (device;)294 1572 A
- 5490 V
- (09766)210 648 A
- 5580 V
- (09767)210 648 A
- (return(&m_geom[device]);)1008 1110 A
- 5670 V
- (09768)210 648 A
- 1026(})S
- 5940 V
- (09771)210 648 A
- (/*===========================================================================*)3276 1026 A
- 6030 V
- (09772)210 648 A
- 1068(*)S
- (m_schedule)420 2370 A
- 4260(*)S
- 6120 V
- (09773)210 648 A
- (*===========================================================================*/)3276 1068 A
- 6210 V
- (09774)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (m_schedule(proc_nr,)798 1530 A
- (iop))168 2370 A
- 8418 V
- EP
- %%Page: 125 125
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 1963(File:)S
- 2196(src/kernel/memory.c)S
- 12 B
- (125)180 4248 A
- 900 V
- 7 LST
- (09775)210 648 A
- (int)126 1026 A
- (proc_nr;)336 1194 A
- 2370(/*)S
- (process)294 2496 A
- (doing)210 2832 A
- (the)126 3084 A
- (request)294 3252 A
- 3588(*/)S
- 990 V
- (09776)210 648 A
- (struct)252 1026 A
- (iorequest_s)462 1320 A
- (*iop;)210 1824 A
- 2370(/*)S
- (pointer)294 2496 A
- 2832(to)S
- (read)168 2958 A
- 3168(or)S
- (write)210 3294 A
- (request)294 3546 A
- 3882(*/)S
- 1080 V
- (09777)210 648 A
- 1026({)S
- 1170 V
- (09778)210 648 A
- 1026(/*)S
- (Read)168 1152 A
- 1362(or)S
- (write)210 1488 A
- (/dev/null,)420 1740 A
- (/dev/mem,)378 2202 A
- (/dev/kmem,)420 2622 A
- 3084(or)S
- (/dev/ram.)378 3210 A
- 3630(*/)S
- 1260 V
- (09779)210 648 A
- 1350 V
- (09780)210 648 A
- (int)126 1110 A
- (device,)294 1278 A
- (count,)252 1614 A
- (opcode;)294 1908 A
- 1440 V
- (09781)210 648 A
- (phys_bytes)420 1110 A
- (mem_phys,)378 1572 A
- (user_phys;)420 1992 A
- 1530 V
- (09782)210 648 A
- (struct)252 1110 A
- (device)252 1404 A
- (*dv;)168 1698 A
- 1620 V
- (09783)210 648 A
- 1710 V
- (09784)210 648 A
- 1110(/*)S
- (Type)168 1236 A
- 1446(of)S
- (request)294 1572 A
- 1908(*/)S
- 1800 V
- (09785)210 648 A
- (opcode)252 1110 A
- 1404(=)S
- (iop->io_request)630 1488 A
- 2160(&)S
- (304OPTIONAL_IO;)546 2244 A
- 1890 V
- (09786)210 648 A
- 1980 V
- (09787)210 648 A
- 1110(/*)S
- (Get)126 1236 A
- (minor)210 1404 A
- (device)252 1656 A
- (number)252 1950 A
- (and)126 2244 A
- (check)210 2412 A
- (for)126 2664 A
- (/dev/null.)420 2832 A
- 3294(*/)S
- 2070 V
- (09788)210 648 A
- (device)252 1110 A
- 1404(=)S
- (m_device;)378 1488 A
- 2160 V
- (09789)210 648 A
- 1110(dv)S
- 1236(=)S
- (&m_geom[device];)672 1320 A
- 2250 V
- (09790)210 648 A
- 2340 V
- (09791)210 648 A
- 1110(/*)S
- (Determine)378 1236 A
- (address)294 1656 A
- (where)210 1992 A
- (data)168 2244 A
- 2454(is)S
- 2580(to)S
- 2706(go)S
- 2832(or)S
- 2958(to)S
- (come)168 3084 A
- (from.)210 3294 A
- 3546(*/)S
- 2430 V
- (09792)210 648 A
- (user_phys)378 1110 A
- 1530(=)S
- (numap(proc_nr,)588 1614 A
- ((vir_bytes))462 2244 A
- (iop->io_buf,)504 2748 A
- 2520 V
- (09793)210 648 A
- ((vir_bytes))462 3042 A
- (iop->io_nbytes);)672 3546 A
- 2610 V
- (09794)210 648 A
- 1110(if)S
- ((user_phys)420 1236 A
- 1698(==)S
- 1824(0))S
- (return(iop->io_nbytes)882 1950 A
- 2874(=)S
- (EINVAL);)336 2958 A
- 2700 V
- (09795)210 648 A
- 2790 V
- (09796)210 648 A
- 1110(if)S
- ((device)294 1236 A
- 1572(==)S
- (NULL_DEV))378 1698 A
- 2118({)S
- 2880 V
- (09797)210 648 A
- 1362(/*)S
- (/dev/null:)420 1488 A
- (Black)210 1950 A
- (hole.)210 2202 A
- 2454(*/)S
- 2970 V
- (09798)210 648 A
- 1362(if)S
- ((opcode)294 1488 A
- 1824(==)S
- (DEV_WRITE))420 1950 A
- (iop->io_nbytes)588 2412 A
- 3042(=)S
- 3126(0;)S
- 3060 V
- (09799)210 648 A
- (count)210 1362 A
- 1614(=)S
- 1698(0;)S
- 3150 V
- (09800)210 648 A
- 1110(})S
- (else)168 1194 A
- 1404({)S
- 3240 V
- (09801)210 648 A
- 1362(/*)S
- (/dev/mem,)378 1488 A
- (/dev/kmem,)420 1908 A
- 2370(or)S
- (/dev/ram:)378 2496 A
- (Check)210 2916 A
- (for)126 3168 A
- (EOF)126 3336 A
- 3504(*/)S
- 3330 V
- (09802)210 648 A
- 1362(if)S
- ((iop->io_position)714 1488 A
- 2244(>=)S
- (dv->dv_size))504 2370 A
- (return(OK);)462 2916 A
- 3420 V
- (09803)210 648 A
- (count)210 1362 A
- 1614(=)S
- (iop->io_nbytes;)630 1698 A
- 3510 V
- (09804)210 648 A
- 1362(if)S
- ((iop->io_position)714 1488 A
- 2244(+)S
- (count)210 2328 A
- 2580(>)S
- (dv->dv_size))504 2664 A
- 3600 V
- (09805)210 648 A
- (count)210 1698 A
- 1950(=)S
- (dv->dv_size)462 2034 A
- 2538(-)S
- (iop->io_position;)714 2622 A
- 3690 V
- (09806)210 648 A
- 1110(})S
- 3780 V
- (09807)210 648 A
- 3870 V
- (09808)210 648 A
- 1110(/*)S
- (Set)126 1236 A
- 1404(up)S
- ('mem_phys')420 1530 A
- (for)126 1992 A
- (/dev/mem,)378 2160 A
- (/dev/kmem,)420 2580 A
- 3042(or)S
- (/dev/ram)336 3168 A
- 3546(*/)S
- 3960 V
- (09809)210 648 A
- (mem_phys)336 1110 A
- 1488(=)S
- (dv->dv_base)462 1572 A
- 2076(+)S
- (iop->io_position;)714 2160 A
- 4050 V
- (09810)210 648 A
- 4140 V
- (09811)210 648 A
- 1110(/*)S
- (Book)168 1236 A
- (the)126 1446 A
- (number)252 1614 A
- 1908(of)S
- (bytes)210 2034 A
- 2286(to)S
- 2412(be)S
- (transferred)462 2538 A
- 3042(in)S
- (advance.)336 3168 A
- 3546(*/)S
- 4230 V
- (09812)210 648 A
- (iop->io_nbytes)588 1110 A
- 1740(-=)S
- (count;)252 1866 A
- 4320 V
- (09813)210 648 A
- 4410 V
- (09814)210 648 A
- 1110(if)S
- ((count)252 1236 A
- 1530(==)S
- 1656(0))S
- (return(OK);)462 1782 A
- 4500 V
- (09815)210 648 A
- 4590 V
- (09816)210 648 A
- 1110(/*)S
- (Copy)168 1236 A
- (the)126 1446 A
- (data.)210 1614 A
- 1866(*/)S
- 4680 V
- (09817)210 648 A
- 1110(if)S
- ((opcode)294 1236 A
- 1572(==)S
- (DEV_READ))378 1698 A
- 4770 V
- (09818)210 648 A
- (phys_copy(mem_phys,)798 1362 A
- (user_phys,)420 2202 A
- ((phys_bytes))504 2664 A
- (count);)294 3210 A
- 4860 V
- (09819)210 648 A
- (else)168 1110 A
- 4950 V
- (09820)210 648 A
- (phys_copy(user_phys,)840 1362 A
- (mem_phys,)378 2244 A
- ((phys_bytes))504 2664 A
- (count);)294 3210 A
- 5040 V
- (09821)210 648 A
- 5130 V
- (09822)210 648 A
- (return(OK);)462 1110 A
- 5220 V
- (09823)210 648 A
- 1026(})S
- 5490 V
- (09826)210 648 A
- (/*============================================================================*)3318 1026 A
- 5580 V
- (09827)210 648 A
- 1068(*)S
- (m_do_open)378 2370 A
- 4302(*)S
- 5670 V
- (09828)210 648 A
- (*============================================================================*/)3318 1068 A
- 5760 V
- (09829)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (m_do_open(dp,)546 1530 A
- (m_ptr))252 2118 A
- 5850 V
- (09830)210 648 A
- (struct)252 1026 A
- (driver)252 1320 A
- (*dp;)168 1614 A
- 5940 V
- (09831)210 648 A
- (message)294 1026 A
- (*m_ptr;)294 1362 A
- 6030 V
- (09832)210 648 A
- 1026({)S
- 6120 V
- (09833)210 648 A
- 1026(/*)S
- (Check)210 1152 A
- (device)252 1404 A
- (number)252 1698 A
- 1992(on)S
- (open.)210 2118 A
- (Give)168 2412 A
- (I/O)126 2622 A
- (privileges)420 2790 A
- 3252(to)S
- 3378(a)S
- (process)294 3462 A
- (opening)294 3798 A
- 6210 V
- (09834)210 648 A
- 1068(*)S
- (/dev/mem)336 1152 A
- 1530(or)S
- (/dev/kmem.)420 1656 A
- 8418 V
- EP
- %%Page: 126 126
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (126)180 648 A
- 11 R
- 1963(File:)S
- 2196(src/kernel/memory.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (09835)210 648 A
- 1068(*/)S
- 990 V
- (09836)210 648 A
- 1080 V
- (09837)210 648 A
- 1110(if)S
- ((m_prepare(m_ptr->DEVICE))1050 1236 A
- 2328(==)S
- (NIL_DEV))336 2454 A
- (return(ENXIO);)588 2832 A
- 1170 V
- (09838)210 648 A
- 1260 V
- (09839)210 648 A
- 1110(if)S
- ((m_device)378 1236 A
- 1656(==)S
- (MEM_DEV)294 1782 A
- 2118(||)S
- (m_device)336 2244 A
- 2622(==)S
- (KMEM_DEV))378 2748 A
- 1350 V
- (09840)210 648 A
- (enable_iop(proc_addr(m_ptr->PROC_NR));)1596 1362 A
- 1440 V
- (09841)210 648 A
- 1530 V
- (09842)210 648 A
- (return(OK);)462 1110 A
- 1620 V
- (09843)210 648 A
- 1026(})S
- 1890 V
- (09846)210 648 A
- (/*===========================================================================*)3276 1026 A
- 1980 V
- (09847)210 648 A
- 1068(*)S
- (m_init)252 2370 A
- 4260(*)S
- 2070 V
- (09848)210 648 A
- (*===========================================================================*/)3276 1068 A
- 2160 V
- (09849)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (m_init())336 1572 A
- 2250 V
- (09850)210 648 A
- 1026({)S
- 2340 V
- (09851)210 648 A
- 1110(/*)S
- (Initialize)420 1236 A
- (this)168 1698 A
- (task.)210 1908 A
- 2160(*/)S
- 2430 V
- (09852)210 648 A
- (extern)252 1110 A
- (int)126 1404 A
- (_end;)210 1572 A
- 2520 V
- (09853)210 648 A
- 2610 V
- (09854)210 648 A
- (m_geom[KMEM_DEV].dv_base)1008 1110 A
- 2160(=)S
- (vir2phys(0);)504 2244 A
- 2700 V
- (09855)210 648 A
- (m_geom[KMEM_DEV].dv_size)1008 1110 A
- 2160(=)S
- (vir2phys(&_end);)672 2244 A
- 2790 V
- (09856)210 648 A
- 2880 V
- (09857)210 648 A
- (#if)126 1026 A
- ((CHIP)210 1194 A
- 1446(==)S
- (INTEL))252 1572 A
- 2970 V
- (09858)210 648 A
- 1110(if)S
- ((!protected_mode))714 1236 A
- 1992({)S
- 3060 V
- (09859)210 648 A
- (m_geom[MEM_DEV].dv_size)966 1362 A
- 2370(=)S
- (0x100000;)378 2538 A
- 3042(/*)S
- 3168(1M)S
- (for)126 3294 A
- (8086)168 3462 A
- (systems)294 3672 A
- 4008(*/)S
- 3150 V
- (09860)210 648 A
- 1110(})S
- (else)168 1194 A
- 1404({)S
- 3240 V
- (09861)210 648 A
- (#if)126 1026 A
- (_WORD_SIZE)420 1194 A
- 1656(==)S
- 1782(2)S
- 3330 V
- (09862)210 648 A
- (m_geom[MEM_DEV].dv_size)966 1362 A
- 2370(=)S
- (0x1000000;)420 2496 A
- 3042(/*)S
- (16M)126 3168 A
- (for)126 3336 A
- (286)126 3504 A
- (systems)294 3672 A
- 4008(*/)S
- 3420 V
- (09863)210 648 A
- (#else)210 1026 A
- 3510 V
- (09864)210 648 A
- (m_geom[MEM_DEV].dv_size)966 1362 A
- 2370(=)S
- (0xFFFFFFFF;)462 2454 A
- 3042(/*)S
- (4G-1)168 3168 A
- (for)126 3378 A
- (386)126 3546 A
- (systems)294 3714 A
- 4050(*/)S
- 3600 V
- (09865)210 648 A
- (#endif)252 1026 A
- 3690 V
- (09866)210 648 A
- 1110(})S
- 3780 V
- (09867)210 648 A
- (#endif)252 1026 A
- 3870 V
- (09868)210 648 A
- 1026(})S
- 4140 V
- (09871)210 648 A
- (/*===========================================================================*)3276 1026 A
- 4230 V
- (09872)210 648 A
- 1068(*)S
- (m_ioctl)294 2370 A
- 4260(*)S
- 4320 V
- (09873)210 648 A
- (*===========================================================================*/)3276 1068 A
- 4410 V
- (09874)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (m_ioctl(dp,)462 1530 A
- (m_ptr))252 2034 A
- 4500 V
- (09875)210 648 A
- (struct)252 1026 A
- (driver)252 1320 A
- (*dp;)168 1614 A
- 4590 V
- (09876)210 648 A
- (message)294 1026 A
- (*m_ptr;)294 1362 A
- 2370(/*)S
- (pointer)294 2496 A
- 2832(to)S
- (read)168 2958 A
- 3168(or)S
- (write)210 3294 A
- (message)294 3546 A
- 3882(*/)S
- 4680 V
- (09877)210 648 A
- 1026({)S
- 4770 V
- (09878)210 648 A
- 1026(/*)S
- (Set)126 1152 A
- (parameters)420 1320 A
- (for)126 1782 A
- (one)126 1950 A
- 2118(of)S
- (the)126 2244 A
- (RAM)126 2412 A
- (disks.)252 2580 A
- 2874(*/)S
- 4860 V
- (09879)210 648 A
- 4950 V
- (09880)210 648 A
- (unsigned)336 1110 A
- (long)168 1488 A
- (bytesize;)378 1698 A
- 5040 V
- (09881)210 648 A
- (unsigned)336 1110 A
- (base,)210 1488 A
- (size;)210 1740 A
- 5130 V
- (09882)210 648 A
- (struct)252 1110 A
- (memory)252 1404 A
- (*memp;)252 1698 A
- 5220 V
- (09883)210 648 A
- (static)252 1110 A
- (struct)252 1404 A
- (psinfo)252 1698 A
- (psinfo)252 1992 A
- 2286(=)S
- 2370({)S
- (NR_TASKS,)378 2454 A
- (NR_PROCS,)378 2874 A
- ((vir_bytes))462 3294 A
- (proc,)210 3798 A
- 4050(0,)S
- 4176(0)S
- 4260(};)S
- 5310 V
- (09884)210 648 A
- (phys_bytes)420 1110 A
- (psinfo_phys;)504 1572 A
- 5400 V
- (09885)210 648 A
- 5490 V
- (09886)210 648 A
- (switch)252 1110 A
- ((m_ptr->REQUEST))672 1404 A
- 2118({)S
- 5580 V
- (09887)210 648 A
- (case)168 1110 A
- (MIOCRAMSIZE:)504 1320 A
- 5670 V
- (09888)210 648 A
- 1362(/*)S
- 1488(FS)S
- (sets)168 1614 A
- (the)126 1824 A
- (RAM)126 1992 A
- (disk)168 2160 A
- (size.)210 2370 A
- 2622(*/)S
- 5760 V
- (09889)210 648 A
- 1362(if)S
- ((m_ptr->PROC_NR)630 1488 A
- 2160(!=)S
- (FS_PROC_NR))462 2286 A
- (return(EPERM);)588 2790 A
- 5850 V
- (09890)210 648 A
- 5940 V
- (09891)210 648 A
- (bytesize)336 1362 A
- 1740(=)S
- (m_ptr->POSITION)630 1824 A
- 2496(*)S
- (BLOCK_SIZE;)462 2580 A
- 6030 V
- (09892)210 648 A
- (size)168 1362 A
- 1572(=)S
- ((bytesize)378 1656 A
- 2076(+)S
- (CLICK_SHIFT-1))588 2160 A
- 2790(>>)S
- (CLICK_SHIFT;)504 2916 A
- 6120 V
- (09893)210 648 A
- 6210 V
- (09894)210 648 A
- 1362(/*)S
- (Find)168 1488 A
- 1698(a)S
- (memory)252 1782 A
- (chunk)210 2076 A
- (big)126 2328 A
- (enough)252 2496 A
- (for)126 2790 A
- (the)126 2958 A
- (RAM)126 3126 A
- (disk.)210 3294 A
- 3546(*/)S
- 8418 V
- EP
- %%Page: 127 127
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 1963(File:)S
- 2196(src/kernel/memory.c)S
- 12 B
- (127)180 4248 A
- 900 V
- 7 LST
- (09895)210 648 A
- (memp=)210 1362 A
- (&mem[NR_MEMS];)588 1614 A
- 990 V
- (09896)210 648 A
- (while)210 1362 A
- (((--memp)->size)630 1614 A
- 2286(<)S
- (size))210 2370 A
- 2622({)S
- 1080 V
- (09897)210 648 A
- 1698(if)S
- ((memp)210 1824 A
- 2076(==)S
- (mem))168 2202 A
- (panic("RAM)420 2412 A
- (disk)168 2874 A
- 3084(is)S
- (too)126 3210 A
- (big",)210 3378 A
- (NO_NUM);)336 3630 A
- 1170 V
- (09898)210 648 A
- 1362(})S
- 1260 V
- (09899)210 648 A
- (base)168 1362 A
- 1572(=)S
- (memp->base;)462 1656 A
- 1350 V
- (09900)210 648 A
- (memp->base)420 1362 A
- 1824(+=)S
- (size;)210 1950 A
- 1440 V
- (09901)210 648 A
- (memp->size)420 1362 A
- 1824(-=)S
- (size;)210 1950 A
- 1530 V
- (09902)210 648 A
- 1620 V
- (09903)210 648 A
- (m_geom[RAM_DEV].dv_base)966 1362 A
- 2370(=)S
- ((unsigned)378 2454 A
- (long))210 2874 A
- (base)168 3126 A
- 3336(<<)S
- (CLICK_SHIFT;)504 3462 A
- 1710 V
- (09904)210 648 A
- (m_geom[RAM_DEV].dv_size)966 1362 A
- 2370(=)S
- (bytesize;)378 2454 A
- 1800 V
- (09905)210 648 A
- (break;)252 1362 A
- 1890 V
- (09906)210 648 A
- (case)168 1110 A
- (MIOCSPSINFO:)504 1320 A
- 1980 V
- (09907)210 648 A
- 1362(/*)S
- 1488(MM)S
- 1614(or)S
- 1740(FS)S
- (set)126 1866 A
- (the)126 2034 A
- (address)294 2202 A
- 2538(of)S
- (their)210 2664 A
- (process)294 2916 A
- (table.)252 3252 A
- 3546(*/)S
- 2070 V
- (09908)210 648 A
- 1362(if)S
- ((m_ptr->PROC_NR)630 1488 A
- 2160(==)S
- (MM_PROC_NR))462 2286 A
- 2790({)S
- 2160 V
- (09909)210 648 A
- (psinfo.mproc)504 1698 A
- 2244(=)S
- ((vir_bytes))462 2328 A
- (m_ptr->ADDRESS;)630 2832 A
- 2250 V
- (09910)210 648 A
- 1362(})S
- (else)168 1446 A
- 2340 V
- (09911)210 648 A
- 1362(if)S
- ((m_ptr->PROC_NR)630 1488 A
- 2160(==)S
- (FS_PROC_NR))462 2286 A
- 2790({)S
- 2430 V
- (09912)210 648 A
- (psinfo.fproc)504 1698 A
- 2244(=)S
- ((vir_bytes))462 2328 A
- (m_ptr->ADDRESS;)630 2832 A
- 2520 V
- (09913)210 648 A
- 1362(})S
- (else)168 1446 A
- 1656({)S
- 2610 V
- (09914)210 648 A
- (return(EPERM);)588 1698 A
- 2700 V
- (09915)210 648 A
- 1362(})S
- 2790 V
- (09916)210 648 A
- (break;)252 1362 A
- 2880 V
- (09917)210 648 A
- (case)168 1110 A
- (MIOCGPSINFO:)504 1320 A
- 2970 V
- (09918)210 648 A
- 1362(/*)S
- (The)126 1488 A
- 1656(ps)S
- (program)294 1782 A
- (wants)210 2118 A
- (the)126 2370 A
- (process)294 2538 A
- (table)210 2874 A
- (addresses.)420 3126 A
- 3588(*/)S
- 3060 V
- (09919)210 648 A
- (psinfo_phys)462 1362 A
- 1866(=)S
- (numap(m_ptr->PROC_NR,)882 1950 A
- ((vir_bytes))462 2874 A
- (m_ptr->ADDRESS,)630 3378 A
- 3150 V
- (09920)210 648 A
- (sizeof(psinfo));)672 3378 A
- 3240 V
- (09921)210 648 A
- 1362(if)S
- ((psinfo_phys)504 1488 A
- 2034(==)S
- 2160(0))S
- (return(EFAULT);)630 2286 A
- 3330 V
- (09922)210 648 A
- (phys_copy(vir2phys(&psinfo),)1176 1362 A
- (psinfo_phys,)504 2580 A
- ((phys_bytes))504 3126 A
- (sizeof(psinfo));)672 3672 A
- 3420 V
- (09923)210 648 A
- (break;)252 1362 A
- 3510 V
- (09924)210 648 A
- (default:)336 1110 A
- 3600 V
- (09925)210 648 A
- (return(do_diocntl(&m_dtab,)1092 1362 A
- (m_ptr));)336 2496 A
- 3690 V
- (09926)210 648 A
- 1110(})S
- 3780 V
- (09927)210 648 A
- (return(OK);)462 1110 A
- 3870 V
- (09928)210 648 A
- 1026(})S
- 4140 V
- (09931)210 648 A
- (/*============================================================================*)3318 1026 A
- 4230 V
- (09932)210 648 A
- 1068(*)S
- (m_geometry)420 2370 A
- 4302(*)S
- 4320 V
- (09933)210 648 A
- (*============================================================================*/)3318 1068 A
- 4410 V
- (09934)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (m_geometry(entry))714 1572 A
- 4500 V
- (09935)210 648 A
- (struct)252 1026 A
- (partition)378 1320 A
- (*entry;)294 1740 A
- 4590 V
- (09936)210 648 A
- 1026({)S
- 4680 V
- (09937)210 648 A
- 1110(/*)S
- (Memory)252 1236 A
- (devices)294 1530 A
- (don't)210 1866 A
- (have)168 2118 A
- 2328(a)S
- (geometry,)378 2412 A
- (but)126 2832 A
- (the)126 3000 A
- (outside)294 3168 A
- (world)210 3504 A
- (insists.)336 3756 A
- 4134(*/)S
- 4770 V
- (09938)210 648 A
- (entry->cylinders)672 1110 A
- 1824(=)S
- ((m_geom[m_device].dv_size)1050 1908 A
- 3000(>>)S
- (SECTOR_SHIFT))546 3126 A
- 3714(/)S
- ((64)126 3798 A
- 3966(*)S
- (32);)168 4050 A
- 4860 V
- (09939)210 648 A
- (entry->heads)504 1110 A
- 1656(=)S
- (64;)126 1740 A
- 4950 V
- (09940)210 648 A
- (entry->sectors)588 1110 A
- 1740(=)S
- (32;)126 1824 A
- 5040 V
- (09941)210 648 A
- 1026(})S
- 8418 V
- EP
- %%Page: 128 128
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (128)180 648 A
- 11 R
- 2049(File:)S
- 2282(src/kernel/wini.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 990 V
- 7 LST
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 1080 V
- (src/kernel/wini.c)714 2034 A
- 1170 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 1350 V
- (10000)210 648 A
- 1026(/*)S
- (wini.c)252 1362 A
- 1656(-)S
- (choose)252 1740 A
- 2034(a)S
- (winchester)420 2118 A
- (driver.)294 2580 A
- (Author:)294 3378 A
- (Kees)168 3714 A
- 3924(J.)S
- (Bot)126 4050 A
- 1440 V
- (10001)210 648 A
- 1068(*)S
- 3714(28)S
- (May)126 3840 A
- (1994)168 4008 A
- 1530 V
- (10002)210 648 A
- 1068(*)S
- (Several)294 1152 A
- (different)378 1488 A
- (winchester)420 1908 A
- (drivers)294 2370 A
- (may)126 2706 A
- 2874(be)S
- (compiled)336 3000 A
- 1620 V
- (10003)210 648 A
- 1068(*)S
- (into)168 1152 A
- (the)126 1362 A
- (kernel,)294 1530 A
- (but)126 1866 A
- (only)168 2034 A
- (one)126 2244 A
- (may)126 2412 A
- (run.)168 2580 A
- (That)168 2832 A
- (one)126 3042 A
- 3210(is)S
- (chosen)252 3336 A
- (here)168 3630 A
- (using)210 3840 A
- 1710 V
- (10004)210 648 A
- 1068(*)S
- (the)126 1152 A
- (boot)168 1320 A
- (variable)336 1530 A
- ('hd'.)210 1908 A
- 1800 V
- (10005)210 648 A
- 1068(*/)S
- 1890 V
- (10006)210 648 A
- 1980 V
- (10007)210 648 A
- (#include)336 1026 A
- ("kernel.h")420 1404 A
- 2070 V
- (10008)210 648 A
- (#include)336 1026 A
- ("driver.h")420 1404 A
- 2160 V
- (10009)210 648 A
- 2250 V
- (10010)210 648 A
- (#if)126 1026 A
- (ENABLE_WINI)462 1194 A
- 2340 V
- (10011)210 648 A
- 2430 V
- (10012)210 648 A
- 1026(/*)S
- (Map)126 1152 A
- (driver)252 1320 A
- (name)168 1614 A
- 1824(to)S
- (task)168 1950 A
- (function.)378 2160 A
- 2580(*/)S
- 2520 V
- (10013)210 648 A
- (struct)252 1026 A
- (hdmap)210 1320 A
- 1572({)S
- 2610 V
- (10014)210 648 A
- (char)168 1110 A
- (*name;)252 1698 A
- 2700 V
- (10015)210 648 A
- (task_t)252 1110 A
- (*task;)252 1698 A
- 2790 V
- (10016)210 648 A
- 1026(})S
- (hdmap[])294 1110 A
- 1446(=)S
- 1530({)S
- 2880 V
- (10017)210 648 A
- 2970 V
- (10018)210 648 A
- (#if)126 1026 A
- (ENABLE_AT_WINI)588 1194 A
- 3060 V
- (10019)210 648 A
- 1110({)S
- ("at",)210 1194 A
- (at_winchester_task)756 1698 A
- 2706(},)S
- 3150 V
- (10020)210 648 A
- (#endif)252 1026 A
- 3240 V
- (10021)210 648 A
- 3330 V
- (10022)210 648 A
- (#if)126 1026 A
- (ENABLE_BIOS_WINI)672 1194 A
- 3420 V
- (10023)210 648 A
- 1110({)S
- ("bios",)294 1194 A
- (bios_winchester_task)840 1698 A
- 2706(},)S
- 3510 V
- (10024)210 648 A
- (#endif)252 1026 A
- 3600 V
- (10025)210 648 A
- 3690 V
- (10026)210 648 A
- (#if)126 1026 A
- (ENABLE_ESDI_WINI)672 1194 A
- 3780 V
- (10027)210 648 A
- 1110({)S
- ("esdi",)294 1194 A
- (esdi_winchester_task)840 1698 A
- 2706(},)S
- 3870 V
- (10028)210 648 A
- (#endif)252 1026 A
- 3960 V
- (10029)210 648 A
- 4050 V
- (10030)210 648 A
- (#if)126 1026 A
- (ENABLE_XT_WINI)588 1194 A
- 4140 V
- (10031)210 648 A
- 1110({)S
- ("xt",)210 1194 A
- (xt_winchester_task)756 1698 A
- 2706(},)S
- 4230 V
- (10032)210 648 A
- (#endif)252 1026 A
- 4320 V
- (10033)210 648 A
- 4410 V
- (10034)210 648 A
- 1026(};)S
- 4500 V
- (10035)210 648 A
- 4590 V
- (10036)210 648 A
- 4680 V
- (10037)210 648 A
- (/*===========================================================================*)3276 1026 A
- 4770 V
- (10038)210 648 A
- 1068(*)S
- (winchester_task)630 2370 A
- 4260(*)S
- 4860 V
- (10039)210 648 A
- (*===========================================================================*/)3276 1068 A
- 4950 V
- (10040)210 648 A
- (PUBLIC)252 1026 A
- (void)168 1320 A
- (winchester_task())714 1530 A
- 5040 V
- (10041)210 648 A
- 1026({)S
- 5130 V
- (10042)210 648 A
- 1110(/*)S
- (Call)168 1236 A
- (the)126 1446 A
- (default)294 1614 A
- 1950(or)S
- (selected)336 2076 A
- (winchester)420 2454 A
- (task.)210 2916 A
- 3168(*/)S
- 5220 V
- (10043)210 648 A
- (char)168 1110 A
- (*hd;)168 1320 A
- 5310 V
- (10044)210 648 A
- (struct)252 1110 A
- (hdmap)210 1404 A
- (*map;)210 1656 A
- 5400 V
- (10045)210 648 A
- 5490 V
- (10046)210 648 A
- 1110(hd)S
- 1236(=)S
- (k_getenv("hd");)630 1320 A
- 5580 V
- (10047)210 648 A
- 5670 V
- (10048)210 648 A
- (for)126 1110 A
- ((map)168 1278 A
- 1488(=)S
- (hdmap;)252 1572 A
- (map)126 1866 A
- 2034(<)S
- (hdmap)210 2118 A
- 2370(+)S
- (sizeof(hdmap)/sizeof(hdmap[0]);)1302 2454 A
- (map++))252 3798 A
- 4092({)S
- 5760 V
- (10049)210 648 A
- 1362(if)S
- ((hd)126 1488 A
- 1656(==)S
- (NULL)168 1782 A
- 1992(||)S
- (strcmp(hd,)420 2118 A
- (map->name))420 2580 A
- 3042(==)S
- 3168(0))S
- 3294({)S
- 5850 V
- (10050)210 648 A
- 1698(/*)S
- (Run)126 1824 A
- (the)126 1992 A
- (selected)336 2160 A
- (winchester)420 2538 A
- (task.)210 3000 A
- 3252(*/)S
- 5940 V
- (10051)210 648 A
- ((*map->task)();)630 1698 A
- 6030 V
- (10052)210 648 A
- 1362(})S
- 6120 V
- (10053)210 648 A
- 1110(})S
- 6210 V
- (10054)210 648 A
- (panic("no)378 1110 A
- 1530(hd)S
- (driver",)336 1656 A
- (NO_NUM);)336 2034 A
- 8418 V
- EP
- %%Page: 129 129
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 2049(File:)S
- 2282(src/kernel/wini.c)S
- 12 B
- (129)180 4248 A
- 900 V
- 7 LST
- (10055)210 648 A
- 1026(})S
- 990 V
- (10056)210 648 A
- (#endif)252 1026 A
- 1320(/*)S
- (ENABLE_WINI)462 1446 A
- 1950(*/)S
- 1440 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 1530 V
- (src/kernel/at_wini.c)840 2034 A
- 1620 V
- (++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++)3528 648 A
- 1800 V
- (10100)210 648 A
- 1026(/*)S
- (This)168 1152 A
- (file)168 1362 A
- (contains)336 1572 A
- (the)126 1950 A
- (device)252 2118 A
- (dependent)378 2412 A
- (part)168 2832 A
- 3042(of)S
- 3168(a)S
- (driver)252 3252 A
- (for)126 3546 A
- (the)126 3714 A
- (IBM-AT)252 3882 A
- 1890 V
- (10101)210 648 A
- 1068(*)S
- (winchester)420 1152 A
- (controller.)462 1614 A
- 1980 V
- (10102)210 648 A
- 1068(*)S
- 1152(It)S
- (was)126 1278 A
- (written)294 1446 A
- 1782(by)S
- (Adri)168 1908 A
- (Koppes.)294 2118 A
- 2070 V
- (10103)210 648 A
- 1068(*)S
- 2160 V
- (10104)210 648 A
- 1068(*)S
- (The)126 1152 A
- (file)168 1320 A
- (contains)336 1530 A
- (one)126 1908 A
- (entry)210 2076 A
- (point:)252 2328 A
- 2250 V
- (10105)210 648 A
- 1068(*)S
- 2340 V
- (10106)210 648 A
- 1068(*)S
- (at_winchester_task:)798 1236 A
- (main)168 2370 A
- (entry)210 2580 A
- (when)168 2832 A
- (system)252 3042 A
- 3336(is)S
- (brought)294 3462 A
- 3798(up)S
- 2430 V
- (10107)210 648 A
- 1068(*)S
- 2520 V
- (10108)210 648 A
- 1068(*)S
- 2610 V
- (10109)210 648 A
- 1068(*)S
- (Changes:)336 1152 A
- 2700 V
- (10110)210 648 A
- 1068(*)S
- 1362(13)S
- (Apr)126 1488 A
- (1992)168 1656 A
- 1866(by)S
- (Kees)168 1992 A
- 2202(J.)S
- (Bot:)168 2328 A
- (device)252 2538 A
- (dependent/independent)882 2832 A
- (split.)252 3756 A
- 2790 V
- (10111)210 648 A
- 1068(*/)S
- 2880 V
- (10112)210 648 A
- 2970 V
- (10113)210 648 A
- (#include)336 1026 A
- ("kernel.h")420 1404 A
- 3060 V
- (10114)210 648 A
- (#include)336 1026 A
- ("driver.h")420 1404 A
- 3150 V
- (10115)210 648 A
- (#include)336 1026 A
- ("drvlib.h")420 1404 A
- 3240 V
- (10116)210 648 A
- 3330 V
- (10117)210 648 A
- (#if)126 1026 A
- (ENABLE_AT_WINI)588 1194 A
- 3420 V
- (10118)210 648 A
- 3510 V
- (10119)210 648 A
- 1026(/*)S
- (I/O)126 1152 A
- (Ports)210 1320 A
- (used)168 1572 A
- 1782(by)S
- (winchester)420 1908 A
- (disk)168 2370 A
- (controllers.)504 2580 A
- 3126(*/)S
- 3600 V
- (10120)210 648 A
- 3690 V
- (10121)210 648 A
- 1026(/*)S
- (Read)168 1152 A
- (and)126 1362 A
- (write)210 1530 A
- (registers)378 1782 A
- 2202(*/)S
- 3780 V
- (10122)210 648 A
- (#define)294 1026 A
- (REG_BASE0)378 1362 A
- (0x1F0)210 2034 A
- 2370(/*)S
- (base)168 2496 A
- (register)336 2706 A
- 3084(of)S
- (controller)420 3210 A
- 3672(0)S
- 3756(*/)S
- 3870 V
- (10123)210 648 A
- (#define)294 1026 A
- (REG_BASE1)378 1362 A
- (0x170)210 2034 A
- 2370(/*)S
- (base)168 2496 A
- (register)336 2706 A
- 3084(of)S
- (controller)420 3210 A
- 3672(1)S
- 3756(*/)S
- 3960 V
- (10124)210 648 A
- (#define)294 1026 A
- (REG_DATA)336 1362 A
- 2202(0)S
- 2370(/*)S
- (data)168 2496 A
- (register)336 2706 A
- ((offset)294 3084 A
- (from)168 3420 A
- (the)126 3630 A
- (base)168 3798 A
- (reg.))210 4008 A
- 4260(*/)S
- 4050 V
- (10125)210 648 A
- (#define)294 1026 A
- (REG_PRECOMP)462 1362 A
- 2202(1)S
- 2370(/*)S
- (start)210 2496 A
- 2748(of)S
- (write)210 2874 A
- (precompensation)630 3126 A
- 3798(*/)S
- 4140 V
- (10126)210 648 A
- (#define)294 1026 A
- (REG_COUNT)378 1362 A
- 2202(2)S
- 2370(/*)S
- (sectors)294 2496 A
- 2832(to)S
- (transfer)336 2958 A
- 3336(*/)S
- 4230 V
- (10127)210 648 A
- (#define)294 1026 A
- (REG_SECTOR)420 1362 A
- 2202(3)S
- 2370(/*)S
- (sector)252 2496 A
- (number)252 2790 A
- 3084(*/)S
- 4320 V
- (10128)210 648 A
- (#define)294 1026 A
- (REG_CYL_LO)420 1362 A
- 2202(4)S
- 2370(/*)S
- (low)126 2496 A
- (byte)168 2664 A
- 2874(of)S
- (cylinder)336 3000 A
- (number)252 3378 A
- 3672(*/)S
- 4410 V
- (10129)210 648 A
- (#define)294 1026 A
- (REG_CYL_HI)420 1362 A
- 2202(5)S
- 2370(/*)S
- (high)168 2496 A
- (byte)168 2706 A
- 2916(of)S
- (cylinder)336 3042 A
- (number)252 3420 A
- 3714(*/)S
- 4500 V
- (10130)210 648 A
- (#define)294 1026 A
- (REG_LDH)294 1362 A
- 2202(6)S
- 2370(/*)S
- (lba,)168 2496 A
- (drive)210 2706 A
- (and)126 2958 A
- (head)168 3126 A
- 3336(*/)S
- 4590 V
- (10131)210 648 A
- (#define)294 1026 A
- (LDH_DEFAULT)462 1446 A
- (0xA0)168 2370 A
- 2706(/*)S
- (ECC)126 2832 A
- (enable,)294 3000 A
- (512)126 3336 A
- (bytes)210 3504 A
- (per)126 3756 A
- (sector)252 3924 A
- 4218(*/)S
- 4680 V
- (10132)210 648 A
- (#define)294 1026 A
- (LDH_LBA)294 1446 A
- (0x40)168 2370 A
- 2706(/*)S
- (Use)126 2832 A
- (LBA)126 3000 A
- (addressing)420 3168 A
- 3630(*/)S
- 4770 V
- (10133)210 648 A
- (#define)294 1026 A
- (ldh_init(drive))630 1446 A
- ((LDH_DEFAULT)504 2370 A
- 2916(|)S
- (((drive))336 3000 A
- 3378(<<)S
- (4)))126 3504 A
- 4860 V
- (10134)210 648 A
- 4950 V
- (10135)210 648 A
- 1026(/*)S
- (Read)168 1152 A
- (only)168 1362 A
- (registers)378 1572 A
- 1992(*/)S
- 5040 V
- (10136)210 648 A
- (#define)294 1026 A
- (REG_STATUS)420 1362 A
- 2202(7)S
- 2370(/*)S
- (status)252 2496 A
- 2790(*/)S
- 5130 V
- (10137)210 648 A
- (#define)294 1026 A
- (STATUS_BSY)420 1446 A
- (0x80)168 2370 A
- 2706(/*)S
- (controller)420 2832 A
- (busy)168 3294 A
- 3504(*/)S
- 5220 V
- (10138)210 648 A
- (#define)294 1026 A
- (STATUS_RDY)420 1446 A
- (0x40)168 2370 A
- 2706(/*)S
- (drive)210 2832 A
- (ready)210 3084 A
- 3336(*/)S
- 5310 V
- (10139)210 648 A
- (#define)294 1026 A
- (STATUS_WF)378 1446 A
- (0x20)168 2370 A
- 2706(/*)S
- (write)210 2832 A
- (fault)210 3084 A
- 3336(*/)S
- 5400 V
- (10140)210 648 A
- (#define)294 1026 A
- (STATUS_SC)378 1446 A
- (0x10)168 2370 A
- 2706(/*)S
- (seek)168 2832 A
- (complete)336 3042 A
- ((obsolete))420 3420 A
- 3882(*/)S
- 5490 V
- (10141)210 648 A
- (#define)294 1026 A
- (STATUS_DRQ)420 1446 A
- (0x08)168 2370 A
- 2706(/*)S
- (data)168 2832 A
- (transfer)336 3042 A
- (request)294 3420 A
- 3756(*/)S
- 5580 V
- (10142)210 648 A
- (#define)294 1026 A
- (STATUS_CRD)420 1446 A
- (0x04)168 2370 A
- 2706(/*)S
- (corrected)378 2832 A
- (data)168 3252 A
- 3462(*/)S
- 5670 V
- (10143)210 648 A
- (#define)294 1026 A
- (STATUS_IDX)420 1446 A
- (0x02)168 2370 A
- 2706(/*)S
- (index)210 2832 A
- (pulse)210 3084 A
- 3336(*/)S
- 5760 V
- (10144)210 648 A
- (#define)294 1026 A
- (STATUS_ERR)420 1446 A
- (0x01)168 2370 A
- 2706(/*)S
- (error)210 2832 A
- 3084(*/)S
- 5850 V
- (10145)210 648 A
- (#define)294 1026 A
- (REG_ERROR)378 1362 A
- 2202(1)S
- 2370(/*)S
- (error)210 2496 A
- (code)168 2748 A
- 2958(*/)S
- 5940 V
- (10146)210 648 A
- (#define)294 1026 A
- (ERROR_BB)336 1446 A
- (0x80)168 2370 A
- 2706(/*)S
- (bad)126 2832 A
- (block)210 3000 A
- 3252(*/)S
- 6030 V
- (10147)210 648 A
- (#define)294 1026 A
- (ERROR_ECC)378 1446 A
- (0x40)168 2370 A
- 2706(/*)S
- (bad)126 2832 A
- (ecc)126 3000 A
- (bytes)210 3168 A
- 3420(*/)S
- 6120 V
- (10148)210 648 A
- (#define)294 1026 A
- (ERROR_ID)336 1446 A
- (0x10)168 2370 A
- 2706(/*)S
- 2832(id)S
- (not)126 2958 A
- (found)210 3126 A
- 3378(*/)S
- 6210 V
- (10149)210 648 A
- (#define)294 1026 A
- (ERROR_AC)336 1446 A
- (0x04)168 2370 A
- 2706(/*)S
- (aborted)294 2832 A
- (command)294 3168 A
- 3504(*/)S
- 8418 V
- EP
- %%Page: 130 130
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (130)180 648 A
- 11 R
- 1981(File:)S
- 2214(src/kernel/at_wini.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (10150)210 648 A
- (#define)294 1026 A
- (ERROR_TK)336 1446 A
- (0x02)168 2370 A
- 2706(/*)S
- (track)210 2832 A
- (zero)168 3084 A
- (error)210 3294 A
- 3546(*/)S
- 990 V
- (10151)210 648 A
- (#define)294 1026 A
- (ERROR_DM)336 1446 A
- (0x01)168 2370 A
- 2706(/*)S
- 2832(no)S
- (data)168 2958 A
- (address)294 3168 A
- (mark)168 3504 A
- 3714(*/)S
- 1080 V
- (10152)210 648 A
- 1170 V
- (10153)210 648 A
- 1026(/*)S
- (Write)210 1152 A
- (only)168 1404 A
- (registers)378 1614 A
- 2034(*/)S
- 1260 V
- (10154)210 648 A
- (#define)294 1026 A
- (REG_COMMAND)462 1362 A
- 2202(7)S
- 2370(/*)S
- (command)294 2496 A
- 2832(*/)S
- 1350 V
- (10155)210 648 A
- (#define)294 1026 A
- (CMD_IDLE)336 1446 A
- (0x00)168 2370 A
- 2706(/*)S
- (for)126 2832 A
- (w_command:)420 3000 A
- (drive)210 3462 A
- (idle)168 3714 A
- 3924(*/)S
- 1440 V
- (10156)210 648 A
- (#define)294 1026 A
- (CMD_RECALIBRATE)630 1446 A
- (0x10)168 2370 A
- 2706(/*)S
- (recalibrate)462 2832 A
- (drive)210 3336 A
- 3588(*/)S
- 1530 V
- (10157)210 648 A
- (#define)294 1026 A
- (CMD_READ)336 1446 A
- (0x20)168 2370 A
- 2706(/*)S
- (read)168 2832 A
- (data)168 3042 A
- 3252(*/)S
- 1620 V
- (10158)210 648 A
- (#define)294 1026 A
- (CMD_WRITE)378 1446 A
- (0x30)168 2370 A
- 2706(/*)S
- (write)210 2832 A
- (data)168 3084 A
- 3294(*/)S
- 1710 V
- (10159)210 648 A
- (#define)294 1026 A
- (CMD_READVERIFY)588 1446 A
- (0x40)168 2370 A
- 2706(/*)S
- (read)168 2832 A
- (verify)252 3042 A
- 3336(*/)S
- 1800 V
- (10160)210 648 A
- (#define)294 1026 A
- (CMD_FORMAT)420 1446 A
- (0x50)168 2370 A
- 2706(/*)S
- (format)252 2832 A
- (track)210 3126 A
- 3378(*/)S
- 1890 V
- (10161)210 648 A
- (#define)294 1026 A
- (CMD_SEEK)336 1446 A
- (0x70)168 2370 A
- 2706(/*)S
- (seek)168 2832 A
- (cylinder)336 3042 A
- 3420(*/)S
- 1980 V
- (10162)210 648 A
- (#define)294 1026 A
- (CMD_DIAG)336 1446 A
- (0x90)168 2370 A
- 2706(/*)S
- (execute)294 2832 A
- (device)252 3168 A
- (diagnostics)462 3462 A
- 3966(*/)S
- 2070 V
- (10163)210 648 A
- (#define)294 1026 A
- (CMD_SPECIFY)462 1446 A
- (0x91)168 2370 A
- 2706(/*)S
- (specify)294 2832 A
- (parameters)420 3168 A
- 3630(*/)S
- 2160 V
- (10164)210 648 A
- (#define)294 1026 A
- (ATA_IDENTIFY)504 1446 A
- (0xEC)168 2370 A
- 2706(/*)S
- (identify)336 2832 A
- (drive)210 3210 A
- 3462(*/)S
- 2250 V
- (10165)210 648 A
- (#define)294 1026 A
- (REG_CTL)294 1362 A
- (0x206)210 2034 A
- 2370(/*)S
- (control)294 2496 A
- (register)336 2832 A
- 3210(*/)S
- 2340 V
- (10166)210 648 A
- (#define)294 1026 A
- (CTL_NORETRY)462 1446 A
- (0x80)168 2370 A
- 2706(/*)S
- (disable)294 2832 A
- (access)252 3168 A
- (retry)210 3462 A
- 3714(*/)S
- 2430 V
- (10167)210 648 A
- (#define)294 1026 A
- (CTL_NOECC)378 1446 A
- (0x40)168 2370 A
- 2706(/*)S
- (disable)294 2832 A
- (ecc)126 3168 A
- (retry)210 3336 A
- 3588(*/)S
- 2520 V
- (10168)210 648 A
- (#define)294 1026 A
- (CTL_EIGHTHEADS)588 1446 A
- (0x08)168 2370 A
- 2706(/*)S
- (more)168 2832 A
- (than)168 3042 A
- (eight)210 3252 A
- (heads)210 3504 A
- 3756(*/)S
- 2610 V
- (10169)210 648 A
- (#define)294 1026 A
- (CTL_RESET)378 1446 A
- (0x04)168 2370 A
- 2706(/*)S
- (reset)210 2832 A
- (controller)420 3084 A
- 3546(*/)S
- 2700 V
- (10170)210 648 A
- (#define)294 1026 A
- (CTL_INTDISABLE)588 1446 A
- (0x02)168 2370 A
- 2706(/*)S
- (disable)294 2832 A
- (interrupts)420 3168 A
- 3630(*/)S
- 2790 V
- (10171)210 648 A
- 2880 V
- (10172)210 648 A
- 1026(/*)S
- (Interrupt)378 1152 A
- (request)294 1572 A
- (lines.)252 1908 A
- 2202(*/)S
- 2970 V
- (10173)210 648 A
- (#define)294 1026 A
- (AT_IRQ0)294 1362 A
- 2034(14)S
- 2370(/*)S
- (interrupt)378 2496 A
- (number)252 2916 A
- (for)126 3210 A
- (controller)420 3378 A
- 3840(0)S
- 3924(*/)S
- 3060 V
- (10174)210 648 A
- (#define)294 1026 A
- (AT_IRQ1)294 1362 A
- 2034(15)S
- 2370(/*)S
- (interrupt)378 2496 A
- (number)252 2916 A
- (for)126 3210 A
- (controller)420 3378 A
- 3840(1)S
- 3924(*/)S
- 3150 V
- (10175)210 648 A
- 3240 V
- (10176)210 648 A
- 1026(/*)S
- (Common)252 1152 A
- (command)294 1446 A
- (block)210 1782 A
- 2034(*/)S
- 3330 V
- (10177)210 648 A
- (struct)252 1026 A
- (command)294 1320 A
- 1656({)S
- 3420 V
- (10178)210 648 A
- (u8_t)168 1110 A
- (precomp;)336 1362 A
- 2034(/*)S
- (REG_PRECOMP,)504 2160 A
- (etc.)168 2706 A
- 2916(*/)S
- 3510 V
- (10179)210 648 A
- (u8_t)168 1110 A
- (count;)252 1362 A
- 3600 V
- (10180)210 648 A
- (u8_t)168 1110 A
- (sector;)294 1362 A
- 3690 V
- (10181)210 648 A
- (u8_t)168 1110 A
- (cyl_lo;)294 1362 A
- 3780 V
- (10182)210 648 A
- (u8_t)168 1110 A
- (cyl_hi;)294 1362 A
- 3870 V
- (10183)210 648 A
- (u8_t)168 1110 A
- (ldh;)168 1362 A
- 3960 V
- (10184)210 648 A
- (u8_t)168 1110 A
- (command;)336 1362 A
- 4050 V
- (10185)210 648 A
- 1026(};)S
- 4140 V
- (10186)210 648 A
- 4230 V
- (10187)210 648 A
- 4320 V
- (10188)210 648 A
- 1026(/*)S
- (Error)210 1152 A
- (codes)210 1404 A
- 1656(*/)S
- 4410 V
- (10189)210 648 A
- (#define)294 1026 A
- (ERR)126 1362 A
- ((-1))168 2076 A
- 2370(/*)S
- (general)294 2496 A
- (error)210 2832 A
- 3084(*/)S
- 4500 V
- (10190)210 648 A
- (#define)294 1026 A
- (ERR_BAD_SECTOR)588 1362 A
- ((-2))168 2076 A
- 2370(/*)S
- (block)210 2496 A
- (marked)252 2748 A
- (bad)126 3042 A
- (detected)336 3210 A
- 3588(*/)S
- 4590 V
- (10191)210 648 A
- 4680 V
- (10192)210 648 A
- 1026(/*)S
- (Some)168 1152 A
- (controllers)462 1362 A
- (don't)210 1866 A
- (interrupt,)420 2118 A
- (the)126 2580 A
- (clock)210 2748 A
- (will)168 3000 A
- (wake)168 3210 A
- 3420(us)S
- (up.)126 3546 A
- 3714(*/)S
- 4770 V
- (10193)210 648 A
- (#define)294 1026 A
- (WAKEUP)252 1362 A
- ((32*HZ))294 2034 A
- 2370(/*)S
- (drive)210 2496 A
- (may)126 2748 A
- 2916(be)S
- (out)126 3042 A
- (for)126 3210 A
- 3378(31)S
- (seconds)294 3504 A
- (max)126 3840 A
- 4008(*/)S
- 4860 V
- (10194)210 648 A
- 4950 V
- (10195)210 648 A
- 1026(/*)S
- (Miscellaneous.)588 1152 A
- 1782(*/)S
- 5040 V
- (10196)210 648 A
- (#define)294 1026 A
- (MAX_DRIVES)420 1362 A
- 2160(4)S
- 2370(/*)S
- (this)168 2496 A
- (driver)252 2706 A
- (supports)336 3000 A
- 3378(4)S
- (drives)252 3462 A
- ((hd0)168 3756 A
- 3966(-)S
- (hd19))210 4050 A
- 4302(*/)S
- 5130 V
- (10197)210 648 A
- (#if)126 1026 A
- (_WORD_SIZE)420 1194 A
- 1656(>)S
- 1740(2)S
- 5220 V
- (10198)210 648 A
- (#define)294 1026 A
- (MAX_SECS)336 1362 A
- (256)126 2076 A
- 2370(/*)S
- (controller)420 2496 A
- (can)126 2958 A
- (transfer)336 3126 A
- (this)168 3504 A
- (many)168 3714 A
- (sectors)294 3924 A
- 4260(*/)S
- 5310 V
- (10199)210 648 A
- (#else)210 1026 A
- 5400 V
- (10200)210 648 A
- (#define)294 1026 A
- (MAX_SECS)336 1362 A
- (127)126 2076 A
- 2370(/*)S
- (but)126 2496 A
- (not)126 2664 A
- 2832(to)S
- 2958(a)S
- 3042(16)S
- (bit)126 3168 A
- (process)294 3336 A
- 3672(*/)S
- 5490 V
- (10201)210 648 A
- (#endif)252 1026 A
- 5580 V
- (10202)210 648 A
- (#define)294 1026 A
- (MAX_ERRORS)420 1362 A
- 2160(4)S
- 2370(/*)S
- (how)126 2496 A
- (often)210 2664 A
- 2916(to)S
- (try)126 3042 A
- (rd/wt)210 3210 A
- (before)252 3462 A
- (quitting)336 3756 A
- 4134(*/)S
- 5670 V
- (10203)210 648 A
- (#define)294 1026 A
- (NR_DEVICES)420 1362 A
- ((MAX_DRIVES)462 2034 A
- 2538(*)S
- (DEV_PER_DRIVE))588 2622 A
- 5760 V
- (10204)210 648 A
- (#define)294 1026 A
- (SUB_PER_DRIVE)546 1362 A
- ((NR_PARTITIONS)588 2034 A
- 2664(*)S
- (NR_PARTITIONS))588 2748 A
- 5850 V
- (10205)210 648 A
- (#define)294 1026 A
- (NR_SUBDEVS)420 1362 A
- ((MAX_DRIVES)462 2034 A
- 2538(*)S
- (SUB_PER_DRIVE))588 2622 A
- 5940 V
- (10206)210 648 A
- (#define)294 1026 A
- (TIMEOUT)294 1362 A
- (32000)210 1992 A
- 2370(/*)S
- (controller)420 2496 A
- (timeout)294 2958 A
- 3294(in)S
- 3420(ms)S
- 3546(*/)S
- 6030 V
- (10207)210 648 A
- (#define)294 1026 A
- (RECOVERYTIME)504 1362 A
- (500)126 2076 A
- 2370(/*)S
- (controller)420 2496 A
- (recovery)336 2958 A
- (time)168 3336 A
- 3546(in)S
- 3672(ms)S
- 3798(*/)S
- 6120 V
- (10208)210 648 A
- (#define)294 1026 A
- (INITIALIZED)462 1362 A
- (0x01)168 2034 A
- 2370(/*)S
- (drive)210 2496 A
- 2748(is)S
- (initialized)462 2874 A
- 3378(*/)S
- 6210 V
- (10209)210 648 A
- (#define)294 1026 A
- (DEAF)168 1362 A
- (0x02)168 2034 A
- 2370(/*)S
- (controller)420 2496 A
- (must)168 2958 A
- 3168(be)S
- (reset)210 3294 A
- 3546(*/)S
- 8418 V
- EP
- %%Page: 131 131
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 1981(File:)S
- 2214(src/kernel/at_wini.c)S
- 12 B
- (131)180 4248 A
- 900 V
- 7 LST
- (10210)210 648 A
- (#define)294 1026 A
- (SMART)210 1362 A
- (0x04)168 2034 A
- 2370(/*)S
- (drive)210 2496 A
- (supports)336 2748 A
- (ATA)126 3126 A
- (commands)336 3294 A
- 3672(*/)S
- 990 V
- (10211)210 648 A
- 1080 V
- (10212)210 648 A
- 1170 V
- (10213)210 648 A
- 1026(/*)S
- (Variables.)420 1152 A
- 1614(*/)S
- 1260 V
- (10214)210 648 A
- (PRIVATE)294 1026 A
- (struct)252 1362 A
- (wini)168 1656 A
- 1866({)S
- 2370(/*)S
- (main)168 2496 A
- (drive)210 2706 A
- (struct,)294 2958 A
- (one)126 3294 A
- (entry)210 3462 A
- (per)126 3714 A
- (drive)210 3882 A
- 4134(*/)S
- 1350 V
- (10215)210 648 A
- (unsigned)336 1110 A
- (state;)252 1488 A
- 2370(/*)S
- (drive)210 2496 A
- (state:)252 2748 A
- (deaf,)210 3042 A
- (initialized,)504 3294 A
- (dead)168 3840 A
- 4050(*/)S
- 1440 V
- (10216)210 648 A
- (unsigned)336 1110 A
- (base;)210 1488 A
- 2370(/*)S
- (base)168 2496 A
- (register)336 2706 A
- 3084(of)S
- (the)126 3210 A
- (register)336 3378 A
- (file)168 3756 A
- 3966(*/)S
- 1530 V
- (10217)210 648 A
- (unsigned)336 1110 A
- (irq;)168 1488 A
- 2370(/*)S
- (interrupt)378 2496 A
- (request)294 2916 A
- (line)168 3252 A
- 3462(*/)S
- 1620 V
- (10218)210 648 A
- (unsigned)336 1110 A
- (lcylinders;)462 1488 A
- 2370(/*)S
- (logical)294 2496 A
- (number)252 2832 A
- 3126(of)S
- (cylinders)378 3252 A
- ((BIOS))252 3672 A
- 3966(*/)S
- 1710 V
- (10219)210 648 A
- (unsigned)336 1110 A
- (lheads;)294 1488 A
- 2370(/*)S
- (logical)294 2496 A
- (number)252 2832 A
- 3126(of)S
- (heads)210 3252 A
- 3504(*/)S
- 1800 V
- (10220)210 648 A
- (unsigned)336 1110 A
- (lsectors;)378 1488 A
- 2370(/*)S
- (logical)294 2496 A
- (number)252 2832 A
- 3126(of)S
- (sectors)294 3252 A
- (per)126 3588 A
- (track)210 3756 A
- 4008(*/)S
- 1890 V
- (10221)210 648 A
- (unsigned)336 1110 A
- (pcylinders;)462 1488 A
- 2370(/*)S
- (physical)336 2496 A
- (number)252 2874 A
- 3168(of)S
- (cylinders)378 3294 A
- ((translated))504 3714 A
- 4260(*/)S
- 1980 V
- (10222)210 648 A
- (unsigned)336 1110 A
- (pheads;)294 1488 A
- 2370(/*)S
- (physical)336 2496 A
- (number)252 2874 A
- 3168(of)S
- (heads)210 3294 A
- 3546(*/)S
- 2070 V
- (10223)210 648 A
- (unsigned)336 1110 A
- (psectors;)378 1488 A
- 2370(/*)S
- (physical)336 2496 A
- (number)252 2874 A
- 3168(of)S
- (sectors)294 3294 A
- (per)126 3630 A
- (track)210 3798 A
- 4050(*/)S
- 2160 V
- (10224)210 648 A
- (unsigned)336 1110 A
- (ldhpref;)336 1488 A
- 2370(/*)S
- (top)126 2496 A
- (four)168 2664 A
- (bytes)210 2874 A
- 3126(of)S
- (the)126 3252 A
- (LDH)126 3420 A
- ((head))252 3588 A
- (register)336 3882 A
- 4260(*/)S
- 2250 V
- (10225)210 648 A
- (unsigned)336 1110 A
- (precomp;)336 1488 A
- 2370(/*)S
- (write)210 2496 A
- (precompensation)630 2748 A
- (cylinder)336 3420 A
- 3798(/)S
- 3882(4)S
- 3966(*/)S
- 2340 V
- (10226)210 648 A
- (unsigned)336 1110 A
- (max_count;)420 1488 A
- 2370(/*)S
- (max)126 2496 A
- (request)294 2664 A
- (for)126 3000 A
- (this)168 3168 A
- (drive)210 3378 A
- 3630(*/)S
- 2430 V
- (10227)210 648 A
- (unsigned)336 1110 A
- (open_ct;)336 1488 A
- 2370(/*)S
- (in-use)252 2496 A
- (count)210 2790 A
- 3042(*/)S
- 2520 V
- (10228)210 648 A
- (struct)252 1110 A
- (device)252 1404 A
- (part[DEV_PER_DRIVE];)840 1698 A
- 2706(/*)S
- (primary)294 2832 A
- (partitions:)462 3168 A
- (hd[0-4])294 3672 A
- 4008(*/)S
- 2610 V
- (10229)210 648 A
- (struct)252 1110 A
- (device)252 1404 A
- (subpart[SUB_PER_DRIVE];)966 1698 A
- 2706(/*)S
- (subpartitions:)588 2832 A
- (hd[1-4][a-d])504 3462 A
- 4008(*/)S
- 2700 V
- (10230)210 648 A
- 1026(})S
- (wini[MAX_DRIVES],)714 1110 A
- (*w_wn;)252 1866 A
- 2790 V
- (10231)210 648 A
- 2880 V
- (10232)210 648 A
- (PRIVATE)294 1026 A
- (struct)252 1362 A
- (trans)210 1656 A
- 1908({)S
- 2970 V
- (10233)210 648 A
- (struct)252 1110 A
- (iorequest_s)462 1404 A
- (*iop;)210 1908 A
- 2370(/*)S
- (belongs)294 2496 A
- 2832(to)S
- (this)168 2958 A
- (I/O)126 3168 A
- (request)294 3336 A
- 3672(*/)S
- 3060 V
- (10234)210 648 A
- (unsigned)336 1110 A
- (long)168 1488 A
- (block;)252 1698 A
- 2370(/*)S
- (first)210 2496 A
- (sector)252 2748 A
- 3042(to)S
- (transfer)336 3168 A
- 3546(*/)S
- 3150 V
- (10235)210 648 A
- (unsigned)336 1110 A
- (count;)252 1488 A
- 2370(/*)S
- (byte)168 2496 A
- (count)210 2706 A
- 2958(*/)S
- 3240 V
- (10236)210 648 A
- (phys_bytes)420 1110 A
- (phys;)210 1572 A
- 2370(/*)S
- (user)168 2496 A
- (physical)336 2706 A
- (address)294 3084 A
- 3420(*/)S
- 3330 V
- (10237)210 648 A
- 1026(})S
- (wtrans[NR_IOREQS];)756 1110 A
- 3420 V
- (10238)210 648 A
- 3510 V
- (10239)210 648 A
- (PRIVATE)294 1026 A
- (struct)252 1362 A
- (trans)210 1656 A
- (*w_tp;)252 1908 A
- 2706(/*)S
- 2832(to)S
- (add)126 2958 A
- (transfer)336 3126 A
- (requests)336 3504 A
- 3882(*/)S
- 3600 V
- (10240)210 648 A
- (PRIVATE)294 1026 A
- (unsigned)336 1362 A
- (w_count;)336 1740 A
- 2706(/*)S
- (number)252 2832 A
- 3126(of)S
- (bytes)210 3252 A
- 3504(to)S
- (transfer)336 3630 A
- 4008(*/)S
- 3690 V
- (10241)210 648 A
- (PRIVATE)294 1026 A
- (unsigned)336 1362 A
- (long)168 1740 A
- (w_nextblock;)504 1950 A
- 2706(/*)S
- (next)168 2832 A
- (block)210 3042 A
- 3294(on)S
- (disk)168 3420 A
- 3630(to)S
- (transfer)336 3756 A
- 4134(*/)S
- 3780 V
- (10242)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (w_opcode;)378 1530 A
- 2706(/*)S
- (DEV_READ)336 2832 A
- 3210(or)S
- (DEV_WRITE)378 3336 A
- 3756(*/)S
- 3870 V
- (10243)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (w_command;)420 1530 A
- 2706(/*)S
- (current)294 2832 A
- (command)294 3168 A
- 3504(in)S
- (execution)378 3630 A
- 4050(*/)S
- 3960 V
- (10244)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (w_status;)378 1530 A
- 2706(/*)S
- (status)252 2832 A
- (after)210 3126 A
- (interrupt)378 3378 A
- 3798(*/)S
- 4050 V
- (10245)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (w_drive;)336 1530 A
- 2706(/*)S
- (selected)336 2832 A
- (drive)210 3210 A
- 3462(*/)S
- 4140 V
- (10246)210 648 A
- (PRIVATE)294 1026 A
- (struct)252 1362 A
- (device)252 1656 A
- (*w_dv;)252 1950 A
- 2706(/*)S
- (device's)336 2832 A
- (base)168 3210 A
- (and)126 3420 A
- (size)168 3588 A
- 3798(*/)S
- 4230 V
- (10247)210 648 A
- 4320 V
- (10248)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (init_params,)504 2076 A
- ((void))252 2622 A
- 2916();)S
- 4410 V
- (10249)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (int)126 1866 A
- (w_do_open,)420 2034 A
- ((struct)294 2496 A
- (driver)252 2832 A
- (*dp,)168 3126 A
- (message)294 3336 A
- (*m_ptr))294 3672 A
- 4008();)S
- 4500 V
- (10250)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (struct)252 1866 A
- (device)252 2160 A
- (*w_prepare,)462 2454 A
- ((int)168 2958 A
- (device))294 3168 A
- 3504();)S
- 4590 V
- (10251)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (int)126 1866 A
- (w_identify,)462 2034 A
- ((void))252 2538 A
- 2832();)S
- 4680 V
- (10252)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (char)168 1866 A
- (*w_name,)336 2076 A
- ((void))252 2454 A
- 2748();)S
- 4770 V
- (10253)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (int)126 1866 A
- (w_specify,)420 2034 A
- ((void))252 2496 A
- 2790();)S
- 4860 V
- (10254)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (int)126 1866 A
- (w_schedule,)462 2034 A
- ((int)168 2538 A
- (proc_nr,)336 2748 A
- (struct)252 3126 A
- (iorequest_s)462 3420 A
- (*iop))210 3924 A
- 4176();)S
- 4950 V
- (10255)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (int)126 1866 A
- (w_finish,)378 2034 A
- ((void))252 2454 A
- 2748();)S
- 5040 V
- (10256)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (int)126 1866 A
- (com_out,)336 2034 A
- ((struct)294 2412 A
- (command)294 2748 A
- (*cmd))210 3084 A
- 3336();)S
- 5130 V
- (10257)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (w_need_reset,)546 2076 A
- ((void))252 2664 A
- 2958();)S
- 5220 V
- (10258)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (int)126 1866 A
- (w_do_close,)462 2034 A
- ((struct)294 2538 A
- (driver)252 2874 A
- (*dp,)168 3168 A
- (message)294 3378 A
- (*m_ptr))294 3714 A
- 4050();)S
- 5310 V
- (10259)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (int)126 1866 A
- (com_simple,)462 2034 A
- ((struct)294 2538 A
- (command)294 2874 A
- (*cmd))210 3210 A
- 3462();)S
- 5400 V
- (10260)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (w_timeout,)420 2076 A
- ((void))252 2538 A
- 2832();)S
- 5490 V
- (10261)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (int)126 1866 A
- (w_reset,)336 2034 A
- ((void))252 2412 A
- 2706();)S
- 5580 V
- (10262)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (int)126 1866 A
- (w_intr_wait,)504 2034 A
- ((void))252 2580 A
- 2874();)S
- 5670 V
- (10263)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (int)126 1866 A
- (w_waitfor,)420 2034 A
- ((int)168 2496 A
- (mask,)210 2706 A
- (int)126 2958 A
- (value))252 3126 A
- 3420();)S
- 5760 V
- (10264)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (int)126 1866 A
- (w_handler,)420 2034 A
- ((int)168 2496 A
- (irq))168 2706 A
- 2916();)S
- 5850 V
- (10265)210 648 A
- (FORWARD)294 1026 A
- (_PROTOTYPE()462 1362 A
- (void)168 1866 A
- (w_geometry,)462 2076 A
- ((struct)294 2580 A
- (partition)378 2916 A
- (*entry))294 3336 A
- 3672();)S
- 5940 V
- (10266)210 648 A
- 6030 V
- (10267)210 648 A
- 1026(/*)S
- (w_waitfor)378 1152 A
- (loop)168 1572 A
- (unrolled)336 1782 A
- (once)168 2160 A
- (for)126 2370 A
- (speed.)252 2538 A
- 2832(*/)S
- 6120 V
- (10268)210 648 A
- (#define)294 1026 A
- (waitfor(mask,)546 1362 A
- (value))252 1950 A
- 2370(\)S
- 6210 V
- (10269)210 648 A
- (((in_byte(w_wn->base)840 1362 A
- 2244(+)S
- (REG_STATUS))462 2328 A
- 2832(&)S
- (mask))210 2916 A
- 3168(==)S
- (value)210 3294 A
- 3546(\)S
- 8418 V
- EP
- %%Page: 132 132
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (132)180 648 A
- 11 R
- 1981(File:)S
- 2214(src/kernel/at_wini.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (10270)210 648 A
- 1698(||)S
- (w_waitfor(mask,)630 1824 A
- (value)))294 2496 A
- 990 V
- (10271)210 648 A
- 1080 V
- (10272)210 648 A
- 1170 V
- (10273)210 648 A
- 1026(/*)S
- (Entry)210 1152 A
- (points)252 1404 A
- 1698(to)S
- (this)168 1824 A
- (driver.)294 2034 A
- 2370(*/)S
- 1260 V
- (10274)210 648 A
- (PRIVATE)294 1026 A
- (struct)252 1362 A
- (driver)252 1656 A
- (w_dtab)252 1950 A
- 2244(=)S
- 2328({)S
- 1350 V
- (10275)210 648 A
- (w_name,)294 1110 A
- 2034(/*)S
- (current)294 2160 A
- (device's)336 2496 A
- (name)168 2874 A
- 3084(*/)S
- 1440 V
- (10276)210 648 A
- (w_do_open,)420 1110 A
- 2034(/*)S
- (open)168 2160 A
- 2370(or)S
- (mount)210 2496 A
- (request,)336 2748 A
- (initialize)420 3126 A
- (device)252 3588 A
- 3882(*/)S
- 1530 V
- (10277)210 648 A
- (w_do_close,)462 1110 A
- 2034(/*)S
- (release)294 2160 A
- (device)252 2496 A
- 2790(*/)S
- 1620 V
- (10278)210 648 A
- (do_diocntl,)462 1110 A
- 2034(/*)S
- (get)126 2160 A
- 2328(or)S
- (set)126 2454 A
- 2622(a)S
- (partition's)462 2706 A
- (geometry)336 3210 A
- 3588(*/)S
- 1710 V
- (10279)210 648 A
- (w_prepare,)420 1110 A
- 2034(/*)S
- (prepare)294 2160 A
- (for)126 2496 A
- (I/O)126 2664 A
- 2832(on)S
- 2958(a)S
- (given)210 3042 A
- (minor)210 3294 A
- (device)252 3546 A
- 3840(*/)S
- 1800 V
- (10280)210 648 A
- (w_schedule,)462 1110 A
- 2034(/*)S
- (precompute)420 2160 A
- (cylinder,)378 2622 A
- (head,)210 3042 A
- (sector,)294 3294 A
- (etc.)168 3630 A
- 3840(*/)S
- 1890 V
- (10281)210 648 A
- (w_finish,)378 1110 A
- 2034(/*)S
- 2160(do)S
- (the)126 2286 A
- (I/O)126 2454 A
- 2622(*/)S
- 1980 V
- (10282)210 648 A
- (nop_cleanup,)504 1110 A
- 2034(/*)S
- (nothing)294 2160 A
- 2496(to)S
- (clean)210 2622 A
- 2874(up)S
- 3000(*/)S
- 2070 V
- (10283)210 648 A
- (w_geometry,)462 1110 A
- 2034(/*)S
- (tell)168 2160 A
- (the)126 2370 A
- (geometry)336 2538 A
- 2916(of)S
- (the)126 3042 A
- (disk)168 3210 A
- 3420(*/)S
- 2160 V
- (10284)210 648 A
- 1026(};)S
- 2250 V
- (10285)210 648 A
- 2340 V
- (10286)210 648 A
- (#if)126 1026 A
- (ENABLE_ATAPI)504 1194 A
- 2430 V
- (10287)210 648 A
- (#include)336 1026 A
- ("atapi.c")378 1404 A
- 2034(/*)S
- (extra)210 2160 A
- (code)168 2412 A
- (for)126 2622 A
- (ATAPI)210 2790 A
- (CD-ROM)252 3042 A
- 3336(*/)S
- 2520 V
- (10288)210 648 A
- (#endif)252 1026 A
- 2610 V
- (10289)210 648 A
- 2700 V
- (10290)210 648 A
- 2790 V
- (10291)210 648 A
- (/*===========================================================================*)3276 1026 A
- 2880 V
- (10292)210 648 A
- 1068(*)S
- (at_winchester_task)756 2370 A
- 4260(*)S
- 2970 V
- (10293)210 648 A
- (*===========================================================================*/)3276 1068 A
- 3060 V
- (10294)210 648 A
- (PUBLIC)252 1026 A
- (void)168 1320 A
- (at_winchester_task())840 1530 A
- 3150 V
- (10295)210 648 A
- 1026({)S
- 3240 V
- (10296)210 648 A
- 1026(/*)S
- (Set)126 1152 A
- (special)294 1320 A
- (disk)168 1656 A
- (parameters)420 1866 A
- (then)168 2328 A
- (call)168 2538 A
- (the)126 2748 A
- (generic)294 2916 A
- (main)168 3252 A
- (loop.)210 3462 A
- 3714(*/)S
- 3330 V
- (10297)210 648 A
- 3420 V
- (10298)210 648 A
- (init_params();)588 1110 A
- 3510 V
- (10299)210 648 A
- 3600 V
- (10300)210 648 A
- (driver_task(&w_dtab);)882 1110 A
- 3690 V
- (10301)210 648 A
- 1026(})S
- 3960 V
- (10304)210 648 A
- (/*============================================================================*)3318 1026 A
- 4050 V
- (10305)210 648 A
- 1068(*)S
- (init_params)462 2370 A
- 4302(*)S
- 4140 V
- (10306)210 648 A
- (*============================================================================*/)3318 1068 A
- 4230 V
- (10307)210 648 A
- (PRIVATE)294 1026 A
- (void)168 1362 A
- (init_params())546 1572 A
- 4320 V
- (10308)210 648 A
- 1026({)S
- 4410 V
- (10309)210 648 A
- 1026(/*)S
- (This)168 1152 A
- (routine)294 1362 A
- 1698(is)S
- (called)252 1824 A
- 2118(at)S
- (startup)294 2244 A
- 2580(to)S
- (initialize)420 2706 A
- (the)126 3168 A
- (drive)210 3336 A
- (parameters.)462 3588 A
- 4092(*/)S
- 4500 V
- (10310)210 648 A
- 4590 V
- (10311)210 648 A
- (u16_t)210 1110 A
- (parv[2];)336 1362 A
- 4680 V
- (10312)210 648 A
- (unsigned)336 1110 A
- (int)126 1488 A
- (vector;)294 1656 A
- 4770 V
- (10313)210 648 A
- (int)126 1110 A
- (drive,)252 1278 A
- (nr_drives,)420 1572 A
- 2034(i;)S
- 4860 V
- (10314)210 648 A
- (struct)252 1110 A
- (wini)168 1404 A
- (*wn;)168 1614 A
- 4950 V
- (10315)210 648 A
- (u8_t)168 1110 A
- (params[16];)462 1320 A
- 5040 V
- (10316)210 648 A
- (phys_bytes)420 1110 A
- (param_phys)420 1572 A
- 2034(=)S
- (vir2phys(params);)714 2118 A
- 5130 V
- (10317)210 648 A
- 5220 V
- (10318)210 648 A
- 1110(/*)S
- (Get)126 1236 A
- (the)126 1404 A
- (number)252 1572 A
- 1866(of)S
- (drives)252 1992 A
- (from)168 2286 A
- (the)126 2496 A
- (BIOS)168 2664 A
- (data)168 2874 A
- (area)168 3084 A
- 3294(*/)S
- 5310 V
- (10319)210 648 A
- (phys_copy(0x475L,)714 1110 A
- (param_phys,)462 1866 A
- (1L);)168 2370 A
- 5400 V
- (10320)210 648 A
- 1110(if)S
- (((nr_drives)462 1236 A
- 1740(=)S
- (params[0]))420 1824 A
- 2286(>)S
- 2370(2))S
- (nr_drives)378 2496 A
- 2916(=)S
- 3000(2;)S
- 5490 V
- (10321)210 648 A
- 5580 V
- (10322)210 648 A
- (for)126 1110 A
- ((drive)252 1278 A
- 1572(=)S
- 1656(0,)S
- 1782(wn)S
- 1908(=)S
- (wini;)210 1992 A
- (drive)210 2244 A
- 2496(<)S
- (MAX_DRIVES;)462 2580 A
- (drive++,)336 3084 A
- (wn++))210 3462 A
- 3714({)S
- 5670 V
- (10323)210 648 A
- 1362(if)S
- ((drive)252 1488 A
- 1782(<)S
- (nr_drives))420 1866 A
- 2328({)S
- 5760 V
- (10324)210 648 A
- 1698(/*)S
- (Copy)168 1824 A
- (the)126 2034 A
- (BIOS)168 2202 A
- (parameter)378 2412 A
- (vector)252 2832 A
- 3126(*/)S
- 5850 V
- (10325)210 648 A
- (vector)252 1698 A
- 1992(=)S
- (drive)210 2076 A
- 2328(==)S
- 2454(0)S
- 2538(?)S
- (WINI_0_PARM_VEC)630 2622 A
- 3294(:)S
- (WINI_1_PARM_VEC;)672 3378 A
- 5940 V
- (10326)210 648 A
- (phys_copy(vector)672 1698 A
- 2412(*)S
- (4L,)126 2496 A
- (vir2phys(parv),)630 2664 A
- (4L);)168 3336 A
- 6030 V
- (10327)210 648 A
- 6120 V
- (10328)210 648 A
- 1698(/*)S
- (Calculate)378 1824 A
- (the)126 2244 A
- (address)294 2412 A
- 2748(of)S
- (the)126 2874 A
- (parameters)420 3042 A
- (and)126 3504 A
- (copy)168 3672 A
- (them)168 3882 A
- 4092(*/)S
- 6210 V
- (10329)210 648 A
- (phys_copy(hclick_to_physb(parv[1]))1428 1698 A
- 3168(+)S
- (parv[0],)336 3252 A
- (param_phys,)462 3630 A
- (16L);)210 4134 A
- 8418 V
- EP
- %%Page: 133 133
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 1981(File:)S
- 2214(src/kernel/at_wini.c)S
- 12 B
- (133)180 4248 A
- 900 V
- 7 LST
- (10330)210 648 A
- 990 V
- (10331)210 648 A
- 1698(/*)S
- (Copy)168 1824 A
- (the)126 2034 A
- (parameters)420 2202 A
- 2664(to)S
- (the)126 2790 A
- (structures)420 2958 A
- 3420(of)S
- (the)126 3546 A
- (drive)210 3714 A
- 3966(*/)S
- 1080 V
- (10332)210 648 A
- (wn->lcylinders)588 1698 A
- 2328(=)S
- (bp_cylinders(params);)882 2412 A
- 1170 V
- (10333)210 648 A
- (wn->lheads)420 1698 A
- 2160(=)S
- (bp_heads(params);)714 2244 A
- 1260 V
- (10334)210 648 A
- (wn->lsectors)504 1698 A
- 2244(=)S
- (bp_sectors(params);)798 2328 A
- 1350 V
- (10335)210 648 A
- (wn->precomp)462 1698 A
- 2202(=)S
- (bp_precomp(params))756 2286 A
- 3084(>>)S
- 3210(2;)S
- 1440 V
- (10336)210 648 A
- 1362(})S
- 1530 V
- (10337)210 648 A
- (wn->ldhpref)462 1362 A
- 1866(=)S
- (ldh_init(drive);)672 1950 A
- 1620 V
- (10338)210 648 A
- (wn->max_count)546 1362 A
- 1950(=)S
- (MAX_SECS)336 2034 A
- 2412(<<)S
- (SECTOR_SHIFT;)546 2538 A
- 1710 V
- (10339)210 648 A
- 1362(if)S
- ((drive)252 1488 A
- 1782(<)S
- 1866(2))S
- 1992({)S
- 1800 V
- (10340)210 648 A
- 1698(/*)S
- (Controller)420 1824 A
- 2286(0.)S
- 2412(*/)S
- 1890 V
- (10341)210 648 A
- (wn->base)336 1698 A
- 2076(=)S
- (REG_BASE0;)420 2160 A
- 1980 V
- (10342)210 648 A
- (wn->irq)294 1698 A
- 2034(=)S
- (AT_IRQ0;)336 2118 A
- 2070 V
- (10343)210 648 A
- 1362(})S
- (else)168 1446 A
- 1656({)S
- 2160 V
- (10344)210 648 A
- 1698(/*)S
- (Controller)420 1824 A
- 2286(1.)S
- 2412(*/)S
- 2250 V
- (10345)210 648 A
- (wn->base)336 1698 A
- 2076(=)S
- (REG_BASE1;)420 2160 A
- 2340 V
- (10346)210 648 A
- (wn->irq)294 1698 A
- 2034(=)S
- (AT_IRQ1;)336 2118 A
- 2430 V
- (10347)210 648 A
- 1362(})S
- 2520 V
- (10348)210 648 A
- 1110(})S
- 2610 V
- (10349)210 648 A
- 1026(})S
- 2880 V
- (10352)210 648 A
- (/*============================================================================*)3318 1026 A
- 2970 V
- (10353)210 648 A
- 1068(*)S
- (w_do_open)378 2370 A
- 4302(*)S
- 3060 V
- (10354)210 648 A
- (*============================================================================*/)3318 1068 A
- 3150 V
- (10355)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (w_do_open(dp,)546 1530 A
- (m_ptr))252 2118 A
- 3240 V
- (10356)210 648 A
- (struct)252 1026 A
- (driver)252 1320 A
- (*dp;)168 1614 A
- 3330 V
- (10357)210 648 A
- (message)294 1026 A
- (*m_ptr;)294 1362 A
- 3420 V
- (10358)210 648 A
- 1026({)S
- 3510 V
- (10359)210 648 A
- 1026(/*)S
- (Device)252 1152 A
- (open:)210 1446 A
- (Initialize)420 1698 A
- (the)126 2160 A
- (controller)420 2328 A
- (and)126 2790 A
- (read)168 2958 A
- (the)126 3168 A
- (partition)378 3336 A
- (table.)252 3756 A
- 4050(*/)S
- 3600 V
- (10360)210 648 A
- 3690 V
- (10361)210 648 A
- (int)126 1110 A
- 1278(r;)S
- 3780 V
- (10362)210 648 A
- (struct)252 1110 A
- (wini)168 1404 A
- (*wn;)168 1614 A
- 3870 V
- (10363)210 648 A
- (struct)252 1110 A
- (command)294 1404 A
- (cmd;)168 1740 A
- 3960 V
- (10364)210 648 A
- 4050 V
- (10365)210 648 A
- 1110(if)S
- ((w_prepare(m_ptr->DEVICE))1050 1236 A
- 2328(==)S
- (NIL_DEV))336 2454 A
- (return(ENXIO);)588 2832 A
- 4140 V
- (10366)210 648 A
- 1110(wn)S
- 1236(=)S
- (w_wn;)210 1320 A
- 4230 V
- (10367)210 648 A
- 4320 V
- (10368)210 648 A
- 1110(if)S
- ((wn->state)420 1236 A
- 1698(==)S
- 1824(0))S
- 1950({)S
- 4410 V
- (10369)210 648 A
- 1362(/*)S
- (Try)126 1488 A
- 1656(to)S
- (identify)336 1782 A
- (the)126 2160 A
- (device.)294 2328 A
- 2664(*/)S
- 4500 V
- (10370)210 648 A
- 1362(if)S
- ((w_identify())546 1488 A
- 2076(!=)S
- (OK))126 2202 A
- 2370({)S
- 4590 V
- (10371)210 648 A
- (printf("%s:)462 1698 A
- (probe)210 2202 A
- (failed\n",)420 2454 A
- (w_name());)420 2916 A
- 4680 V
- (10372)210 648 A
- 1698(if)S
- ((wn->state)420 1824 A
- 2286(&)S
- (DEAF))210 2370 A
- (w_reset();)420 2622 A
- 4770 V
- (10373)210 648 A
- (wn->state)378 1698 A
- 2118(=)S
- 2202(0;)S
- 4860 V
- (10374)210 648 A
- (return(ENXIO);)588 1698 A
- 4950 V
- (10375)210 648 A
- 1362(})S
- 5040 V
- (10376)210 648 A
- 1110(})S
- 5130 V
- (10377)210 648 A
- 1110(if)S
- ((wn->open_ct++)588 1236 A
- 1866(==)S
- 1992(0))S
- 2118({)S
- 5220 V
- (10378)210 648 A
- 1362(/*)S
- (Partition)378 1488 A
- (the)126 1908 A
- (disk.)210 2076 A
- 2328(*/)S
- 5310 V
- (10379)210 648 A
- (partition(&w_dtab,)756 1362 A
- (w_drive)294 2160 A
- 2496(*)S
- (DEV_PER_DRIVE,)588 2580 A
- (P_PRIMARY);)462 3210 A
- 5400 V
- (10380)210 648 A
- 1110(})S
- 5490 V
- (10381)210 648 A
- (return(OK);)462 1110 A
- 5580 V
- (10382)210 648 A
- 1026(})S
- 5850 V
- (10385)210 648 A
- (/*===========================================================================*)3276 1026 A
- 5940 V
- (10386)210 648 A
- 1068(*)S
- (w_prepare)378 2370 A
- 4260(*)S
- 6030 V
- (10387)210 648 A
- (*===========================================================================*/)3276 1068 A
- 6120 V
- (10388)210 648 A
- (PRIVATE)294 1026 A
- (struct)252 1362 A
- (device)252 1656 A
- (*w_prepare(device))756 1950 A
- 6210 V
- (10389)210 648 A
- (int)126 1026 A
- (device;)294 1194 A
- 8418 V
- EP
- %%Page: 134 134
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (134)180 648 A
- 11 R
- 1981(File:)S
- 2214(src/kernel/at_wini.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (10390)210 648 A
- 1026({)S
- 990 V
- (10391)210 648 A
- 1026(/*)S
- (Prepare)294 1152 A
- (for)126 1488 A
- (I/O)126 1656 A
- 1824(on)S
- 1950(a)S
- (device.)294 2034 A
- 2370(*/)S
- 1080 V
- (10392)210 648 A
- 1170 V
- (10393)210 648 A
- 1110(/*)S
- (Nothing)294 1236 A
- 1572(to)S
- (transfer)336 1698 A
- 2076(as)S
- (yet.)168 2202 A
- 2412(*/)S
- 1260 V
- (10394)210 648 A
- (w_count)294 1110 A
- 1446(=)S
- 1530(0;)S
- 1350 V
- (10395)210 648 A
- 1440 V
- (10396)210 648 A
- 1110(if)S
- ((device)294 1236 A
- 1572(<)S
- (NR_DEVICES))462 1656 A
- 2160({)S
- 3042(/*)S
- (hd0,)168 3168 A
- (hd1,)168 3378 A
- (...)126 3588 A
- 3756(*/)S
- 1530 V
- (10397)210 648 A
- (w_drive)294 1362 A
- 1698(=)S
- (device)252 1782 A
- 2076(/)S
- (DEV_PER_DRIVE;)588 2160 A
- 3042(/*)S
- (save)168 3168 A
- (drive)210 3378 A
- (number)252 3630 A
- 3924(*/)S
- 1620 V
- (10398)210 648 A
- (w_wn)168 1362 A
- 1572(=)S
- (&wini[w_drive];)630 1656 A
- 1710 V
- (10399)210 648 A
- (w_dv)168 1362 A
- 1572(=)S
- (&w_wn->part[device)756 1656 A
- 2454(%)S
- (DEV_PER_DRIVE];)630 2538 A
- 1800 V
- (10400)210 648 A
- 1110(})S
- (else)168 1194 A
- 1890 V
- (10401)210 648 A
- 1110(if)S
- (((unsigned))462 1236 A
- ((device)294 1740 A
- 2076(-=)S
- (MINOR_hd1a))462 2202 A
- 2706(<)S
- (NR_SUBDEVS))462 2790 A
- 3294({)S
- 3378(/*)S
- (hd1a,)210 3504 A
- (hd1b,)210 3756 A
- (...)126 4008 A
- 4176(*/)S
- 1980 V
- (10402)210 648 A
- (w_drive)294 1362 A
- 1698(=)S
- (device)252 1782 A
- 2076(/)S
- (SUB_PER_DRIVE;)588 2160 A
- 2070 V
- (10403)210 648 A
- (w_wn)168 1362 A
- 1572(=)S
- (&wini[w_drive];)630 1656 A
- 2160 V
- (10404)210 648 A
- (w_dv)168 1362 A
- 1572(=)S
- (&w_wn->subpart[device)882 1656 A
- 2580(%)S
- (SUB_PER_DRIVE];)630 2664 A
- 2250 V
- (10405)210 648 A
- 1110(})S
- (else)168 1194 A
- 1404({)S
- 2340 V
- (10406)210 648 A
- (return(NIL_DEV);)672 1362 A
- 2430 V
- (10407)210 648 A
- 1110(})S
- 2520 V
- (10408)210 648 A
- (return(w_dv);)546 1110 A
- 2610 V
- (10409)210 648 A
- 1026(})S
- 2880 V
- (10412)210 648 A
- (/*===========================================================================*)3276 1026 A
- 2970 V
- (10413)210 648 A
- 1068(*)S
- (w_identify)420 2370 A
- 4260(*)S
- 3060 V
- (10414)210 648 A
- (*===========================================================================*/)3276 1068 A
- 3150 V
- (10415)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (w_identify())504 1530 A
- 3240 V
- (10416)210 648 A
- 1026({)S
- 3330 V
- (10417)210 648 A
- 1026(/*)S
- (Find)168 1152 A
- (out)126 1362 A
- 1530(if)S
- 1656(a)S
- (device)252 1740 A
- (exists,)294 2034 A
- 2370(if)S
- 2496(it)S
- 2622(is)S
- 2748(an)S
- (old)126 2874 A
- 3042(AT)S
- (disk,)210 3168 A
- 3420(or)S
- 3546(a)S
- (newer)210 3630 A
- (ATA)126 3882 A
- 3420 V
- (10418)210 648 A
- 1068(*)S
- (drive,)252 1152 A
- 1446(a)S
- (removable)378 1530 A
- (media)210 1950 A
- (device,)294 2202 A
- (etc.)168 2538 A
- 3510 V
- (10419)210 648 A
- 1068(*/)S
- 3600 V
- (10420)210 648 A
- 3690 V
- (10421)210 648 A
- (struct)252 1110 A
- (wini)168 1404 A
- (*wn)126 1614 A
- 1782(=)S
- (w_wn;)210 1866 A
- 3780 V
- (10422)210 648 A
- (struct)252 1110 A
- (command)294 1404 A
- (cmd;)168 1740 A
- 3870 V
- (10423)210 648 A
- (char)168 1110 A
- (id_string[40];)588 1320 A
- 3960 V
- (10424)210 648 A
- (int)126 1110 A
- 1278(i,)S
- 1404(r;)S
- 4050 V
- (10425)210 648 A
- (unsigned)336 1110 A
- (long)168 1488 A
- (size;)210 1698 A
- 4140 V
- (10426)210 648 A
- (#define)294 1026 A
- (id_byte(n))420 1362 A
- ((&tmp_buf[2)462 2034 A
- 2538(*)S
- ((n)]))210 2622 A
- 4230 V
- (10427)210 648 A
- (#define)294 1026 A
- (id_word(n))420 1362 A
- ((((u16_t))378 2034 A
- (id_byte(n)[0])546 2454 A
- 3042(<<)S
- 3210(0))S
- 3336(\)S
- 4320 V
- (10428)210 648 A
- (|((u16_t))378 2034 A
- (id_byte(n)[1])546 2454 A
- 3042(<<)S
- (8)))126 3210 A
- 4410 V
- (10429)210 648 A
- (#define)294 1026 A
- (id_longword(n))588 1362 A
- ((((u32_t))378 2034 A
- (id_byte(n)[0])546 2454 A
- 3042(<<)S
- 3210(0))S
- 3336(\)S
- 4500 V
- (10430)210 648 A
- (|((u32_t))378 2034 A
- (id_byte(n)[1])546 2454 A
- 3042(<<)S
- 3210(8))S
- 3336(\)S
- 4590 V
- (10431)210 648 A
- (|((u32_t))378 2034 A
- (id_byte(n)[2])546 2454 A
- 3042(<<)S
- (16))126 3168 A
- 3336(\)S
- 4680 V
- (10432)210 648 A
- (|((u32_t))378 2034 A
- (id_byte(n)[3])546 2454 A
- 3042(<<)S
- (24)))168 3168 A
- 4770 V
- (10433)210 648 A
- 4860 V
- (10434)210 648 A
- 1110(/*)S
- (Check)210 1236 A
- 1488(if)S
- (the)126 1614 A
- (one)126 1782 A
- 1950(of)S
- (the)126 2076 A
- (registers)378 2244 A
- (exists.)294 2664 A
- 3000(*/)S
- 4950 V
- (10435)210 648 A
- 1110(r)S
- 1194(=)S
- (in_byte(wn->base)672 1278 A
- 1992(+)S
- (REG_CYL_LO);)504 2076 A
- 5040 V
- (10436)210 648 A
- (out_byte(wn->base)714 1110 A
- 1866(+)S
- (REG_CYL_LO,)462 1950 A
- (304r);)168 2454 A
- 5130 V
- (10437)210 648 A
- 1110(if)S
- ((in_byte(wn->base)714 1236 A
- 1992(+)S
- (REG_CYL_LO))462 2076 A
- 2580(==)S
- 2706(r))S
- (return(ERR);)504 2832 A
- 5220 V
- (10438)210 648 A
- 5310 V
- (10439)210 648 A
- 1110(/*)S
- (Looks)210 1236 A
- (OK;)126 1488 A
- (register)336 1656 A
- (IRQ)126 2034 A
- (and)126 2202 A
- (try)126 2370 A
- 2538(an)S
- (ATA)126 2664 A
- (identify)336 2832 A
- (command.)336 3210 A
- 3588(*/)S
- 5400 V
- (10440)210 648 A
- (put_irq_handler(wn->irq,)1008 1110 A
- (w_handler);)462 2160 A
- 5490 V
- (10441)210 648 A
- (enable_irq(wn->irq);)840 1110 A
- 5580 V
- (10442)210 648 A
- 5670 V
- (10443)210 648 A
- (cmd.ldh)294 1110 A
- 1614(=)S
- (wn->ldhpref;)504 1698 A
- 5760 V
- (10444)210 648 A
- (cmd.command)462 1110 A
- 1614(=)S
- (ATA_IDENTIFY;)546 1698 A
- 5850 V
- (10445)210 648 A
- 1110(if)S
- ((com_simple(&cmd))714 1236 A
- 1992(==)S
- (OK))126 2118 A
- 2286({)S
- 5940 V
- (10446)210 648 A
- 1362(/*)S
- (This)168 1488 A
- 1698(is)S
- 1824(an)S
- (ATA)126 1950 A
- (device.)294 2118 A
- 2454(*/)S
- 6030 V
- (10447)210 648 A
- (wn->state)378 1362 A
- 1782(|=)S
- (SMART;)252 1908 A
- 6120 V
- (10448)210 648 A
- 6210 V
- (10449)210 648 A
- 1362(/*)S
- (Device)252 1488 A
- (information.)504 1782 A
- 2328(*/)S
- 8418 V
- EP
- %%Page: 135 135
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 1981(File:)S
- 2214(src/kernel/at_wini.c)S
- 12 B
- (135)180 4248 A
- 900 V
- 7 LST
- (10450)210 648 A
- (port_read(wn->base)756 1362 A
- 2160(+)S
- (REG_DATA,)378 2244 A
- (tmp_phys,)378 2664 A
- (SECTOR_SIZE);)546 3084 A
- 990 V
- (10451)210 648 A
- 1080 V
- (10452)210 648 A
- 1362(/*)S
- (Why)126 1488 A
- (are)126 1656 A
- (the)126 1824 A
- (strings)294 1992 A
- (byte)168 2328 A
- (swapped???)420 2538 A
- 3000(*/)S
- 1170 V
- (10453)210 648 A
- (for)126 1362 A
- 1530((i)S
- 1656(=)S
- 1740(0;)S
- 1866(i)S
- 1950(<)S
- (40;)126 2034 A
- (i++))168 2202 A
- (id_string[i])504 2412 A
- 2958(=)S
- (id_byte(27)[i3031];)714 3042 A
- 1260 V
- (10454)210 648 A
- 1350 V
- (10455)210 648 A
- 1362(/*)S
- (Preferred)378 1488 A
- (CHS)126 1908 A
- (translation)462 2076 A
- (mode.)210 2580 A
- 2832(*/)S
- 1440 V
- (10456)210 648 A
- (wn->pcylinders)588 1362 A
- 1992(=)S
- (id_word(1);)462 2076 A
- 1530 V
- (10457)210 648 A
- (wn->pheads)420 1362 A
- 1824(=)S
- (id_word(3);)462 1908 A
- 1620 V
- (10458)210 648 A
- (wn->psectors)504 1362 A
- 1908(=)S
- (id_word(6);)462 1992 A
- 1710 V
- (10459)210 648 A
- (size)168 1362 A
- 1572(=)S
- ((u32_t))294 1656 A
- (wn->pcylinders)588 1992 A
- 2622(*)S
- (wn->pheads)420 2706 A
- 3168(*)S
- (wn->psectors;)546 3252 A
- 1800 V
- (10460)210 648 A
- 1890 V
- (10461)210 648 A
- 1362(if)S
- (((id_byte(49)[1])672 1488 A
- 2202(&)S
- (0x02))210 2286 A
- 2538(&&)S
- (size)168 2664 A
- 2874(>)S
- (512L*1024*2))504 2958 A
- 3504({)S
- 1980 V
- (10462)210 648 A
- 1698(/*)S
- (Drive)210 1824 A
- 2076(is)S
- (LBA)126 2202 A
- (capable)294 2370 A
- (and)126 2706 A
- 2874(is)S
- (big)126 3000 A
- (enough)252 3168 A
- 3462(to)S
- (trust)210 3588 A
- 3840(it)S
- 3966(to)S
- 2070 V
- (10463)210 648 A
- 1740(*)S
- (not)126 1824 A
- (make)168 1992 A
- 2202(a)S
- (mess)168 2286 A
- 2496(of)S
- (it.)126 2622 A
- 2160 V
- (10464)210 648 A
- 1740(*/)S
- 2250 V
- (10465)210 648 A
- (wn->ldhpref)462 1698 A
- 2202(|=)S
- (LDH_LBA;)336 2328 A
- 2340 V
- (10466)210 648 A
- (size)168 1698 A
- 1908(=)S
- (id_longword(60);)672 1992 A
- 2430 V
- (10467)210 648 A
- 1362(})S
- 2520 V
- (10468)210 648 A
- 2610 V
- (10469)210 648 A
- 1362(if)S
- ((wn->lcylinders)630 1488 A
- 2160(==)S
- 2286(0))S
- 2412({)S
- 2700 V
- (10470)210 648 A
- 1698(/*)S
- 1824(No)S
- (BIOS)168 1950 A
- (parameters?)462 2160 A
- (Then)168 2706 A
- (make)168 2916 A
- (some)168 3126 A
- (up.)126 3336 A
- 3504(*/)S
- 2790 V
- (10471)210 648 A
- (wn->lcylinders)588 1698 A
- 2328(=)S
- (wn->pcylinders;)630 2412 A
- 2880 V
- (10472)210 648 A
- (wn->lheads)420 1698 A
- 2160(=)S
- (wn->pheads;)462 2244 A
- 2970 V
- (10473)210 648 A
- (wn->lsectors)504 1698 A
- 2244(=)S
- (wn->psectors;)546 2328 A
- 3060 V
- (10474)210 648 A
- (while)210 1698 A
- ((wn->lcylinders)630 1950 A
- 2622(>)S
- (1024))210 2706 A
- 2958({)S
- 3150 V
- (10475)210 648 A
- (wn->lheads)420 2034 A
- 2496(*=)S
- 2622(2;)S
- 3240 V
- (10476)210 648 A
- (wn->lcylinders)588 2034 A
- 2664(/=)S
- 2790(2;)S
- 3330 V
- (10477)210 648 A
- 1698(})S
- 3420 V
- (10478)210 648 A
- 1362(})S
- 3510 V
- (10479)210 648 A
- 1110(})S
- (else)168 1194 A
- 1404({)S
- 3600 V
- (10480)210 648 A
- 1362(/*)S
- (Not)126 1488 A
- 1656(an)S
- (ATA)126 1782 A
- (device;)294 1950 A
- 2286(no)S
- (translations,)546 2412 A
- 3000(no)S
- (special)294 3126 A
- (features.)378 3462 A
- (Don't)210 3924 A
- 3690 V
- (10481)210 648 A
- 1404(*)S
- (touch)210 1488 A
- 1740(it)S
- (unless)252 1866 A
- (the)126 2160 A
- (BIOS)168 2328 A
- (knows)210 2538 A
- (about)210 2790 A
- (it.)126 3042 A
- 3780 V
- (10482)210 648 A
- 1404(*/)S
- 3870 V
- (10483)210 648 A
- 1362(if)S
- ((wn->lcylinders)630 1488 A
- 2160(==)S
- 2286(0))S
- (return(ERR);)504 2412 A
- 3042(/*)S
- 3168(no)S
- (BIOS)168 3294 A
- (parameters)420 3504 A
- 3966(*/)S
- 3960 V
- (10484)210 648 A
- (wn->pcylinders)588 1362 A
- 1992(=)S
- (wn->lcylinders;)630 2076 A
- 4050 V
- (10485)210 648 A
- (wn->pheads)420 1362 A
- 1824(=)S
- (wn->lheads;)462 1908 A
- 4140 V
- (10486)210 648 A
- (wn->psectors)504 1362 A
- 1908(=)S
- (wn->lsectors;)546 1992 A
- 4230 V
- (10487)210 648 A
- (size)168 1362 A
- 1572(=)S
- ((u32_t))294 1656 A
- (wn->pcylinders)588 1992 A
- 2622(*)S
- (wn->pheads)420 2706 A
- 3168(*)S
- (wn->psectors;)546 3252 A
- 4320 V
- (10488)210 648 A
- 1110(})S
- 4410 V
- (10489)210 648 A
- 1110(/*)S
- (The)126 1236 A
- (fun)126 1404 A
- (ends)168 1572 A
- 1782(at)S
- 1908(4)S
- (GB.)126 1992 A
- 2160(*/)S
- 4500 V
- (10490)210 648 A
- 1110(if)S
- ((size)210 1236 A
- 1488(>)S
- (((u32_t))336 1572 A
- (-1))126 1950 A
- 2118(/)S
- (SECTOR_SIZE))504 2202 A
- (size)168 2748 A
- 2958(=)S
- (((u32_t))336 3042 A
- (-1))126 3420 A
- 3588(/)S
- (SECTOR_SIZE;)504 3672 A
- 4590 V
- (10491)210 648 A
- 4680 V
- (10492)210 648 A
- 1110(/*)S
- (Base)168 1236 A
- (and)126 1446 A
- (size)168 1614 A
- 1824(of)S
- (the)126 1950 A
- (whole)210 2118 A
- (drive)210 2370 A
- 2622(*/)S
- 4770 V
- (10493)210 648 A
- (wn->part[0].dv_base)798 1110 A
- 1950(=)S
- 2034(0;)S
- 4860 V
- (10494)210 648 A
- (wn->part[0].dv_size)798 1110 A
- 1950(=)S
- (size)168 2034 A
- 2244(<<)S
- (SECTOR_SHIFT;)546 2370 A
- 4950 V
- (10495)210 648 A
- 5040 V
- (10496)210 648 A
- 1110(if)S
- ((w_specify())504 1236 A
- 1782(!=)S
- 1908(OK)S
- 2034(&&)S
- (w_specify())462 2160 A
- 2664(!=)S
- (OK))126 2790 A
- (return(ERR);)504 2958 A
- 5130 V
- (10497)210 648 A
- 5220 V
- (10498)210 648 A
- (printf("%s:)462 1110 A
- 1614(",)S
- (w_name());)420 1740 A
- 5310 V
- (10499)210 648 A
- 1110(if)S
- ((wn->state)420 1236 A
- 1698(&)S
- (SMART))252 1782 A
- 2076({)S
- 5400 V
- (10500)210 648 A
- (printf("%.40s\n",)714 1362 A
- (id_string);)462 2118 A
- 5490 V
- (10501)210 648 A
- 1110(})S
- (else)168 1194 A
- 1404({)S
- 5580 V
- (10502)210 648 A
- (printf("%ux%ux%u\n",)840 1362 A
- (wn->pcylinders,)630 2244 A
- (wn->pheads,)462 2916 A
- (wn->psectors);)588 3420 A
- 5670 V
- (10503)210 648 A
- 1110(})S
- 5760 V
- (10504)210 648 A
- (return(OK);)462 1110 A
- 5850 V
- (10505)210 648 A
- 1026(})S
- 6120 V
- (10508)210 648 A
- (/*===========================================================================*)3276 1026 A
- 6210 V
- (10509)210 648 A
- 1068(*)S
- (w_name)252 2370 A
- 4260(*)S
- 8418 V
- EP
- %%Page: 136 136
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (136)180 648 A
- 11 R
- 1981(File:)S
- 2214(src/kernel/at_wini.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (10510)210 648 A
- (*===========================================================================*/)3276 1068 A
- 990 V
- (10511)210 648 A
- (PRIVATE)294 1026 A
- (char)168 1362 A
- (*w_name())378 1572 A
- 1080 V
- (10512)210 648 A
- 1026({)S
- 1170 V
- (10513)210 648 A
- 1026(/*)S
- (Return)252 1152 A
- 1446(a)S
- (name)168 1530 A
- (for)126 1740 A
- (the)126 1908 A
- (current)294 2076 A
- (device.)294 2412 A
- 2748(*/)S
- 1260 V
- (10514)210 648 A
- (static)252 1110 A
- (char)168 1404 A
- (name[])252 1614 A
- 1908(=)S
- ("at-hd15";)420 1992 A
- 1350 V
- (10515)210 648 A
- (unsigned)336 1110 A
- (device)252 1488 A
- 1782(=)S
- (w_drive)294 1866 A
- 2202(*)S
- (DEV_PER_DRIVE;)588 2286 A
- 1440 V
- (10516)210 648 A
- 1530 V
- (10517)210 648 A
- 1110(if)S
- ((device)294 1236 A
- 1572(<)S
- (10))126 1656 A
- 1824({)S
- 1620 V
- (10518)210 648 A
- (name[5])294 1362 A
- 1698(=)S
- ('0')126 1782 A
- 1950(+)S
- (device;)294 2034 A
- 1710 V
- (10519)210 648 A
- (name[6])294 1362 A
- 1698(=)S
- 1782(0;)S
- 1800 V
- (10520)210 648 A
- 1110(})S
- (else)168 1194 A
- 1404({)S
- 1890 V
- (10521)210 648 A
- (name[5])294 1362 A
- 1698(=)S
- ('0')126 1782 A
- 1950(+)S
- (device)252 2034 A
- 2328(/)S
- (10;)126 2412 A
- 1980 V
- (10522)210 648 A
- (name[6])294 1362 A
- 1698(=)S
- ('0')126 1782 A
- 1950(+)S
- (device)252 2034 A
- 2328(%)S
- (10;)126 2412 A
- 2070 V
- (10523)210 648 A
- 1110(})S
- 2160 V
- (10524)210 648 A
- (return)252 1110 A
- (name;)210 1404 A
- 2250 V
- (10525)210 648 A
- 1026(})S
- 2520 V
- (10528)210 648 A
- (/*===========================================================================*)3276 1026 A
- 2610 V
- (10529)210 648 A
- 1068(*)S
- (w_specify)378 2370 A
- 4260(*)S
- 2700 V
- (10530)210 648 A
- (*===========================================================================*/)3276 1068 A
- 2790 V
- (10531)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (w_specify())462 1530 A
- 2880 V
- (10532)210 648 A
- 1026({)S
- 2970 V
- (10533)210 648 A
- 1026(/*)S
- (Routine)294 1152 A
- 1488(to)S
- (initialize)420 1614 A
- (the)126 2076 A
- (drive)210 2244 A
- (after)210 2496 A
- (boot)168 2748 A
- 2958(or)S
- (when)168 3084 A
- 3294(a)S
- (reset)210 3378 A
- 3630(is)S
- (needed.)294 3756 A
- 4092(*/)S
- 3060 V
- (10534)210 648 A
- 3150 V
- (10535)210 648 A
- (struct)252 1110 A
- (wini)168 1404 A
- (*wn)126 1614 A
- 1782(=)S
- (w_wn;)210 1866 A
- 3240 V
- (10536)210 648 A
- (struct)252 1110 A
- (command)294 1404 A
- (cmd;)168 1740 A
- 3330 V
- (10537)210 648 A
- 3420 V
- (10538)210 648 A
- 1110(if)S
- (((wn->state)462 1236 A
- 1740(&)S
- (DEAF))210 1824 A
- 2076(&&)S
- (w_reset())378 2202 A
- 2622(!=)S
- (OK))126 2748 A
- (return(ERR);)504 2916 A
- 3510 V
- (10539)210 648 A
- 3600 V
- (10540)210 648 A
- 1110(/*)S
- (Specify)294 1236 A
- (parameters:)462 1572 A
- (precompensation,)672 2076 A
- (number)252 2790 A
- 3084(of)S
- (heads)210 3210 A
- (and)126 3462 A
- (sectors.)336 3630 A
- 4008(*/)S
- 3690 V
- (10541)210 648 A
- (cmd.precomp)462 1110 A
- 1614(=)S
- (wn->precomp;)504 1698 A
- 3780 V
- (10542)210 648 A
- (cmd.count)378 1110 A
- 1614(=)S
- (wn->psectors;)546 1698 A
- 3870 V
- (10543)210 648 A
- (cmd.ldh)294 1110 A
- 1614(=)S
- (w_wn->ldhpref)546 1698 A
- 2286(|)S
- ((wn->pheads)462 2370 A
- 2874(-)S
- (1);)126 2958 A
- 3960 V
- (10544)210 648 A
- (cmd.command)462 1110 A
- 1614(=)S
- (CMD_SPECIFY;)504 1698 A
- 2706(/*)S
- (Specify)294 2832 A
- (some)168 3168 A
- (parameters)420 3378 A
- 3840(*/)S
- 4050 V
- (10545)210 648 A
- 4140 V
- (10546)210 648 A
- 1110(if)S
- ((com_simple(&cmd))714 1236 A
- 1992(!=)S
- (OK))126 2118 A
- (return(ERR);)504 2286 A
- 4230 V
- (10547)210 648 A
- 4320 V
- (10548)210 648 A
- 1110(if)S
- ((!(wn->state)504 1236 A
- 1782(&)S
- (SMART)))294 1866 A
- 2202({)S
- 4410 V
- (10549)210 648 A
- 1362(/*)S
- (Calibrate)378 1488 A
- 1908(an)S
- (old)126 2034 A
- (disk.)210 2202 A
- 2454(*/)S
- 4500 V
- (10550)210 648 A
- (cmd.sector)420 1362 A
- 1866(=)S
- 1950(0;)S
- 4590 V
- (10551)210 648 A
- (cmd.cyl_lo)420 1362 A
- 1866(=)S
- 1950(0;)S
- 4680 V
- (10552)210 648 A
- (cmd.cyl_hi)420 1362 A
- 1866(=)S
- 1950(0;)S
- 4770 V
- (10553)210 648 A
- (cmd.ldh)294 1362 A
- 1866(=)S
- (w_wn->ldhpref;)588 1950 A
- 4860 V
- (10554)210 648 A
- (cmd.command)462 1362 A
- 1866(=)S
- (CMD_RECALIBRATE;)672 1950 A
- 4950 V
- (10555)210 648 A
- 5040 V
- (10556)210 648 A
- 1362(if)S
- ((com_simple(&cmd))714 1488 A
- 2244(!=)S
- (OK))126 2370 A
- (return(ERR);)504 2538 A
- 5130 V
- (10557)210 648 A
- 1110(})S
- 5220 V
- (10558)210 648 A
- 5310 V
- (10559)210 648 A
- (wn->state)378 1110 A
- 1530(|=)S
- (INITIALIZED;)504 1656 A
- 5400 V
- (10560)210 648 A
- (return(OK);)462 1110 A
- 5490 V
- (10561)210 648 A
- 1026(})S
- 5760 V
- (10564)210 648 A
- (/*===========================================================================*)3276 1026 A
- 5850 V
- (10565)210 648 A
- 1068(*)S
- (w_schedule)420 2370 A
- 4260(*)S
- 5940 V
- (10566)210 648 A
- (*===========================================================================*/)3276 1068 A
- 6030 V
- (10567)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (w_schedule(proc_nr,)798 1530 A
- (iop))168 2370 A
- 6120 V
- (10568)210 648 A
- (int)126 1026 A
- (proc_nr;)336 1194 A
- 2370(/*)S
- (process)294 2496 A
- (doing)210 2832 A
- (the)126 3084 A
- (request)294 3252 A
- 3588(*/)S
- 6210 V
- (10569)210 648 A
- (struct)252 1026 A
- (iorequest_s)462 1320 A
- (*iop;)210 1824 A
- 2370(/*)S
- (pointer)294 2496 A
- 2832(to)S
- (read)168 2958 A
- 3168(or)S
- (write)210 3294 A
- (request)294 3546 A
- 3882(*/)S
- 8418 V
- EP
- %%Page: 137 137
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 1981(File:)S
- 2214(src/kernel/at_wini.c)S
- 12 B
- (137)180 4248 A
- 900 V
- 7 LST
- (10570)210 648 A
- 1026({)S
- 990 V
- (10571)210 648 A
- 1026(/*)S
- (Gather)252 1152 A
- (I/O)126 1446 A
- (requests)336 1614 A
- 1992(on)S
- (consecutive)462 2118 A
- (blocks)252 2622 A
- 2916(so)S
- (they)168 3042 A
- (may)126 3252 A
- 3420(be)S
- (read/written)504 3546 A
- 1080 V
- (10572)210 648 A
- 1068(*)S
- 1152(in)S
- (one)126 1278 A
- (controller)420 1446 A
- (command.)336 1908 A
- ((There)252 2328 A
- 2622(is)S
- (enough)252 2748 A
- (time)168 3042 A
- 3252(to)S
- (compute)294 3378 A
- (the)126 3714 A
- (next)168 3882 A
- 1170 V
- (10573)210 648 A
- 1068(*)S
- (consecutive)462 1152 A
- (request)294 1656 A
- (while)210 1992 A
- 2244(an)S
- (unwanted)336 2370 A
- (block)210 2748 A
- (passes)252 3000 A
- (by.))168 3294 A
- 1260 V
- (10574)210 648 A
- 1068(*/)S
- 1350 V
- (10575)210 648 A
- (struct)252 1110 A
- (wini)168 1404 A
- (*wn)126 1614 A
- 1782(=)S
- (w_wn;)210 1866 A
- 1440 V
- (10576)210 648 A
- (int)126 1110 A
- 1278(r,)S
- (opcode;)294 1404 A
- 1530 V
- (10577)210 648 A
- (unsigned)336 1110 A
- (long)168 1488 A
- (pos;)168 1698 A
- 1620 V
- (10578)210 648 A
- (unsigned)336 1110 A
- (nbytes,)294 1488 A
- (count;)252 1824 A
- 1710 V
- (10579)210 648 A
- (unsigned)336 1110 A
- (long)168 1488 A
- (block;)252 1698 A
- 1800 V
- (10580)210 648 A
- (phys_bytes)420 1110 A
- (user_phys;)420 1572 A
- 1890 V
- (10581)210 648 A
- 1980 V
- (10582)210 648 A
- 1110(/*)S
- (This)168 1236 A
- (many)168 1446 A
- (bytes)210 1656 A
- 1908(to)S
- (read/write)420 2034 A
- 2496(*/)S
- 2070 V
- (10583)210 648 A
- (nbytes)252 1110 A
- 1404(=)S
- (iop->io_nbytes;)630 1488 A
- 2160 V
- (10584)210 648 A
- 1110(if)S
- (((nbytes)336 1236 A
- 1614(&)S
- (SECTOR_MASK))504 1698 A
- 2244(!=)S
- 2370(0))S
- (return(iop->io_nbytes)882 2496 A
- 3420(=)S
- (EINVAL);)336 3504 A
- 2250 V
- (10585)210 648 A
- 2340 V
- (10586)210 648 A
- 1110(/*)S
- (From/to)294 1236 A
- (this)168 1572 A
- (position)336 1782 A
- 2160(on)S
- (the)126 2286 A
- (device)252 2454 A
- 2748(*/)S
- 2430 V
- (10587)210 648 A
- (pos)126 1110 A
- 1278(=)S
- (iop->io_position;)714 1362 A
- 2520 V
- (10588)210 648 A
- 1110(if)S
- (((pos)210 1236 A
- 1488(&)S
- (SECTOR_MASK))504 1572 A
- 2118(!=)S
- 2244(0))S
- (return(iop->io_nbytes)882 2370 A
- 3294(=)S
- (EINVAL);)336 3378 A
- 2610 V
- (10589)210 648 A
- 2700 V
- (10590)210 648 A
- 1110(/*)S
- (To/from)294 1236 A
- (this)168 1572 A
- (user)168 1782 A
- (address)294 1992 A
- 2328(*/)S
- 2790 V
- (10591)210 648 A
- (user_phys)378 1110 A
- 1530(=)S
- (numap(proc_nr,)588 1614 A
- ((vir_bytes))462 2244 A
- (iop->io_buf,)504 2748 A
- (nbytes);)336 3294 A
- 2880 V
- (10592)210 648 A
- 1110(if)S
- ((user_phys)420 1236 A
- 1698(==)S
- 1824(0))S
- (return(iop->io_nbytes)882 1950 A
- 2874(=)S
- (EINVAL);)336 2958 A
- 2970 V
- (10593)210 648 A
- 3060 V
- (10594)210 648 A
- 1110(/*)S
- (Read)168 1236 A
- 1446(or)S
- (write?)252 1572 A
- 1866(*/)S
- 3150 V
- (10595)210 648 A
- (opcode)252 1110 A
- 1404(=)S
- (iop->io_request)630 1488 A
- 2160(&)S
- (304OPTIONAL_IO;)546 2244 A
- 3240 V
- (10596)210 648 A
- 3330 V
- (10597)210 648 A
- 1110(/*)S
- (Which)210 1236 A
- (block)210 1488 A
- 1740(on)S
- (disk)168 1866 A
- (and)126 2076 A
- (how)126 2244 A
- (close)210 2412 A
- 2664(to)S
- (EOF?)168 2790 A
- 3000(*/)S
- 3420 V
- (10598)210 648 A
- 1110(if)S
- ((pos)168 1236 A
- 1446(>=)S
- (w_dv->dv_size))588 1572 A
- (return(OK);)462 2202 A
- 3042(/*)S
- 3168(At)S
- (EOF)126 3294 A
- 3462(*/)S
- 3510 V
- (10599)210 648 A
- 1110(if)S
- ((pos)168 1236 A
- 1446(+)S
- (nbytes)252 1530 A
- 1824(>)S
- (w_dv->dv_size))588 1908 A
- (nbytes)252 2538 A
- 2832(=)S
- (w_dv->dv_size)546 2916 A
- 3504(-)S
- (pos;)168 3588 A
- 3600 V
- (10600)210 648 A
- (block)210 1110 A
- 1362(=)S
- ((w_dv->dv_base)588 1446 A
- 2076(+)S
- (pos))168 2160 A
- 2370(>>)S
- (SECTOR_SHIFT;)546 2496 A
- 3690 V
- (10601)210 648 A
- 3780 V
- (10602)210 648 A
- 1110(if)S
- ((w_count)336 1236 A
- 1614(>)S
- 1698(0)S
- 1782(&&)S
- (block)210 1908 A
- 2160(!=)S
- (w_nextblock))504 2286 A
- 2832({)S
- 3870 V
- (10603)210 648 A
- 1362(/*)S
- (This)168 1488 A
- (new)126 1698 A
- (request)294 1866 A
- (can't)210 2202 A
- 2454(be)S
- (chained)294 2580 A
- 2916(to)S
- (the)126 3042 A
- (job)126 3210 A
- (being)210 3378 A
- (built)210 3630 A
- 3882(*/)S
- 3960 V
- (10604)210 648 A
- 1362(if)S
- (((r)126 1488 A
- 1656(=)S
- (w_finish()))462 1740 A
- 2244(!=)S
- (OK))126 2370 A
- (return(r);)420 2538 A
- 4050 V
- (10605)210 648 A
- 1110(})S
- 4140 V
- (10606)210 648 A
- 4230 V
- (10607)210 648 A
- 1110(/*)S
- (The)126 1236 A
- (next)168 1404 A
- (consecutive)462 1614 A
- (block)210 2118 A
- 2370(*/)S
- 4320 V
- (10608)210 648 A
- (w_nextblock)462 1110 A
- 1614(=)S
- (block)210 1698 A
- 1950(+)S
- ((nbytes)294 2034 A
- 2370(>>)S
- (SECTOR_SHIFT);)588 2496 A
- 4410 V
- (10609)210 648 A
- 4500 V
- (10610)210 648 A
- 1110(/*)S
- (While)210 1236 A
- (there)210 1488 A
- (are)126 1740 A
- ("unscheduled")546 1908 A
- (bytes)210 2496 A
- 2748(in)S
- (the)126 2874 A
- (request:)336 3042 A
- 3420(*/)S
- 4590 V
- (10611)210 648 A
- 1110(do)S
- 1236({)S
- 4680 V
- (10612)210 648 A
- (count)210 1362 A
- 1614(=)S
- (nbytes;)294 1698 A
- 4770 V
- (10613)210 648 A
- 4860 V
- (10614)210 648 A
- 1362(if)S
- ((w_count)336 1488 A
- 1866(==)S
- (wn->max_count))588 1992 A
- 2622({)S
- 4950 V
- (10615)210 648 A
- 1698(/*)S
- (The)126 1824 A
- (drive)210 1992 A
- (can't)210 2244 A
- 2496(do)S
- (more)168 2622 A
- (then)168 2832 A
- (max_count)378 3042 A
- 3462(at)S
- (once)168 3588 A
- 3798(*/)S
- 5040 V
- (10616)210 648 A
- 1698(if)S
- (((r)126 1824 A
- 1992(=)S
- (w_finish()))462 2076 A
- 2580(!=)S
- (OK))126 2706 A
- (return(r);)420 2874 A
- 5130 V
- (10617)210 648 A
- 1362(})S
- 5220 V
- (10618)210 648 A
- 5310 V
- (10619)210 648 A
- 1362(if)S
- ((w_count)336 1488 A
- 1866(+)S
- (count)210 1950 A
- 2202(>)S
- (wn->max_count))588 2286 A
- 5400 V
- (10620)210 648 A
- (count)210 1698 A
- 1950(=)S
- (wn->max_count)546 2034 A
- 2622(-)S
- (w_count;)336 2706 A
- 5490 V
- (10621)210 648 A
- 5580 V
- (10622)210 648 A
- 1362(if)S
- ((w_count)336 1488 A
- 1866(==)S
- 1992(0))S
- 2118({)S
- 5670 V
- (10623)210 648 A
- 1698(/*)S
- (The)126 1824 A
- (first)210 1992 A
- (request)294 2244 A
- 2580(in)S
- 2706(a)S
- (row,)168 2790 A
- (initialize.)462 3000 A
- 3504(*/)S
- 5760 V
- (10624)210 648 A
- (w_opcode)336 1698 A
- 2076(=)S
- (opcode;)294 2160 A
- 5850 V
- (10625)210 648 A
- (w_tp)168 1698 A
- 1908(=)S
- (wtrans;)294 1992 A
- 5940 V
- (10626)210 648 A
- 1362(})S
- 6030 V
- (10627)210 648 A
- 6120 V
- (10628)210 648 A
- 1362(/*)S
- (Store)210 1488 A
- (I/O)126 1740 A
- (parameters)420 1908 A
- 2370(*/)S
- 6210 V
- (10629)210 648 A
- (w_tp->iop)378 1362 A
- 1782(=)S
- (iop;)168 1866 A
- 8418 V
- EP
- %%Page: 138 138
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (138)180 648 A
- 11 R
- 1981(File:)S
- 2214(src/kernel/at_wini.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (10630)210 648 A
- (w_tp->block)462 1362 A
- 1866(=)S
- (block;)252 1950 A
- 990 V
- (10631)210 648 A
- (w_tp->count)462 1362 A
- 1866(=)S
- (count;)252 1950 A
- 1080 V
- (10632)210 648 A
- (w_tp->phys)420 1362 A
- 1824(=)S
- (user_phys;)420 1908 A
- 1170 V
- (10633)210 648 A
- 1260 V
- (10634)210 648 A
- 1362(/*)S
- (Update)252 1488 A
- (counters)336 1782 A
- 2160(*/)S
- 1350 V
- (10635)210 648 A
- (w_tp++;)294 1362 A
- 1440 V
- (10636)210 648 A
- (w_count)294 1362 A
- 1698(+=)S
- (count;)252 1824 A
- 1530 V
- (10637)210 648 A
- (block)210 1362 A
- 1614(+=)S
- (count)210 1740 A
- 1992(>>)S
- (SECTOR_SHIFT;)546 2118 A
- 1620 V
- (10638)210 648 A
- (user_phys)378 1362 A
- 1782(+=)S
- (count;)252 1908 A
- 1710 V
- (10639)210 648 A
- (nbytes)252 1362 A
- 1656(-=)S
- (count;)252 1782 A
- 1800 V
- (10640)210 648 A
- 1110(})S
- (while)210 1194 A
- ((nbytes)294 1446 A
- 1782(>)S
- (0);)126 1866 A
- 1890 V
- (10641)210 648 A
- 1980 V
- (10642)210 648 A
- (return(OK);)462 1110 A
- 2070 V
- (10643)210 648 A
- 1026(})S
- 2340 V
- (10646)210 648 A
- (/*===========================================================================*)3276 1026 A
- 2430 V
- (10647)210 648 A
- 1068(*)S
- (w_finish)336 2370 A
- 4260(*)S
- 2520 V
- (10648)210 648 A
- (*===========================================================================*/)3276 1068 A
- 2610 V
- (10649)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (w_finish())420 1530 A
- 2700 V
- (10650)210 648 A
- 1026({)S
- 2790 V
- (10651)210 648 A
- 1026(/*)S
- (Carry)210 1152 A
- (out)126 1404 A
- (the)126 1572 A
- (I/O)126 1740 A
- (requests)336 1908 A
- (gathered)336 2286 A
- 2664(in)S
- (wtrans[].)378 2790 A
- 3210(*/)S
- 2880 V
- (10652)210 648 A
- 2970 V
- (10653)210 648 A
- (struct)252 1110 A
- (trans)210 1404 A
- (*tp)126 1656 A
- 1824(=)S
- (wtrans;)294 1908 A
- 3060 V
- (10654)210 648 A
- (struct)252 1110 A
- (wini)168 1404 A
- (*wn)126 1614 A
- 1782(=)S
- (w_wn;)210 1866 A
- 3150 V
- (10655)210 648 A
- (int)126 1110 A
- 1278(r,)S
- (errors;)294 1404 A
- 3240 V
- (10656)210 648 A
- (struct)252 1110 A
- (command)294 1404 A
- (cmd;)168 1740 A
- 3330 V
- (10657)210 648 A
- (unsigned)336 1110 A
- (cylinder,)378 1488 A
- (head,)210 1908 A
- (sector,)294 2160 A
- (secspcyl;)378 2496 A
- 3420 V
- (10658)210 648 A
- 3510 V
- (10659)210 648 A
- 1110(if)S
- ((w_count)336 1236 A
- 1614(==)S
- 1740(0))S
- (return(OK);)462 1866 A
- 2370(/*)S
- (Spurious)336 2496 A
- (finish.)294 2874 A
- 3210(*/)S
- 3600 V
- (10660)210 648 A
- 3690 V
- (10661)210 648 A
- 1110(r)S
- 1194(=)S
- (ERR;)168 1278 A
- 1698(/*)S
- (Trigger)294 1824 A
- (the)126 2160 A
- (first)210 2328 A
- (com_out)294 2580 A
- 2916(*/)S
- 3780 V
- (10662)210 648 A
- (errors)252 1110 A
- 1404(=)S
- 1488(0;)S
- 3870 V
- (10663)210 648 A
- 3960 V
- (10664)210 648 A
- 1110(do)S
- 1236({)S
- 4050 V
- (10665)210 648 A
- 1362(if)S
- 1488((r)S
- 1614(!=)S
- (OK))126 1740 A
- 1908({)S
- 4140 V
- (10666)210 648 A
- 1698(/*)S
- (The)126 1824 A
- (controller)420 1992 A
- (must)168 2454 A
- 2664(be)S
- ((re)programmed.)630 2790 A
- 3462(*/)S
- 4230 V
- (10667)210 648 A
- 4320 V
- (10668)210 648 A
- 1698(/*)S
- (First)210 1824 A
- (check)210 2076 A
- 2328(to)S
- (see)126 2454 A
- 2622(if)S
- 2748(a)S
- (reinitialization)672 2832 A
- 3546(is)S
- (needed.)294 3672 A
- 4008(*/)S
- 4410 V
- (10669)210 648 A
- 1698(if)S
- ((!(wn->state)504 1824 A
- 2370(&)S
- (INITIALIZED))504 2454 A
- 3000(&&)S
- (w_specify())462 3126 A
- 3630(!=)S
- (OK))126 3756 A
- 4500 V
- (10670)210 648 A
- (return(tp->iop->io_nbytes)1050 2034 A
- 3126(=)S
- (EIO);)210 3210 A
- 4590 V
- (10671)210 648 A
- 4680 V
- (10672)210 648 A
- 1698(/*)S
- (Tell)168 1824 A
- (the)126 2034 A
- (controller)420 2202 A
- 2664(to)S
- (transfer)336 2790 A
- (w_count)294 3168 A
- (bytes)210 3504 A
- 3756(*/)S
- 4770 V
- (10673)210 648 A
- (cmd.precomp)462 1698 A
- 2202(=)S
- (wn->precomp;)504 2286 A
- 4860 V
- (10674)210 648 A
- (cmd.count)378 1698 A
- 2202(=)S
- ((w_count)336 2286 A
- 2664(>>)S
- (SECTOR_SHIFT))546 2790 A
- 3378(&)S
- (BYTE;)210 3462 A
- 4950 V
- (10675)210 648 A
- 1698(if)S
- ((wn->ldhpref)504 1824 A
- 2370(&)S
- (LDH_LBA))336 2454 A
- 2832({)S
- 5040 V
- (10676)210 648 A
- (cmd.sector)420 2034 A
- 2538(=)S
- ((tp->block)420 2622 A
- 3084(>>)S
- 3252(0))S
- 3378(&)S
- (0xFF;)210 3462 A
- 5130 V
- (10677)210 648 A
- (cmd.cyl_lo)420 2034 A
- 2538(=)S
- ((tp->block)420 2622 A
- 3084(>>)S
- 3252(8))S
- 3378(&)S
- (0xFF;)210 3462 A
- 5220 V
- (10678)210 648 A
- (cmd.cyl_hi)420 2034 A
- 2538(=)S
- ((tp->block)420 2622 A
- 3084(>>)S
- (16))126 3210 A
- 3378(&)S
- (0xFF;)210 3462 A
- 5310 V
- (10679)210 648 A
- (cmd.ldh)294 2034 A
- 2538(=)S
- (wn->ldhpref)462 2622 A
- 3126(|)S
- (((tp->block)462 3210 A
- 3714(>>)S
- (24))126 3840 A
- 4008(&)S
- (0xF);)210 4092 A
- 5400 V
- (10680)210 648 A
- 1698(})S
- (else)168 1782 A
- 1992({)S
- 5490 V
- (10681)210 648 A
- (secspcyl)336 2034 A
- 2412(=)S
- (wn->pheads)420 2496 A
- 2958(*)S
- (wn->psectors;)546 3042 A
- 5580 V
- (10682)210 648 A
- (cylinder)336 2034 A
- 2412(=)S
- (tp->block)378 2496 A
- 2916(/)S
- (secspcyl;)378 3000 A
- 5670 V
- (10683)210 648 A
- (head)168 2034 A
- 2244(=)S
- ((tp->block)420 2328 A
- 2790(%)S
- (secspcyl))378 2874 A
- 3294(/)S
- (wn->psectors;)546 3378 A
- 5760 V
- (10684)210 648 A
- (sector)252 2034 A
- 2328(=)S
- (tp->block)378 2412 A
- 2832(%)S
- (wn->psectors;)546 2916 A
- 5850 V
- (10685)210 648 A
- (cmd.sector)420 2034 A
- 2538(=)S
- (sector)252 2622 A
- 2916(+)S
- 3000(1;)S
- 5940 V
- (10686)210 648 A
- (cmd.cyl_lo)420 2034 A
- 2538(=)S
- (cylinder)336 2622 A
- 3000(&)S
- (BYTE;)210 3084 A
- 6030 V
- (10687)210 648 A
- (cmd.cyl_hi)420 2034 A
- 2538(=)S
- ((cylinder)378 2622 A
- 3042(>>)S
- 3168(8))S
- 3294(&)S
- (BYTE;)210 3378 A
- 6120 V
- (10688)210 648 A
- (cmd.ldh)294 2034 A
- 2538(=)S
- (wn->ldhpref)462 2622 A
- 3126(|)S
- (head;)210 3210 A
- 6210 V
- (10689)210 648 A
- 1698(})S
- 8418 V
- EP
- %%Page: 139 139
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 10 R
- 648(MINIX)S
- 976(SOURCE)S
- 1399(CODE)S
- 11 R
- 1981(File:)S
- 2214(src/kernel/at_wini.c)S
- 12 B
- (139)180 4248 A
- 900 V
- 7 LST
- (10690)210 648 A
- (cmd.command)462 1698 A
- 2202(=)S
- (w_opcode)336 2286 A
- 2664(==)S
- (DEV_WRITE)378 2790 A
- 3210(?)S
- (CMD_WRITE)378 3294 A
- 3714(:)S
- (CMD_READ;)378 3798 A
- 990 V
- (10691)210 648 A
- 1080 V
- (10692)210 648 A
- 1698(if)S
- (((r)126 1824 A
- 1992(=)S
- (com_out(&cmd)))588 2076 A
- 2706(!=)S
- (OK))126 2832 A
- 3000({)S
- 1170 V
- (10693)210 648 A
- 2034(if)S
- ((++errors)378 2160 A
- 2580(==)S
- (MAX_ERRORS))462 2706 A
- 3210({)S
- 1260 V
- (10694)210 648 A
- (w_command)378 2370 A
- 2790(=)S
- (CMD_IDLE;)378 2874 A
- 1350 V
- (10695)210 648 A
- (return(tp->iop->io_nbytes)1050 2370 A
- 3462(=)S
- (EIO);)210 3546 A
- 1440 V
- (10696)210 648 A
- 2034(})S
- 1530 V
- (10697)210 648 A
- (continue;)378 2034 A
- 2706(/*)S
- (Retry)210 2832 A
- 3084(*/)S
- 1620 V
- (10698)210 648 A
- 1698(})S
- 1710 V
- (10699)210 648 A
- 1362(})S
- 1800 V
- (10700)210 648 A
- 1890 V
- (10701)210 648 A
- 1362(/*)S
- (For)126 1488 A
- (each)168 1656 A
- (sector,)294 1866 A
- (wait)168 2202 A
- (for)126 2412 A
- 2580(an)S
- (interrupt)378 2706 A
- (and)126 3126 A
- (fetch)210 3294 A
- (the)126 3546 A
- (data)168 3714 A
- ((read),)294 3924 A
- 1980 V
- (10702)210 648 A
- 1404(*)S
- 1488(or)S
- (supply)252 1614 A
- (data)168 1908 A
- 2118(to)S
- (the)126 2244 A
- (controller)420 2412 A
- (and)126 2874 A
- (wait)168 3042 A
- (for)126 3252 A
- 3420(an)S
- (interrupt)378 3546 A
- ((write).)336 3966 A
- 2070 V
- (10703)210 648 A
- 1404(*/)S
- 2160 V
- (10704)210 648 A
- 2250 V
- (10705)210 648 A
- 1362(if)S
- ((w_opcode)378 1488 A
- 1908(==)S
- (DEV_READ))378 2034 A
- 2454({)S
- 2340 V
- (10706)210 648 A
- 1698(if)S
- (((r)126 1824 A
- 1992(=)S
- (w_intr_wait()))588 2076 A
- 2706(==)S
- (OK))126 2832 A
- 3000({)S
- 2430 V
- (10707)210 648 A
- 2034(/*)S
- (Copy)168 2160 A
- (data)168 2370 A
- (from)168 2580 A
- (the)126 2790 A
- (device's)336 2958 A
- (buffer)252 3336 A
- 3630(to)S
- (user)168 3756 A
- (space.)252 3966 A
- 4260(*/)S
- 2520 V
- (10708)210 648 A
- 2610 V
- (10709)210 648 A
- (port_read(wn->base)756 2034 A
- 2832(+)S
- (REG_DATA,)378 2916 A
- (tp->phys,)378 3336 A
- (SECTOR_SIZE);)546 3756 A
- 2700 V
- (10710)210 648 A
- 2790 V
- (10711)210 648 A
- (tp->phys)336 2034 A
- 2412(+=)S
- (SECTOR_SIZE;)504 2538 A
- 2880 V
- (10712)210 648 A
- (tp->iop->io_nbytes)756 2034 A
- 2832(-=)S
- (SECTOR_SIZE;)504 2958 A
- 2970 V
- (10713)210 648 A
- (w_count)294 2034 A
- 2370(-=)S
- (SECTOR_SIZE;)504 2496 A
- 3060 V
- (10714)210 648 A
- 2034(if)S
- (((tp->count)462 2160 A
- 2664(-=)S
- (SECTOR_SIZE))504 2790 A
- 3336(==)S
- 3462(0))S
- (tp++;)210 3588 A
- 3150 V
- (10715)210 648 A
- 1698(})S
- (else)168 1782 A
- 1992({)S
- 3240 V
- (10716)210 648 A
- 2034(/*)S
- (Any)126 2160 A
- (faulty)252 2328 A
- (data?)210 2622 A
- 2874(*/)S
- 3330 V
- (10717)210 648 A
- 2034(if)S
- ((w_status)378 2160 A
- 2580(&)S
- (STATUS_DRQ))462 2664 A
- 3168({)S
- 3420 V
- (10718)210 648 A
- (port_read(wn->base)756 2370 A
- 3168(+)S
- (REG_DATA,)378 3252 A
- (tmp_phys,)378 3672 A
- 3510 V
- (10719)210 648 A
- (SECTOR_SIZE);)546 3714 A
- 3600 V
- (10720)210 648 A
- 2034(})S
- 3690 V
- (10721)210 648 A
- 1698(})S
- 3780 V
- (10722)210 648 A
- 1362(})S
- (else)168 1446 A
- 1656({)S
- 3870 V
- (10723)210 648 A
- 1698(/*)S
- (Wait)168 1824 A
- (for)126 2034 A
- (data)168 2202 A
- (requested.)420 2412 A
- 2874(*/)S
- 3960 V
- (10724)210 648 A
- 1698(if)S
- ((!waitfor(STATUS_DRQ,)882 1824 A
- (STATUS_DRQ)))504 2748 A
- 3294({)S
- 4050 V
- (10725)210 648 A
- 2034(r)S
- 2118(=)S
- (ERR;)168 2202 A
- 4140 V
- (10726)210 648 A
- 1698(})S
- (else)168 1782 A
- 1992({)S
- 4230 V
- (10727)210 648 A
- 2034(/*)S
- (Fill)168 2160 A
- (the)126 2370 A
- (buffer)252 2538 A
- 2832(of)S
- (the)126 2958 A
- (drive.)252 3126 A
- 3420(*/)S
- 4320 V
- (10728)210 648 A
- 4410 V
- (10729)210 648 A
- (port_write(wn->base)798 2034 A
- 2874(+)S
- (REG_DATA,)378 2958 A
- (tp->phys,)378 3378 A
- (SECTOR_SIZE);)546 3798 A
- 4500 V
- (10730)210 648 A
- 2034(r)S
- 2118(=)S
- (w_intr_wait();)588 2202 A
- 4590 V
- (10731)210 648 A
- 1698(})S
- 4680 V
- (10732)210 648 A
- 4770 V
- (10733)210 648 A
- 1698(if)S
- 1824((r)S
- 1950(==)S
- (OK))126 2076 A
- 2244({)S
- 4860 V
- (10734)210 648 A
- 2034(/*)S
- (Book)168 2160 A
- (the)126 2370 A
- (bytes)210 2538 A
- (successfully)504 2790 A
- (written.)336 3336 A
- 3714(*/)S
- 4950 V
- (10735)210 648 A
- 5040 V
- (10736)210 648 A
- (tp->phys)336 2034 A
- 2412(+=)S
- (SECTOR_SIZE;)504 2538 A
- 5130 V
- (10737)210 648 A
- (tp->iop->io_nbytes)756 2034 A
- 2832(-=)S
- (SECTOR_SIZE;)504 2958 A
- 5220 V
- (10738)210 648 A
- (w_count)294 2034 A
- 2370(-=)S
- (SECTOR_SIZE;)504 2496 A
- 5310 V
- (10739)210 648 A
- 2034(if)S
- (((tp->count)462 2160 A
- 2664(-=)S
- (SECTOR_SIZE))504 2790 A
- 3336(==)S
- 3462(0))S
- (tp++;)210 3588 A
- 5400 V
- (10740)210 648 A
- 1698(})S
- 5490 V
- (10741)210 648 A
- 1362(})S
- 5580 V
- (10742)210 648 A
- 5670 V
- (10743)210 648 A
- 1362(if)S
- 1488((r)S
- 1614(!=)S
- (OK))126 1740 A
- 1908({)S
- 5760 V
- (10744)210 648 A
- 1698(/*)S
- (Don't)210 1824 A
- (retry)210 2076 A
- 2328(if)S
- (sector)252 2454 A
- (marked)252 2748 A
- (bad)126 3042 A
- 3210(or)S
- (too)126 3336 A
- (many)168 3504 A
- (errors)252 3714 A
- 4008(*/)S
- 5850 V
- (10745)210 648 A
- 1698(if)S
- 1824((r)S
- 1950(==)S
- (ERR_BAD_SECTOR)588 2076 A
- 2706(||)S
- (++errors)336 2832 A
- 3210(==)S
- (MAX_ERRORS))462 3336 A
- 3840({)S
- 5940 V
- (10746)210 648 A
- (w_command)378 2034 A
- 2454(=)S
- (CMD_IDLE;)378 2538 A
- 6030 V
- (10747)210 648 A
- (return(tp->iop->io_nbytes)1050 2034 A
- 3126(=)S
- (EIO);)210 3210 A
- 6120 V
- (10748)210 648 A
- 1698(})S
- 6210 V
- (10749)210 648 A
- 8418 V
- EP
- %%Page: 140 140
- BP
- /slant 0 def
- /height 0 def
- 630 V
- 12 B
- (140)180 648 A
- 11 R
- 1981(File:)S
- 2214(src/kernel/at_wini.c)S
- 10 R
- 3402(MINIX)S
- 3730(SOURCE)S
- 4153(CODE)S
- 900 V
- 7 LST
- (10750)210 648 A
- 1698(/*)S
- (Reset)210 1824 A
- 2076(if)S
- (halfway,)336 2202 A
- (but)126 2580 A
- (bail)168 2748 A
- (out)126 2958 A
- 3126(if)S
- (optional)336 3252 A
- (I/O.)168 3630 A
- 3840(*/)S
- 990 V
- (10751)210 648 A
- 1698(if)S
- ((errors)294 1824 A
- 2160(==)S
- (MAX_ERRORS)420 2286 A
- 2748(/)S
- 2832(2))S
- 2958({)S
- 1080 V
- (10752)210 648 A
- (w_need_reset();)630 2034 A
- 1170 V
- (10753)210 648 A
- 2034(if)S
- ((tp->iop->io_request)840 2160 A
- 3042(&)S
- (OPTIONAL_IO))504 3126 A
- 3672({)S
- 1260 V
- (10754)210 648 A
- (w_command)378 2370 A
- 2790(=)S
- (CMD_IDLE;)378 2874 A
- 1350 V
- (10755)210 648 A
- (return(tp->iop->io_nbytes)1050 2370 A
- 3462(=)S
- (EIO);)210 3546 A
- 1440 V
- (10756)210 648 A
- 2034(})S
- 1530 V
- (10757)210 648 A
- 1698(})S
- 1620 V
- (10758)210 648 A
- (continue;)378 1698 A
- 2370(/*)S
- (Retry)210 2496 A
- 2748(*/)S
- 1710 V
- (10759)210 648 A
- 1362(})S
- 1800 V
- (10760)210 648 A
- (errors)252 1362 A
- 1656(=)S
- 1740(0;)S
- 1890 V
- (10761)210 648 A
- 1110(})S
- (while)210 1194 A
- ((w_count)336 1446 A
- 1824(>)S
- (0);)126 1908 A
- 1980 V
- (10762)210 648 A
- 2070 V
- (10763)210 648 A
- (w_command)378 1110 A
- 1530(=)S
- (CMD_IDLE;)378 1614 A
- 2160 V
- (10764)210 648 A
- (return(OK);)462 1110 A
- 2250 V
- (10765)210 648 A
- 1026(})S
- 2520 V
- (10768)210 648 A
- (/*============================================================================*)3318 1026 A
- 2610 V
- (10769)210 648 A
- 1068(*)S
- (com_out)294 2370 A
- 4302(*)S
- 2700 V
- (10770)210 648 A
- (*============================================================================*/)3318 1068 A
- 2790 V
- (10771)210 648 A
- (PRIVATE)294 1026 A
- (int)126 1362 A
- (com_out(cmd))504 1530 A
- 2880 V
- (10772)210 648 A
- (struct)252 1026 A
- (command)294 1320 A
- (*cmd;)210 1656 A
- 2370(/*)S
- (Command)294 2496 A
- (block)210 2832 A
- 3084(*/)S
- 2970 V
- (10773)210 648 A
- 1026({)S
- 3060 V
- (10774)210 648 A
- 1026(/*)S
- (Output)252 1152 A
- (the)126 1446 A
- (command)294 1614 A
- (block)210 1950 A
- 2202(to)S
- (the)126 2328 A
- (winchester)420 2496 A
- (controller)420 2958 A
- (and)126 3420 A
- (return)252 3588 A
- (status)252 3882 A
- 4176(*/)S
- 3150 V
- (10775)210 648 A
- 3240 V
- (10776)210 648 A
- (struct)252 1110 A
- (wini)168 1404 A
- (*wn)126 1614 A
- 1782(=)S
- (w_wn;)210 1866 A
- 3330 V
- (10777)210 648 A
- (unsigned)336 1110 A
- (base)168 1488 A
- 1698(=)S
- (wn->base;)378 1782 A
- 3420 V
- (10778)210 648 A
- 3510 V
- (10779)210 648 A
- 1110(if)S
- ((!waitfor(STATUS_BSY,)882 1236 A
- (0)))126 2160 A
- 2328({)S
- 3600 V
- (10780)210 648 A
- (printf("%s:)462 1362 A
- (controller)420 1866 A