Changeset a9c6b966 in mainline for uspace/srv/net/nil/eth/eth.c


Ignore:
Timestamp:
2010-11-19T22:04:12Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
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.
Message:

Merge netstart removal and doxytag cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/nil/eth/eth.c

    ra7811f17 ra9c6b966  
    268268 * @param[in] service   The device driver service.
    269269 * @param[in] mtu       The device maximum transmission unit.
    270  * @returns             EOK on success.
    271  * @returns             EEXIST if the device with the different service exists.
    272  * @returns             ENOMEM if there is not enough memory left.
    273  * @returns             Other error codes as defined for the
     270 * @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
    274274 *                      net_get_device_conf_req() function.
    275  * @returns             Other error codes as defined for the
     275 * @return              Other error codes as defined for the
    276276 *                      netif_bind_service() function.
    277  * @returns             Other error codes as defined for the
     277 * @return              Other error codes as defined for the
    278278 *                      netif_get_addr_req() function.
    279279 */
     
    422422 * @param[in] flags     The device flags.
    423423 * @param[in] packet    The packet.
    424  * @returns             The target registered module.
    425  * @returns             NULL if the packet is not long enough.
    426  * @returns             NULL if the packet is too long.
    427  * @returns             NULL if the raw ethernet protocol is used.
    428  * @returns             NULL if the dummy device FCS checksum is invalid.
    429  * @returns             NULL 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.
    430430 */
    431431static eth_proto_t *eth_process_packet(int flags, packet_t packet)
     
    552552 * @param[out] content  The maximum content size.
    553553 * @param[out] suffix   The minimum reserved suffix size.
    554  * @returns             EOK on success.
    555  * @returns             EBADMEM if either one of the parameters is NULL.
    556  * @returns             ENOENT 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.
    557557 */
    558558static int eth_packet_space_message(device_id_t device_id, size_t *addr_len,
     
    586586 * @param[in] type      Type of the desired address.
    587587 * @param[out] address  The device hardware address.
    588  * @returns             EOK on success.
    589  * @returns             EBADMEM if the address parameter is NULL.
    590  * @returns             ENOENT 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.
    591591 */
    592592static int eth_addr_message(device_id_t device_id, eth_addr_type_t type,
     
    620620 * @param[in] service   The module service.
    621621 * @param[in] phone     The service phone.
    622  * @returns             EOK on success.
    623  * @returns             ENOENT if the service is not known.
    624  * @returns             ENOMEM 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.
    625625 */
    626626static int eth_register_message(services_t service, int phone)
     
    673673 * @param[in] ethertype The ethernet protocol type.
    674674 * @param[in] mtu       The device maximum transmission unit.
    675  * @returns             EOK on success.
    676  * @returns             EINVAL if the packet addresses length is not long
     675 * @return              EOK on success.
     676 * @return              EINVAL if the packet addresses length is not long
    677677 *                      enough.
    678  * @returns             EINVAL if the packet is bigger than the device MTU.
    679  * @returns             ENOMEM 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.
    680680 */
    681681static int
     
    783783 * @param[in] packet    The packet queue.
    784784 * @param[in] sender    The sending module service.
    785  * @returns             EOK on success.
    786  * @returns             ENOENT if there no such device.
    787  * @returns             EINVAL 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.
    788788 */
    789789static int eth_send_message(device_id_t device_id, packet_t packet,
Note: See TracChangeset for help on using the changeset viewer.