Changeset 6843a9c in mainline for uspace/srv/bd/ata_bd/ata_bd.c


Ignore:
Timestamp:
2012-06-29T13:02:14Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
722912e
Parents:
ba72f2b (diff), 0bbd13e (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

Trivial conflicts.

File:
1 edited

Legend:

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

    rba72f2b r6843a9c  
    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         rc = loc_server_register(NAME, ata_bd_connection);
    249         if (rc < 0) {
    250                 printf(NAME ": Unable to register driver.\n");
    251                 return rc;
    252         }
    253 
    254253        rc = pio_enable((void *) cmd_physical, sizeof(ata_cmd_t), &vaddr);
    255254        if (rc != EOK) {
    256                 printf(NAME ": Could not initialize device I/O space.\n");
     255                printf("%s: Could not initialize device I/O space.\n", NAME);
    257256                return rc;
    258257        }
    259 
     258       
    260259        cmd = vaddr;
    261 
     260       
    262261        rc = pio_enable((void *) ctl_physical, sizeof(ata_ctl_t), &vaddr);
    263262        if (rc != EOK) {
    264                 printf(NAME ": Could not initialize device I/O space.\n");
     263                printf("%s: Could not initialize device I/O space.\n", NAME);
    265264                return rc;
    266265        }
    267 
     266       
    268267        ctl = vaddr;
    269 
    270 
     268       
    271269        return EOK;
    272270}
     
    309307        }
    310308
    311         fs_va = as_get_mappable_page(comm_size);
    312         if (fs_va == NULL) {
     309        (void) async_share_out_finalize(callid, &fs_va);
     310        if (fs_va == AS_MAP_FAILED) {
    313311                async_answer_0(callid, EHANGUP);
    314312                return;
    315313        }
    316 
    317         (void) async_share_out_finalize(callid, fs_va);
    318314
    319315        while (true) {
Note: See TracChangeset for help on using the changeset viewer.