OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [branches/] [stable_0_2_x/] [or1ksim/] [peripheral/] [atadevice.c] - Diff between revs 1065 and 1308

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 1065 Rev 1308
Line 451... Line 451...
  D E V I C E S _ W R I T E
  D E V I C E S _ W R I T E
*/
*/
/* Write to devices                                                   */
/* Write to devices                                                   */
void ata_devices_write(ata_devices *devices, char adr, short value)
void ata_devices_write(ata_devices *devices, char adr, short value)
{
{
    ata_device *device;
 
 
 
    /* check for no connected devices                                 */
    /* check for no connected devices                                 */
    if (!devices->device0.stream && !devices->device1.stream)
    if (!devices->device0.stream && !devices->device1.stream)
        MSG_ERROR("ata_devices_write, no ata devices connected.");
        MSG_ERROR("ata_devices_write, no ata devices connected.");
    else
    else
    {
    {

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.