Commit Graph

2279 Commits

Author SHA1 Message Date
jakllsch ffb4d47223 The Fintek base address registers implement the bottom 3 bits as read/write,
but the address decoder in the chip ignores these three bits.  Do the same.
2011-07-31 18:23:46 +00:00
jmcneill 9f438526b6 modularize and recognize ASUS F8000 Super I/O chips 2011-07-31 17:53:26 +00:00
jmcneill 0d3a27d5dc modularize 2011-07-31 16:18:54 +00:00
jmcneill 60427626c4 add module support 2011-07-29 20:58:47 +00:00
jmcneill 17536f8e9e add module support 2011-07-15 20:56:26 +00:00
mrg 1ff8330243 fix sequence point errors. diff explains best:
-       sc->sc_playbuf = ++sc->sc_playbuf % sc->sc_nbufs;
+       sc->sc_playbuf = (sc->sc_playbuf + 1) % sc->sc_nbufs;
2011-07-02 13:14:46 +00:00
wiz 4cbd24b23f dependant -> dependent 2011-06-30 20:09:15 +00:00
pgoyette ac39d68c59 Initialize sensors states before registering. 2011-06-20 18:12:54 +00:00
tsutsui c22ffc3803 Split device_t/softc of i82586. No crash on TME emulating sun2. 2011-06-03 16:28:40 +00:00
tsutsui ff2f721f5c Split device_t/softc of all ad1848 variants properly. Compile test only.
Please check all attribute users in all files.* on device_t/softc split.

XXX: not sure if gus(4) needs device_t in ad1848_isa_softc
2011-06-02 14:12:24 +00:00
nonaka 26a17089a0 fix compile failure. 2011-06-02 12:51:52 +00:00
jakllsch c0d7afac87 Convert ltsleep() in atppc(4) to modern interfaces.
Reviewed by rmind@.
2011-05-26 02:29:23 +00:00
mrg 046a9cdb65 avoid mutex locking botch and introduce an unlocked version of
pcppi_bell_stop().  fixes a problem reported in private email.
2011-05-24 09:28:03 +00:00
dyoung b11777e520 #include <sys/bus.h>, not <machine/bus.h>. 2011-05-18 01:02:43 +00:00
mrg dad44dc109 convert a lockless + spltty() combo to a IPL_VM mutex and cv.
hopefully this will avoid the beep-didn't-stop problem i had recently
that i was able to fix by calling wakeup() on pcppi's softc from ddb.
2011-05-03 04:27:13 +00:00
plunky b0b433c20f use static inline for ec_readmem(), it is not referenced elsewhere
(avoids C99 vs GNU semantics for external inline functions)
2011-04-24 18:54:41 +00:00
kiyohara 5f8633bdc8 Fix hci_private data. slhci(4) is assuming, it is slhci_softc. not device_t. 2011-03-08 04:58:21 +00:00
jruoho ea9b26744b As suggested by Sverre Froyen in a follow-up to PR # 41698, change the
sensor names to real words (e.g. "temperature 1" instead of "TEMP_1").
No functional change; only consistent envstat(8) output with other sensors.
2011-02-16 10:08:05 +00:00
jmcneill 1785be53ab treat temperature readings of 0xff as invalid, as I'm somewhat confident
that my Thinkpad isn't idling at 255 degC.
2011-01-18 16:45:11 +00:00
jmcneill 7f772947f7 save a line of dmesg 2011-01-16 14:16:03 +00:00
jmcneill a5a55fa2c0 - catch up with OpenBSD driver, adding support for newer Thinkpad models
- add module hooks
2011-01-16 01:05:45 +00:00
uebayasi 8184d5dc03 Don't pull in the whole uvm(9) API to access only PAGE_SIZE and
some other constants.  These are provided by sys/param.h now.
2010-11-13 13:51:57 +00:00
uebayasi e9fb4f077e Include uvm/uvm_external.h to access UVM external API (uvm_km_*(9)). 2010-11-06 10:59:45 +00:00
jmcneill cecc6dab21 If the 'no-legacy-devices' property is present and true, skip device
enumeration.
2010-08-21 17:08:15 +00:00
jakllsch ad67ca3e3a Implement user-settable rfact in itesio.
Additionally, match on IT8721.
2010-08-13 19:28:26 +00:00
pgoyette aa30923a4e Keep condvar wmesg within 8-char limit 2010-08-11 11:32:58 +00:00
chs ef8ada5da8 move a debug printf to FD_DEBUG. 2010-08-08 18:24:34 +00:00
jakllsch 30faf1fe35 Cast bus_addr_t to void * via uintptr_t to avoid
'cast to pointer from integer of different size' warnings.
Unbreaks i386 ALL kernel.

Oh, I'm sure I mentioned this before:
THIS DRIVER SHOULD NOT BE DOING THIS!
2010-08-03 14:06:10 +00:00
jakllsch 5da0f05200 printf() size_t with 'z' format modifier in debug code. 2010-07-27 14:34:33 +00:00
jakllsch b4db231882 Allow aria(4) to compile with AUDIO_DEBUG on LP64. 2010-07-27 05:38:18 +00:00
jym da702eb93d Add PAE to ALL kernel, so that most paddr_t format string errors get caught
during compilation.

While here, fix the compilation for ALL.
2010-07-26 22:33:23 +00:00
pgoyette f9b5eaf40f Put the original NULL pmf handler establishment back where it started, so
as not to call it in some error paths.

Instead, if there is a watchdog present, deregister the NULL handler before
establishing the one for the watchdog.
2010-07-17 21:51:43 +00:00
pgoyette 50d895a7df If this itesio(4) has a watchdog, then set up a real suspend handler to
make sure we don't suspend when the wdog time is active.
2010-07-17 21:36:26 +00:00
tsutsui d6e42f548a Tidy up a comment. 2010-06-13 03:09:32 +00:00
jym 603ac9bd31 Cast the sum of iobase and iosize to long, not just iobase. Avoids size
warnings during build when bus_addr_t is 64 bits.
2010-05-23 23:50:37 +00:00
tsutsui 9cb526aa88 Split device_t/softc. Based on patch from cegger@.
ess_pnpbios.c and ess_ofisa.c fixes by me.

Tested on ess_isapnp.c, and no crash with ess_ofisa.c on shark.
2010-05-22 16:35:00 +00:00
jakllsch 59a03cddc2 This only needs one bus_space_tag_t.
While here, rename one of the bus_space_handle_ts
to be be descriptive of its function.

Fixes crash caused by uninitialized bus_space_tag_t
discovered by Paul Goyette.
2010-05-02 18:49:13 +00:00
dyoung ad6e139a80 Add default implementations for bus_space_is_equal(9),
bus_space_tag_create(9), and bus_space_tag_destroy(9).  Use
bus_space_is_equal(9) throughout the kernel to compare
bus_space_tag_t's.  Tested on i386 and on sparc64.
2010-04-19 18:24:26 +00:00
joerg 58e867556f Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf
check into the inline functions as well the fourth argument for
bpf_attach.
2010-04-05 07:19:28 +00:00
dyoung f52f7d91ef Do not use unitialized bus_space_tag_t's. Use the tag(s) from the
attachment arguments.
2010-03-24 01:13:30 +00:00
dyoung 8b0029011b isadma.c: #if 0 some diagnostic code that compares two bus_space_tag_t's.
pcdisplay.c: #if 0 some code that compares two bus_space_tag_t's
    in order to see if pcdisplay0 is console.  It does not seem to
    be helpful to compare the tags; maybe the author intended to
    compare some other bus property?

MI code should not compare an opaque type such as bus_space_tag_t!
2010-03-22 22:30:58 +00:00
dyoung f5423e5e40 Do not disestablish the interrupt handler inside of the interrupt
handler!  Stops a crash on the HP Pavilion N3270.

Cosmetic: sc->ih is a pointer, so set to NULL instead of 0.  Compare
with NULL instead of testing truth.
2010-03-22 22:25:26 +00:00
cnst 291f4cc576 support W83667HG (0xa5) in wbsio(4); its hw mon is already supported by lm(4) as W83627DHG (0xc1) 2010-03-19 02:17:41 +00:00
he 921b8ba089 Allow this driver to build for ofppc as well. 2010-03-16 12:53:17 +00:00
tsutsui 2253fb2fe8 Some KNF. 2010-03-13 15:46:09 +00:00
tsutsui 329daadadb - include "ioconf.h" for struct cfdriver we_cd
- remove unused macro
2010-03-13 15:42:09 +00:00
tsutsui 8f7c20ed4f Put several fixes to ne(4) driver for better 8 bit mode support,
especially on RTL8019AS which is also used for non-ISA local bus of
embedded controllers and some m68k machines like atari and x68k.

 * move RTL8019 probe and attach code from each bus attachment
   to MI ne2000_detect() and ne2000_attach()
 * change a method for backend and attachment to specify 8 bit mode
   to use a new sc->sc_quirk member, instead of sc->sc_dmawidth
 * handle more NE2000 8 bit mode specific settings, including
   bus_space(9) access width and available size of buffer memory
 * add a function to detect NE2000 8 bit mode
   (disabled by default, but enalbed by options NE2000_DETECT_8BIT
    to avoid possible regression on various ISA clones)
 * fix ipkdb attachment accordingly (untested)

Tested on two NE2000 ISA variants (RTL8019AS and another clone named UL0001)
in both 8 bit and 16 bit mode on i386. "Looks good" from nonaka@.

See my post on tech-kern for details:
http://mail-index.NetBSD.org/tech-kern/2010/02/26/msg007423.html
2010-03-03 13:39:57 +00:00
dyoung c1b390d493 A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.
2010-02-24 22:37:54 +00:00
cnst 51998ed2d7 New wbsio(4) driver for Winbond Super I/O attachment of lm(4) on any port.
http://mail-index.netbsd.org/tech-kern/2010/02/17/msg007338.html

Reviewed by <pgoyette>, <tech-kern>.
2010-02-21 05:16:29 +00:00
cegger 3b84dd90dd essattach: printf -> aprint_* 2010-01-23 17:22:04 +00:00