Changeset a9c6b966 in mainline for uspace/srv/net/nil/eth/eth.c
- Timestamp:
- 2010-11-19T22:04:12Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0b4a67a, fdbc3ff
- Parents:
- a7811f17 (diff), 1bfd3d3 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/nil/eth/eth.c
ra7811f17 ra9c6b966 268 268 * @param[in] service The device driver service. 269 269 * @param[in] mtu The device maximum transmission unit. 270 * @return sEOK on success.271 * @return sEEXIST if the device with the different service exists.272 * @return sENOMEM if there is not enough memory left.273 * @return sOther error codes as defined for the270 * @return EOK on success. 271 * @return EEXIST if the device with the different service exists. 272 * @return ENOMEM if there is not enough memory left. 273 * @return Other error codes as defined for the 274 274 * net_get_device_conf_req() function. 275 * @return sOther error codes as defined for the275 * @return Other error codes as defined for the 276 276 * netif_bind_service() function. 277 * @return sOther error codes as defined for the277 * @return Other error codes as defined for the 278 278 * netif_get_addr_req() function. 279 279 */ … … 422 422 * @param[in] flags The device flags. 423 423 * @param[in] packet The packet. 424 * @return sThe target registered module.425 * @return sNULL if the packet is not long enough.426 * @return sNULL if the packet is too long.427 * @return sNULL if the raw ethernet protocol is used.428 * @return sNULL if the dummy device FCS checksum is invalid.429 * @return sNULL if the packet address length is not big enough.424 * @return The target registered module. 425 * @return NULL if the packet is not long enough. 426 * @return NULL if the packet is too long. 427 * @return NULL if the raw ethernet protocol is used. 428 * @return NULL if the dummy device FCS checksum is invalid. 429 * @return NULL if the packet address length is not big enough. 430 430 */ 431 431 static eth_proto_t *eth_process_packet(int flags, packet_t packet) … … 552 552 * @param[out] content The maximum content size. 553 553 * @param[out] suffix The minimum reserved suffix size. 554 * @return sEOK on success.555 * @return sEBADMEM if either one of the parameters is NULL.556 * @return sENOENT if there is no such device.554 * @return EOK on success. 555 * @return EBADMEM if either one of the parameters is NULL. 556 * @return ENOENT if there is no such device. 557 557 */ 558 558 static int eth_packet_space_message(device_id_t device_id, size_t *addr_len, … … 586 586 * @param[in] type Type of the desired address. 587 587 * @param[out] address The device hardware address. 588 * @return sEOK on success.589 * @return sEBADMEM if the address parameter is NULL.590 * @return sENOENT if there no such device.588 * @return EOK on success. 589 * @return EBADMEM if the address parameter is NULL. 590 * @return ENOENT if there no such device. 591 591 */ 592 592 static int eth_addr_message(device_id_t device_id, eth_addr_type_t type, … … 620 620 * @param[in] service The module service. 621 621 * @param[in] phone The service phone. 622 * @return sEOK on success.623 * @return sENOENT if the service is not known.624 * @return sENOMEM if there is not enough memory left.622 * @return EOK on success. 623 * @return ENOENT if the service is not known. 624 * @return ENOMEM if there is not enough memory left. 625 625 */ 626 626 static int eth_register_message(services_t service, int phone) … … 673 673 * @param[in] ethertype The ethernet protocol type. 674 674 * @param[in] mtu The device maximum transmission unit. 675 * @return sEOK on success.676 * @return sEINVAL if the packet addresses length is not long675 * @return EOK on success. 676 * @return EINVAL if the packet addresses length is not long 677 677 * enough. 678 * @return sEINVAL if the packet is bigger than the device MTU.679 * @return sENOMEM if there is not enough memory in the packet.678 * @return EINVAL if the packet is bigger than the device MTU. 679 * @return ENOMEM if there is not enough memory in the packet. 680 680 */ 681 681 static int … … 783 783 * @param[in] packet The packet queue. 784 784 * @param[in] sender The sending module service. 785 * @return sEOK on success.786 * @return sENOENT if there no such device.787 * @return sEINVAL if the service parameter is not known.785 * @return EOK on success. 786 * @return ENOENT if there no such device. 787 * @return EINVAL if the service parameter is not known. 788 788 */ 789 789 static int eth_send_message(device_id_t device_id, packet_t packet,
Note:
See TracChangeset
for help on using the changeset viewer.