Commit Graph

20397 Commits

Author SHA1 Message Date
xtraeme 5ff5dfea17 Adapt to timecounters. 2006-06-08 05:00:25 +00:00
freza a88dd66a11 Advance queue indices properly instead of silently rewriting
sysmon_power_event_queue[0] all the time.

OK by thorpej@
2006-06-08 04:23:34 +00:00
kent 08c434e746 add 23 ICH8 devices.
http://download.intel.com/design/chipsets/specupdt/31305701.pdf

No regen follows because no one refers them.
2006-06-08 02:34:28 +00:00
rpaulo e84fae1d86 Add a fake includes target. 2006-06-08 00:21:54 +00:00
rpaulo 7145d9ddba Descend into microcode. 2006-06-08 00:12:50 +00:00
rpaulo 943d263332 Descend into ral. 2006-06-07 23:30:17 +00:00
kardel de4337ab21 merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
  time.tv_sec -> time_second
- struct timeval mono_time is gone
  mono_time.tv_sec -> time_uptime
- access to time via
	{get,}{micro,nano,bin}time()
	get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
  Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
  NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
2006-06-07 22:33:33 +00:00
rpaulo 95b0a57069 Definitions needed by subsequent Makefiles to install the firmware. 2006-06-07 19:54:04 +00:00
rpaulo a484b73c46 Refactor this and use bsd.files.mk instead. 2006-06-07 19:52:49 +00:00
rpaulo 6fe7f65c21 Define proginstall (empty) and afterinstall (to install the firmware). 2006-06-07 19:14:37 +00:00
rpaulo 9a7119856d License from Ralink. 2006-06-07 18:58:27 +00:00
smb a5b05fc8d6 Increase the size of UMODEMIBUFSIZE and UMODEMOBUFSIZE. These are the
USB input and output buffer sizes; the previous values were fine for
dialup modems, but seriously limited the speed of some high-speed
wireless devices that appear to the system as a umodem.
2006-06-07 18:03:00 +00:00
nakayama dc8650e97c Add void cast to functions whose return values are ignored. 2006-06-07 15:34:47 +00:00
nakayama abcd591292 Make it compile on sparc64. 2006-06-07 15:30:48 +00:00
kent 0b0ab7efe7 * move mixer functions from azalia.c to azalia_codec.c, and
rename them like azalia_mixer_foo() to generic_mixer_foo()

* enable codec-specific code to hook any mixer operations such
as creating mixer items, or special handling for a specific
item.

* provide a custom mixer table specific to ALC260
* provide a custom mixer table specific to Fujitsu LOOX
2006-06-07 15:23:59 +00:00
dogcow 938bded698 revert my earlier commit - the /ic/ stuff should go in src/sys/conf/files,
not here.
2006-06-07 08:05:53 +00:00
dogcow a48d248fbb ral_pci was missing the /ic/ files. 2006-06-07 03:39:43 +00:00
rpaulo 65369074fe regen 2006-06-06 21:01:04 +00:00
rpaulo 431dc1da44 Attachment framework for the rt2561.c and rt2661.c drivers.
From OpenBSD.
2006-06-06 21:00:41 +00:00
rpaulo 9fc70013c7 struct ifnet must be inside sc_ec. Fixes panics on detachment. 2006-06-06 20:48:27 +00:00
tron 6cfd8c69e5 Regen. 2006-06-06 08:54:27 +00:00
tron 132db79f9b Resolve name conflict between Sun Type 6 and Type 7 USB keyboard. 2006-06-06 08:53:58 +00:00
grant 88b1c2383e regen. 2006-06-06 06:21:29 +00:00
grant ca33211023 add Sun type 7 keyboard. 2006-06-06 06:17:59 +00:00
rpaulo 355b4c7b38 Oops, missing arg to firmware_free. 2006-06-06 01:18:25 +00:00
martin daed41efa2 Add D-Link DWL-610 2006-06-05 21:09:29 +00:00
martin b8a3ae290a Regen (DWL-610 added) 2006-06-05 21:08:51 +00:00
martin a2e2668a27 Add D-Link Air DWL-610 2006-06-05 21:08:18 +00:00
bouyer 02ace2fe6c Adjust quirk entry for seagate drives. Should fix kern/33637 by Shigeya
Suzuki.
2006-06-05 18:22:23 +00:00
rpaulo c54cf300da Don't leak memory on error. 2006-06-05 17:00:50 +00:00
rpaulo 7a35a95fe6 Add missing firmware_close(). 2006-06-05 16:59:41 +00:00
msaitoh 52532c99c9 add support 82546GB_PCIE(PRO/100MT), 82541ER_LOM, 82547EI_MOBILE,
82571EB_COPPER, 82571EB_FIBER, 82572EI_COPPER, 82572EI_FIBER
and 82572EI(PRO/1000PT)

TODO: add i82573 support
2006-06-05 16:06:10 +00:00
xtraeme 045e0f2d3d it_check(): check values from IT_RES48 and IT_RES52, if both are default
values specified by the chip, continue attaching the driver (previously
only checking IT_RES48 was enough and IT_RES52 was ignored).
2006-06-05 15:59:47 +00:00
msaitoh 5d3a49100a regen 2006-06-05 15:58:55 +00:00
msaitoh f80e45c34c add 82541ER_LOM, 82547EI_MOBILE, 82546GB_PCIE(PRO/100MT),
82546GB_QUAD_COPPER(PRO/1000MT QP) and 82572EI(PRO/1000PT).
2006-06-05 15:58:15 +00:00
gdamore b38b3d39ad Import new HAL 0.9.17.2. Approved by sam@
New HAL includes some driver changes to register accesses.
Adds support for WLAN devices on AR5312 family devices.
Adds support 32-bit SPARC ath devices (untested).
ath enabled in SPARC64 GENERIC builds.
This HAL is tested and known to work for i386 PCI devices, SPARC64 PCI devices,
and AR5312 WiSoC devices.  MIPS PCI devices appear to be busted (possibly only
on Alchemy hardware, unconfirmed), and cardbus support is untested due to
lack of test hardware.

Please report any new problems with this import to garrett@.
2006-06-05 05:14:37 +00:00
rpaulo 76c6161871 Driver for Ralink chipsets RT2460A, RT2560, RT2561S, RT2561 and RT2661
from FreeBSD/OpenBSD that supersedes ral*.[ch].

Not yet enabled because I don't have a CardBus controller to test and it
will most likely crash during detach.

I tried to include our modifications, but if something is missing please
tell me or add it.

Special thanks to minipci.biz for the donation of one PCI RT2661 and
one CardBus RT2661.
2006-06-04 20:38:06 +00:00
rpaulo a49baeafe7 Generated firmware files for Ralink chipsets 2561, 2561s, 2661. 2006-06-04 20:32:53 +00:00
rpaulo e2c5d8e671 Framework to build Ralink wireless cards binary firmwares based on
Ralink distributed microcode.h.

From OpenBSD.
2006-06-04 20:30:17 +00:00
christos 52514196f1 save another 1K on the stack. 2006-06-04 19:38:32 +00:00
christos 03701dc24f Don't allocate 1K on the stack. 2006-06-04 19:34:16 +00:00
christos 4de2a1c70e Don't allocate 2K on the stack... 2006-06-04 19:27:59 +00:00
itohy 90ed6f0bd7 Make compile by gcc 2. 2006-06-04 11:49:02 +00:00
rpaulo 8420a4bdc7 Sean Boudreau: The eeprom bits are shifted out in host order.
Also present in the upcoming rt2560.c driver.
2006-06-03 12:02:51 +00:00
nathanw 9822b848e6 Change return type of sdgetdisklabel() from void to int; return an error
if readdisklabel() returned an error.

sdopen(): Return an error if sdgetdisklabel() returns an error. This prevents
a crash in spec_open() (and possibly elsewhere) if a sd device is detached in
the middle of sdopen().
2006-06-01 15:53:09 +00:00
jonathan 6e42605bf4 Rework bge_reset() to more closely follow the Broadcom-supplied Linux driver:
1. Instead of enabling the buffer manager hardware-FSM only on
pre-5705 devices, initialize the buffer manager on all bge devices.
Modelled on the Broadcom-authored Linux driver.

2. Instead of enabling the memory arbiter hardware-FSM only on
pre-5705 devices, initialize the memory arbiter on all bge devices.
Modelled on the Broadcom-authored Linux driver.

3. Ditto the second copy of code which enables the memory arbiter.
Also, add an XXX asking, why taunt the chip this way a second time?
(The most plausible explanatoin is that enabling the memory arbiter
twice is my own darn fault, likely a cut-and-paste glitch I made many
moons ago, when re-ordering hardware enables to match the Linux drivers.)
2006-06-01 02:20:54 +00:00
jonathan e8c37e204d Fix a minor thinko in ascertaining whether or not a bge(4) device is
attached via PCI-Express:

The previous code first checked that the bge ASIC-revision matched the
5750 ASIC-revisoin (the bcm5721 has the same ASIC revision). However, the
bcm5752 is also a PCI-Express device, but has a different ASIC revision.
Thus, we were setting sc->bge_pcie to zero for bcm5752s, which in turn
causes bge_reset() to not perform required PCI-Express setup.

The test for a 5750 ASIC revision may (or may not) have been carried
across from the FreeBSD bge(4) driver. FreeBSD's bge(4) does not
properly detect or handle post-5750 bge devices. Instead, FreeBSD's
bge(4) keeps a sofc copy of the ASIC revision, and for post-5750
devices (5752, 5714, ...) overwrites that softc copy of the
ASIC-revision with the 5750 ASIC revision.  Thus, the test (mutatis
mutandis, using FreeBDS's softc asic-revision field), was correct for
FreeBSD; but manifestly incorrect for NetBSD.

Mark Davies (mark at mcs.vuw.ac..nz) has confirmed via private email
that this change fixes PR kern/kern/33509: his bcm5752 now works.
2006-06-01 01:46:41 +00:00
uwe 4c3245cf01 Remove redundant semicolon in dev_type_cnbell. 2006-06-01 00:43:37 +00:00
riz 03c11483b9 Add support for the DLink DGE-530T revision B1 (Tested by Tillman
Hodgson) and the DGE-560T (untested).
2006-05-31 21:46:32 +00:00
riz 5412a4d276 Regen. 2006-05-31 21:43:25 +00:00