Changeset 522253c1 in mainline


Ignore:
Timestamp:
2010-10-15T18:56:09Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
779a47d
Parents:
f87ec535
Message:

Move Internet layer modules messages definitions to standard library.

Location:
uspace
Files:
5 edited
1 moved

Legend:

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

    rf87ec535 r522253c1  
    2727 */
    2828
    29 /** @addtogroup net_il
     29/** @addtogroup libc
    3030 * @{
    3131 */
     
    3737 */
    3838
    39 #ifndef __NET_IL_MESSAGES_H__
    40 #define __NET_IL_MESSAGES_H__
     39#ifndef LIBC_IL_MESSAGES_H_
     40#define LIBC_IL_MESSAGES_H_
    4141
    4242#include <ipc/ipc.h>
    4343#include <ipc/net.h>
    4444
    45 /** Internet layer modules messages.
    46  */
     45/** Internet layer modules messages. */
    4746typedef enum {
    4847        /** New device message.
    49          *  @see ip_device_req()
     48         * @see ip_device_req()
    5049         */
    5150        NET_IL_DEVICE = NET_IL_FIRST,
    5251        /** Device state changed message.
    53          *  @see il_device_state_msg()
     52         * @see il_device_state_msg()
    5453         */
    5554        NET_IL_DEVICE_STATE,
    5655        /** Device MTU changed message.
    57          *  @see il_mtu_changed_msg()
     56         * @see il_mtu_changed_msg()
    5857         */
    5958        NET_IL_MTU_CHANGED,
    6059        /** Packet size message.
    61          *  @see il_packet_size_req()
     60         * @see il_packet_size_req()
    6261         */
    6362        NET_IL_PACKET_SPACE,
    6463        /** Packet received message.
    65          *  @see il_received_msg()
     64         * @see il_received_msg()
    6665         */
    6766        NET_IL_RECEIVED,
    6867        /** Packet send message.
    69          *  @see il_send_msg()
     68         * @see il_send_msg()
    7069         */
    7170        NET_IL_SEND
    7271} il_messages;
    7372
    74 /** @name Internetwork layer specific message parameters definitions
    75  *
    76  */
     73/** @name Internetwork layer specific message parameters definitions */
    7774/*@{*/
    7875
    7976/** Return the protocol number message parameter.
    8077 * @param[in] call The message call structure.
    81  *
    8278 */
    83 #define IL_GET_PROTO(call)  (int) IPC_GET_ARG1(*call)
     79#define IL_GET_PROTO(call)      (int) IPC_GET_ARG1(*call)
    8480
    8581/** Return the registering service message parameter.
    8682 * @param[in] call The message call structure.
    87  *
    8883 */
    89 #define IL_GET_SERVICE(call)  (services_t) IPC_GET_ARG2(*call)
     84#define IL_GET_SERVICE(call)    (services_t) IPC_GET_ARG2(*call)
    9085
    9186/*@}*/
  • uspace/lib/net/il/ip_remote.c

    rf87ec535 r522253c1  
    4343#include <ip_interface.h>
    4444#include <ip_messages.h>
    45 #include <il_messages.h>
    4645#include <packet_client.h>
    4746#include <generic.h>
    4847
    4948#include <ipc/services.h>
     49#include <ipc/il.h>
    5050
    5151#include <net/modules.h>
  • uspace/lib/net/include/il_interface.h

    rf87ec535 r522253c1  
    4242
    4343#include <ipc/services.h>
     44#include <ipc/il.h>
    4445
    4546#include <net/device.h>
    4647#include <net/packet.h>
    47 #include <il_messages.h>
    4848
    4949#include <packet_client.h>
  • uspace/srv/net/il/arp/arp.c

    rf87ec535 r522253c1  
    4747#include <ipc/net.h>
    4848#include <ipc/arp.h>
     49#include <ipc/il.h>
    4950#include <byteorder.h>
    5051#include <err.h>
     
    5960#include <packet_client.h>
    6061#include <packet_remote.h>
    61 #include <il_messages.h>
    6262#include <il_interface.h>
    6363#include <il_local.h>
  • uspace/srv/net/il/ip/ip.c

    rf87ec535 r522253c1  
    4545#include <ipc/services.h>
    4646#include <ipc/net.h>
     47#include <ipc/il.h>
    4748#include <sys/types.h>
    4849#include <byteorder.h>
     
    7273#include <packet_remote.h>
    7374#include <nil_messages.h>
    74 #include <il_messages.h>
    7575#include <il_local.h>
    7676#include <ip_local.h>
  • uspace/srv/net/net/net.c

    rf87ec535 r522253c1  
    4646
    4747#include <ipc/ipc.h>
     48#include <ipc/services.h>
    4849#include <ipc/net.h>
    49 #include <ipc/services.h>
     50#include <ipc/il.h>
    5051
    5152#include <net/modules.h>
     
    5556#include <adt/module_map.h>
    5657#include <net/packet.h>
    57 #include <il_messages.h>
    5858#include <netif_remote.h>
    5959#include <net/device.h>
Note: See TracChangeset for help on using the changeset viewer.