The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/dev/ic/mb86950var.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*      $NetBSD: mb86950var.h,v 1.3 2005/12/11 12:21:27 christos Exp $  */
    2 
    3 /*
    4  * Copyright (c) 1995 Mika Kortelainen
    5  * All rights reserved.
    6  *
    7  * Redistribution and use in source and binary forms, with or without
    8  * modification, are permitted provided that the following conditions
    9  * are met:
   10  * 1. Redistributions of source code must retain the above copyright
   11  *    notice, this list of conditions and the following disclaimer.
   12  * 2. Redistributions in binary form must reproduce the above copyright
   13  *    notice, this list of conditions and the following disclaimer in the
   14  *    documentation and/or other materials provided with the distribution.
   15  * 3. All advertising materials mentioning features or use of this software
   16  *    must display the following acknowledgement:
   17  *      This product includes software developed by  Mika Kortelainen
   18  * 4. The name of the author may not be used to endorse or promote products
   19  *    derived from this software without specific prior written permission
   20  *
   21  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
   22  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   23  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   24  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
   25  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
   26  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
   27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
   28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   30  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   31  */
   32 
   33 /*
   34  * Adapted from if_qnreg.h for the amiga port of NetBSD by Dave J. Barnes, 2004.
   35  */
   36 
   37 /*
   38  * EStar_softc: per line info and status
   39  */
   40 struct mb86950_softc {
   41         struct device sc_dev;
   42         struct ethercom sc_ec;          /* ethernet common */
   43         struct ifmedia sc_media;        /* supported media information */
   44 
   45         bus_space_tag_t sc_bst;         /* bus space */
   46         bus_space_handle_t sc_bsh;
   47 
   48         /* Transmission buffer management. */
   49         int     txb_sched;      /* number of scheduled packets */
   50 #if 0
   51         /* XXX not used */
   52         int     txb_free;       /* free TX buffers */
   53         int     txb_size;       /* total size of TX buffer */
   54         int     txb_count;      /* number of TX buffers in use */
   55         int     rxb_size;   /* size of receive buffer */
   56 #endif
   57         int txb_num_pkt;    /* max number of outstanding transmit packets allowed */
   58         int rxb_num_pkt;    /* max number of packets that could be in receive buffer */
   59 
   60         u_int8_t sc_enaddr[ETHER_ADDR_LEN];
   61 
   62 #if NRND > 0
   63         rndsource_element_t rnd_source;
   64 #endif
   65 
   66         u_int32_t sc_stat;      /* driver status */
   67 
   68 #define ESTAR_STAT_ENABLED      0x0001  /* power enabled on interface */
   69 #define ESTAR_STAT_ATTACHED     0x0002  /* attach has succeeded */
   70 
   71         int     (*sc_enable) __P((struct mb86950_softc *));
   72         void    (*sc_disable) __P((struct mb86950_softc *));
   73 
   74         int     (*sc_mediachange) __P((struct mb86950_softc *));
   75         void    (*sc_mediastatus) __P((struct mb86950_softc *,
   76                     struct ifmediareq *));
   77 
   78 };
   79 
   80 /* Size (in bytes) of a "packet length" word in transmission buffer.  */
   81 #define ESTAR_TXLEN_SIZE 2
   82 
   83 #define GOOD_PKT 0x20
   84 
   85 void    mb86950_attach  __P((struct mb86950_softc *, u_int8_t *));
   86 void    mb86950_config  __P((struct mb86950_softc *, int *, int, int));
   87 int     mb86950_intr    __P((void *));
   88 int     mb86950_enable  __P((struct mb86950_softc *));
   89 void    mb86950_disable __P((struct mb86950_softc *));
   90 int     mb86950_activate __P((struct device *, enum devact));
   91 int     mb86950_detach  __P((struct mb86950_softc *));

Cache object: 775984c9a703ba106f2a29a9a52cf5d5


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.