Rev 4350 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4350 | Rev 4582 | ||
|---|---|---|---|
| Line 35... | Line 35... | ||
| 35 | */ |
35 | */ |
| 36 | 36 | ||
| 37 | #ifndef __NET_ETH_H__ |
37 | #ifndef __NET_ETH_H__ |
| 38 | #define __NET_ETH_H__ |
38 | #define __NET_ETH_H__ |
| 39 | 39 | ||
| 40 | #include <rwlock.h> |
40 | #include <fibril_sync.h> |
| 41 | #include <ipc/services.h> |
41 | #include <ipc/services.h> |
| 42 | 42 | ||
| 43 | #include "../../include/device.h" |
43 | #include "../../include/device.h" |
| 44 | #include "../../structures/measured_strings.h" |
44 | #include "../../structures/measured_strings.h" |
| 45 | 45 | ||
| Line 128... | Line 128... | ||
| 128 | /** Networking module phone. |
128 | /** Networking module phone. |
| 129 | */ |
129 | */ |
| 130 | int net_phone; |
130 | int net_phone; |
| 131 | /** Safety lock for devices. |
131 | /** Safety lock for devices. |
| 132 | */ |
132 | */ |
| 133 | rwlock_t devices_lock; |
133 | fibril_rwlock_t devices_lock; |
| 134 | /** All known Ethernet devices. |
134 | /** All known Ethernet devices. |
| 135 | */ |
135 | */ |
| 136 | eth_devices_t devices; |
136 | eth_devices_t devices; |
| 137 | /** Safety lock for protocols. |
137 | /** Safety lock for protocols. |
| 138 | */ |
138 | */ |
| 139 | rwlock_t protos_lock; |
139 | fibril_rwlock_t protos_lock; |
| 140 | /** Protocol map. |
140 | /** Protocol map. |
| 141 | * Service phone map for each protocol. |
141 | * Service phone map for each protocol. |
| 142 | */ |
142 | */ |
| 143 | eth_protos_t protos; |
143 | eth_protos_t protos; |
| 144 | /** Broadcast device hardware address. |
144 | /** Broadcast device hardware address. |