| [4] | 1 | Index: at_wini.c | 
|---|
|  | 2 | =================================================================== | 
|---|
|  | 3 | RCS file: /cvsup/minix/src/drivers/at_wini/at_wini.c,v | 
|---|
|  | 4 | retrieving revision 1.37 | 
|---|
|  | 5 | retrieving revision 1.39 | 
|---|
|  | 6 | diff -u -r1.37 -r1.39 | 
|---|
|  | 7 | --- at_wini.c   12 Sep 2005 13:25:40 -0000      1.37 | 
|---|
|  | 8 | +++ at_wini.c   21 Sep 2005 12:27:23 -0000      1.39 | 
|---|
|  | 9 | @@ -110,6 +110,8 @@ | 
|---|
|  | 10 | #define REG_CNT_LO          4   /* low byte of cylinder number */ | 
|---|
|  | 11 | #define REG_CNT_HI          5   /* high byte of cylinder number */ | 
|---|
|  | 12 | #define REG_DRIVE           6   /* drive select */ | 
|---|
|  | 13 | +#endif | 
|---|
|  | 14 | + | 
|---|
|  | 15 | #define REG_STATUS          7   /* status */ | 
|---|
|  | 16 | #define   STATUS_BSY            0x80    /* controller busy */ | 
|---|
|  | 17 | #define   STATUS_DRDY           0x40    /* drive ready */ | 
|---|
|  | 18 | @@ -119,6 +121,7 @@ | 
|---|
|  | 19 | #define   STATUS_CORR           0x04    /* correctable error occurred */ | 
|---|
|  | 20 | #define   STATUS_CHECK          0x01    /* check error */ | 
|---|
|  | 21 |  | 
|---|
|  | 22 | +#ifdef ENABLE_ATAPI | 
|---|
|  | 23 | #define   ATAPI_PACKETCMD       0xA0    /* packet command */ | 
|---|
|  | 24 | #define   ATAPI_IDENTIFY        0xA1    /* identify drive */ | 
|---|
|  | 25 | #define   SCSI_READ10           0x28    /* read from disk */ | 
|---|
|  | 26 | @@ -538,8 +541,6 @@ | 
|---|
|  | 27 | #endif | 
|---|
|  | 28 |  | 
|---|
|  | 29 | /* Partition the disk. */ | 
|---|
|  | 30 | -       memset(wn->part, sizeof(wn->part), 0); | 
|---|
|  | 31 | -       memset(wn->subpart, sizeof(wn->subpart), 0); | 
|---|
|  | 32 | partition(&w_dtab, w_drive * DEV_PER_DRIVE, P_PRIMARY, wn->state & ATAPI); | 
|---|
|  | 33 | } | 
|---|
|  | 34 | wn->open_ct++; | 
|---|
|  | 35 | @@ -1477,6 +1478,9 @@ | 
|---|
|  | 36 | return(OK); | 
|---|
|  | 37 | } | 
|---|
|  | 38 |  | 
|---|
|  | 39 | + | 
|---|
|  | 40 | +#endif /* ENABLE_ATAPI */ | 
|---|
|  | 41 | + | 
|---|
|  | 42 | /*===========================================================================* | 
|---|
|  | 43 | *                             w_other                                      * | 
|---|
|  | 44 | *===========================================================================*/ | 
|---|
|  | 45 | @@ -1536,7 +1540,6 @@ | 
|---|
|  | 46 | return EINVAL; | 
|---|
|  | 47 | } | 
|---|
|  | 48 |  | 
|---|
|  | 49 | - | 
|---|
|  | 50 | /*===========================================================================* | 
|---|
|  | 51 | *                             w_hw_int                                     * | 
|---|
|  | 52 | *===========================================================================*/ | 
|---|
|  | 53 | @@ -1602,6 +1605,8 @@ | 
|---|
|  | 54 | return str; | 
|---|
|  | 55 | } | 
|---|
|  | 56 |  | 
|---|
|  | 57 | +#if ENABLE_ATAPI | 
|---|
|  | 58 | + | 
|---|
|  | 59 | /*===========================================================================* | 
|---|
|  | 60 | *                             atapi_intr_wait                              * | 
|---|
|  | 61 | *===========================================================================*/ | 
|---|