Commit Graph

19386 Commits

Author SHA1 Message Date
jdolecek 16ceb2f222 put back joystick enabling code, lost in Audigy support merge 2005-10-11 19:36:48 +00:00
drochner dbbdf74175 -kill gba_name in attach arg
-use constants from locators.h
2005-10-11 16:01:03 +00:00
drochner 69f432c06d -put gpio stuff inside #if NGPIO > 0
-kill gba_name in attach arg, specify interface attribute
2005-10-11 15:58:37 +00:00
cube 0e6cb1fa09 Add __KERNEL_RCSID. 2005-10-11 09:56:51 +00:00
sekiya 2dac3b071c Match ELECOM UC-SGT0. 2005-10-09 02:16:35 +00:00
skrll 69c3b1813e Use the new scan command for monitor mode as well. 2005-10-08 06:19:46 +00:00
macallan 33f4e6b2f0 Fixes the following bug:
Framebuffer drivers use their own minor device number to find their device entry
in fbdriver methods ( like cgsix uses cgsix_cd[minor] ) but fb passed the fb
device's unit number which works only as long as all registered fb devices use
the same underlying driver. With different fb drivers, like a cgsix and an ffb, both will be (native) unit number 0 so with the old code /dev/fb1 would be
unusable.
2005-10-08 00:46:44 +00:00
elad 2de72bfe34 Various fixes from blymn@ and myself.
Also, put genfs changes under #if 0, and don't do per-page fingerprints
until this is properly discussed, as requested by yamt@.
2005-10-07 18:07:46 +00:00
jdc 0dbca227cf Change memoff to bus_size_t (like all other PCMCIA devices).
Now compiles on sparc too.
2005-10-06 20:54:31 +00:00
elad 8fc0d7a9c3 Introduce per-page fingerprints in Veriexec.
This closes a hole pointed out by Thor Lancelot Simon on tech-kern ~3
years ago.

The problem was with running binaries from remote storage, where our
kernel (and Veriexec) has no control over any changes to files.

An attacker could, after the fingerprint has been verified and
program loaded to memory, inject malicious code into the backing
store on the remote storage, followed by a forced flush, causing
a page-in of the malicious data from backing store, bypassing
integrity checks.

Initial implementation by Brett Lymn.
2005-10-05 13:48:48 +00:00
jonathan 0f632be919 Regen with PCI ids for Intel pro/1000 PT pci-e gigabit ethernet. 2005-10-05 00:46:00 +00:00
jonathan 14da49c8be Add PCI ids for Intel Pro/1000 PT PCI-Express gigabit ethernet controllers:
82571EB 2-port, 82572EI single-port, both in copper, fibre, and SERDES versions,
and 82573 embedded chip.
2005-10-05 00:43:58 +00:00
christos a9c3ad6f5c PR/31455: Robert Elz: ex (905[BC]) cards can hang in -current kernels
- fix bus_space_read_1 -> bus_space_read_2 since revision 1.27 changed
  the bit defines to assume 2 byte reads.
- Increment oerrors in case of collisions
- Clamp success counter to 100, instead of letting rotate freely.
2005-10-04 17:37:26 +00:00
macallan 91cf1be5bf Build mach64_get_mode only on SPARC and PowerPC to shut up a compiler warning. 2005-10-03 11:22:06 +00:00
macallan 22da510a75 Cleanup, remove some duplicate code, behave better with more than one instance present. ( for machfb.c 1.34+ ) 2005-10-03 10:26:24 +00:00
jdolecek 3d31948771 VGE_FIXUP_RX is not needed on amd64, disable it for all non-strict
alignment architectures

fix ETHER_ALIGN to 2 (same value as on FreeBSD) - appears VGE_FIXUP_RX
code cuts part of packet otherwise; also add comment about it's purpose

PR: 31323 by Murata Shuuichirou
2005-10-01 22:30:09 +00:00
macallan d15fb24907 Cleanup, remove some duplicate code, behave better with more than one instance
present.
2005-10-01 19:01:01 +00:00
macallan 8240aaf01d revert unnecessary geometry changes, add missing {} so turning off the
cursor when leaving emulation mode and getting it back when re-entering really
works now.
2005-10-01 01:10:50 +00:00
uwe e97ebbc6c8 Minor KNF police. 2005-09-30 23:16:26 +00:00
macallan 8d7ddb1d4e - turn off the hardware cursor when leaving WSDISPLAYIO_MODE_EMUL
- only lock the hardware cursor when not in WSDISPLAYIO_MODE_EMUL
- allow cursor position between 0 and (screen width + max. cursor width - 1),
  same for height so it can move partially offscreen in all directions
2005-09-30 22:28:19 +00:00
skrll 0063b53d7b Improve interrupt handling:
- don't disable/enable as we're already at splnet()
	- ack the interrupts early

Fixes my "lost interrupt" problem.

Thanks to dyoung and scw for the suggestions.
2005-09-29 19:57:36 +00:00
skrll c9b506e88e Fix the endianness of the scan command.
All the channels get the right scan type/dwelltime now.
2005-09-29 19:45:57 +00:00
kent 50e11da459 * shorten *_init_dacgroup() functions
* add a hook point for widget initialization and implement for ALC882
2005-09-29 04:14:03 +00:00
martin 39f4abb7a9 Remove spurious debug output accidently commited in revision 1.44. 2005-09-28 21:36:23 +00:00
nathanw ff56508626 Set sc->sc_cfdata.cf_fstate to FSTATE_STAR rather than FSTATE_NOTFOUND
so that config_detach() doesn't panic.

(XXX this points to some disagreement between config_attach_pseudo()
and config_detach() over the correct role of pseudo-device cfdata)
2005-09-28 18:25:19 +00:00
kent 4443bcd69a add codec-specific code for ALC260, ALC880, ALC882,
and STAC9221 to detect DAC/ADC cominations.
2005-09-28 14:26:19 +00:00
kent 6e455dd565 split azalia.c into three files.
* azalia_codec.c: code for specific codecs
  * azalia.c: other code
  * azalia.h: common definitions
2005-09-28 13:06:49 +00:00
macallan e979e1f3de added a few missing device names 2005-09-27 14:47:41 +00:00
simonb e13e6f0180 Add SigmaTel STAC9752/53 codec ID. 2005-09-27 05:24:40 +00:00
jmcneill b8a32e9d53 Attach to gpiobus. From OpenBSD. 2005-09-27 02:56:27 +00:00
jmcneill bec79ef231 Import general purpose I/O framework from OpenBSD. 2005-09-27 02:34:02 +00:00
kent 70c1989a17 * azalia_attach_intr()
ignore errors of codec initializations if at least one
codec is initialized successfully

* azalia_alloc_dmamem()
  fail if the HDA controller does not support 64 bit addressing
and buf_dmamap_* allocate a 64 bit address.

Pointed out by Brett Lymn
2005-09-26 17:30:04 +00:00
oster 96ba5552fa Re-work the handling of incoming I/O in RAIDframe:
- introduce rf_buf_queue_check() which checks to see if there
is work to do in the incoming buffer queue
- rf_RaidIOThread() is now responsible for calling raidstart(), and is
also now the only place that calls raidstart()
- raidstrategy() now just queues requests in buf_queue
and signals rf_RaidIOThread() that work has arrived

Hopefully addresses PR#30233
2005-09-25 19:47:17 +00:00
skrll a626c5afb2 Whitespace and change a comment slightly. 2005-09-25 15:29:37 +00:00
skrll 443f1937a0 Don't try to bus_dmamem_alloc everytime we want to load the firmware as
it can fail all too easily. Instead bus_dmamap_load the cached copy and
create the command blocks for the device to load it accordingly.

Thanks to scw and mrg for reviewing this.

Closes PR 29892 (I hope).
2005-09-25 15:18:21 +00:00
skrll 1d01574af3 Support hidden ESSID APs.
Use the newer scan command as this one doesn't crash the firmware when
scanning 802.11a channels.

Thanks to scw and blymn for testing.

Closes PR 31295.
2005-09-25 11:55:05 +00:00
skrll b453f6ca4f Resolve conflicts. 2005-09-25 06:49:54 +00:00
oster feaabee0c2 This disk_detach() should be pseudo_disk_detach(). 2005-09-24 22:51:55 +00:00
oster 5593466f1b Remove an RF_ASSERT that is just plain wrong. 2005-09-24 20:24:11 +00:00
peter 66d780db72 Remove the casts in the previous commit and use %zx.
Thanks to Simon Burge for pointing this out.
2005-09-24 17:00:20 +00:00
itohy dbe98ec46f Tweak to make sure the enum size is not affected
by -fshort-enums option.
2005-09-24 12:03:31 +00:00
itohy a2389cbd3b The ukyopon device doesn't notify the DCD (Data Carrier Detect) status.
Since the status is now used by ucom(4) driver for Carrier Detect,
and the CLOCAL flag has been required.

By this change, we assume DCD is always on.  The CLOCAL flag is not
required now.
2005-09-24 12:00:18 +00:00
itohy 33dbd0db13 Use ukyopon port type (UKYOPON_PORT_*) for "portno" locator of ucom(4) driver,
so that user can fix the ucom unit number by config file.

ex.	ucom0	at ukyopon? portno 1	# modem port
	ucom1	at ukyopon? portno 2	# data transfer port

The description of the locator was added to the manual page by someone,
but it has been useless until now. :)
2005-09-24 11:50:25 +00:00
peter 0d776139dc Add casts to make this compile when KLOADER_DEBUG is defined. 2005-09-24 11:27:04 +00:00
peter 84ba0cabfa Fix two typos. 2005-09-24 11:20:07 +00:00
itohy c74744e70f Remove duplicated "portno %d" from the attach message. 2005-09-23 14:15:30 +00:00
nathanw 5cdc4355d7 umass_scsipi_sense_cb(): don't set XS_STS_DONE in xs->xs_status;
scsipi_done() will do that.
2005-09-22 22:39:37 +00:00
gdt a73a22a4b2 Make arg of IFQ_SET_READY be &ifp->if_snd, to match all other drivers
and be compilable with altq enabled.  Reviewed by dyoung@
2005-09-22 16:15:20 +00:00
cube 4f5ce13e05 Third version of the DiskOnKey chip needs the same trick as the two others.
Combined with Nathan's previous commit, this allows the DiskOnKey 3 to
work on NetBSD!  Thanks to Marc Baudoin for lending the device.
2005-09-21 21:19:27 +00:00
nathanw 9787fefd1c usbd_setup_pipe(): Don't call usbd_clear_endpoint_stall(). It's not
necessary for normal devices, and it prevents some common (but
apparantly buggy) devices from working, including the Apple iPod (mini
and photo) and certain M-Systems DiskOnKey flash devices.

If (also buggy) devices resurface that need this when they are
attached, they can be addressed, ideally in each device's driver.
2005-09-21 20:17:22 +00:00