Commit Graph

25459 Commits

Author SHA1 Message Date
rjs
4cd376c68b Make it compile. Change a commented out printf() to aprint_error_dev(). 2009-06-18 08:40:26 +00:00
cegger
77578bbc3a make this build w/o SIISATA_DEBUG 2009-06-17 19:12:48 +00:00
tsutsui
a36955c23e Unwrap not so long lines. 2009-06-17 15:43:16 +00:00
tsutsui
a86f73dc93 - no need to use device_parent() because device_t parent is passed
via config_attach(9)
- use device_is_a() rather than strcmp() for readability
2009-06-17 15:42:00 +00:00
jakllsch
f38e8286ac A few changes for siisata(4):
- Support detachment.  From KIYOHARA Takashi.
 - Add PCI detachment functionality (albeit not very interesting when
   the bus can not yet be rescanned).
 - Rework interrupt handlers to reduce near-duplicate code.
   Borrowed from ahcisata(4).
 - Attempt to make polled I/O work. Untested.
 - Fix formatting of some messages.
 - For always-polled commands, disable interrupt
   at slot level rather than port level.
 - Instead of busy-waiting indefinitely for completion of some commands
   move on after 31 seconds. Use cv_timedwait(9) instead of DELAY(9).
 - Use abstracted SATA FIS code.
 - Enable use of disks that don't respond with the standard signature.
2009-06-17 04:37:57 +00:00
jakllsch
5ea7c61bc2 Use abstracted FIS code for ahcisata(4). Have the FIS code pre-zero the FIS. 2009-06-17 03:55:04 +00:00
jakllsch
e5e3060059 ahcisata(4) and siisata(4) use similar SATA FIS functions, share them. 2009-06-17 03:07:51 +00:00
dyoung
7fdb86195d Use device_t instead of device_ptr_t. Stop using USB_MATCH() and
USB_ATTACH().
2009-06-16 19:42:44 +00:00
cegger
7ed6826c06 Apply hw workaround required for all SB600 revisions and SB700 revisions
A12 and A13 to avoid USB subsystem hang symptom. The USB subsystem hang
symptom is observed when the system has multiple USB devices connected to it
or one USB device is often re-connected. In some cases a USB hub may be
required to observe this symptom.

This patch works around the problem by correcting the internal register setting
that will help by changing the behavior of the internal logic to avoid the
USB subsystem hang issue. The change in the behavior of the logic does not
impact the normal operation of the USB subsystem.

This fix has been discussed, developped, reviewed, polished up
and tested on current-users by several people. Thread starts at:
http://mail-index.netbsd.org/current-users/2009/05/17/msg009460.html
2009-06-15 09:18:45 +00:00
pgoyette
c1af07659e Update {get,set}_limits() routines. 2009-06-14 19:44:46 +00:00
pgoyette
45f4717820 Ooops - {get,set}_limits() need to be sensor-specific. Pass an extra
argument to them to identify the individual sensor being processed.
2009-06-14 19:43:12 +00:00
cegger
051c4248a9 use __arraycount 2009-06-14 06:24:14 +00:00
pgoyette
3441b533fb No need to set flag=I2C_F_POLL when releasing the bus. Pointed out
in private Email from njoly@
2009-06-13 20:27:19 +00:00
tonnerre
8faae88204 Add support for Swiss german kezboard to wskbd.
Contributed by Marc Balmer.
2009-06-13 20:21:56 +00:00
pgoyette
5fb0a3a4d7 Update sdtemp driver to use sysmon_envsys(9) for setting temp sensor
limits.  Remove sysctl(9) interface to the limit registers since it's
no longer needed.
2009-06-13 19:02:33 +00:00
pgoyette
c235777756 Add capability to send sensor limit values to the driver so they can
be programmed into device registers.  This way we can let the hardware
help us out instead of having to always compare the value against each
limit.  (Driver updates for some sensors to take advantage of this
capability will be forthcoming.)
2009-06-13 16:08:25 +00:00
rjs
dc974f0b47 Regen. 2009-06-12 23:05:34 +00:00
rjs
416c60b3b1 Add some more Marvell devices. 2009-06-12 23:00:24 +00:00
cegger
acf99ccda1 use __arraycount(). Same object code generated. 2009-06-12 08:33:41 +00:00
cegger
eb7545174c regen. 2009-06-11 12:43:13 +00:00
cegger
db97db6aee add ADP2, Marvell and Triones devices.
Taken from mvsata diff from Kiyohara Takashi, resolved apply conflicts.
2009-06-11 12:42:31 +00:00
cegger
535480ccf0 Attach Marvel 88SE6121 SATA II controller on ahci.
W/o this, it attaches on pciide.
2009-06-11 11:02:11 +00:00
pooka
1e115afaf0 Attempt bailout if config_attach_pseudo() fails. Otherwise, a few
moments later, we'll take a fatal plunge because sc_dev is null.
2009-06-10 14:17:13 +00:00
tsutsui
95b2850b42 Split device_t/softc.
Tested on:
emuxki0 at pci2 dev 7 function 0: Creative Labs SBLive! EMU 10000
(audio multimedia, revision 0x05)
2009-06-09 11:01:18 +00:00
jakllsch
5aaada1bec Add atap_max_lba member to ataparams for LBA48 Maximum Address. From OpenBSD.
While here, renumber some __reserved member names to be sequential.
Also, add a member for the World Wide Name.

Use atap_max_lba in wd.c instead of offsets into a __reserved member.
2009-06-08 15:09:35 +00:00
pgoyette
260b6fd907 Correct typo in last so we can #undef the correct macro. 2009-06-08 13:06:33 +00:00
pgoyette
f7ad703892 General clean-up and some restructuring of event handling. This is a
precursor to letting sensor drivers actually exchange limits/thresholds
with user-land.
2009-06-08 00:55:35 +00:00
cegger
a4c2d5ee50 typo in comment: autconfiguration -> autoconfiguration 2009-06-06 12:56:43 +00:00
haad
ea2ba1c77b Fix my previous commit. 2009-06-06 08:10:06 +00:00
haad
f5b48500f1 Add support for DIOCGDISKINFO to disk like device drivers. Change
partutil.c::getdiskinfo to use it to get disk geometry info.
Use DIOCGWEDGEINFO ioctl to get information about partition size, if disk
driver doesn't support it use old DIOCGDINFO. This patch adds support for
wedge like devices(lvm logical volumes, ZFS zvol partitions) to newfs and
other tools.

No objections on tech-userlevel@.
2009-06-05 21:52:31 +00:00
haad
62e994ce96 Parse dm param string in libdevmapper and not in a dm target init function.
Create proplib param dictionary entry in libdevmapper and pass it to dm in
dm_ioctl dict.
Param target is then passed to target init function, where is parse. I like
this aproach much better than passing char **argv and trusting to user input.

I have bumped minor lib/driver version.

XXX. Add more sanity checks in kernel.
2009-06-05 19:56:40 +00:00
haad
7147ed320b Add work in support for compiling ccd and cgd drivers as a modules. I forgot
to committ when I have written device module autoloading stuff.
2009-06-05 19:21:02 +00:00
hubertf
1aba70bb8a From the specs: address 0xff gives the die revision 2009-06-05 12:42:43 +00:00
pgoyette
7c25ce0d52 Explicitly set sensor's units to ENVSYS_STEMP rather than having
it work only because ENVSYS_STEMP is #defined to 0
2009-06-03 22:34:18 +00:00
macallan
f48726983f make this compile again without tctrl 2009-06-03 16:25:22 +00:00
pgoyette
677e91afbc Don't allocate the private list-threading structure unless we're going
to use it.  Otherwise we end up leaking little bits of memory for each
sensor that is not monitored at time of initial registration.
2009-06-03 11:43:15 +00:00
pgoyette
5a84f3060e Since we no longer have individual events for each sensor value limit,
we don't need individual flag bits.  Clean up extra bit definitions.
Bump kernel version - welcome to 5.99.13
2009-06-01 20:08:44 +00:00
he
6425d6dcfd Don't include <machine/mtpr.h> anymore since it has been removed
(at least from the amiga port) and appears to no longer be required.
2009-05-31 14:11:17 +00:00
tsutsui
a6363f7d5a Two fixes for RX hwcsum on DESCV2 chips:
* On checking TCPv4/UDPv4 RX checksum on DESCV2 chips, also check
   RE_RDESC_VLANCTL_IPV4 bit because those DESCV2 chips may also recognize
   IPv6 packets and set RE_PROTOID_TCPIP or RE_PROTOID_UDPIP bits for
   TCPv6/UDPv6 packets.  This may fix PR kern/40605.
 * According to Realtek's Linux driver, DESCV2 chips don't set RE_PROTOID_IP
   for non-TCP/UDP IP packets (set only RE_RDESC_VLANCTL_IPV[46]) so
   remove PROTOID check for IPv4 RX cheksum on DESCV2 chips.
2009-05-31 05:10:47 +00:00
nonaka
84b5216c59 It is avoided that the error occurs when the card attaches it,
when wedge is supported.
2009-05-29 22:27:40 +00:00
rjs
850a493aca Pass correct argument to q_to_b(). 2009-05-29 20:10:39 +00:00
plunky
78fb2cc482 add missing NetBSD RCS ID tags 2009-05-29 18:49:21 +00:00
skrll
d73b19cf48 Regen. 2009-05-29 06:13:56 +00:00
skrll
2026f95019 Add a bunch of HP stuff. From OpenBSD. 2009-05-29 06:12:31 +00:00
darran
7dadeaa0c7 Add vlan support and hardware offload capabilities to agr.
These changes allow vlans to be layered above agr, with the attach
and detach propogated to the member ports in the aggregation.
Note the agr interface must be up before the vlan is attached.

Adds SIOCINITIFADDR support to the wm driver for setting the AF_LINK
address, necessary for agr to be able to set the mac addresses of each
port to the agr address (i.e. so it can receive all intended traffic
at the hardware level).

Adds support for disabling the LACP protocol by setting LINK1 on the agr
interface (e.g. ifconfig agr0 link1).

In consultation with tls@.
2009-05-29 04:57:04 +00:00
rjs
f4443cd34c Put back CVS header. 2009-05-27 23:01:07 +00:00
macallan
b538f79eb0 use pmf, while there do some cleanup, fix typos etc. 2009-05-27 15:13:22 +00:00
macallan
5052b0a047 finally commit a lot of stuff that's been sitting in my source tree for
several ages:
- convert to device_t
- add support for programming colour depth and such, use it to reset the
  console to something usable when we enter ddb or exit X etc.
- basic power management
TODO:
- convert to PMF
- get rid of rconsole code so we don't need to map the framebuffer
- power down the whole DAC when not in use
2009-05-27 00:35:34 +00:00
macallan
991219d617 add a bunch of register definitions 2009-05-27 00:32:10 +00:00
dyoung
588bd8a952 Wrap some long lines. No functional change intended. 2009-05-26 23:57:34 +00:00