Ignore:
Timestamp:
2010-11-22T15:39:53Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0eddb76, aae339e9
Parents:
9a1d8ab (diff), 8cd1aa5e (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 development/ changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/bus/cuda_adb/cuda_adb.c

    r9a1d8ab r0b749a3  
    143143int main(int argc, char *argv[])
    144144{
    145         dev_handle_t dev_handle;
     145        devmap_handle_t devmap_handle;
    146146        int rc;
    147147        int i;
     
    151151        for (i = 0; i < ADB_MAX_ADDR; ++i) {
    152152                adb_dev[i].client_phone = -1;
    153                 adb_dev[i].dev_handle = 0;
     153                adb_dev[i].devmap_handle = 0;
    154154        }
    155155
     
    160160        }
    161161
    162         rc = devmap_device_register("adb/kbd", &dev_handle);
     162        rc = devmap_device_register("adb/kbd", &devmap_handle);
    163163        if (rc != EOK) {
    164164                devmap_hangup_phone(DEVMAP_DRIVER);
     
    167167        }
    168168
    169         adb_dev[2].dev_handle = dev_handle;
    170         adb_dev[8].dev_handle = dev_handle;
    171 
    172         rc = devmap_device_register("adb/mouse", &dev_handle);
     169        adb_dev[2].devmap_handle = devmap_handle;
     170        adb_dev[8].devmap_handle = devmap_handle;
     171
     172        rc = devmap_device_register("adb/mouse", &devmap_handle);
    173173        if (rc != EOK) {
    174174                devmap_hangup_phone(DEVMAP_DRIVER);
     
    177177        }
    178178
    179         adb_dev[9].dev_handle = dev_handle;
     179        adb_dev[9].devmap_handle = devmap_handle;
    180180
    181181        if (cuda_init() < 0) {
     
    196196        ipc_call_t call;
    197197        ipcarg_t method;
    198         dev_handle_t dh;
     198        devmap_handle_t dh;
    199199        int retval;
    200200        int dev_addr, i;
     
    206206        dev_addr = -1;
    207207        for (i = 0; i < ADB_MAX_ADDR; i++) {
    208                 if (adb_dev[i].dev_handle == dh)
     208                if (adb_dev[i].devmap_handle == dh)
    209209                        dev_addr = i;
    210210        }
     
    237237                         */
    238238                        for (i = 0; i < ADB_MAX_ADDR; ++i) {
    239                                 if (adb_dev[i].dev_handle == dh) {
     239                                if (adb_dev[i].devmap_handle == dh) {
    240240                                        adb_dev[i].client_phone = IPC_GET_ARG5(call);
    241241                                }
Note: See TracChangeset for help on using the changeset viewer.