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/ugvar.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: ugvar.h,v 1.6 2020/06/24 19:24:44 jdolecek Exp $ */
    2 
    3 /*
    4  * Copyright (c) 2007 Mihai Chelaru <kefren@netbsd.ro>
    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. The name of the author may not be used to endorse or promote products
   13  *    derived from this software without specific prior written permission.
   14  *
   15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
   16  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   17  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   18  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
   19  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
   20  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
   21  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
   22  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   23  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   24  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   25  * SUCH DAMAGE.
   26  */
   27 
   28 #ifndef _UGVAR_H_
   29 #define _UGVAR_H_
   30 
   31 struct ug_softc {
   32         bus_space_tag_t sc_iot;
   33         bus_space_handle_t sc_ioh;
   34 
   35         struct sysmon_envsys *sc_sme;
   36         envsys_data_t sc_sensor[UG_MAX_SENSORS];
   37         uint8_t version;
   38         const void *mbsens;
   39 };
   40 
   41 struct ug2_sensor_info {
   42         const char *name;
   43         int port;
   44         int type;
   45         int multiplier;
   46         int divisor;
   47         int offset;
   48 };
   49 
   50 struct ug2_motherboard_info {
   51         uint16_t id;
   52         const char *name;
   53         struct ug2_sensor_info sensors[UG2_MAX_NO_SENSORS + 1];
   54 };
   55 
   56 /* driver internal functions */
   57 int ug_reset(struct ug_softc *);
   58 uint8_t ug_read(struct ug_softc *, unsigned short);
   59 int ug_waitfor(struct ug_softc *, uint16_t, uint8_t);
   60 void ug_setup_sensors(struct ug_softc *);
   61 void ug2_attach(device_t);
   62 int ug2_sync(bus_space_tag_t, bus_space_handle_t);
   63 int ug2_read(struct ug_softc *, uint8_t, uint8_t, uint8_t, uint8_t*);
   64 
   65 /* Envsys */
   66 void ug_refresh(struct sysmon_envsys *, envsys_data_t *);
   67 void ug2_refresh(struct sysmon_envsys *, envsys_data_t *);
   68 
   69 #endif          /* _UGVAR_H_ */

Cache object: c2635de34d98c3a14816a87f54dfd173


[ 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.