Commit Graph

13406 Commits

Author SHA1 Message Date
drochner 29c16c72fb -avoid lock leak in error case
-Free AGP memory on close, to avoid a memory leak in case
 the X server doesn't free it explicitely.
 (It appears that the X server never calls AGPIOC_DEALLOCATE.)
 Fixes PR kern/17869 by Emmanuel Dreyfus.
2002-08-11 12:40:47 +00:00
drochner ce5452e87b update the is_bound flag for local memory too 2002-08-11 12:36:21 +00:00
thorpej 22c90da7f0 Snapshot of work-in-progress: Add AP support for Prism2-based boards.
WEP for APs is not yet implemented, but without WEP, this works well
enough for my laptop to associate with an AP running this code.

Adapted from OpenBSD.
2002-08-11 06:13:53 +00:00
thorpej 918a335551 Use WI_RID_DATA_RATES to fetch the supported rates. From OpenBSD. 2002-08-11 01:35:10 +00:00
thorpej bb718bd6e3 * Add "wi_flags" to the softc to indicate capabilities of the card. Fill
in this info based on firmware type and version.  Replace "wi_has_wep"
  with a flag.
* For cards which support IBSS, add "ibss" has a media option.
* For cards which support CREATE_IBSS, add "ibss-master" as a media
  option.
* Use the "ibss" and "ibss-master" media options to determine if
  we should go into IBSS mode and/or create the IBSS.
* Internally convert between the generic WI_PORTTYPE_IBSS and the
  value the firmware wants to use for IBSS.
* When setting the IBSS name, if a desired-SSID is set, and we're
  an ibss-master, write the desired-SSID into the own-SSID slot.
  This ensures that "ifconfig wi0 nwid FOO" will do the expected
  thing.
* Only set the roaming mode if the card supports roaming.

From OpenBSD.
2002-08-11 01:30:28 +00:00
thorpej d1737f8f98 Only read supported rates on Prism2 boards. 2002-08-11 00:11:52 +00:00
thorpej 375eb183ff Read supported rates from the card and report them. Only add
media types if that rate is supported.

Adapted from OpenBSD.
2002-08-11 00:00:41 +00:00
thorpej dbae3bd18f Define PORTTYPE constants for IBSS and HOSTAP (already in the
comments!).
2002-08-10 23:29:53 +00:00
thorpej 742ad68157 Fix some whitespace. 2002-08-10 23:16:14 +00:00
thorpej 1fa46f89f9 Preliminary support for the ten-bit interface on the DP83820. This
code needs more testing, and more bug fixing.
2002-08-10 22:57:15 +00:00
thorpej 5689818798 Don't treat the "reset complete" interrupts as errors. Doing so
causes us to go into a reset/interrupt/reset/... loop.
2002-08-10 22:54:54 +00:00
toshii 16a190bb23 Use UDMA/100 on SiS745 chipset. 2002-08-10 16:33:23 +00:00
toshii 7576c71257 Regen; added SiS745 host bridge. 2002-08-10 16:30:45 +00:00
toshii a4e64b08d4 Add SiS745 host bridge. 2002-08-10 16:26:14 +00:00
drochner 724142aab4 regen 2002-08-08 15:17:02 +00:00
drochner 2b013b41b9 add another quickcam 2002-08-08 15:16:22 +00:00
itojun 514ea24105 audit bitmask test mistake (s/&&/&/). from openbsd 2002-08-08 15:08:55 +00:00
drochner 681c8f675a regen 2002-08-08 09:57:21 +00:00
drochner fa4f52ebfd addanother ppb 2002-08-08 09:56:38 +00:00
oster 2a80a0fbe1 make 'configureMutex' be a lockmgr lock instead of a simple lock.
The result is MUCH fewer complaints with kernels compiled with LOCKDEBUG.
2002-08-08 02:55:36 +00:00
oster 7c2df6a96d Initial kick at some functions to provide lockmgr lock support
instead of only simplelock support.
2002-08-08 02:54:29 +00:00
oster 813fbd6152 RF_LOCK_MUTEX()/RF_UNLOCK_MUTEX() often cover more code than they
needs to.  In particular, they often surround calls to malloc().
Re-work the locking on most macros to avoid this problem.

XXX: On MP systems, simultaneous calls to the GET macros when a
freelist is empty may cause that freelist to grow more quickly than
before.  Given that the "increment" value of these lists are fairly
small, this shouldn't be too much of an issue.
2002-08-08 02:53:01 +00:00
thorpej 2b615e62c4 Add support for the new i82540, i82545, and i82546 Gig-E chips. The
i82546 chip has 2 Gig-E interfaces in a single chip.

The main difference is these chips have a special handshaking protocol
for accessing the EEPROM (due to the shared nature on the i82546).
2002-08-08 00:12:08 +00:00
fvdl 660edcbaff Match 881011 PHY. 2002-08-08 00:04:57 +00:00
fvdl 86710d1b0a Regen after addition of marvell 881011. 2002-08-08 00:04:28 +00:00
fvdl b068d9297a Add ID for Marvell 881011 phy found on newer i8254x-based gig-e cards. 2002-08-08 00:03:42 +00:00
augustss ac60be1a15 Regen. 2002-08-07 23:26:34 +00:00
augustss e815298273 Correct product name for the Genesys hub. 2002-08-07 23:26:18 +00:00
oster 9c2db4ef79 Let's not bother poking CD's to see if they might have RAID sets
on them.
2002-08-07 20:45:39 +00:00
augustss 8abb6b6ba2 Fix some braindead calls to free memory (only encountered under low memory
conditions).  From OpenBSD.
2002-08-07 20:03:19 +00:00
augustss d027824a17 Regen. 2002-08-07 15:39:43 +00:00
augustss f19e258062 Add a Genesys hub. 2002-08-07 15:39:23 +00:00
kent 3898bab95a - Port clock calibration code (auich_calibrate) from ich.c of FreeBSD to solve
kern/16373.
- SiS 7012 support from kern/17716 submitted by Quentin Garnier.
- ICH4 support
- Experimental support for nForce MCP, AMD768 and AMD8111.
- Rename the short name for ICH3: "i830M" -> "ICH3"
2002-08-07 10:31:09 +00:00
simonb d436dc19f3 Fix a typo in a comment. 2002-08-07 04:53:18 +00:00
simonb fdfab8da56 Fix a typo in a comment. 2002-08-06 23:51:43 +00:00
augustss 61a3b5e422 Pull in tea5757.c for the mr driver. Fixes kern/17864. 2002-08-06 23:09:10 +00:00
itojun 8e7a88a3ff integer overflow. from silvio@qualys.com 2002-08-06 22:51:45 +00:00
kim 462f87e7fd Missing comma in aenfmt array initialization. 2002-08-06 20:47:44 +00:00
soren 9e129fde67 Add ATA SMART reporting support from Ben Collver in kern/12787. 2002-08-05 23:29:27 +00:00
onoe 248c861292 Fix IBSS for awi driver. 2002-08-05 06:55:05 +00:00
thorpej 82421f1fdb Regen; added ADI BECC product ID. 2002-08-04 21:47:58 +00:00
thorpej 4da9d49d31 Add product ID for the ADI i80200 Big Endian Companion Chip. 2002-08-04 21:47:25 +00:00
oster 2a9c8b7cfd One less debug option. 2002-08-04 03:33:04 +00:00
oster 522009f8a9 Nuke some unneeded #includes. 2002-08-04 03:27:04 +00:00
oster 1387eac16b Remove a couple of options that are obsolete. 2002-08-04 03:26:39 +00:00
oster 6ad082845f Let's just say that the way things were stored in the array for the
debugging buffer made it much less useful than it appears.  More memory
for other things now.
2002-08-04 03:22:07 +00:00
thorpej 16003abd0f Add standard names for 5-, 6-, 7-, and 8-way XOR. 2002-08-04 02:17:06 +00:00
thorpej 4c1506f740 *Actually return* EINVAL when the output stream UIO's I/O is larger
than SSIZE_MAX.
2002-08-04 01:52:00 +00:00
kent 78f533176c regen 2002-08-03 17:12:42 +00:00
kent dc268b4f91 Add the following:
- SiS 7012 AC-97 (kern/17716)
 - NVIDIA nForce MCP AC-97
 - AMD 8111 AC-97
2002-08-03 17:10:35 +00:00