Changeset 7c3fb9b in mainline for uspace/lib/nic


Ignore:
Timestamp:
2018-05-17T08:29:01Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6ff23ff
Parents:
fac0ac7
git-author:
Jiri Svoboda <jiri@…> (2018-05-16 17:28:17)
git-committer:
Jiri Svoboda <jiri@…> (2018-05-17 08:29:01)
Message:

Fix block comment formatting (ccheck).

Location:
uspace/lib/nic
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/nic/include/nic_impl.h

    rfac0ac7 r7c3fb9b  
    4343#include <ddf/driver.h>
    4444
    45 /* Inclusion of this file is not prohibited, because drivers could want to
    46  * inject some adaptation layer between the DDF call and NICF implementation */
     45/*
     46 * Inclusion of this file is not prohibited, because drivers could want to
     47 * inject some adaptation layer between the DDF call and NICF implementation
     48 */
    4749
    4850extern errno_t nic_get_address_impl(ddf_fun_t *dev_fun, nic_address_t *address);
  • uspace/lib/nic/src/nic_driver.c

    rfac0ac7 r7c3fb9b  
    518518void nic_received_frame(nic_t *nic_data, nic_frame_t *frame)
    519519{
    520         /* Note: this function must not lock main lock, because loopback driver
    521          *               calls it inside send_frame handler (with locked main lock) */
     520        /*
     521         * Note: this function must not lock main lock, because loopback driver
     522         *               calls it inside send_frame handler (with locked main lock)
     523         */
    522524        fibril_rwlock_read_lock(&nic_data->rxc_lock);
    523525        nic_frame_type_t frame_type;
     
    10621064                        if (remaining.tv_sec > 0) {
    10631065                                time_t wait_sec = remaining.tv_sec;
    1064                                 /* wait maximaly 5 seconds to get reasonable reaction time
     1066                                /*
     1067                                 * wait maximaly 5 seconds to get reasonable reaction time
    10651068                                 * when period is reset
    10661069                                 */
  • uspace/lib/nic/src/nic_impl.c

    rfac0ac7 r7c3fb9b  
    123123                    sizeof(struct timeval));
    124124                if (rc != EOK) {
    125                         /* We have already ran the on stopped handler, even if we
     125                        /*
     126                         * We have already ran the on stopped handler, even if we
    126127                         * terminated the state change we would end up in undefined state.
    127                          * Therefore we just log the problem. */
     128                         * Therefore we just log the problem.
     129                         */
    128130                }
    129131
     
    302304                rc = nic_rxc_unicast_set_mode(&nic_data->rx_control, mode,
    303305                    addr_list, addr_count);
    304                 /* After changing the mode the addr db gets cleared, therefore we have
     306                /*
     307                 * After changing the mode the addr db gets cleared, therefore we have
    305308                 * to reinsert also the physical address of NIC.
    306309                 */
     
    737740{
    738741        nic_t *nic_data = nic_get_from_ddf_fun(fun);
    739         /* If the driver does not implement the poll mode change handler it cannot
    740          * switch off interrupts and this is not supported. */
     742        /*
     743         * If the driver does not implement the poll mode change handler it cannot
     744         * switch off interrupts and this is not supported.
     745         */
    741746        if (nic_data->on_poll_mode_change == NULL)
    742747                return ENOTSUP;
Note: See TracChangeset for help on using the changeset viewer.