source:
branches/minix3-book/drivers/at_wini/at_wini.c.diff@
9
Last change on this file since 9 was 4, checked in by , 14 years ago | |
---|---|
File size: 2.0 KB |
-
at_wini.c
RCS file: /cvsup/minix/src/drivers/at_wini/at_wini.c,v retrieving revision 1.37 retrieving revision 1.39 diff -u -r1.37 -r1.39
110 110 #define REG_CNT_LO 4 /* low byte of cylinder number */ 111 111 #define REG_CNT_HI 5 /* high byte of cylinder number */ 112 112 #define REG_DRIVE 6 /* drive select */ 113 #endif 114 113 115 #define REG_STATUS 7 /* status */ 114 116 #define STATUS_BSY 0x80 /* controller busy */ 115 117 #define STATUS_DRDY 0x40 /* drive ready */ … … 119 121 #define STATUS_CORR 0x04 /* correctable error occurred */ 120 122 #define STATUS_CHECK 0x01 /* check error */ 121 123 124 #ifdef ENABLE_ATAPI 122 125 #define ATAPI_PACKETCMD 0xA0 /* packet command */ 123 126 #define ATAPI_IDENTIFY 0xA1 /* identify drive */ 124 127 #define SCSI_READ10 0x28 /* read from disk */ … … 538 541 #endif 539 542 540 543 /* Partition the disk. */ 541 memset(wn->part, sizeof(wn->part), 0);542 memset(wn->subpart, sizeof(wn->subpart), 0);543 544 partition(&w_dtab, w_drive * DEV_PER_DRIVE, P_PRIMARY, wn->state & ATAPI); 544 545 } 545 546 wn->open_ct++; … … 1477 1478 return(OK); 1478 1479 } 1479 1480 1481 1482 #endif /* ENABLE_ATAPI */ 1483 1480 1484 /*===========================================================================* 1481 1485 * w_other * 1482 1486 *===========================================================================*/ … … 1536 1540 return EINVAL; 1537 1541 } 1538 1542 1539 1540 1543 /*===========================================================================* 1541 1544 * w_hw_int * 1542 1545 *===========================================================================*/ … … 1602 1605 return str; 1603 1606 } 1604 1607 1608 #if ENABLE_ATAPI 1609 1605 1610 /*===========================================================================* 1606 1611 * atapi_intr_wait * 1607 1612 *===========================================================================*/
Note:
See TracBrowser
for help on using the repository browser.