source: branches/minix3-book/drivers/at_wini/at_wini.c.diff@ 4

Last change on this file since 4 was 4, checked in by Mattia Monga, 13 years ago

Importazione sorgenti libro

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
     
    110110#define REG_CNT_LO          4   /* low byte of cylinder number */
    111111#define REG_CNT_HI          5   /* high byte of cylinder number */
    112112#define REG_DRIVE           6   /* drive select */
     113#endif
     114
    113115#define REG_STATUS          7   /* status */
    114116#define   STATUS_BSY            0x80    /* controller busy */
    115117#define   STATUS_DRDY           0x40    /* drive ready */
     
    119121#define   STATUS_CORR           0x04    /* correctable error occurred */
    120122#define   STATUS_CHECK          0x01    /* check error */
    121123
     124#ifdef ENABLE_ATAPI
    122125#define   ATAPI_PACKETCMD       0xA0    /* packet command */
    123126#define   ATAPI_IDENTIFY        0xA1    /* identify drive */
    124127#define   SCSI_READ10           0x28    /* read from disk */
     
    538541#endif
    539542
    540543        /* Partition the disk. */
    541         memset(wn->part, sizeof(wn->part), 0);
    542         memset(wn->subpart, sizeof(wn->subpart), 0);
    543544        partition(&w_dtab, w_drive * DEV_PER_DRIVE, P_PRIMARY, wn->state & ATAPI);
    544545  }
    545546  wn->open_ct++;
     
    14771478  return(OK);
    14781479}
    14791480
     1481
     1482#endif /* ENABLE_ATAPI */
     1483
    14801484/*===========================================================================*
    14811485 *                              w_other                                      *
    14821486 *===========================================================================*/
     
    15361540        return EINVAL;
    15371541}
    15381542
    1539 
    15401543/*===========================================================================*
    15411544 *                              w_hw_int                                     *
    15421545 *===========================================================================*/
     
    16021605        return str;
    16031606}
    16041607
     1608#if ENABLE_ATAPI
     1609
    16051610/*===========================================================================*
    16061611 *                              atapi_intr_wait                              *
    16071612 *===========================================================================*/
Note: See TracBrowser for help on using the repository browser.