asmcvar.h (177977) | asmcvar.h (177979) |
---|---|
1/*- 2 * Copyright (c) 2007, 2008 Rui Paulo <rpaulo@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 19 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 20 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 22 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 23 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 24 * POSSIBILITY OF SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2007, 2008 Rui Paulo <rpaulo@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 19 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 20 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 22 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 23 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 24 * POSSIBILITY OF SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/asmc/asmcvar.h 177977 2008-04-07 12:09:59Z rpaulo $ | 26 * $FreeBSD: head/sys/dev/asmc/asmcvar.h 177979 2008-04-07 12:58:43Z rpaulo $ |
27 * 28 */ 29 30#define ASMC_MAXFANS 2 31 32struct asmc_softc { 33 device_t sc_dev; 34 struct mtx sc_mtx; --- 52 unchanged lines hidden (view full) --- 87#define ASMC_KEY_FANMAXSPEED "F%dMx" /* RO; 2 bytes */ 88#define ASMC_KEY_FANSAFESPEED "F%dSf" /* RO; 2 bytes */ 89#define ASMC_KEY_FANTARGETSPEED "F%dTg" /* RW; 2 bytes */ 90 91/* 92 * Sudden Motion Sensor (SMS). 93 */ 94#define ASMC_SMS_INIT1 0xe0 | 27 * 28 */ 29 30#define ASMC_MAXFANS 2 31 32struct asmc_softc { 33 device_t sc_dev; 34 struct mtx sc_mtx; --- 52 unchanged lines hidden (view full) --- 87#define ASMC_KEY_FANMAXSPEED "F%dMx" /* RO; 2 bytes */ 88#define ASMC_KEY_FANSAFESPEED "F%dSf" /* RO; 2 bytes */ 89#define ASMC_KEY_FANTARGETSPEED "F%dTg" /* RW; 2 bytes */ 90 91/* 92 * Sudden Motion Sensor (SMS). 93 */ 94#define ASMC_SMS_INIT1 0xe0 |
95#define ASMC_SMS_INIT2 0x00 | 95#define ASMC_SMS_INIT2 0xf8 |
96#define ASMC_KEY_SMS "MOCN" /* RW; 2 bytes */ 97#define ASMC_KEY_SMS_X "MO_X" /* RO; 2 bytes */ 98#define ASMC_KEY_SMS_Y "MO_Y" /* RO; 2 bytes */ 99#define ASMC_KEY_SMS_Z "MO_Z" /* RO; 2 bytes */ 100#define ASMC_KEY_SMS_LOW "MOLT" /* RW; 2 bytes */ 101#define ASMC_KEY_SMS_HIGH "MOHT" /* RW; 2 bytes */ 102#define ASMC_KEY_SMS_LOW_INT "MOLD" /* RW; 1 byte */ 103#define ASMC_KEY_SMS_HIGH_INT "MOHD" /* RW; 1 byte */ --- 55 unchanged lines hidden --- | 96#define ASMC_KEY_SMS "MOCN" /* RW; 2 bytes */ 97#define ASMC_KEY_SMS_X "MO_X" /* RO; 2 bytes */ 98#define ASMC_KEY_SMS_Y "MO_Y" /* RO; 2 bytes */ 99#define ASMC_KEY_SMS_Z "MO_Z" /* RO; 2 bytes */ 100#define ASMC_KEY_SMS_LOW "MOLT" /* RW; 2 bytes */ 101#define ASMC_KEY_SMS_HIGH "MOHT" /* RW; 2 bytes */ 102#define ASMC_KEY_SMS_LOW_INT "MOLD" /* RW; 1 byte */ 103#define ASMC_KEY_SMS_HIGH_INT "MOHD" /* RW; 1 byte */ --- 55 unchanged lines hidden --- |