Changeset 609243f4 in mainline for uspace/srv/net/net/net.h


Ignore:
Timestamp:
2011-10-07T15:46:01Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e2c50e1
Parents:
f51b1d3
Message:

cherrypick general networking improvements from lp:~helenos-nicf/helenos/nicf (after sanitization)
remove obsolete networking drivers
this renders the networking non-functional for the time being

File:
1 edited

Legend:

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

    rf51b1d3 r609243f4  
    11/*
    22 * Copyright (c) 2009 Lukas Mejdrech
     3 * Copyright (c) 2011 Radim Vansa
    34 * All rights reserved.
    45 *
     
    4546#include <adt/module_map.h>
    4647#include <net/packet.h>
     48#include <devman.h>
    4749
    4850/** @name Modules definitions
    4951 * @{
    5052 */
    51 
    52 #define NE2000_FILENAME  "/srv/ne2000"
    53 #define NE2000_NAME      "ne2000"
    5453
    5554#define ETHERNET_FILENAME  "/srv/eth"
     
    5857#define IP_FILENAME  "/srv/ip"
    5958#define IP_NAME      "ip"
    60 
    61 #define LO_FILENAME  "/srv/lo"
    62 #define LO_NAME      "lo"
    6359
    6460#define NILDUMMY_FILENAME  "/srv/nildummy"
     
    7773#define CONF_MTU    "MTU"    /**< Maximum transmission unit configuration label. */
    7874#define CONF_NAME   "NAME"   /**< Network interface name configuration label. */
    79 #define CONF_NETIF  "NETIF"  /**< Network interface module name configuration label. */
     75#define CONF_HWPATH "HWPATH" /**< Network interface hardware pathname label. */
    8076#define CONF_NIL    "NIL"    /**< Network interface layer module name configuration label. */
    8177
     
    8581#define CONF_DIR           "/cfg/net"  /**< Configuration directory. */
    8682#define CONF_GENERAL_FILE  "general"   /**< General configuration file. */
     83#define CONF_EXT           ".nic"      /**< Extension for NIC's configuration files. */
    8784
    8885/** Configuration settings.
     
    9895 */
    9996typedef struct {
     97        uint8_t *name;                          /**< System-unique network interface name. */
     98        nic_device_id_t id;             /**< System-unique network interface identifier. */
    10099        measured_strings_t configuration;  /**< Configuration. */
    101100       
    102101        /** Serving network interface driver module index. */
    103         module_t *driver;
     102        devman_handle_t handle;         /**< Handle for devman */
     103        async_sess_t *sess;                     /**< Driver session. */
    104104       
    105         device_id_t id;  /**< System-unique network interface identifier. */
     105        module_t *nil;   /**< Serving link layer module index. */
    106106        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. */
    109107} netif_t;
    110108
     
    124122        modules_t modules;                 /**< Available modules. */
    125123       
    126         /** Network interface structure indices by names. */
    127         char_map_t netif_names;
     124        /** Network interface structure indices by hardware path. */
     125        char_map_t netif_hwpaths;
    128126       
    129127        /** Present network interfaces. */
Note: See TracChangeset for help on using the changeset viewer.