Changeset aadf01e in mainline for uspace/srv/net/netif/netif.h
- Timestamp:
- 2010-03-07T15:13:28Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 936835e
- Parents:
- aa85487
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/netif/netif.h
raa85487 raadf01e 69 69 * @see device.h 70 70 */ 71 DEVICE_MAP_DECLARE( device_map, device_t);71 DEVICE_MAP_DECLARE(device_map, device_t); 72 72 73 73 /** Network interface device specific data. … … 76 76 /** Device identifier. 77 77 */ 78 device_id_t 78 device_id_t device_id; 79 79 /** Receiving network interface layer phone. 80 80 */ 81 int 81 int nil_phone; 82 82 /** Actual device state. 83 83 */ 84 device_state_t 84 device_state_t state; 85 85 /** Driver specific data. 86 86 */ 87 void * 87 void * specific; 88 88 }; 89 89 … … 93 93 /** Networking module phone. 94 94 */ 95 int 95 int net_phone; 96 96 /** Device map. 97 97 */ 98 device_map_t 98 device_map_t device_map; 99 99 /** Safety lock. 100 100 */ 101 fibril_rwlock_t 101 fibril_rwlock_t lock; 102 102 }; 103 103 … … 109 109 * @returns EPERM if the device is not initialized. 110 110 */ 111 int find_device( device_id_t device_id, device_ref * device);111 int find_device(device_id_t device_id, device_ref * device); 112 112 113 113 /** Clears the usage statistics. 114 114 * @param[in] stats The usage statistics. 115 115 */ 116 void null_device_stats( device_stats_ref stats);116 void null_device_stats(device_stats_ref stats); 117 117 118 118 // prepared for future optimalizations … … 120 120 * @param[in] packet_id The packet identifier. 121 121 */ 122 void netif_pq_release( packet_id_t packet_id);122 void netif_pq_release(packet_id_t packet_id); 123 123 124 124 /** Allocates new packet to handle the given content size. … … 127 127 * @returns NULL if there is an error. 128 128 */ 129 packet_t netif_packet_get_1( size_t content);129 packet_t netif_packet_get_1(size_t content); 130 130 131 131 /** Processes the netif module messages. … … 140 140 * @see IS_NET_NETIF_MESSAGE() 141 141 */ 142 int netif_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count);142 int netif_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count); 143 143 144 144 /** Initializes the netif module. … … 148 148 * @returns Other error codes as defined for each specific module message function. 149 149 */ 150 int netif_init_module( async_client_conn_t client_connection);150 int netif_init_module(async_client_conn_t client_connection); 151 151 152 152 /** Starts and maintains the netif module until terminated. 153 153 * @returns EOK after the module is terminated. 154 154 */ 155 int netif_run_module( void);155 int netif_run_module(void); 156 156 157 157 #endif
Note:
See TracChangeset
for help on using the changeset viewer.