Module Name: src
Committed By: pgoyette
Date: Mon Jun 27 07:37:54 UTC 2016
Modified Files:
src/sys/dev/ic: spicvar.h
Log Message:
Add license, copied from the companion file dev/ic/spic.c
Addresses PR kern/25173 (the $NetBSD$ had previously been added in
rev 1.7 by dyoung)
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/ic/spicvar.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ic/spicvar.h
diff -u src/sys/dev/ic/spicvar.h:1.7 src/sys/dev/ic/spicvar.h:1.8
--- src/sys/dev/ic/spicvar.h:1.7 Wed Feb 24 22:37:58 2010
+++ src/sys/dev/ic/spicvar.h Mon Jun 27 07:37:54 2016
@@ -1,5 +1,51 @@
-/* $NetBSD: spicvar.h,v 1.7 2010/02/24 22:37:58 dyoung Exp $ */
+/* $NetBSD: spicvar.h,v 1.8 2016/06/27 07:37:54 pgoyette Exp $ */
+/*
+ * Copyright (c) 2002 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Lennart Augustsson ([email protected]) at
+ * Carlstedt Research & Technology.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
+ * The SPIC is used on some Sony Vaios to handle the jog dial and other
+ * peripherals.
+ * The protocol used by the SPIC seems to vary wildly among the different
+ * models, and I've found no documentation.
+ * This file handles the jog dial on the SRX77 model, and perhaps nothing
+ * else.
+ *
+ * The general way of talking to the SPIC was gleaned from the Linux and
+ * FreeBSD drivers. The hex numbers were taken from these drivers (they
+ * come from reverese engineering.)
+ *
+ * TODO:
+ * Make it handle more models.
+ * Figure out why the interrupt mode doesn't work.
+ */
#include <dev/sysmon/sysmonvar.h>
struct spic_softc {