Changeset d7ff048 in mainline for uspace/srv/net/net/net.h


Ignore:
Timestamp:
2011-10-08T13:08:53Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bf08ff0
Parents:
8367d1d (diff), 80099c19 (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 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/net/net.h

    r8367d1d rd7ff048  
    11/*
    22 * Copyright (c) 2009 Lukas Mejdrech
     3 * Copyright (c) 2011 Radim Vansa
    34 * All rights reserved.
    45 *
     
    3132 */
    3233
    33 /** @file
    34  * Networking subsystem central module.
    35  *
    36  */
    37 
    3834#ifndef NET_NET_H_
    3935#define NET_NET_H_
     
    4541#include <adt/module_map.h>
    4642#include <net/packet.h>
     43#include <devman.h>
    4744
    48 /** @name Modules definitions
    49  * @{
    50  */
    51 
    52 #define NE2000_FILENAME  "/srv/ne2000"
    53 #define NE2000_NAME      "ne2000"
     45#define NAME  "net"
    5446
    5547#define ETHERNET_FILENAME  "/srv/eth"
     
    5850#define IP_FILENAME  "/srv/ip"
    5951#define IP_NAME      "ip"
    60 
    61 #define LO_FILENAME  "/srv/lo"
    62 #define LO_NAME      "lo"
    6352
    6453#define NILDUMMY_FILENAME  "/srv/nildummy"
     
    7766#define CONF_MTU    "MTU"    /**< Maximum transmission unit configuration label. */
    7867#define CONF_NAME   "NAME"   /**< Network interface name configuration label. */
    79 #define CONF_NETIF  "NETIF"  /**< Network interface module name configuration label. */
     68#define CONF_HWPATH "HWPATH" /**< Network interface hardware pathname label. */
    8069#define CONF_NIL    "NIL"    /**< Network interface layer module name configuration label. */
    8170
     
    8574#define CONF_DIR           "/cfg/net"  /**< Configuration directory. */
    8675#define CONF_GENERAL_FILE  "general"   /**< General configuration file. */
     76#define CONF_EXT           ".nic"      /**< Extension for NIC's configuration files. */
    8777
    8878/** Configuration settings.
     
    9888 */
    9989typedef struct {
    100         measured_strings_t configuration;  /**< Configuration. */
     90        /** System-unique network interface name. */
     91        uint8_t *name;
     92        /** System-unique network interface identifier. */
     93        nic_device_id_t id;
     94        /** Configuration. */
     95        measured_strings_t configuration;
    10196       
    10297        /** Serving network interface driver module index. */
    103         module_t *driver;
     98        devman_handle_t handle;  /**< Handle for devman */
     99        async_sess_t *sess;      /**< Driver session. */
    104100       
    105         device_id_t id;  /**< System-unique network interface identifier. */
    106         module_t *il;    /**< Serving internet layer module index. */
    107         uint8_t *name;   /**< System-unique network interface name. */
    108         module_t *nil;   /**< Serving link layer module index. */
     101        module_t *nil;  /**< Serving link layer module index. */
     102        module_t *il;   /**< Serving internet layer module index. */
    109103} netif_t;
    110104
     
    124118        modules_t modules;                 /**< Available modules. */
    125119       
    126         /** Network interface structure indices by names. */
    127         char_map_t netif_names;
     120        /** Network interface structure indices by hardware path. */
     121        char_map_t netif_hwpaths;
    128122       
    129123        /** Present network interfaces. */
     
    131125} net_globals_t;
    132126
    133 extern int add_configuration(measured_strings_t *, const uint8_t *,
    134     const uint8_t *);
    135 extern int net_module_message(ipc_callid_t, ipc_call_t *, ipc_call_t *, size_t *);
    136 extern int net_initialize_build(async_client_conn_t);
    137 extern int net_message(ipc_callid_t, ipc_call_t *, ipc_call_t *, size_t *);
    138 
    139127#endif
    140128
Note: See TracChangeset for help on using the changeset viewer.