Changes in uspace/lib/c/generic/device/nic.c [9cd8165:6d8455d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/device/nic.c
r9cd8165 r6d8455d 73 73 } 74 74 75 /** Create callback connection from NIC service 76 * 77 * @param[in] dev_sess 75 /** Connect the driver to the NET and NIL services 76 * 77 * @param[in] dev_sess 78 * @param[in] nil_service Service identifier for the NIL service 78 79 * @param[in] device_id 79 80 * … … 81 82 * 82 83 */ 83 int nic_callback_create(async_sess_t *dev_sess, async_client_conn_t cfun, 84 void *carg) 85 { 86 ipc_call_t answer; 87 int rc; 88 sysarg_t retval; 89 90 async_exch_t *exch = async_exchange_begin(dev_sess); 91 aid_t req = async_send_1(exch, DEV_IFACE_ID(NIC_DEV_IFACE), 92 NIC_CALLBACK_CREATE, &answer); 93 94 rc = async_connect_to_me(exch, 0, 0, 0, cfun, carg); 95 if (rc != EOK) { 96 async_wait_for(req, NULL); 97 return rc; 98 } 99 async_exchange_end(exch); 100 101 async_wait_for(req, &retval); 102 return (int) retval; 84 int nic_connect_to_nil(async_sess_t *dev_sess, services_t nil_service, 85 nic_device_id_t device_id) 86 { 87 async_exch_t *exch = async_exchange_begin(dev_sess); 88 int rc = async_req_3_0(exch, DEV_IFACE_ID(NIC_DEV_IFACE), 89 NIC_CONNECT_TO_NIL, nil_service, device_id); 90 async_exchange_end(exch); 91 92 return rc; 103 93 } 104 94 … … 345 335 * it can never force the NIC to advertise unsupported modes. 346 336 * 347 * The allowed modes are defined in "n ic/eth_phys.h" in the C library.337 * The allowed modes are defined in "net/eth_phys.h" in the C library. 348 338 * 349 339 * @param[in] dev_sess … … 382 372 /** Probe current state of auto-negotiation. 383 373 * 384 * Modes are defined in the "n ic/eth_phys.h" in the C library.374 * Modes are defined in the "net/eth_phys.h" in the C library. 385 375 * 386 376 * @param[in] dev_sess
Note:
See TracChangeset
for help on using the changeset viewer.