Changeset f5a3479 in mainline for uspace/lib/c/include/ipc/nil.h


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

Move network interface layer module messages definitions to standard library.

File:
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/*@}*/
Note: See TracChangeset for help on using the changeset viewer.