Changeset 849ed54 in mainline for uspace/lib/net/include/netif_module.h
- Timestamp:
- 2010-03-30T18:39:04Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7553689
- Parents:
- 7d6fe4db
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/include/netif_module.h
r7d6fe4db r849ed54 43 43 #include <ipc/services.h> 44 44 45 #include "../structures/measured_strings.h" 46 #include "../structures/packet/packet.h" 47 48 #include "../include/device.h" 45 #include <adt/measured_strings.h> 46 #include <packet/packet.h> 47 #include <net_device.h> 49 48 50 49 /** Initializes the specific module. 51 50 */ 52 int netif_initialize(void);51 extern int netif_initialize(void); 53 52 54 53 /** Probes the existence of the device. … … 60 59 * @returns Other error codes as defined for the specific module message implementation. 61 60 */ 62 int netif_probe_message(device_id_t device_id, int irq, uintptr_t io);61 extern int netif_probe_message(device_id_t device_id, int irq, uintptr_t io); 63 62 64 63 /** Sends the packet queue. … … 71 70 * @returns Other error codes as defined for the specific module message implementation. 72 71 */ 73 int netif_send_message(device_id_t device_id, packet_t packet, services_t sender);72 extern int netif_send_message(device_id_t device_id, packet_t packet, services_t sender); 74 73 75 74 /** Starts the device. … … 79 78 * @returns Other error codes as defined for the specific module message implementation. 80 79 */ 81 int netif_start_message(device_ref device);80 extern int netif_start_message(device_ref device); 82 81 83 82 /** Stops the device. … … 87 86 * @returns Other error codes as defined for the specific module message implementation. 88 87 */ 89 int netif_stop_message(device_ref device);88 extern int netif_stop_message(device_ref device); 90 89 91 90 /** Returns the device local hardware address. … … 98 97 * @returns Other error codes as defined for the specific module message implementation. 99 98 */ 100 int netif_get_addr_message(device_id_t device_id, measured_string_ref address);99 extern int netif_get_addr_message(device_id_t device_id, measured_string_ref address); 101 100 102 101 /** Processes the netif driver specific message. … … 110 109 * @returns Other error codes as defined for the specific module message implementation. 111 110 */ 112 int netif_specific_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count);111 extern int netif_specific_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count); 113 112 114 113 /** Returns the device usage statistics. … … 119 118 * @returns Other error codes as defined for the specific module message implementation. 120 119 */ 121 int netif_get_device_stats(device_id_t device_id, device_stats_ref stats);120 extern int netif_get_device_stats(device_id_t device_id, device_stats_ref stats); 122 121 123 122 #endif
Note:
See TracChangeset
for help on using the changeset viewer.