diff options
author | Elias Oltmanns <eo@nebensachen.de> | 2008-10-10 16:39:40 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-10 16:39:40 -0400 |
commit | 92f1f8fd8040e7b50a67a850a935509bb01201bb (patch) | |
tree | df27468982bc64f0a6fdc54f05153e382ca63a1b /drivers/scsi/ide-scsi.c | |
parent | d6e2955a6b82d2312b5ff885ce13c8ab54d59d96 (diff) |
ide: Remove ide_spin_wait_hwgroup() and use special requests instead
Use a special request for serialisation purposes and get rid of the
awkward ide_spin_wait_hwgroup(). This also involves converting the
ide_devset structure so it can be shared by the /proc and the ioctl code.
Signed-off-by: Elias Oltmanns <eo@nebensachen.de>
[bart: use rq->cmd[] directly]
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/scsi/ide-scsi.c')
-rw-r--r-- | drivers/scsi/ide-scsi.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/drivers/scsi/ide-scsi.c b/drivers/scsi/ide-scsi.c index 27c01e368977..90212ac33be3 100644 --- a/drivers/scsi/ide-scsi.c +++ b/drivers/scsi/ide-scsi.c | |||
@@ -400,25 +400,25 @@ static int set_##name(ide_drive_t *drive, int arg) \ | |||
400 | return 0; \ | 400 | return 0; \ |
401 | } | 401 | } |
402 | 402 | ||
403 | #define ide_scsi_devset_rw(_name, _min, _max, _field) \ | 403 | #define ide_scsi_devset_rw_field(_name, _field) \ |
404 | ide_scsi_devset_get(_name, _field); \ | 404 | ide_scsi_devset_get(_name, _field); \ |
405 | ide_scsi_devset_set(_name, _field); \ | 405 | ide_scsi_devset_set(_name, _field); \ |
406 | IDE_DEVSET(_name, S_RW, _min, _max, get_##_name, set_##_name) | 406 | IDE_DEVSET(_name, DS_SYNC, get_##_name, set_##_name); |
407 | 407 | ||
408 | ide_devset_rw(bios_cyl, 0, 1023, bios_cyl); | 408 | ide_devset_rw_field(bios_cyl, bios_cyl); |
409 | ide_devset_rw(bios_head, 0, 255, bios_head); | 409 | ide_devset_rw_field(bios_head, bios_head); |
410 | ide_devset_rw(bios_sect, 0, 63, bios_sect); | 410 | ide_devset_rw_field(bios_sect, bios_sect); |
411 | 411 | ||
412 | ide_scsi_devset_rw(transform, 0, 3, transform); | 412 | ide_scsi_devset_rw_field(transform, transform); |
413 | ide_scsi_devset_rw(log, 0, 1, log); | 413 | ide_scsi_devset_rw_field(log, log); |
414 | 414 | ||
415 | static const struct ide_devset *idescsi_settings[] = { | 415 | static const struct ide_proc_devset idescsi_settings[] = { |
416 | &ide_devset_bios_cyl, | 416 | IDE_PROC_DEVSET(bios_cyl, 0, 1023), |
417 | &ide_devset_bios_head, | 417 | IDE_PROC_DEVSET(bios_head, 0, 255), |
418 | &ide_devset_bios_sect, | 418 | IDE_PROC_DEVSET(bios_sect, 0, 63), |
419 | &ide_devset_log, | 419 | IDE_PROC_DEVSET(log, 0, 1), |
420 | &ide_devset_transform, | 420 | IDE_PROC_DEVSET(transform, 0, 3), |
421 | NULL | 421 | { 0 }, |
422 | }; | 422 | }; |
423 | #endif | 423 | #endif |
424 | 424 | ||