Ignore:
File:
1 edited

Legend:

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

    r609243f4 rfe8dfa6  
    11/*
    22 * Copyright (c) 2009 Lukas Mejdrech
    3  * Copyright (c) 2011 Radim Vansa
    43 * All rights reserved.
    54 *
     
    3938#define NET_ETH_H_
    4039
    41 #include <async.h>
    4240#include <fibril_synch.h>
    4341#include <ipc/services.h>
     42
    4443#include <net/device.h>
    4544#include <adt/measured_strings.h>
    46 #include <devman.h>
    4745
    4846/** Ethernet address length. */
     
    222220struct eth_device {
    223221        /** Device identifier. */
    224         nic_device_id_t device_id;
    225         /** Device handle */
    226         devman_handle_t handle;
    227         /** Driver session. */
    228         async_sess_t *sess;
     222        device_id_t device_id;
     223        /** Device driver service. */
     224        services_t service;
     225        /** Driver phone. */
     226        int phone;
    229227        /** Maximal transmission unit. */
    230228        size_t mtu;
     
    238236       
    239237        /** Actual device hardware address. */
    240         nic_address_t addr;
     238        measured_string_t *addr;
     239       
     240        /** Actual device hardware address data. */
     241        uint8_t *addr_data;
    241242};
    242243
     
    247248        /** Protocol identifier. */
    248249        int protocol;
    249         /** Protocol module session. */
    250         async_sess_t *sess;
     250        /** Protocol module phone. */
     251        int phone;
    251252};
    252253
    253254/** Ethernet global data. */
    254255struct eth_globals {
    255         /** Networking module session. */
    256         async_sess_t *net_sess;
     256        /** Networking module phone. */
     257        int net_phone;
    257258        /** Safety lock for devices. */
    258259        fibril_rwlock_t devices_lock;
     
    264265        /**
    265266         * Protocol map.
    266          * Service map for each protocol.
     267         * Service phone map for each protocol.
    267268         */
    268269        eth_protos_t protos;
    269270       
    270271        /** Broadcast device hardware address. */
    271         uint8_t broadcast_addr[ETH_ADDR];
     272        measured_string_t *broadcast_addr;
    272273};
    273274
Note: See TracChangeset for help on using the changeset viewer.