Changeset 9cd8165 in mainline for uspace/lib/c
- Timestamp:
- 2012-01-27T12:54:09Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 790d6d1
- Parents:
- 7174403
- Location:
- uspace/lib/c
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/device/nic.c
r7174403 r9cd8165 81 81 * 82 82 */ 83 int nic_callback_create(async_sess_t *dev_sess, nic_device_id_t device_id,84 async_client_conn_t cfun,void *carg)83 int nic_callback_create(async_sess_t *dev_sess, async_client_conn_t cfun, 84 void *carg) 85 85 { 86 86 ipc_call_t answer; … … 89 89 90 90 async_exch_t *exch = async_exchange_begin(dev_sess); 91 aid_t req = async_send_ 2(exch, DEV_IFACE_ID(NIC_DEV_IFACE),92 NIC_CALLBACK_CREATE, device_id,&answer);91 aid_t req = async_send_1(exch, DEV_IFACE_ID(NIC_DEV_IFACE), 92 NIC_CALLBACK_CREATE, &answer); 93 93 94 94 rc = async_connect_to_me(exch, 0, 0, 0, cfun, carg); -
uspace/lib/c/include/device/nic.h
r7174403 r9cd8165 91 91 92 92 extern int nic_send_frame(async_sess_t *, void *, size_t); 93 extern int nic_callback_create(async_sess_t *, nic_device_id_t, 94 async_client_conn_t, void *); 93 extern int nic_callback_create(async_sess_t *, async_client_conn_t, void *); 95 94 extern int nic_get_state(async_sess_t *, nic_device_state_t *); 96 95 extern int nic_set_state(async_sess_t *, nic_device_state_t); -
uspace/lib/c/include/net/device.h
r7174403 r9cd8165 47 47 #define DEVICE_MAP_IMPLEMENT INT_MAP_IMPLEMENT 48 48 49 /** Device identifier type. */ 50 typedef int nic_device_id_t; 51 52 /** Invalid device identifier. */ 53 #define NIC_DEVICE_INVALID_ID (-1) 54 49 55 #endif 50 56 -
uspace/lib/c/include/nic/nic.h
r7174403 r9cd8165 63 63 #define NIC_MAX_ADDRESS_LENGTH 16 64 64 65 /** Invalid device identifier. */66 #define NIC_DEVICE_INVALID_ID (-1)67 68 65 #define NIC_VENDOR_MAX_LENGTH 64 69 66 #define NIC_MODEL_MAX_LENGTH 64 … … 86 83 87 84 #define NIC_DEVICE_PRINT_FMT "%x" 88 89 /** Device identifier type. */90 typedef int nic_device_id_t;91 85 92 86 /**
Note:
See TracChangeset
for help on using the changeset viewer.