Changeset fdbc3ff in mainline for uspace/srv/hw


Ignore:
Timestamp:
2010-11-19T23:50:06Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
46d4d9f
Parents:
b4c9c61 (diff), a9c6b966 (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.

Location:
uspace/srv/hw
Files:
8 edited

Legend:

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

    rb4c9c61 rfdbc3ff  
    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                                }
  • uspace/srv/hw/bus/cuda_adb/cuda_adb.h

    rb4c9c61 rfdbc3ff  
    104104
    105105typedef struct {
    106         dev_handle_t dev_handle;
     106        devmap_handle_t devmap_handle;
    107107        int client_phone;
    108108} adb_dev_t;
  • uspace/srv/hw/char/i8042/i8042.c

    rb4c9c61 rfdbc3ff  
    145145
    146146                snprintf(name, 16, "%s/ps2%c", NAMESPACE, dchar[i]);
    147                 rc = devmap_device_register(name, &i8042_port[i].dev_handle);
     147                rc = devmap_device_register(name, &i8042_port[i].devmap_handle);
    148148                if (rc != EOK) {
    149149                        devmap_hangup_phone(DEVMAP_DRIVER);
     
    218218        ipc_call_t call;
    219219        ipcarg_t method;
    220         dev_handle_t dh;
     220        devmap_handle_t dh;
    221221        int retval;
    222222        int dev_id, i;
     
    230230        dev_id = -1;
    231231        for (i = 0; i < MAX_DEVS; i++) {
    232                 if (i8042_port[i].dev_handle == dh)
     232                if (i8042_port[i].devmap_handle == dh)
    233233                        dev_id = i;
    234234        }
  • uspace/srv/hw/char/i8042/i8042.h

    rb4c9c61 rfdbc3ff  
    5252/** Softstate structure, one for each serial port (primary and aux). */
    5353typedef struct {
    54         dev_handle_t dev_handle;
     54        devmap_handle_t devmap_handle;
    5555        int client_phone;
    5656} i8042_port_t;
  • uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c

    rb4c9c61 rfdbc3ff  
    9292                return -1;
    9393
    94         rc = devmap_device_register(NAMESPACE "/" NAME, &uart->dev_handle);
     94        rc = devmap_device_register(NAMESPACE "/" NAME, &uart->devmap_handle);
    9595        if (rc != EOK) {
    9696                devmap_hangup_phone(DEVMAP_DRIVER);
  • uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.h

    rb4c9c61 rfdbc3ff  
    8888
    8989        /** Device handle */
    90         dev_handle_t dev_handle;
     90        devmap_handle_t devmap_handle;
    9191} s3c24xx_uart_t;
    9292
  • uspace/srv/hw/netif/dp8390/dp8390.c

    rb4c9c61 rfdbc3ff  
    6262 *  @param[in] dep The network interface structure.
    6363 *  @param[in] packet The outgoing packet.
    64  *  @returns EOK on success.
    65  *  @returns EINVAL
     64 *  @return EOK on success.
     65 *  @return EINVAL
    6666 */
    6767int queue_packet(dpeth_t * dep, packet_t packet);
  • uspace/srv/hw/netif/dp8390/dp8390_module.c

    rb4c9c61 rfdbc3ff  
    157157}
    158158
    159 int netif_get_device_stats(device_id_t device_id, device_stats_ref stats){
     159int netif_get_device_stats(device_id_t device_id, device_stats_t *stats)
     160{
    160161        netif_device_t * device;
    161162        eth_stat_t * de_stat;
     
    185186}
    186187
    187 int netif_get_addr_message(device_id_t device_id, measured_string_ref address){
     188int netif_get_addr_message(device_id_t device_id, measured_string_t *address){
    188189        netif_device_t * device;
    189190        int rc;
Note: See TracChangeset for help on using the changeset viewer.