Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset f5a3479 in mainline


Ignore:
Timestamp:
2010-10-15T19:24:19Z (10 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
Children:
8e3a65c
Parents:
995689d1
Message:

Move network interface layer module messages definitions to standard library.

Location:
uspace
Files:
4 edited
1 moved

Legend:

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

    r995689d1 rf5a3479  
    2727 */
    2828
    29 /** @addtogroup net_nil
     29/** @addtogroup libc
    3030 * @{
    3131 */
     
    3535 */
    3636
    37 #ifndef __NET_NIL_MESSAGES_H__
    38 #define __NET_NIL_MESSAGES_H__
     37#ifndef LIBC_NIL_MESSAGES_H_
     38#define LIBC_NIL_MESSAGES_H_
    3939
    4040#include <ipc/ipc.h>
    4141#include <ipc/net.h>
    4242
    43 /** Network interface layer module messages.
    44  */
     43/** Network interface layer module messages. */
    4544typedef enum {
    4645        /** New device or update MTU message.
    47          *  @see nil_device_req()
     46         * @see nil_device_req()
    4847         */
    4948        NET_NIL_DEVICE = NET_NIL_FIRST,
    5049        /** New device state message.
    51          *  @see nil_device_state_msg()
     50         * @see nil_device_state_msg()
    5251         */
    5352        NET_NIL_DEVICE_STATE,
    5453        /** Received packet queue message.
    55          *  @see nil_received_msg()
     54         * @see nil_received_msg()
    5655         */
    5756        NET_NIL_RECEIVED,
    5857        /** Send packet queue message.
    59          *  @see nil_send_msg()
     58         * @see nil_send_msg()
    6059         */
    6160        NET_NIL_SEND,
    6261        /** Packet size message.
    63          *  @see nil_packet_size_req()
     62         * @see nil_packet_size_req()
    6463         */
    6564        NET_NIL_PACKET_SPACE,
    6665        /** Device local hardware address message.
    67          *  @see nil_get_addr()
     66         * @see nil_get_addr()
    6867         */
    6968        NET_NIL_ADDR,
    7069        /** Device broadcast hardware address message.
    71          *  @see nil_get_broadcast_addr()
     70         * @see nil_get_broadcast_addr()
    7271         */
    7372        NET_NIL_BROADCAST_ADDR,
    7473} nil_messages;
    7574
    76 /** @name Network interface layer specific message parameters definitions
    77  */
     75/** @name Network interface layer specific message parameters definitions */
    7876/*@{*/
    7977
    80 /** Return the protocol service message parameter.
    81  */
     78/** Return the protocol service message parameter. */
    8279#define NIL_GET_PROTO(call) \
    83         ({services_t service = (services_t) IPC_GET_ARG2(*call); service;})
     80        ({ \
     81                services_t service = (services_t) IPC_GET_ARG2(*call); \
     82                service; \
     83        })
    8484
    8585/*@}*/
  • uspace/lib/net/include/nil_interface.h

    r995689d1 rf5a3479  
    3838
    3939#include <ipc/ipc.h>
     40#include <ipc/nil.h>
    4041
    4142#include <generic.h>
    42 #include <nil_messages.h>
    4343#include <nil_remote.h>
    4444
  • uspace/lib/net/nil/nil_remote.c

    r995689d1 rf5a3479  
    3838#include <nil_remote.h>
    3939#include <nil_interface.h>
    40 #include <nil_messages.h>
    4140#include <generic.h>
    4241#include <net/device.h>
    4342#include <net/packet.h>
    4443#include <packet_client.h>
     44
     45#include <ipc/nil.h>
    4546
    4647/** Notify the network interface layer about the device state change.
  • uspace/srv/net/il/ip/ip.c

    r995689d1 rf5a3479  
    4545#include <ipc/services.h>
    4646#include <ipc/net.h>
     47#include <ipc/nil.h>
    4748#include <ipc/il.h>
    4849#include <ipc/ip.h>
     
    7374#include <packet_client.h>
    7475#include <packet_remote.h>
    75 #include <nil_messages.h>
    7676#include <il_local.h>
    7777#include <ip_local.h>
  • uspace/srv/net/netif/lo/lo.c

    r995689d1 rf5a3479  
    4343#include <ipc/ipc.h>
    4444#include <ipc/services.h>
     45#include <ipc/nil.h>
    4546
    4647#include <net/modules.h>
     
    4950#include <net/device.h>
    5051#include <nil_interface.h>
    51 #include <nil_messages.h>
    5252#include <netif_interface.h>
    5353#include <netif_local.h>
Note: See TracChangeset for help on using the changeset viewer.