aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-10 16:39:21 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-10 16:39:21 -0400
commit3a7d24841ad794ae64c90d7d00d62a83741912aa (patch)
treed71a36678fa88ed1e0b279390b6169f5018186bf /drivers/ide/ide.c
parentf26b3d75959e9a0e43a2e1e1148c075592746c3d (diff)
ide: use ATA_* defines instead of *_STAT and *_ERR ones
* ERR_STAT -> ATA_ERR * INDEX_STAT -> ATA_IDX * ECC_STAT -> ATA_CORR * DRQ_STAT -> ATA_DRQ * SEEK_STAT -> ATA_DSC * WRERR_STAT -> ATA_DF * READY_STAT -> ATA_DRDY * BUSY_STAT -> ATA_BUSY * MARK_ERR -> ATA_AMNF * TRK0_ERR -> ATA_TRK0NF * ABRT_ERR -> ATA_ABORTED * MCR_ERR -> ATA_MCR * ID_ERR -> ATA_IDNF * MC_ERR -> ATA_MC * ECC_ERR -> ATA_UNC * ICRC_ERR -> ATA_ICRC * BBD_ERR -> ATA_BBK Also: * ILI_ERR -> ATAPI_ILI * EOM_ERR -> ATAPI_EOM * LFS_ERR -> ATAPI_LFS * CD -> ATAPI_COD * IO -> ATAPI_IO Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide.c')
-rw-r--r--drivers/ide/ide.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c
index 21b3a767e7d7..7fddfe161795 100644
--- a/drivers/ide/ide.c
+++ b/drivers/ide/ide.c
@@ -119,7 +119,7 @@ static void ide_port_init_devices_data(ide_hwif_t *hwif)
119 drive->media = ide_disk; 119 drive->media = ide_disk;
120 drive->select.all = (unit<<4)|0xa0; 120 drive->select.all = (unit<<4)|0xa0;
121 drive->hwif = hwif; 121 drive->hwif = hwif;
122 drive->ready_stat = READY_STAT; 122 drive->ready_stat = ATA_DRDY;
123 drive->bad_wstat = BAD_W_STAT; 123 drive->bad_wstat = BAD_W_STAT;
124 drive->special.b.recalibrate = 1; 124 drive->special.b.recalibrate = 1;
125 drive->special.b.set_geometry = 1; 125 drive->special.b.set_geometry = 1;
@@ -884,7 +884,7 @@ MODULE_PARM_DESC(noprobe, "skip probing for a device");
884static unsigned int ide_nowerr; 884static unsigned int ide_nowerr;
885 885
886module_param_call(nowerr, ide_set_dev_param_mask, NULL, &ide_nowerr, 0); 886module_param_call(nowerr, ide_set_dev_param_mask, NULL, &ide_nowerr, 0);
887MODULE_PARM_DESC(nowerr, "ignore the WRERR_STAT bit for a device"); 887MODULE_PARM_DESC(nowerr, "ignore the ATA_DF bit for a device");
888 888
889static unsigned int ide_cdroms; 889static unsigned int ide_cdroms;
890 890
@@ -949,7 +949,7 @@ static void ide_dev_apply_params(ide_drive_t *drive)
949 drive->noprobe = 1; 949 drive->noprobe = 1;
950 } 950 }
951 if (ide_nowerr & (1 << i)) { 951 if (ide_nowerr & (1 << i)) {
952 printk(KERN_INFO "ide: ignoring the WRERR_STAT bit for %s\n", 952 printk(KERN_INFO "ide: ignoring the ATA_DF bit for %s\n",
953 drive->name); 953 drive->name);
954 drive->bad_wstat = BAD_R_STAT; 954 drive->bad_wstat = BAD_R_STAT;
955 } 955 }
@@ -970,7 +970,7 @@ static void ide_dev_apply_params(ide_drive_t *drive)
970 drive->cyl, drive->head, drive->sect); 970 drive->cyl, drive->head, drive->sect);
971 drive->present = 1; 971 drive->present = 1;
972 drive->media = ide_disk; 972 drive->media = ide_disk;
973 drive->ready_stat = READY_STAT; 973 drive->ready_stat = ATA_DRDY;
974 } 974 }
975} 975}
976 976