mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-28 15:30:17 +00:00
Update for block device API change
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2009-12-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||
|
||||
PR 1474
|
||||
* libchip/i2c/spi-sd-card.c, libchip/ide/ata.c: Update for block
|
||||
device API change.
|
||||
|
||||
2009-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* libchip/network/greth.c: Eliminate unused type
|
||||
|
||||
@@ -1122,7 +1122,7 @@ static int sd_card_disk_ioctl( rtems_disk_device *dd, uint32_t req, void *arg)
|
||||
{
|
||||
RTEMS_DEBUG_PRINT( "dev = %u, req = %u, arg = 0x08%x\n", dev, req, arg);
|
||||
if (req == RTEMS_BLKIO_REQUEST) {
|
||||
rtems_device_minor_number minor = rtems_disk_physical_minor_number( dd);
|
||||
rtems_device_minor_number minor = rtems_disk_get_minor_number( dd);
|
||||
sd_card_driver_entry *e = &sd_card_driver_table [minor];
|
||||
rtems_blkdev_request *r = (rtems_blkdev_request *) arg;
|
||||
switch (r->req) {
|
||||
|
||||
@@ -1009,7 +1009,7 @@ ata_queue_task(rtems_task_argument arg)
|
||||
static int
|
||||
ata_ioctl(rtems_disk_device *dd, uint32_t cmd, void *argp)
|
||||
{
|
||||
dev_t device = rtems_disk_physical_device_number(dd);
|
||||
dev_t device = rtems_disk_get_device_identifier(dd);
|
||||
rtems_status_code status;
|
||||
rtems_device_minor_number rel_minor;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user