Ticket #2284: legacy_sata.c.patch

File legacy_sata.c.patch, 1.4 KB (added by donn, 11 years ago)
  • haiku/trunk/src/add-ons/kernel/busses/ide/legacy_sata/legacy_sata.c

    old new  
    272272    ide_adapter->channel_removed(channel_cookie);
    273273}
    274274
     275static void
     276channel_set(void *cookie, ide_channel channel)
     277{
     278    ide_adapter->set_channel((ide_adapter_channel_info *)cookie, channel);
     279}
    275280
    276281static status_t
    277282task_file_write(void *channel_cookie, ide_task_file *tf, ide_reg_mask mask)
     
    351356            NULL
    352357        },
    353358
    354         .supports_device    = NULL,
    355         .register_device    = NULL,
    356         .init_driver        = channel_init,
    357         .uninit_driver      = channel_uninit,
    358         .device_removed     = channel_removed,
     359        NULL,
     360        NULL,
     361        channel_init,
     362        channel_uninit,
     363        NULL,
     364        NULL,
     365        channel_removed,
    359366    },
    360367
    361     .write_command_block_regs   = task_file_write,
    362     .read_command_block_regs    = task_file_read,
    363     .get_altstatus          = altstatus_read,
    364     .write_device_control       = device_control_write,
    365     .write_pio          = pio_write,
    366     .read_pio           = pio_read,
    367     .prepare_dma            = dma_prepare,
    368     .start_dma          = dma_start,
    369     .finish_dma         = dma_finish,
    370 };
     368    channel_set,
     369
     370    task_file_write,
     371    task_file_read,
    371372
     373    altstatus_read,
     374    device_control_write,
     375
     376    pio_write,
     377    pio_read,
     378
     379    dma_prepare,
     380    dma_start,
     381    dma_finish,
     382};
    372383
    373384static driver_module_info sControllerInterface = {
    374385    {