Changeset cc575ef9 in mainline
- Timestamp:
- 2015-04-21T21:07:18Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 09044cb
- Parents:
- 749fe15b (diff), a931b7b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Files:
-
- 34 added
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile
r749fe15b rcc575ef9 115 115 cp "$(USPACE_PATH)/$(DRVS_PATH)/$$file_dir/$$file_name/$$file_name.dev" "$(DIST_PATH)/$(DRVS_PATH)/$$file_name/" ; \ 116 116 done 117 for file in $(RD_DRV_FW) ; do \ 118 file_dir="`dirname "$$file"`" ; \ 119 file_name="`basename "$$file"`" ; \ 120 cp "$(USPACE_PATH)/$(DRVS_PATH)/$$file_dir/$$file_name/$$file_name.fw" "$(DIST_PATH)/$(DRVS_PATH)/$$file_name/" ; \ 121 done 117 122 if ls $(DIST_OVERLAY_PATH)/* >/dev/null; then \ 118 123 cp -r -L $(DIST_OVERLAY_PATH)/* "$(DIST_PATH)"; \ -
boot/Makefile.common
r749fe15b rcc575ef9 139 139 nic/rtl8139 \ 140 140 nic/rtl8169 \ 141 nic/ar9271 \ 141 142 block/ahci 142 143 143 144 RD_DRV_CFG = 145 146 RD_DRV_FW = \ 147 nic/ar9271 144 148 145 149 RD_LIBS = … … 223 227 $(USPACE_PATH)/app/viewer/viewer \ 224 228 $(USPACE_PATH)/app/df/df \ 225 $(USPACE_PATH)/app/fontviewer/fontviewer 229 $(USPACE_PATH)/app/fontviewer/fontviewer \ 230 $(USPACE_PATH)/app/wifi_supplicant/wifi_supplicant 226 231 227 232 RD_TESTS = \ -
boot/arch/amd64/Makefile.inc
r749fe15b rcc575ef9 61 61 RD_DRV_CFG += \ 62 62 bus/isa 63 63 64 64 RD_APPS_ESSENTIAL += \ 65 65 $(USPACE_PATH)/app/edit/edit \ -
uspace/Makefile
r749fe15b rcc575ef9 94 94 app/wavplay \ 95 95 app/websrv \ 96 app/wifi_supplicant \ 96 97 srv/audio/hound \ 97 98 srv/clipboard \ … … 164 165 drv/nic/rtl8139 \ 165 166 drv/nic/rtl8169 \ 167 drv/nic/ar9271 \ 166 168 drv/platform/icp 167 169 … … 218 220 lib/fs \ 219 221 lib/block \ 222 lib/crypto \ 220 223 lib/clui \ 221 224 lib/fmtutil \ … … 248 251 lib/posix \ 249 252 lib/mbr \ 250 lib/gpt 253 lib/gpt \ 254 lib/ieee80211 \ 251 255 252 256 LIBC_BUILD = $(addsuffix .build,$(LIBC)) -
uspace/Makefile.common
r749fe15b rcc575ef9 120 120 LIBPOSIX_PREFIX = $(LIB_PREFIX)/posix 121 121 122 LIBCRYPTO_PREFIX = $(LIB_PREFIX)/crypto 122 123 LIBBLOCK_PREFIX = $(LIB_PREFIX)/block 123 124 LIBFS_PREFIX = $(LIB_PREFIX)/fs … … 143 144 LIBNET_PREFIX = $(LIB_PREFIX)/net 144 145 LIBNIC_PREFIX = $(LIB_PREFIX)/nic 146 LIBIEEE80211_PREFIX = $(LIB_PREFIX)/ieee80211 145 147 LIBMINIX_PREFIX = $(LIB_PREFIX)/minix 146 148 LIBCOMPRESS_PREFIX = $(LIB_PREFIX)/compress -
uspace/lib/c/generic/dhcp.c
r749fe15b rcc575ef9 84 84 } 85 85 86 int dhcp_discover(sysarg_t link_id) 87 { 88 async_exch_t *exch = async_exchange_begin(dhcp_sess); 89 90 int rc = async_req_1_0(exch, DHCP_DISCOVER, link_id); 91 async_exchange_end(exch); 92 93 return rc; 94 } 95 86 96 /** @} 87 97 */ -
uspace/lib/c/include/inet/dhcp.h
r749fe15b rcc575ef9 41 41 extern int dhcp_link_add(sysarg_t); 42 42 extern int dhcp_link_remove(sysarg_t); 43 extern int dhcp_discover(sysarg_t); 43 44 44 45 #endif -
uspace/lib/c/include/ipc/dev_iface.h
r749fe15b rcc575ef9 48 48 /** Network interface controller interface */ 49 49 NIC_DEV_IFACE, 50 51 /** IEEE 802.11 interface controller interface */ 52 IEEE80211_DEV_IFACE, 50 53 51 54 /** Interface provided by any PCI device. */ -
uspace/lib/c/include/ipc/dhcp.h
r749fe15b rcc575ef9 41 41 typedef enum { 42 42 DHCP_LINK_ADD = IPC_FIRST_USER_METHOD, 43 DHCP_LINK_REMOVE 43 DHCP_LINK_REMOVE, 44 DHCP_DISCOVER 44 45 } dhcp_request_t; 45 46 -
uspace/lib/drv/Makefile
r749fe15b rcc575ef9 48 48 generic/remote_char_dev.c \ 49 49 generic/remote_nic.c \ 50 generic/remote_ieee80211.c \ 50 51 generic/remote_usb.c \ 51 52 generic/remote_pci.c \ -
uspace/lib/drv/generic/dev_iface.c
r749fe15b rcc575ef9 46 46 #include "remote_battery_dev.h" 47 47 #include "remote_nic.h" 48 #include "remote_ieee80211.h" 48 49 #include "remote_usb.h" 49 50 #include "remote_usbhc.h" … … 62 63 [CHAR_DEV_IFACE] = &remote_char_dev_iface, 63 64 [NIC_DEV_IFACE] = &remote_nic_iface, 65 [IEEE80211_DEV_IFACE] = &remote_ieee80211_iface, 64 66 [PCI_DEV_IFACE] = &remote_pci_iface, 65 67 [USB_DEV_IFACE] = &remote_usb_iface, -
uspace/srv/locsrv/locsrv.c
r749fe15b rcc575ef9 1357 1357 cat = category_new("nic"); 1358 1358 categ_dir_add_cat(&cdir, cat); 1359 1360 cat = category_new("ieee80211"); 1361 categ_dir_add_cat(&cdir, cat); 1359 1362 1360 1363 cat = category_new("visualizer"); -
uspace/srv/net/dhcp/dhcp.c
r749fe15b rcc575ef9 418 418 } 419 419 420 static int dhcp_discover_proc(dhcp_link_t *dlink) 421 { 422 dlink->state = ds_selecting; 423 424 int rc = dhcp_send_discover(dlink); 425 if (rc != EOK) 426 return EIO; 427 428 dlink->retries_left = dhcp_discover_retries; 429 430 if(dlink->timeout->state == fts_not_set || 431 dlink->timeout->state == fts_fired) { 432 fibril_timer_set(dlink->timeout, dhcp_discover_timeout_val, 433 dhcpsrv_discover_timeout, dlink); 434 } 435 436 return rc; 437 } 438 420 439 int dhcpsrv_link_add(service_id_t link_id) 421 440 { … … 459 478 } 460 479 461 dlink->state = ds_selecting;462 463 480 log_msg(LOG_DEFAULT, LVL_DEBUG, "Send DHCPDISCOVER"); 464 rc = dhcp_ send_discover(dlink);481 rc = dhcp_discover_proc(dlink); 465 482 if (rc != EOK) { 466 483 log_msg(LOG_DEFAULT, LVL_ERROR, "Error sending DHCPDISCOVER."); … … 469 486 goto error; 470 487 } 471 472 dlink->retries_left = dhcp_discover_retries;473 fibril_timer_set(dlink->timeout, dhcp_discover_timeout_val,474 dhcpsrv_discover_timeout, dlink);475 488 476 489 list_append(&dlink->links, &dhcp_links); … … 487 500 { 488 501 return ENOTSUP; 502 } 503 504 int dhcpsrv_discover(service_id_t link_id) 505 { 506 log_msg(LOG_DEFAULT, LVL_DEBUG, "dhcpsrv_link_add(%zu)", link_id); 507 508 dhcp_link_t *dlink = dhcpsrv_link_find(link_id); 509 510 if (dlink == NULL) { 511 log_msg(LOG_DEFAULT, LVL_NOTE, "Link %zu doesn't exist", 512 link_id); 513 return EINVAL; 514 } 515 516 return dhcp_discover_proc(dlink); 489 517 } 490 518 -
uspace/srv/net/dhcp/dhcp.h
r749fe15b rcc575ef9 43 43 extern int dhcpsrv_link_add(service_id_t); 44 44 extern int dhcpsrv_link_remove(service_id_t); 45 extern int dhcpsrv_discover(service_id_t); 45 46 46 47 #endif -
uspace/srv/net/dhcp/main.c
r749fe15b rcc575ef9 109 109 } 110 110 111 static void dhcp_discover_srv(ipc_callid_t callid, ipc_call_t *call) 112 { 113 sysarg_t link_id; 114 int rc; 115 116 log_msg(LOG_DEFAULT, LVL_DEBUG, "dhcp_discover_srv()"); 117 118 link_id = IPC_GET_ARG1(*call); 119 120 rc = dhcpsrv_discover(link_id); 121 async_answer_0(callid, rc); 122 } 123 111 124 static void dhcp_client_conn(ipc_callid_t iid, ipc_call_t *icall, void *arg) 112 125 { … … 133 146 case DHCP_LINK_REMOVE: 134 147 dhcp_link_remove_srv(callid, &call); 148 break; 149 case DHCP_DISCOVER: 150 dhcp_discover_srv(callid, &call); 135 151 break; 136 152 default:
Note:
See TracChangeset
for help on using the changeset viewer.