Rev 4582 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4582 | Rev 4756 | ||
|---|---|---|---|
| Line 100... | Line 100... | ||
| 100 | */ |
100 | */ |
| 101 | fibril_rwlock_t lock; |
101 | fibril_rwlock_t lock; |
| 102 | }; |
102 | }; |
| 103 | 103 | ||
| 104 | /** Finds the device specific data. |
104 | /** Finds the device specific data. |
| 105 | * @param device_id The device identifier. Input parameter. |
105 | * @param[in] device_id The device identifier. |
| 106 | * @param device The device specific data. Output parameter. |
106 | * @param[out] device The device specific data. |
| 107 | * @returns EOK on success. |
107 | * @returns EOK on success. |
| 108 | * @returns ENOENT if device is not found. |
108 | * @returns ENOENT if device is not found. |
| 109 | * @returns EPERM if the device is not initialized. |
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 | /** Clears the usage statistics. |
113 | /** Clears the usage statistics. |
| 114 | * @param stats The usage statistics. Input parameter. |
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 | // prepared for future optimalizations |
118 | // prepared for future optimalizations |
| 119 | /** Releases the given packet. |
119 | /** Releases the given packet. |
| 120 | * @param packet_id The packet identifier. Input parameter. |
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 | /** Allocates new packet to handle the given content size. |
124 | /** Allocates new packet to handle the given content size. |
| 125 | * @param content The minimum content size. Input parameter. |
125 | * @param[in] content The minimum content size. |
| 126 | * @returns The allocated packet. |
126 | * @returns The allocated packet. |
| 127 | * @returns NULL if there is an error. |
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 | /** Processes the netif module messages. |
131 | /** Processes the netif module messages. |
| 132 | * @param callid The message identifier. Input parameter. |
132 | * @param[in] callid The message identifier. |
| 133 | * @param call The message parameters. Input parameter. |
133 | * @param[in] call The message parameters. |
| 134 | * @param answer The message answer parameters. Output parameter. |
134 | * @param[out] answer The message answer parameters. |
| 135 | * @param answer_count The last parameter for the actual answer in the answer parameter. Output parameter. |
135 | * @param[out] answer_count The last parameter for the actual answer in the answer parameter. |
| 136 | * @returns EOK on success. |
136 | * @returns EOK on success. |
| 137 | * @returns ENOTSUP if the message is not known. |
137 | * @returns ENOTSUP if the message is not known. |
| 138 | * @returns Other error codes as defined for each specific module message function. |
138 | * @returns Other error codes as defined for each specific module message function. |
| 139 | * @see netif_interface.h |
139 | * @see netif_interface.h |
| 140 | * @see IS_NET_NETIF_MESSAGE() |
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 | /** Initializes the netif module. |
144 | /** Initializes the netif module. |
| 145 | * The function has to be defined in each module. |
145 | * The function has to be defined in each module. |
| 146 | * @param client_connection The client connection functio to be registered. Input parameter. |
146 | * @param[in] client_connection The client connection functio to be registered. |
| 147 | * @returns EOK on success. |
147 | * @returns EOK on success. |
| 148 | * @returns Other error codes as defined for each specific module message function. |
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 | ||