mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-28 15:30:17 +00:00
2009-06-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* libchip/i2c/spi-sd-card.c, libchip/ide/ata.c: Eliminate using the GNU/Linux specific error numbers EBADRQC and ENOTBLK. Switch to EINVAL and ENOTTY as appropriate.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2009-06-12 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* libchip/i2c/spi-sd-card.c, libchip/ide/ata.c: Eliminate using the
|
||||
GNU/Linux specific error numbers EBADRQC and ENOTBLK. Switch to
|
||||
EINVAL and ENOTTY as appropriate.
|
||||
|
||||
2009-05-30 Chris Johns <chrisj@rtems.org>
|
||||
|
||||
* c/src/libchip/ide/ata.c: Fixed the bug that ignored slave
|
||||
|
||||
@@ -1130,14 +1130,14 @@ static int sd_card_disk_ioctl( dev_t dev, uint32_t req, void *arg)
|
||||
case RTEMS_BLKDEV_REQ_WRITE:
|
||||
return sd_card_disk_block_write( e, r);
|
||||
default:
|
||||
errno = EBADRQC;
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
} else if (req == RTEMS_BLKDEV_CAPABILITIES) {
|
||||
*(uint32_t *) arg = RTEMS_BLKDEV_CAP_MULTISECTOR_CONT;
|
||||
return 0;
|
||||
} else {
|
||||
errno = EBADRQC;
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1053,7 +1053,7 @@ ata_ioctl(dev_t device, int cmd, void *argp)
|
||||
break;
|
||||
|
||||
default:
|
||||
errno = EBADRQC;
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user