Commit Graph

5762 Commits

Author SHA1 Message Date
riastradh
0396c57641 First draft of drivers for the Apple System Management Controller.
Device interface derived by reading the Linux driver source code and
<http:///www.parhelia.ch/blog/statics/k3_keys.html> as of 2012-12-05.

Includes support for attaching fan and temperature sensors to sysmon.
No accelerometer yet.

Compile-tested only, based on some run-testing of experiments from
userland.  Module attachment is not quite finished, so it won't work
yet.
2014-04-01 17:47:36 +00:00
christos
8ce57b0c72 cleanup debugging printfs to avoid overflow 2014-03-27 18:28:26 +00:00
christos
268d7559ce kill sprintf 2014-03-25 16:19:13 +00:00
christos
74d943f346 fix unused/uninitialized 2014-03-25 15:51:58 +00:00
christos
2765468799 remove unused 2014-03-23 02:44:19 +00:00
christos
e160a56ffc remove unused 2014-03-23 02:44:00 +00:00
nonaka
c3077021ad Add a driver for Realtek RTS5209/RTS5229 Card Reader.
Ported from OpenBSD.
2014-03-19 15:26:41 +00:00
riastradh
6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
dholland
a68f9396b6 Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.
2014-03-16 05:20:22 +00:00
skrll
0b4714ea41 Fix non-DIAGNOSTIC build 2014-03-07 13:19:26 +00:00
pooka
4f6fb3bf35 Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.
2014-02-25 18:30:08 +00:00
jmcneill
247be8a184 - Only enable AHCI mode if it is not already enabled.
- Add support for capturing initial CAP/CAP2/PI regs before reset (and
  restoring them afterwords)
- Add optional callbacks for channel_start / channel_stop.
2014-02-24 12:19:05 +00:00
skrll
6d3ceb1d61 Rename NetBSD/hp700 to NetBSD/hppa.
Unfortunately our VCS isn't very helpful here.
2014-02-24 07:23:38 +00:00
christos
dabffed6fd use aprint. 2014-02-23 15:29:11 +00:00
kiyohara
6b4fc78c12 More delay() for some drives. 2014-02-17 13:41:20 +00:00
skrll
2d1abfdfec More alignment spellos 2014-01-25 10:14:29 +00:00
matt
7050a06bc8 swap16 -> bswap16 swap32 -> bswap32 2014-01-22 17:29:29 +00:00
christos
1d09820de1 fix unused variable warnings 2014-01-22 15:21:08 +00:00
jdc
27e697cae2 Remove the check for (cmdlen > 0) when writing. When i2cscan sends a
quick_write, the command length is 0, so we were previously returning
success for every address in this case.
2014-01-20 22:02:32 +00:00
jakllsch
056e4dba49 Do not take data from the controller in interrupt handler if we are polling. 2014-01-11 20:17:56 +00:00
macallan
4a4332fa68 __unuse the right function
( note to self - don't commit half asleep )
2014-01-04 16:37:05 +00:00
macallan
e1cc895ece do as joerg requested and mark an unused function __unused 2014-01-03 15:57:12 +00:00
matt
7532101325 Now that cngetc supports -1 as a return value from the cn_getc routine,
let cngetc loop until a character is available so it can call the critpoll
hooks.
2013-12-22 18:20:46 +00:00
mrg
f67d132c4b avoid unused variables outside of diag code. 2013-12-16 15:49:25 +00:00
skrll
3f73102cea Use #if defined in previous. 2013-12-16 12:08:14 +00:00
htodd
3ebdd249d0 Fix build. 2013-12-16 01:51:19 +00:00
mbalmer
3f37aa7ac8 lcr is only used when COM_16650 is defined; unbreak the build 2013-12-15 15:55:39 +00:00
skrll
0bc393adf1 Only attempt to set 64byte fifo for 16750 when COM_16750 is defined.
Hi kiyohara.

PR/48359 NetBSD/cobalt 6.99.25 GENERIC kernel freeze at initializing com0
2013-12-15 11:06:57 +00:00
jakllsch
2b8a2516f8 Put previous (RTK_HWREV_8168F) in numeric sort order like its neighbors. 2013-12-13 20:52:48 +00:00
wiz
d860f590d4 Fix typo ("then" instead of "than") 2013-12-09 09:35:16 +00:00
rkujawa
ad1d8e7c8b Fix RTC going backwards a year when saving time, because dt_mon != dt_year.
Patch by Roc Valles.
2013-12-04 07:48:59 +00:00
riz
1b624a35bb Put back and properly mark a variable which is used iff ATW_DEBUG. 2013-11-22 00:01:09 +00:00
nisimura
bc1febd34a fix unused variable warning 2013-11-15 14:52:11 +00:00
christos
8b0b2b2c69 fix unused variable warnings 2013-11-08 03:12:17 +00:00
christos
eccd15917a mark variables __diagused 2013-11-04 16:54:56 +00:00
gson
549d91253b Turn the "esiop_intr: I shouldn't be there !" panic into a printf
followed by a return from the interrupt handler.  The condition is
triggered on some KVM virtual hosts, apparently harmlessly, and not
panicing makes it possible to boot a NetBSD GENERIC kernel on those
hosts.  Also make the same change to siop to minimize divergence
between siop and esiop.  Fixes PR kern/48277.
2013-11-02 13:59:14 +00:00
gson
69b89ed80e Fix incorrect function names in panic message strings. 2013-10-30 08:40:32 +00:00
martin
6baf7d3b60 Remove unused stuff 2013-10-25 21:29:28 +00:00
martin
f8504bab3a Fix a few copy&pastos in an error path 2013-10-24 13:15:12 +00:00
skrll
5abc6aa5b7 Avoid "declaration of 'delay' shadows a global declaration" by renaming
the local variable.
2013-10-22 13:04:25 +00:00
christos
0d211931ed fix unused variable warnings 2013-10-20 21:13:15 +00:00
christos
b787afbfb6 - remove unused variables
- move variables inside ifdef sections
- ifdef notdef unused code
- use __USE for debugging variables
2013-10-17 21:24:24 +00:00
riz
6ec333eb37 Catch up to recent changes in config_pending_{incr,decr}(). 2013-10-13 06:55:34 +00:00
christos
977d05954e make the driver able to send scsi commands; now the disks are found.
it was converted incorrectly to device_t.
2013-10-13 04:24:21 +00:00
christos
6b629de220 - add 64 bit fifo support
- handle fibrilation better
2013-10-12 16:52:21 +00:00
macallan
da28d6ec38 support WSDISPLAYIO_GET_FBINFO 2013-10-09 17:18:23 +00:00
joerg
6542340a9b Move an assert to the point where the referenced variable is initialized. 2013-10-04 21:10:18 +00:00
kiyohara
b1b7c6a2ff Revirt 'Move the Marvell extension to com_mv.c' at Sun Sep 1 04:51:24 UTC 2013.
build test only.
2013-10-03 13:23:03 +00:00
skrll
7ca9d70d59 Remove incorrect KASSERT. 2013-10-03 13:19:24 +00:00
skrll
388c8fd109 LOCKDEBUG doesn't imply DIAGNOSTIC. duh. 2013-10-02 23:27:50 +00:00