Ignore:
Timestamp:
2010-12-25T21:20:28Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
631ee0c
Parents:
1bfd3d3 (diff), 09178b7f (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/hw/netif/dp8390/dp8390_module.c

    r1bfd3d3 r973ef9fc  
    6363 *  @param[in] call The interrupt call.
    6464 */
    65 #define IRQ_GET_DEVICE(call)                    (device_id_t) IPC_GET_METHOD(*call)
     65#define IRQ_GET_DEVICE(call)                    (device_id_t) IPC_GET_IMETHOD(*call)
    6666
    6767/** Returns the interrupt status register from the interrupt call.
     
    103103        netif_device_t * device;
    104104        dpeth_t * dep;
    105         packet_t received;
     105        packet_t *received;
    106106        device_id_t device_id;
    107107        int phone;
     
    127127                dep->received_count = 0;
    128128                fibril_rwlock_write_unlock(&netif_globals.lock);
    129                 nil_received_msg(phone, device_id, received, NULL);
     129                nil_received_msg(phone, device_id, received, SERVICE_NONE);
    130130        }else{
    131131                fibril_rwlock_write_unlock(&netif_globals.lock);
     
    197197                return rc;
    198198        address->value = (char *) (&((dpeth_t *) device->specific)->de_address);
    199         address->length = CONVERT_SIZE(ether_addr_t, char, 1);
     199        address->length = sizeof(ether_addr_t);
    200200        return EOK;
    201201}
     
    247247}
    248248
    249 int netif_send_message(device_id_t device_id, packet_t packet, services_t sender){
    250         netif_device_t * device;
    251         dpeth_t * dep;
    252         packet_t next;
     249int netif_send_message(device_id_t device_id, packet_t *packet, services_t sender){
     250        netif_device_t * device;
     251        dpeth_t * dep;
     252        packet_t *next;
    253253        int rc;
    254254
     
    306306
    307307int netif_initialize(void){
    308         ipcarg_t phonehash;
     308        sysarg_t phonehash;
    309309
    310310        async_set_interrupt_received(irq_handler);
    311311
    312         return REGISTER_ME(SERVICE_DP8390, &phonehash);
     312        return ipc_connect_to_me(PHONE_NS, SERVICE_DP8390, 0, 0, &phonehash);
    313313}
    314314
     
    343343               
    344344                /* End if said to either by the message or the processing result */
    345                 if ((IPC_GET_METHOD(call) == IPC_M_PHONE_HUNGUP) || (res == EHANGUP))
     345                if ((IPC_GET_IMETHOD(call) == IPC_M_PHONE_HUNGUP) || (res == EHANGUP))
    346346                        return;
    347347               
Note: See TracChangeset for help on using the changeset viewer.