Changeset 520acaf in mainline for uspace/srv/bd/ata_bd/ata_bd.c


Ignore:
Timestamp:
2012-06-06T21:13:29Z (12 years ago)
Author:
Sean Bartell <wingedtachikoma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5f679702
Parents:
11b9ad7 (diff), 3123d2a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/ata_bd/ata_bd.c

    r11b9ad7 r520acaf  
    191191        }
    192192
    193         printf(NAME ": Accepting connections\n");
     193        printf("%s: Accepting connections\n", NAME);
    194194        task_retval(0);
    195195        async_manager();
     
    243243static int ata_bd_init(void)
    244244{
     245        async_set_client_connection(ata_bd_connection);
     246        int rc = loc_server_register(NAME);
     247        if (rc != EOK) {
     248                printf("%s: Unable to register driver.\n", NAME);
     249                return rc;
     250        }
     251       
    245252        void *vaddr;
    246         int rc;
    247        
    248         async_set_client_connection(ata_bd_connection);
    249         rc = loc_server_register(NAME);
    250         if (rc < 0) {
    251                 printf(NAME ": Unable to register driver.\n");
    252                 return rc;
    253         }
    254 
    255253        rc = pio_enable((void *) cmd_physical, sizeof(ata_cmd_t), &vaddr);
    256254        if (rc != EOK) {
    257                 printf(NAME ": Could not initialize device I/O space.\n");
     255                printf("%s: Could not initialize device I/O space.\n", NAME);
    258256                return rc;
    259257        }
    260 
     258       
    261259        cmd = vaddr;
    262 
     260       
    263261        rc = pio_enable((void *) ctl_physical, sizeof(ata_ctl_t), &vaddr);
    264262        if (rc != EOK) {
    265                 printf(NAME ": Could not initialize device I/O space.\n");
     263                printf("%s: Could not initialize device I/O space.\n", NAME);
    266264                return rc;
    267265        }
    268 
     266       
    269267        ctl = vaddr;
    270 
    271 
     268       
    272269        return EOK;
    273270}
Note: See TracChangeset for help on using the changeset viewer.