Changeset 973ef9fc in mainline for uspace/srv/hw/netif/dp8390/dp8390_module.c
- Timestamp:
- 2010-12-25T21:20:28Z (13 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/netif/dp8390/dp8390_module.c
r1bfd3d3 r973ef9fc 63 63 * @param[in] call The interrupt call. 64 64 */ 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) 66 66 67 67 /** Returns the interrupt status register from the interrupt call. … … 103 103 netif_device_t * device; 104 104 dpeth_t * dep; 105 packet_t received;105 packet_t *received; 106 106 device_id_t device_id; 107 107 int phone; … … 127 127 dep->received_count = 0; 128 128 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); 130 130 }else{ 131 131 fibril_rwlock_write_unlock(&netif_globals.lock); … … 197 197 return rc; 198 198 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); 200 200 return EOK; 201 201 } … … 247 247 } 248 248 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;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; 253 253 int rc; 254 254 … … 306 306 307 307 int netif_initialize(void){ 308 ipcarg_t phonehash;308 sysarg_t phonehash; 309 309 310 310 async_set_interrupt_received(irq_handler); 311 311 312 return REGISTER_ME(SERVICE_DP8390, &phonehash);312 return ipc_connect_to_me(PHONE_NS, SERVICE_DP8390, 0, 0, &phonehash); 313 313 } 314 314 … … 343 343 344 344 /* 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)) 346 346 return; 347 347
Note:
See TracChangeset
for help on using the changeset viewer.