Changeset 995689d1 in mainline


Ignore:
Timestamp:
2010-10-15T19:19:11Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f5a3479
Parents:
3a5d892f
Message:

Move network interface common module messages definitions to standard library.

Location:
uspace/lib
Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/ipc/netif.h

    r3a5d892f r995689d1  
    2727 */
    2828
    29 /** @addtogroup netif
     29/** @addtogroup libc
    3030 * @{
    3131 */
     
    3535 */
    3636
    37 #ifndef __NET_NETIF_MESSAGES_H__
    38 #define __NET_NETIF_MESSAGES_H__
     37#ifndef LIBC_NETIF_MESSAGES_H_
     38#define LIBC_NETIF_MESSAGES_H_
    3939
    4040#include <ipc/ipc.h>
    4141#include <ipc/net.h>
    4242
    43 /** Network interface common module messages.
    44  */
     43/** Network interface common module messages. */
    4544typedef enum {
    4645        /** Probe device message.
    47          *  @see netif_probe_req()
     46         * @see netif_probe_req()
    4847         */
    4948        NET_NETIF_PROBE = NET_NETIF_FIRST,
    5049        /** Send packet message.
    51          *  @see netif_send_msg()
     50         * @see netif_send_msg()
    5251         */
    5352        NET_NETIF_SEND,
    5453        /** Start device message.
    55          *  @see netif_start_req()
     54         * @see netif_start_req()
    5655         */
    5756        NET_NETIF_START,
    5857        /** Get device usage statistics message.
    59          *  @see netif_stats_req()
     58         * @see netif_stats_req()
    6059         */
    6160        NET_NETIF_STATS,
    6261        /** Stop device message.
    63          *  @see netif_stop_req()
     62         * @see netif_stop_req()
    6463         */
    6564        NET_NETIF_STOP,
    6665        /** Get device address message.
    67          *  @see netif_get_addr_req()
     66         * @see netif_get_addr_req()
    6867         */
    6968        NET_NETIF_GET_ADDR,
    7069} netif_messages;
    7170
    72 /** @name Network interface specific message parameters definitions
    73  */
     71/** @name Network interface specific message parameters definitions */
    7472/*@{*/
    7573
     
    7876 */
    7977#define NETIF_GET_IRQ(call) \
    80         ({int irq = (int) IPC_GET_ARG2(*call); irq;})
     78        ({ \
     79                int irq = (int) IPC_GET_ARG2(*call); \
     80                irq; \
     81        })
    8182
    8283/** Return the input/output address message parameter.
     
    8485 */
    8586#define NETIF_GET_IO(call) \
    86         ({int io = (int) IPC_GET_ARG3(*call); io;})
     87        ({ \
     88                int io = (int) IPC_GET_ARG3(*call); \
     89                io; \
     90        })
    8791
    8892/*@}*/
  • uspace/lib/net/netif/netif_local.c

    r3a5d892f r995689d1  
    4242#include <ipc/ipc.h>
    4343#include <ipc/services.h>
     44#include <ipc/netif.h>
    4445#include <err.h>
    4546
     
    5354#include <nil_interface.h>
    5455#include <netif_local.h>
    55 #include <netif_messages.h>
    5656#include <netif_interface.h>
    5757
  • uspace/lib/net/netif/netif_remote.c

    r3a5d892f r995689d1  
    3636
    3737#include <ipc/services.h>
     38#include <ipc/netif.h>
    3839
    3940#include <net/modules.h>
     
    4344#include <net/device.h>
    4445#include <netif_remote.h>
    45 #include <netif_messages.h>
    4646#include <generic.h>
    4747
Note: See TracChangeset for help on using the changeset viewer.