Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/generic/protocol_map.c

    rf902d36 r465c935  
    4242 * @param[in] nil       Network interface layer service.
    4343 * @param[in] il        Internetwork layer service.
    44  * @return              Network interface layer type of the internetworking
     44 * @returns             Network interface layer type of the internetworking
    4545 *                      layer service.
    46  * @return              Zero if mapping is not found.
     46 * @returns             Zero if mapping is not found.
    4747 */
    4848eth_type_t protocol_map(services_t nil, services_t il)
     
    5050        switch (nil) {
    5151        case SERVICE_ETHERNET:
    52         case SERVICE_NE2000:
     52        case SERVICE_DP8390:
    5353                switch (il) {
    5454                case SERVICE_IP:
     
    6868 * @param[in] nil       Network interface layer service.
    6969 * @param[in] protocol  Network interface layer type.
    70  * @return              Internetwork layer service of the network interface
     70 * @returns             Internetwork layer service of the network interface
    7171 *                      layer type.
    72  * @return              Zero if mapping is not found.
     72 * @returns             Zero if mapping is not found.
    7373 */
    7474services_t protocol_unmap(services_t nil, int protocol)
     
    7676        switch (nil) {
    7777        case SERVICE_ETHERNET:
    78         case SERVICE_NE2000:
     78        case SERVICE_DP8390:
    7979                switch (protocol) {
    8080                case ETH_P_IP:
     
    9494 *
    9595 * @param[in] lsap      Link service access point identifier.
    96  * @return              Ethernet protocol identifier of the link service access
     96 * @returns             Ethernet protocol identifier of the link service access
    9797 *                      point identifier.
    98  * @return              ETH_LSAP_NULL if mapping is not found.
     98 * @returns             ETH_LSAP_NULL if mapping is not found.
    9999 */
    100100eth_type_t lsap_map(eth_lsap_t lsap)
     
    114114 *
    115115 * @param[in] ethertype Ethernet protocol identifier.
    116  * @return              Link service access point identifier.
    117  * @return              Zero if mapping is not found.
     116 * @returns             Link service access point identifier.
     117 * @returns             Zero if mapping is not found.
    118118 */
    119119eth_lsap_t lsap_unmap(eth_type_t ethertype)
     
    132132 *
    133133 * @param[in] nil       The network interface service.
    134  * @return              The hardware type of the network interface service.
    135  * @return              Zero if mapping is not found.
     134 * @returns             The hardware type of the network interface service.
     135 * @returns             Zero if mapping is not found.
    136136 */
    137137hw_type_t hardware_map(services_t nil)
     
    139139        switch (nil) {
    140140        case SERVICE_ETHERNET:
    141         case SERVICE_NE2000:
     141        case SERVICE_DP8390:
    142142                return HW_ETHER;
    143143        default:
Note: See TracChangeset for help on using the changeset viewer.