Commit Graph

19742 Commits

Author SHA1 Message Date
fvdl fb1f667470 Regen for BCM5789. 2005-12-06 20:55:33 +00:00
fvdl 496be2c643 Add ID for yet another 57xx-compatible Broadcom chip, the 5789. 2005-12-06 20:54:28 +00:00
christos 1839ea54c0 Remove the "don't match lmc cards" test, because the lmc driver returns a
match of 100 which will supersede the de and tlp match if present. If not
present, then these two drivers will fail to match an mii. Thanks to thorpej
for the explanation.
2005-12-06 18:37:57 +00:00
thorpej 62d2755224 Don't use magic constants in previous. (Not that we should be doing this
here in the first place...)
2005-12-06 15:40:16 +00:00
skrll 396c76cb52 Correct the includes for lmc. 2005-12-06 11:53:56 +00:00
christos 4178b4005f Don't match lmc cards by accident. 2005-12-06 03:30:12 +00:00
christos afd1b57d09 New lmc driver from David Boggs 2005-12-06 03:01:45 +00:00
bouyer b898e14a29 Wrap debug printf in AHC_DEBUG. Pointed out by Izumi Tsutsui. 2005-12-05 18:29:45 +00:00
macallan eecff0f52d back out the changes to KD* ioctl()s for now, seem to break more than they
do good.
2005-12-05 18:27:59 +00:00
macallan 91d47a92df - remove a leftover debug printf()
- fix the other cases of _IO() type ioctl() abuse ( mainly keyboard related
  stuff )
2005-12-05 11:46:19 +00:00
skrll a599d2ebb4 Finally (I hope) fix iwi_ioctl:
- handle SIOCADDMULTI/SIOCDELMULTI properly, i.e. no need to reset
	  anything as we don't do multicast filters (yet)
	- restructure some code and use an IS_RUNNING macro

Fix iwi_init to set if_flags before the net80211 state machine is kicked
and init to IEEE80211_S_INIT.
2005-12-05 09:24:54 +00:00
christos 184ad089a7 - make settime take timespec.
- avoid wrapping of time in settime.
- pass struct proc down so that we can log a detailed message.
2005-12-05 00:16:33 +00:00
christos 3b9c87155a Merge the 3 copies of m_getcl() so that fast ipsec compiles again together
with net80211. XXX: We don't really have an m_getcl(), we just emulate it.
2005-12-04 19:15:21 +00:00
christos f1c1eb475b PR/32220: Murray Armfield: Enable AMD768 random no generator. 2005-12-04 17:47:33 +00:00
christos 832f4dc791 Regen. 2005-12-04 17:44:25 +00:00
christos 86b55997ca PR/32181: Matthias-Christian Ott: Add support for the Belkin F5D6001 pci device 2005-12-04 17:44:02 +00:00
christos e0ad34fdcb Regen. 2005-12-04 17:39:28 +00:00
christos 99b3a7df46 PR/32238: Ryo Shimizu: Add support for Promise SATA300TX4 SATA Controller
(PDC40718)
2005-12-04 17:39:03 +00:00
macallan 826e1b36bc Make the VT_* ioctl()s work in LP64/big endian platforms, like sparc64.
The problem is that these ioctl()s are declared as _IO() and expect to pass an
integer as argument, instead of a pointer. When dereferencing the argument
pointer in the ioctl() handler as an int we get the upper 32bit of the value so
we simply dereference it as long. Other _IO() ioctl()s may need similar fixes.

Tested on sparc64, sparc and macppc.
2005-12-04 14:03:42 +00:00
xtraeme 40fe6ad1b5 Add support for Intel 6300ESB. 2005-12-04 12:27:49 +00:00
rpaulo bcb67e15ae s/NBFILTER/NBPFILTER 2005-12-03 21:20:07 +00:00
rpaulo de470a4422 Make this compile without bpf(4). 2005-12-03 21:18:32 +00:00
xtraeme 7ee2d6b20e Add support for ICH7. Tested by gendalia@. 2005-12-02 19:47:52 +00:00
kleink 3b3dbbe727 Fix AUDIO_DEBUG printf formatting of size_t; from Pavel Cahyna in
PR kern/32207.
2005-12-02 19:26:14 +00:00
riz f4ed9745aa Match all model numbers with both Cicada OUIs; this allows the proper PHY to
attach on my ZyXEL GN650-T.
2005-12-01 04:59:53 +00:00
rpaulo ff67bb3168 Add support for software controlled LEDs as found on some
boards. Currently, only the associated LED is being used because
that's the only LED my card has. The other two LEDs (OFDM and
activity) can later be set by someone, easily, who owns some board
with that LEDs.

Reviewed by Nick Hudson.
2005-11-29 13:57:00 +00:00
bouyer 2ac6595656 Don't call alloc_scb() (which can call bus_dmamem_alloc/map) from
ADAPTER_REQ_RUN_XFER context (which can be interrupt context), defer this
to the ADAPTER_REQ_GROW_RESOURCES callback.
Fix a panic in uvm reported by John R. Shannon on port-xen; patch tested on
ahc by me and on ahd by John.
2005-11-28 21:03:19 +00:00
augustss af35e68362 Add a {UQ_ASSUME_CM_OVER_DATA quirk for Siemens AG Wireless Modules MC75.
From kern/32180 from Brad du Plessis bradd@cat.co.za
2005-11-28 19:37:18 +00:00
augustss 953d857bcb Regen. 2005-11-28 19:32:29 +00:00
augustss 8ebe76f3d7 Add Siemens AG Wireless Modules MC75. 2005-11-28 19:32:07 +00:00
rpaulo 8935d3bf0f PR 32178: Nicolas Joly: VT8233 AC'97 Audio revision 0x10 small display
fix. I just changed the comment a bit.
2005-11-28 19:00:49 +00:00
augustss 911fb919e4 Use usbd_clear_endpoint_stall_async() when clearing endpoint stalls in
an interrupt context.  From kern/32172 by darkstar@city-net.com.
2005-11-28 13:31:09 +00:00
augustss 5d74925cbe Add a new match level, UMATCH_HIGHEST. 2005-11-28 13:14:48 +00:00
jdolecek 62729c9f70 regen - 3ware ATA RAID description/ID fixes 2005-11-27 10:19:03 +00:00
jdolecek 3f4958d066 change the description of the 3ware raid controllers to 'ATA RAID Controller'
rather then 'IDE RAID'

fix the ID of the 9xxx series controller and rename to ATARAID_9k, since
3ware doesn't refer to it using the 'Escalade' family name
2005-11-27 10:17:26 +00:00
thorpej 7d00e1aff3 Overhaul how TTY line disciplines are handled:
- Replace references to linesw[0] with a ttyldisc_default() function
  that returns the default ("termios") line discipline.
- The linesw[] array is gone, replaced by a linked list.
- ttyldisc_add() and ttyldisc_remove() have been replaced by
  ttyldisc_attach() and ttyldisc_detach().
- Things that provide line disciplines are now responsible for
  registering those disciplines with the system.  The linesw
  structures are no longer declared in tty_conf.c
- Line disciplines are now refcounted; a lookup causes a reference to
  be held.  ttyldisc_release() releases the reference.  Attempts to
  detach an in-use line discipline result in EBUSY.
- Fix function signature lossage in if_sl.c, if_strip.c, and tty_tb.c
  that was masked by the old tty_conf.c
- tty_init() is no longer necessary; delete it and its call from main().
2005-11-27 05:35:52 +00:00
jdolecek 8c602c3844 Add some casts to make this compile on amd64 (and perhaps other LP64
architectures). Part of PR kern/30456.

The binary object file on i386 confirmed to be exactly the same before
and after the change.
2005-11-26 21:33:46 +00:00
jdolecek 9019b1d22c fix aac_print_fib() to compile with AAC_DEBUG; noncompilable "%16D" printf
format replaced by explicit hexadecimal dump of the first 32 bytes of fip->data
2005-11-26 21:29:48 +00:00
tsutsui d0c28ccd6d Fix typo (FALLTHOUGH -> FALLTHROUGH). From Jeff Ito. 2005-11-26 13:54:18 +00:00
skrll 535aed4540 Fixes from Steve Woodford:
- add some missing bus_dmamap_sync operations.
	- don't process other interrupts if we get an error/radio off
	  interrupt.
	- improve command handling - sleep against the descriptor instead
	  of the descriptor set.
2005-11-26 07:42:10 +00:00
tsutsui 36f216123b FALLTHROUH -> FALLTHROUGH (from OpenBSD) 2005-11-26 04:11:31 +00:00
thorpej 4537c59ffb Add swcrypto 2005-11-25 16:42:55 +00:00
thorpej 7bc6d90c9d - De-couple the software crypto implementation from the rest of the
framework.  There is no need to waste the space if you are only using
  algoritms provided by hardware accelerators.  To get the software
  implementations, add "pseudo-device swcr" to your kernel config.
- Lazily initialize the opencrypto framework when crypto drivers
  (either hardware or swcr) register themselves with the framework.
2005-11-25 16:16:46 +00:00
tsutsui f7e281c38a Remove unnecessary byteswap code so that bge(4) should work
at least on macppc.
2005-11-25 15:30:34 +00:00
elad d51a16a060 Remove few no longer needed XXX comments about fsid/fileid being
not the same type as dev_t/ino_t.
2005-11-25 12:02:09 +00:00
martin 328b263349 Use %zd for size_t. Noticed by Kurt Schreiner on current-users. 2005-11-24 13:47:46 +00:00
fredb c3ec7554f8 Initialize "mapped" before any of the "goto"'s, so we're not testing an
uninitialized variable at "bad:".
2005-11-24 13:34:55 +00:00
dyoung 7e173af81d Put the microsecond timestamp in the radiotap header for received
frames.
2005-11-24 09:58:39 +00:00
jonathan 43255e3f4e Add TSO support to bge(4) for PCI-Express bge devices, which are
shipped from the factory with TSO-capable firmware.  The TSO support
here may also work on 5705 chips, but that is (so far) untested.

TSO support written after careful reading of the Linux tg3 driver,
and (after attempting to deconstruct the cut-and-paste mess therein)
very close reading of the Broadcom-supplied Linux driver, particularly
the building of Tx-DMA buffer descriptors (bds). The TSO code herein was
then rewritten from scratch, circa 4am local time, October 27 2005.
(In other words: this is 4am software; caveat emptor.)

Other magic register settings in this patch are required; without
them, attepmting to use TSO locks up the chip. The required register
settings were extracted from the cited Linux drivers.

Note that TSO-capable firmware for the 5703/5704 is distributed in
non-GPL form with the aforementioned Linux drivers. Once the 5705 case
is debugged, (particularly the pseudo-header checksum precalculation
flagged with an XXX) downloading that TSO-capable firmware to the
5703/5704 should, in principle, enable TSO support on all but the
original bcm5700 (I forget if the 5701 can support TSO, or not).

Note also that the ``hard case '' of IP/TCP headers spanning more than
one mbuf is not handled; I haven't been able to trigger it.  In any
case, since TSO applies only to packets generated by the local TCP,
and our TCP always leaves space for TCP headers and a normal IP
header, TSO on an IP/TCP header spanning multiple headers can only
arise due to insertion of IP options. I beleive that we are clearly
better off outlawing that case, and requiring ip_insertoptions()
to  pull-up TCP headers on any packets with M_CSUM_TSOv4 set.

As far as I know, bge hardwar does not support TSO for IPv6.
2005-11-24 03:27:59 +00:00
skrll 3b6e301485 Fix the handling of ENETRESET in iwi_ioctl.
This fixes PR 32143
2005-11-23 20:35:54 +00:00
skrll d40d6be769 Correct a bpf tap. 2005-11-23 20:08:29 +00:00
riz 752c0a4023 Special-case the Linksys EG1032 cards using PCI subsystem ID; rev. 2 uses
the sk(4) driver, while rev. 3 needs re(4).

Mostly from brad@openbsd.
2005-11-23 18:56:22 +00:00
tron 019491bca2 Make this compile if UHID_DEBUG is not defined. 2005-11-23 10:03:56 +00:00
augustss 48164bddda If a mouse has both a wheel and a Z direction we report both.
XXX Due to tradition the wheel is reported as the Z direction (and the Z
direction as W).
Now Apple's Mighty Mouse is fully supported, except the X11 mouse driver
doesn't know what to do with the new coordinate.
2005-11-23 09:41:28 +00:00
augustss 5b71c2bf99 Some devices provide more than three (X, Y, and Z) "directions". So add
a W "coordinate" that can be used for these.
This changes the type of wsmouse_input().  To avoid changing a lot of drivers
a compatibilty #define is provided.  Maybe changing all drivers would have
been better?
2005-11-23 09:38:02 +00:00
augustss f0b7793c4b Look for a wheel before looking for a Z dir. This makes Apple's
Mightymouse work.
2005-11-23 09:04:20 +00:00
augustss cf1de1bda0 Normally a ugen device only attaches if no other driver wants the device.
Add the ability to force ugen to attach with very high priority if "flags 1"
is specified.  This can be used with the vendor and product locators to
force ugen to be used for certain devices.
Similarly, uhid only attaches if no other HID driver (ums or ukbd) wants it.
Again, "flags 1" will force uhid to attach anyway.
2005-11-23 08:54:47 +00:00
dyoung 63d8fb2cb6 Miscellaneous Realtek RTL8180L driver improvements:
1 Added new sysctl controls for debugging.

2 Improve detection & support for hardware WEP.

3 Revamp handling of transmit descriptor rings.

4 Reliably IFF_OACTIVE when transmit descriptors are available, to
  stop the transmit section of the driver from freezing up.

5 Fix beacon transmission in adhoc and hostap modes.  XXX There is
  a wart in hostap mode, where beacons are transmitted at 1/2 the
  correct rate.  Load beacon descriptors when the RTW_INTR_BINT
  interrupt arrives; schedule RTW_INTR_BINT 1ms ahead of the target
  beacon time.

6 Recover more gracefully from tx/rx errors: avoid
  transmitter/receiver/chip resets.  Try to re-synchronize software
  state with hardware state---e.g., load next descriptor pointer
  from hardware.

7 Activate the transmit watchdog timer for beacons as well as other
  packets.

8 Introduce rtw_idle() that waits for transmit DMA to finish; call
  it before resetting the transmitter.
2005-11-23 04:12:33 +00:00
dyoung 5e4572a5a8 Misc. bug fixes:
1 Reset both IFF_OACTIVE and the transmit watchdog timer in
  appropriate places to avoid both wedging the transmit section
  and spurious transmit timeouts.

2 Reset IFF_ALLMULTI at the top of atw_filter_setup so that the
  NIC will filter the multicast packets we are not interested in
  after we come out of promiscuous mode.

3 In atw_txdrain, count drained transmit descriptors to avoid
  descriptor exhaustion.
2005-11-23 01:11:23 +00:00
dyoung 4e254e89e9 Non-functional change: a missing '}' in an #ifdef __FreeBSD__
section confuses ctags(1), so I add the '}'.
2005-11-23 01:04:37 +00:00
rpaulo 8708c3d6c2 regen 2005-11-22 22:57:45 +00:00
rpaulo eed63d4b44 Fix entry for TI FlashMedia Controller. 2005-11-22 22:55:30 +00:00
martin 17b12c5ad7 This driver does only access the bus_space_tag via bus_space_* functions,
so there is no need to map it linear. From Garrett D'Amore in
PR kern/32137.
2005-11-21 20:25:15 +00:00
augustss 4bc39eaf86 Make the unused ehci_dump() function non-static. 2005-11-21 10:15:41 +00:00
augustss e49945ef23 Print an error message if we cannot located the legacy capability. 2005-11-20 18:44:56 +00:00
augustss d801565e9b Make debug printout a little nicer. 2005-11-20 18:42:43 +00:00
augustss 8e55eef7c0 Add some definitions for the extended capability registers. 2005-11-20 18:36:20 +00:00
augustss 3fe79ce029 Go through the prescribed process to get ownership of the controller from
BIOS before we start using it.
This seems to fix the problems some people have been experiencing with
keyboards not working.
2005-11-20 14:46:23 +00:00
augustss 992297a008 Keep a flag for each port that keeps track of if the port has been reset
instead of having one flag for the controller.

Also, don't try to modify read-only power bits if the controller doesn't
support power cobntrol.
2005-11-20 14:27:25 +00:00
riz 8b1bf051e2 From FreeBSD (appropriate pieces of revs 1.90 and 1.92):
Only clear the IFF_OACTIVE flag when we have a chance of being able
to queue a packet to the hardware, instead of when the hardware queue
is empty, and fix up handling and prodding of the tx.

These fixes clear up an occasional "sk0: watchdog timeout" from the
on-board ethernet on my Asus A8V motherboard.

OK christos@
2005-11-19 21:45:50 +00:00
skrll 541652ce7b Adapt to new net80211(9).
Thanks to dan@ and Kouichirou Hiratsuka for testing.
2005-11-19 08:06:03 +00:00
bouyer 44453e12b8 Regen: save offset at disconnect after a data phase without save data pointer. 2005-11-18 23:11:38 +00:00
bouyer 98fae666e4 Some drives disconnect after the last data phase without a save data pointer
message. In such case we would not update resid with the proper value
(eventually resid would not be updated at all if there was only one data
phase). To fix this, have the script save the offset in the data tables at
disconnect time if there was a transfer, and use this to compute the resid
if the current offset is 0.
Problem reported and patch tested by edwin, Roy Bixler and YAMAMOTO Takashi.
Fix kern/31990 by YAMAMOTO Takashi.
2005-11-18 23:10:32 +00:00
rpaulo 4d1d9eb828 regen 2005-11-18 21:58:20 +00:00
rpaulo 7282bf0378 It's really PCI7x21/7x11 Cardbus Controller. 2005-11-18 21:55:13 +00:00
rpaulo a1c9602de5 regen 2005-11-18 21:46:11 +00:00
rpaulo 924d40ef97 Add a bunch of devices:
o Intel 82801FBM ICH6M LPC Interface Bridge
    o Intel 82801FB/FR PCI Express Port #2
    o TI PCIxx21/x515 Cardbus Controller
    o TI PCI7x21/7x11 IEEE 1394 Host Controller
    o TI PCIxx11/21 Integrated FlashMedia Controller
2005-11-18 21:40:14 +00:00
skrll 302689559d Adapt drivers to the new net80211(9).
Most of this is from dyoung@. Thanks!
2005-11-18 16:53:56 +00:00
skrll dc2bd8a8cf Resolve conflicts. 2005-11-18 16:48:31 +00:00
skrll 38d4ca67e5 Resolve conflicts. Changelog to follow. 2005-11-18 16:42:22 +00:00
hira 23426c5438 Regen. 2005-11-18 11:31:41 +00:00
hira b05e6b060b Correct entry of vendor ID 0x0d8c. It's C-Media, not ABC.
Confirmed by augustss@.
2005-11-18 11:29:47 +00:00
hira c9370bf9e5 Regen. 2005-11-17 18:12:59 +00:00
hira 8bc7a4c07b Correct product ID of Buffalo WLI-U2-KG54-AI. 2005-11-17 18:12:08 +00:00
bouyer 3506fa3a54 After a reset don't wait for drives to come ready if there's no drives.
Fix a 30s hang after resume. Problem reported and fix tested by Brian de Alwis.
2005-11-16 23:39:08 +00:00
jonathan de85711ee1 Correct a performance bug from Bill Paul's original FreeBSD bge(4) driver:
Each call to the FreeBSD bge_start() routine the transmit producer
pointer index from the chip mailbox register BGE_MBX_TX_HOST_PROD0_LO.
The local copy of that value is then updated by bge_encap() as
bge_encap() encapsulates packets in the Tx ring. If bge_encap()
succeds in encpuslating one or more packets, bge_start() tells the
chip to start sending the newly-encinitiates writes the new value back
to the chip mailbox register.

However, comparison of the Linux drivers (Broadcom-supplied and
open-source tg3.c) and to the OpenSolaris driver confirms that
register BGE_MBX_TX_HOST_PROD0_LO is write-only to software.
Thus, we can just keep a copy in the softc, and eliminate the
(expensive) PCI register write on each call to bge_start().

``Make it so''.
2005-11-15 06:05:44 +00:00
augustss 88f620ab3d Make it possible to decide endianess dynamically. From port-evbmips/31912
by "Garrett D'Amore" <garrett_damore@tadpole.com>.
2005-11-14 13:40:23 +00:00
skrll 1f381351c3 Don't use DPRINTF for previous. Doh! 2005-11-14 12:07:33 +00:00
skrll 5349e12d67 Dump the error log if we get an IWI_INTR_FATAL_ERROR interrupt. 2005-11-14 11:58:52 +00:00
rpaulo 585daa639d Fix a long standing typo noticed by Alex Pivovarov on PR/32061.
When people use variables like 'flag' and 'flags' in the same function
(one local and one passed as a parameter) this is prone to happen..
2005-11-13 10:47:39 +00:00
macallan 0ea32fbae1 Add hardware cursor support, needs testing. 2005-11-12 23:25:46 +00:00
rpaulo 861d507d5b regen 2005-11-12 11:54:29 +00:00
rpaulo 645b6b622a Add ACPI Three-wire Device Bus. 2005-11-12 11:53:30 +00:00
simonb a21c456e2e Call nanotime() directly, instead of doing the
microtime()/TIMEVAL_TO_TIMESPEC() dance.
2005-11-11 07:07:42 +00:00
kochi ec63345182 regen. 2005-11-11 02:11:07 +00:00
kochi 2d0bb278d1 add HPET timer PNP ID.
reported in PR32040 by  Nicolas Joly
2005-11-11 02:10:09 +00:00
martin a332f6615a Use mstohz() for timeout calculations.
Avoid local stack addresses as tsleep identifiers.
2005-11-10 21:25:35 +00:00
rpaulo 07c827131f regen 2005-11-10 13:31:03 +00:00
rpaulo 7928f127e6 Add NSC IrDA Fast Infrared Port. 2005-11-10 13:30:46 +00:00
rpaulo f5602021b6 regen 2005-11-10 13:26:34 +00:00
rpaulo 066abf15d0 Add Synaptics PS/2-style Touchpad. 2005-11-10 13:25:59 +00:00
augustss 65ee9092eb Abuse types a little less. 2005-11-10 12:05:01 +00:00
tron f55fe966f7 Apply big endian fixes submitted by Garrett D'Amore in PR kern/32032. 2005-11-10 10:00:19 +00:00
rpaulo 67a3f47423 Add a fake entry in pms_protocols array to avoid an out-of-bounds
access in do_enable() if PMS_SYNAPTICS_TOUCHPAD and PMSDEBUG are both
defined.
2005-11-08 22:12:16 +00:00
tsutsui fe35cfd50c Regen from pcmciadevs rev 1.213:
> Fix pp_cisinfo[0] of the TEAC IDECARDII entry.
> If pp_cisinfo[0] is NULL, current pcmcia_product_lookup()
> never matches the device.
2005-11-07 16:39:16 +00:00
tsutsui cf09fb3893 Fix pp_cisinfo[0] of the TEAC IDECARDII entry.
If pp_cisinfo[0] is NULL, current pcmcia_product_lookup()
never matches the device.
2005-11-07 16:37:28 +00:00
dsl 80c644a6b9 Explicitly default the input baud rate (c_ispeed) to the output baud rate (c_ospeed)
instead of setting it to zero.  Otherwise nothing ever sets it unless some code
explicitly changes the baud rate.  For a serial console (in particular) we want
to use the baud rate set by the bios (or whatever) and used by theboot code.
This is the way it was before a 'new version of com driver' was added in 1997 (rev 1.99)
2005-11-06 21:34:37 +00:00
tsutsui 830c0db95b NCRDMA_SETUP() should be called before NCR_SET_COUNT() and NCRCMD_DMA command
in ncr53c9x_select(). Tested with esp on SS1+ and sun3/80, and pcscp at pci.
2005-11-06 10:31:46 +00:00
rpaulo e15c104622 Add "Conexant CXT48". This should have a more meaningful name, but I
couldn't find it. So, I added this because it's better than printing
"unknown codec". When we find a more decent name later, we can change this.
2005-11-06 10:08:24 +00:00
bouyer dfbaaaef48 ETHERCAP_VLAN_MTU is a flag for ec_capabilities, the size of the 802.1q
encaptulation header is ETHER_VLAN_ENCAP_LEN. Pointed out by der Mouse on
tech-kern.
2005-11-05 16:01:52 +00:00
martin 4daa98c618 Rename the wait channels (one was a copy&pasto, the other much too long) 2005-11-05 13:59:02 +00:00
abs 8380617e54 Regen after adding Radeon 9000 PCI (0x4966) 2005-11-01 22:01:44 +00:00
abs f643837128 Add Radeon 9000 PCI (0x4966) 2005-11-01 22:00:56 +00:00
martin b1134bf887 Rework the funny "user_strat: No ioctl" error messages - the functions
have not been called user_strat for quite some time and the message is
confusing if you do not know the code.
2005-11-01 20:44:04 +00:00
bouyer 1421f4d030 Don't claim there is a data in or out phase if the datalen is 0 (userland
shouldn't claim it either, but a buggy software shouldn't be able to crash
the kernel anyway). Should fix port-sparc64/31925 by Johan A.van Zanten
(which should really be kern/31925).
Analysed and patch tested by Martin Husemann.
2005-11-01 15:40:00 +00:00
yamt 8217506e75 fix ioctl problems after the recent physio changes
in some drivers including wd and scsi.

- physio: if a caller provided a buf, stick to use it
  because some drivers use it as an identifier.
- sprinkle simple_locks.
- scsistrategy: rather than issueing an async request and
  waiting for its completion, simply issue a sync request.
  the way to wait for the completion had an assumption that
  B_CALL is never used.  it isn't the case after the recent
  physio() changes.

pointed/analyzed/tested by Martin Husemann.
2005-10-31 14:36:41 +00:00
simonb 1d1300cd80 Only include <sys/systm.h> if _KERNEL is defined. 2005-10-30 23:34:04 +00:00
jmcneill 4b8daa06de Wow, this is clearly wrong (found in esa_set_params):
if (p->channels < 1 && p->channels > 2)
		return EINVAL;
Change the 'and' to an 'or' so the check actually does something.
2005-10-29 17:44:34 +00:00
rpaulo 2b6672222b regen 2005-10-29 17:18:40 +00:00
rpaulo b2880bdd35 Add Creative Labs's Notebook Optical Mouse. 2005-10-29 17:18:08 +00:00
yamt b9269a5f4f don't reset interface on rx overrun because it makes
the situation worse, if the overrun is merely a symptom of heavy load.
increament if_ierrors instead.  PR/29831.
2005-10-29 13:24:41 +00:00
scw 9877d180a5 Re-arrange a bitfield according to host byte-order. 2005-10-29 12:03:44 +00:00
scw aee1af1ef4 Expunge an extraneous bus_dmamap_sync() call in iwi_frame_intr(). The entire
frame has already been sync'd by iwi_rx_intr().
2005-10-29 11:00:17 +00:00
scw b6845ed55f - Use the DMA map size when calling bus_dmamap_sync(), instead of
blindly assuming MCLBYTES will DTRT.
- Use bus_dmamap_load_mbuf() instead of bus_dmamap_load() where
  appropriate.
- If we have to coalesce a Tx mbuf chain comprised of more than IWI_MAX_NSEG
  segments, allocate a cluster iff the payload won't fit in the header.
2005-10-29 10:48:02 +00:00
skrll 22049753c1 Don't byte swap unnecessarily in iwi_read_prom_word. Fix the user instead. 2005-10-29 08:44:28 +00:00
scw 842139fe29 Support big-endian hosts:
- Always byte-swap data read from EEPROM.
- Byte-swap firmware image when host is big-endian.

In iwi_tx_start():
- Fix descriptor initialisation bogon (only problematic on big-endian hosts).
- Fix bus_dmamap_sync() 'len' parameter..
2005-10-29 08:10:38 +00:00
christos daf2726a5c - delete ugly debugging crap.
- remove bogus multicast handling [pointed out by thorpej]
  and don't reset the chip on ENETRESET; ENETRESET is a sign
  that only the multicast filter needs changing.
2005-10-28 20:56:13 +00:00
christos 17f31a8395 forgot to commit this. 2005-10-28 14:36:15 +00:00
christos ffd31cc9b5 According to thorpej, we don't need to stop when we attach. But then again
we don't detach yet...
2005-10-28 13:20:55 +00:00
christos dd3b850e80 From FreeBSD:
- make a few functions static
- introduce gem_bitwait() to factor out some of the register wait code.
- add gem_stop() in attach
- some DEBUG should be GEM_DEBUG
- handle underrun, packet too long, and overflow errors by resetting the chip
- add handler in ioctl for add/del multi
- fix typo
Also:
- add a shadow sc_if_flags member so that we don't reset the chip if we
  don't need to.
2005-10-28 00:01:53 +00:00
rpaulo 89c0260a2e s/SYNAPTICS_DEBUG/SYNAPTICSDEBUG/ to keep consistency. 2005-10-26 17:20:19 +00:00
martin 3e4f7c877a Add missing <sys/device.h> include.
XXX - this is handled inconsistently accross the ath* files, maybe we
should move it to ath_netbsd.h and be done?
2005-10-25 19:59:02 +00:00
drochner afcc05d0fe finally nuke the useless cardbus "dev" locator 2005-10-25 16:37:50 +00:00
jdolecek bb7b3655f0 constify 2005-10-24 16:31:54 +00:00
hannken 366a53ff0c Run all i/o from or to backing store through fss_bs_io().
Replace VOP_BMAP()/VOP_BALLOC() by vn_rdwr()/VOP_PUTPAGES().

Inspired by discussion on tech-kern@
2005-10-24 14:25:06 +00:00
christos 8f370e24ef The previous change (to use bus_space_read_2), was broken because it was
reading from an odd offset. From Robert Elz
2005-10-23 20:03:04 +00:00
kochi 1b13c5e5de revive a piece of code for workaround for buggy BIOSes.
this code was accidentally dropped when the last merge of ACPI-CA.
(this code is one of NetBSD-local changes against original ACPI-CA)
2005-10-23 16:39:29 +00:00
jmcneill f18dd07571 If the temperature sensors are disabled, enable them rather than giving up. 2005-10-23 14:01:36 +00:00
nonaka 4fa7623be8 Use I2C_OP_{READ,WRITE}_WITH_STOP instead of I2C_OP_{READ,WRITE}. 2005-10-22 15:12:28 +00:00
dbj 37e4b2f6aa decrement nscreens in vga_free_screen
this cleans up a crash on failed allocation, although
vga_free_screen may still be leaking resources
2005-10-21 14:44:08 +00:00
itohy a2f0c58dbb If an unknown endpoint is found, ignore it, rather than abort attach.
This change allows to use HID-like devices with additional functions.
2005-10-20 13:09:18 +00:00
joerg 35b726a534 Fix a kernel segfault when a RX interrupt can't allocate a new mbuf.
The change adopts the idea of fxp to drop the incoming packet and panic
if the old mbuf cannot be reloaded. Since the bus_dmamap is allocated
during attach, this is not supposed to happen. Since a lot of code moves
anyway, factor out the allocation of RX ring elements, which is shared
between the init path and the RX interrupt path.

XXX A better fix might be to borrow the mbuf from the logic end of the
XXX ring buffer, but that needs more involved driver changes.

Reviewed by dyoung@ and nick@
2005-10-19 20:18:00 +00:00
joerg 397ada6330 Both iwi and ipw need arp. 2005-10-18 17:53:14 +00:00
yamt 464cf44f6c dksubr: do b_blkno -> b_rawblkno translation earlier so that bufq can uses it. 2005-10-18 00:14:43 +00:00
simonb 94e3e9f7f5 Spinkle some KNF. 2005-10-17 03:08:24 +00:00
tls 389883922e From Gilles Roy <groy@qnx.com>: don't increment buffer pointer twice
(once before callback, once *in* callback) for MAC transforms.  How did
this driver ever work at all without this?
2005-10-16 20:26:47 +00:00
tls 240f327f5b HAVE_CRYPTO_LZS, not HAVE_CRYPTO_LSZ (worse, it was inconsistently used) 2005-10-16 00:14:22 +00:00
tls c4b950020a Don't use rnd_extract_data to set up IVs for new sessions; it is very
expensive, and pointless.  As elsewhere in the kernel (and as approved
under FIPS-140-2 by multiple test labs, incidentally) we use arc4 to
generate IVs here; there is no benefit to their being cryptographically
strong so long as there is a sufficient Hamming distance between them.
2005-10-16 00:12:42 +00:00
jdolecek 91669fdaa7 use VLAN_OUTPUT_TAG() 2005-10-15 19:32:36 +00:00
yamt aec75b1cc6 - change the way to specify a bufq strategy. (by string rather than by number)
- rather than embedding bufq_state in driver softc,
  have a pointer to the former.
- move bufq related functions from kern/subr_disk.c to kern/subr_bufq.c.
- rename method to strategy for consistency.
- move some definitions which don't need to be exposed to the rest of kernel
  from sys/bufq.h to sys/bufq_impl.h.
  (is it better to move it to kern/ or somewhere?)
- fix some obvious breakage in dev/qbus/ts.c.  (not tested)
2005-10-15 17:29:10 +00:00
macallan 4188757b69 Add a multiple include guard. 2005-10-15 15:41:22 +00:00
tls eb5ea4a10b Add support for the hardware random number generator on the Hifn 7811
and 795x.  This was present in the driver before, but disabled due to
problems with the actual randomness of generated numbers on the
ubiquitious 7900-series parts.  The code here is far, far more
conservative than anyone else's driver for this RNG is -- but I
believe that conservatism is called for, because the 79xx RNG
design is missing a number of pieces from Hifn's "reference" 6500
RNG, and thus the numbers it generates must be treated with some
care.

Support for the 7811 RNG (which is a full-fledged 6500 type
generator) is pretty much the same here as in other variants of
this driver, except that it uses Hifn's "worst case" estimate of
actual entropy per output bit, so it will accumulate bits much
more slowly.  The 7811 support is untested.
2005-10-15 08:58:15 +00:00
tls 15cb9441e1 From OpenBSD hifn7751.c revision 1.149: enable the command-wait interrupt
even if there's only one request in the queue.  Sometimes we seem to miss
multiple interrupts, and command-wait saves us.
2005-10-15 04:31:20 +00:00
xtraeme b0a4f3e4be Added support for Winbond 83627THF, from OpenBSD. 2005-10-15 00:41:48 +00:00
gdt d3aeb92bcb When bringing an interface up, and thus perhaps having just powered it
on (e.g. cardbus), write the wep keys to the card.  Fixes problem of
receiving gibberish if one has set wep keys before bringing the
interface up, and also after ifconfig ath0 down; ifconfig ath0 up.

(Tested with current from 20050926 with local mods, and discussed with
sam@ and dyoung@.  This is not 100% right, but significantly better
than before.  Really we should have an interator in net80211 to repush
all key state, include per-node keys.)
2005-10-14 00:26:45 +00:00
abs 90eafdf511 Make receiver lock-up workaround conditional on setting link1, as we have
too many false positives - should address PR/30505
2005-10-12 19:26:10 +00:00
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
macallan cc58522caf - avoid using global variables unless necessary, this should fix weird
problems when more than one mach64 is present
- check memory BARs in mach64_mmap() and adjust allowed ranges in case
something ( XFree86 for instance ) changed them
- disable 'standard' framebuffer mapping at offset 0 on sparc64 because some
Sun/ATI firmware likes to map PCI resources there. May be necessary on other
64bit architectures as well.
2005-09-21 18:49:16 +00:00
christos 51f092ffb7 PR/31364: Douglas Fraser: cmd680 IDE controller not configured properly. 2005-09-21 14:32:46 +00:00
martin 26e557a8c6 Extend the gallant font to full ISO8859-1. Content provided by der Mouse,
formatting and any errors by me.
2005-09-19 19:27:31 +00:00
skrll fbe43fd3d2 KNF. That is change u_intN_t to uintN_t. 2005-09-17 12:40:27 +00:00
jmcneill a06fde40bd Match my Zonet ZEW2500P 2005-09-16 23:55:14 +00:00
jmcneill 4cfb3e3385 Additional usbdevs entry for Ralink; found on my Zonet ZEW2500P 2005-09-16 23:54:25 +00:00
skrll 609c167c77 Correct a debug message. 2005-09-15 19:56:50 +00:00
martin 3e94fd1a1c Ignore KBD_IDLE one layer earlier - wskbd does not like it [and complains
in DEBUG kernels], and we already ignored it for raw mode.
2005-09-14 07:32:43 +00:00
martin 30895fa9a4 The entity passed to the HAL as a HAL_BUS_HANDLE needs to be an integral
or pointer type. So on sparc64 (and maybe others too?) where
bus_space_handle_t is a struct, pass the address of the bus_space_handle_t
and adjust the register access functions accordingly.

While there, slightly optimize the bus_space_* usage in the register
access functions and macros.
2005-09-13 05:50:29 +00:00
skrll 81eeab7ea5 Fix spello. 2005-09-12 21:15:04 +00:00
skrll 180eb637a5 Use the correct length parameter when capturing rx packets. 2005-09-12 21:11:11 +00:00
macallan fc1aa8099e add a blank line before case WSDISPLAYIO_LINEBYTES 2005-09-12 12:07:47 +00:00
macallan 0841377bbd add ioctl(WSDISPLAYIO_LINEBYTES) - needed by XFree's wsfb 2005-09-12 11:02:21 +00:00
xtraeme db1dafba87 Fix from OpenBSD:
rev 1.56:

Don't initialize the card (and start an autonegotiation!) every time
the IP address changes. Makes 'dhclient sk0' invocations way faster
and more consistant. i.e. one DHCPREQUEST elicts the DHCPACK.

Fix from FreeBSD:

rev 1.109:

Solve "No PHY found" problem for more Yukon Lite variants.

These changes fixed the problem on my sk(4) trying to get an IP
via dhclient(8).
2005-09-11 23:49:39 +00:00
augustss f4ceb83917 Regen. 2005-09-11 22:53:49 +00:00
augustss 947778dffe Add Apple's Mighty Mouse. 2005-09-11 22:53:07 +00:00
macallan 6a34aa32a0 Shuffle thermal sensor numbering so temp0 is always the on-chip sensor and temp1
is always CPU temperature.
2005-09-11 20:26:15 +00:00
cube 644b990fb1 Regen (DiskOnChip 0x0012). 2005-09-10 19:24:36 +00:00
tsutsui 35f4830ff9 The length member in struct scsi_request_sense is uint8_t so
no need to swap byteorder.
Whele here, change style of some byteswap ops from
	foo = bar();
	foo = ahc_htole32(foo);
to
	foo = ahc_htole32(bar());

XXX: I leave ahc_htole32() usage for union ins_formats for now
XXX: though it may be better to use byte-shift ops rather than byteswap.
2005-09-10 19:15:44 +00:00
cube 555baacb2d Add a DiskOnKey revision. 2005-09-10 19:08:33 +00:00
tsutsui f6ced662a1 Replace a magic number with proper macro. 2005-09-10 17:19:55 +00:00
drochner 1af44f3c6e remove the useless (always 0) device number from cardbus driver state,
autoconf attach structures and configuration cycle functions
(just leave the kernel configuration attribute for now to avoid breaking
 config(1) files)
2005-09-09 14:50:58 +00:00
drochner 1fbab2d81a make this compile again (shadow and const warnings)
I doubt this serves any useful purpose.
2005-09-09 13:48:10 +00:00
ragge 1e85211578 Note xge addition. 2005-09-09 13:45:41 +00:00
drochner fd6c232a7a Allow a NULL pointer as argument to usb_get_next_event(), and don't
allocate a "struct usb_event" on stack in usb_add_event().
This gives just enough breathing space that the box doesn't die
immediately from stack overflow when I insert a
ohci0 at cardbus0 dev 0 function 0: Acer Labs M5237 USB 1.1 Host Controller
2005-09-09 12:04:30 +00:00
ragge 0217dc7934 Device driver for the Neterion (S2io) Xframe-I 10Gbit ethernet card.
Still missing: VLAN + IPv6 checksum support.
2005-09-09 10:30:27 +00:00
christos ac3f544e6d fix compilation with debugging on. 2005-09-08 18:41:50 +00:00
christos e4efddfa8b PR/31130: FUKAUMI Naoki: Fix vge(4) SIOC{ADD,DEL}MULTI handling 2005-09-08 18:18:10 +00:00
drochner 1797f37c06 fix parsing of some informational CIS tuples: correct length and handle
the case correctly where a string is terminated with 0x00 0xff
2005-09-08 15:02:48 +00:00
dogcow 52dfe86ca8 With the assistance of dyoung, fix the following problems:
* some 8180L cards need a longer time for the srom to initialize; patch
  suggested via OpenBSD.
* some cards give '0' for USA, some give '3'; for the meantime, accept both
  as being USA locale cards.
* this is RTW, not ATW. :)
2005-09-07 05:25:41 +00:00
dogcow e9e04d00b0 add SiS id 0x0457 2005-09-07 01:34:19 +00:00
reinoud 04d00c8e39 Cleanup and fix cd_size() function; it was returning wrong results.
Also factor out read_cd_capacity()
2005-09-06 22:19:14 +00:00
kleink aece7a90fd Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges.  Noted by David Holland in PR kern/31126.
2005-09-06 21:40:37 +00:00
kleink 6fa3ab87b7 Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges.  Noted by David Holland in PR kern/31126.

Also, dispose of a redundant (and unreachable) instance of that check.
2005-09-06 21:36:54 +00:00
kleink bdfc943920 Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges.  Noted by David Holland in PR kern/31126.

Also change this to use the proc argument instead of curproc.
2005-09-06 20:46:38 +00:00
tsarna da085b10b3 Allow reception of VLAN sized frames. From FreeBSD.
Reviewed by cube.
2005-09-06 15:42:21 +00:00
dogcow 4ec2f95af9 make rtw.c compile again after the 22-jun-05 net80211 import 2005-09-06 01:59:26 +00:00
riz 1ea801e91a Fix typo in comment from previous revision. 2005-09-05 22:55:31 +00:00
reinoud d462489ea5 Implement DIOCCACHESYNC for SCSI/ATAPI cd/mmc recordable devices found by
scsipi/cd.c by issueing the SYNCHRONISE CACHES scsi/atapi call as defined
per MMC standard.
2005-09-05 21:16:24 +00:00
bouyer 9c2d1acf94 Use a pmatch(9) expression which should catch all present and future
seagate drives larger than 200GB for the WD_QUIRK_FORCE_LBA48 quirks.
Based on infos from
http://www.seagate.com/support/kb/disc/howto/interpret_model.html
2005-09-05 21:09:08 +00:00
bouyer f0a1379350 Add quirk for ST3200826A. From rudolf (netbsd at eq.cz) on tech-kern. 2005-09-05 20:42:37 +00:00
kiyohara d0bc61f001 Add j6x0lcd. 2005-09-05 18:58:29 +00:00
kiyohara 17587c6104 Support LCD screen driver for PERSONA SH3 machines. 2005-09-05 18:54:10 +00:00
tron d8dc729287 Regen. 2005-09-04 19:44:09 +00:00