Changeset dcba819 in mainline
- Timestamp:
- 2015-04-23T23:42:32Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 055a68a, 86cf96d, bf1733d3
- Parents:
- 749fe15b (diff), 8a64320e (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
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile
r749fe15b rdcba819 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_DRVS_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 rdcba819 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_DRVS_FW_NON_ESSENTIAL = \ 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 = \ … … 247 252 RD_APPS = $(RD_APPS_ESSENTIAL) 248 253 RD_DRVS = $(RD_DRVS_ESSENTIAL) 254 RD_DRVS_FW = $(RD_DRVS_FW_ESSENTIAL) 249 255 else 250 256 RD_SRVS = $(RD_SRVS_ESSENTIAL) $(RD_SRVS_NON_ESSENTIAL) 251 257 RD_APPS = $(RD_APPS_ESSENTIAL) $(RD_APPS_NON_ESSENTIAL) 252 258 RD_DRVS = $(RD_DRVS_ESSENTIAL) $(RD_DRVS_NON_ESSENTIAL) 259 RD_DRVS_FW = $(RD_DRVS_FW_ESSENTIAL) $(RD_DRVS_FW_NON_ESSENTIAL) 253 260 endif 254 261 -
uspace/Makefile
r749fe15b rdcba819 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 rdcba819 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 rdcba819 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 rdcba819 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 rdcba819 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 rdcba819 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 rdcba819 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 rdcba819 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 rdcba819 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 rdcba819 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 return rc; 436 } 437 420 438 int dhcpsrv_link_add(service_id_t link_id) 421 439 { … … 459 477 } 460 478 461 dlink->state = ds_selecting;462 463 479 log_msg(LOG_DEFAULT, LVL_DEBUG, "Send DHCPDISCOVER"); 464 rc = dhcp_ send_discover(dlink);480 rc = dhcp_discover_proc(dlink); 465 481 if (rc != EOK) { 466 482 log_msg(LOG_DEFAULT, LVL_ERROR, "Error sending DHCPDISCOVER."); … … 469 485 goto error; 470 486 } 471 472 dlink->retries_left = dhcp_discover_retries;473 fibril_timer_set(dlink->timeout, dhcp_discover_timeout_val,474 dhcpsrv_discover_timeout, dlink);475 487 476 488 list_append(&dlink->links, &dhcp_links); … … 487 499 { 488 500 return ENOTSUP; 501 } 502 503 int dhcpsrv_discover(service_id_t link_id) 504 { 505 log_msg(LOG_DEFAULT, LVL_DEBUG, "dhcpsrv_link_add(%zu)", link_id); 506 507 dhcp_link_t *dlink = dhcpsrv_link_find(link_id); 508 509 if (dlink == NULL) { 510 log_msg(LOG_DEFAULT, LVL_NOTE, "Link %zu doesn't exist", 511 link_id); 512 return EINVAL; 513 } 514 515 return dhcp_discover_proc(dlink); 489 516 } 490 517 -
uspace/srv/net/dhcp/dhcp.h
r749fe15b rdcba819 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 rdcba819 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.