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


Ignore:
Timestamp:
2011-04-13T14:45:41Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
88634420
Parents:
cefb126 (diff), 17279ead (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 moved

Legend:

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

    rcefb126 r89c57b6  
    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
    40 #include <ipc/ipc.h>
     40#include <ipc/net.h>
    4141
    42 #include <net_messages.h>
    43 
    44 /** Network interface layer module messages.
    45  */
     42/** Network interface layer module messages. */
    4643typedef enum {
    4744        /** New device or update MTU message.
    48          *  @see nil_device_req()
     45         * @see nil_device_req()
    4946         */
    5047        NET_NIL_DEVICE = NET_NIL_FIRST,
    5148        /** New device state message.
    52          *  @see nil_device_state_msg()
     49         * @see nil_device_state_msg()
    5350         */
    5451        NET_NIL_DEVICE_STATE,
    5552        /** Received packet queue message.
    56          *  @see nil_received_msg()
     53         * @see nil_received_msg()
    5754         */
    5855        NET_NIL_RECEIVED,
    5956        /** Send packet queue message.
    60          *  @see nil_send_msg()
     57         * @see nil_send_msg()
    6158         */
    6259        NET_NIL_SEND,
    6360        /** Packet size message.
    64          *  @see nil_packet_size_req()
     61         * @see nil_packet_size_req()
    6562         */
    6663        NET_NIL_PACKET_SPACE,
    6764        /** Device local hardware address message.
    68          *  @see nil_get_addr()
     65         * @see nil_get_addr()
    6966         */
    7067        NET_NIL_ADDR,
    7168        /** Device broadcast hardware address message.
    72          *  @see nil_get_broadcast_addr()
     69         * @see nil_get_broadcast_addr()
    7370         */
    7471        NET_NIL_BROADCAST_ADDR,
    7572} nil_messages;
    7673
    77 /** @name Network interface layer specific message parameters definitions
    78  */
     74/** @name Network interface layer specific message parameters definitions */
    7975/*@{*/
    8076
    81 /** Return the protocol service message parameter.
    82  */
    83 #define NIL_GET_PROTO(call) \
    84         ({services_t service = (services_t) IPC_GET_ARG2(*call); service;})
     77/** Return the protocol service message parameter. */
     78#define NIL_GET_PROTO(call)  ((services_t) IPC_GET_ARG2(call))
    8579
    8680/*@}*/
Note: See TracChangeset for help on using the changeset viewer.