Home | History | Annotate | Line # | Download | only in pcmcia
if_xivar.h revision 1.7
      1 /*	$NetBSD: if_xivar.h,v 1.7 2011/11/19 22:51:24 tls Exp $	*/
      2 
      3 /*
      4  * Copyright (c) 2004 Charles M. Hannum.  All rights reserved.
      5  *
      6  * Redistribution and use in source and binary forms, with or without
      7  * modification, are permitted provided that the following conditions
      8  * are met:
      9  * 1. Redistributions of source code must retain the above copyright
     10  *    notice, this list of conditions and the following disclaimer.
     11  * 2. Redistributions in binary form must reproduce the above copyright
     12  *    notice, this list of conditions and the following disclaimer in the
     13  *    documentation and/or other materials provided with the distribution.
     14  * 3. All advertising materials mentioning features or use of this software
     15  *    must display the following acknowledgement:
     16  *      This product includes software developed by Charles M. Hannum.
     17  * 4. The name of the author may not be used to endorse or promote products
     18  *    derived from this software without specific prior written permission.
     19  */
     20 
     21 #include "rnd.h"
     22 
     23 #if NRND > 0
     24 #include <sys/rnd.h>
     25 #endif
     26 
     27 struct xi_softc {
     28 	device_t sc_dev;			/* Generic device info */
     29 	struct ethercom sc_ethercom;		/* Ethernet common part */
     30 
     31 	struct mii_data sc_mii;			/* MII media information */
     32 
     33 	bus_space_tag_t sc_bst;			/* Bus cookie */
     34 	bus_space_handle_t sc_bsh;		/* Bus I/O handle */
     35 
     36         /* Power management hooks and state. */
     37 	int	(*sc_enable)(struct xi_softc *);
     38 	void	(*sc_disable)(struct xi_softc *);
     39 	int	sc_enabled;
     40 
     41 	int		sc_chipset;		/* Chipset type */
     42 #define	XI_CHIPSET_SCIPPER	0
     43 #define	XI_CHIPSET_MOHAWK	1
     44 #define	XI_CHIPSET_DINGO	2
     45 	u_int8_t	sc_rev;			/* Chip revision */
     46 
     47 #if NRND > 0
     48 	krndsource_t	sc_rnd_source;
     49 #endif
     50 };
     51 
     52 void	xi_attach(struct xi_softc *, u_int8_t *);
     53 int	xi_detach(device_t, int);
     54 int	xi_activate(device_t, enum devact);
     55 int	xi_intr(void *);
     56