Commit Graph

2339 Commits

Author SHA1 Message Date
xtraeme 6b34c93b70 regen 2005-03-15 17:54:17 +00:00
xtraeme 8223efec1b Add entry for "SAMSUNG Mighty drive" provided by Thilo Manske in PR
kern/29550.
2005-03-15 17:52:18 +00:00
skrll 41889bdcaa Remove an item - uhidev(4) now exists.
OK'd by Lennart.
2005-03-13 08:21:50 +00:00
mycroft e63d9a6eae Restructure interrupt handling a little:
* Only futz with the done list in the soft interrupt handler.  In the hard
  interrupt handler, do nothing except mask WDH and queue the soft interrupt.
  This simplifies a bunch of code, removes two O(n^2) queue manipulations,
  and gets rid of some really sketchy stuff around the queue head access.
* Use the auto-masking code at the end of the interrupt handler for both WDH
  and RHSC interrupts.  Again, this reduces the code a little, and avoids
  multiple writebacks to the chip registers.
2005-03-11 19:25:22 +00:00
mycroft 5c336d800d Regen. 2005-03-04 05:03:42 +00:00
mycroft 3839e0db1b Separate out vendors from the product table, to reduce string duplication.
Saves ~10K.
2005-03-04 05:03:19 +00:00
itojun a02091146b atu on OQO model 01 is confirmed to be working under basestation/no-WEP.
(WEP is not supported yet, it is an different issue)
2005-03-03 09:23:24 +00:00
itojun 8a4d93018c OQO wifi interface needs quirks
(not confirmed if it works or not, so commented out)
2005-03-03 08:10:35 +00:00
itojun 4bb7e85761 OQO ether port confirmed to be working 2005-03-03 08:10:01 +00:00
mycroft 2d562a01e2 Copyright maintenance. 2005-03-02 11:37:27 +00:00
itojun 99b78187d5 OQO device still unstable on attach/whatever, so comment those entries out 2005-03-02 11:35:07 +00:00
itojun 039684b142 regen 2005-03-01 03:19:17 +00:00
itojun 3ea088e9f4 add OQO model 01 devices 2005-03-01 03:18:52 +00:00
joff a446f7ac7a Misc changes from code review from someone who doesn't understand USB or
802.11 but wants this driver to work nonetheless...
 o Support WEP encryption, hopefully fix PR kern/29324 from Andreas Gustafsson
 o Correct ENETRESET reconfig while iface is already running
 o Correct bpfilter usage
 o Avoid leaking mbufs on failed TX
 o Reset ieee80211 state to INIT and stop atu_task() on atu_stop()
 o Don't stop interface on USB tx errs, just drop packet
 o use IFQ_IS_EMPTY rather than check if_snd for NULL head
2005-02-27 23:49:05 +00:00
perry 0cce50f2c9 do not leave spaces at the end of stripped RCS Ids 2005-02-27 15:37:33 +00:00
perry f31bd063e9 nuke trailing whitespace 2005-02-27 00:26:58 +00:00
joff d42fc76092 Clear IFF_RUNNING flag before aborting usb pipes in atu_stop().
Really fixes kern/29326.
2005-02-25 14:47:19 +00:00
martin 7ff97b3311 Fix memory leak reported by Ted Unangst as bug #3 on tech-kern. 2005-02-24 08:19:38 +00:00
joff ba4b28e8e5 o Make sure interface is up before continuing with atu_start(). Should fix PR
kern/29326 as reported by Andreas Gustafsson.
o Use IFQ_DEQUEUE instead of IF_DEQUEUE
2005-02-24 06:06:11 +00:00
thorpej df9803ce96 Part 1 of a cleanup pass over the SCSI subsystem. The aim is to name
everything "scsi_*", since we really are talking about the SCSI command
set, ATAPI transport not withstanding.  Improve the names of many structures,
and prepend "SCSI_" onto all SCSI command opcodes.  Place items described
by the SCSI Primary Commands document into scsi_spc.h.
2005-02-21 00:29:06 +00:00
martin 9ba6d74025 Add SUNTAC U-Cable type A4 support,
from yamajun at ofug dot net, in PR kern/29397.
2005-02-16 07:52:47 +00:00
augustss ebb1c32c20 Never deliver HID data to subdrivers if the length is wrong. 2005-02-07 08:54:42 +00:00
reinoud f323bc537c Backing out changes to clean up scsipi. I was pointed out there were
problems i hadn't seen. To prevent lossage i'd decided to back off all
changes and let them be reviewed on tech-kern.
2005-02-01 00:19:34 +00:00
reinoud b220d67a3e Part of the cleanup of sys/scsipi's use of types; rename all u_int* to
uint* and change the u_long's to uint32_t's where possible. Note that the
iocl definitions/hooks have to be ulong (or u_long) or they'll bomb out.
2005-01-31 23:06:41 +00:00
joff 79f8908d72 It seems on some archs size_t is unsigned int and on others size_t is
unsigned long.  Cast sizeof() to unsigned long in printf()'s so it can
always work regardless.
2005-01-24 22:40:00 +00:00
joff 25f4405fee Add atu(4), Atmel 802.11b USB wifi dongle. From OpenBSD. 2005-01-24 01:36:07 +00:00
joff 9a12dd0ebe Implementation requirements of usb_needs_reattach(), from OpenBSD and required
for atu(4) to do a USB reconnect after firmware upload.
2005-01-24 01:30:38 +00:00
joff 988043649e New Belkin USB-wifi ID, rename DWL120 to generic AT76C503A since this ID is used by more than one vendor (from OpenBSD) 2005-01-24 01:21:31 +00:00
joff c8bf53857e Atmel AT76C50XX usb 802.11b wifi dongle driver from OpenBSD. 2005-01-24 01:17:03 +00:00
elric 84f1219a04 Fix typo. 2005-01-23 01:25:57 +00:00
elric 504ce9bd7d new driver: usb generic serial adapter.
approved by:	augustss@netbsd.org	(code)
		christos@netbsd.org	(driver name)
2005-01-23 01:25:04 +00:00
hamajima 8c1ec034b0 Add Sony PlayStation2 EyeToy. 2005-01-22 16:38:55 +00:00
kent 9dd560ddf7 * uaudio_round_blocksize()
calculate playing blocksize and recording blocksize independently
2005-01-16 12:46:00 +00:00
dsainty ba43333ef8 Make this compile (after previous commit) with UAUDIO_DEBUG defined 2005-01-16 06:02:19 +00:00
kent 93293b9ec7 ansify and KNF 2005-01-15 15:19:51 +00:00
imp f2bd93408a Merge from FreeBSD:
sc_child is only used on NetBSD and OpenBSD, ifdef appropriately
FreeBSD revisions:
	ehcivar.h	1.8
	ohcivar.h	1.39
	uhicvar.h	1.39
2005-01-11 07:45:34 +00:00
kent 23b5d91433 merge kent-audio1 branch, which introduces audio filter pipeline to the MI
audio framework


Summary of changes:

* struct audio_params
  - remove sw_code, factor, factor_denom, hw_sample_rate,
hw_encoding ,hw_precision, and hw_channels.  Conversion information
is conveyed by stream_filter_list_t.
  - change the type of sample_rate: u_long -> u_int
  - add `validbits,' which represents the valid data size in
precision bits.  It is required in order to distinguish 24/32bit
from 24/24bit or 32/32bit.

* audio_hw_if
 - add two parameters to set_params()
	stream_filter_list_t *pfil, stream_filter_list *rfil
   A HW driver should set filter recipes for requested formats
 - constify audio_params parameters of trigger_output() and
trigger_input().  They represent audio formats for the hardware.
 - make open() and close() optional
 - add int (AUMODE_PLAY or AUMODE_RECORD) and audio_params_t parameters
 to round_blocksize()

* sw_code is replaced with stream_filter_t.
  stream_filer_t converts audio data in an input buffer and writes
into another output buffer unlike sw_code, which converts data in
single buffer.
  converters in dev/auconv.c, dev/mulaw.c, dev/aurateconv.c,
dev/tc/bba.c, dev/ic/msm6258.c, and arch/arm/iomd/vidcaudio.c are
reimplemented as stream_filter_t

* MI audio
 - audiosetinfo() builds filter pipelines from stream_filter_list_t
filled by audio_hw_if::set_params()
 - audiosetinfo() returns with EINVAL if mmapped and set_params()
requests filters
 - audio_write(), audio_pint(), and audio_rint() invoke a filter
pipeline.
 - ioctl() for FIONREAD, AUDIO_WSEEK, AUDIO_GETIOFFS,
AUDIO_GETOOFFS, and audio_prinfo::{seek,samples} for
AUDIO_GETINFO handle values for a buffer nearest to userland.

* add `struct device *' parameter to ac97_attach()

* all of audio HW drivers follow audio_hw_if and ac97 changes
2005-01-10 22:01:36 +00:00
yamt 06fbfe5c17 constify. 2005-01-08 03:16:51 +00:00
imp ed235136f1 regen for usbdevs 1.392 2004-12-29 08:40:30 +00:00
imp b5cc71aac7 From FreeBSD:
Add note about where to find official USB VIDs.
2004-12-29 08:38:44 +00:00
nathanw 96f80cede0 USB_DETACH(): Don't zero out sc->sc_pipe[i] after aborting the
pipe. This lets umass_disco() free the pipes and associated controller
state, rather than leaking 2-3 pipes per attach/detach cycle.
2004-12-28 23:35:21 +00:00
imp 8cc2724dbf sync to usbdevs 1.391 2004-12-27 07:05:32 +00:00
imp 76d1141e8d Very minor cleanup:
o Sort vendor PALM entry numerically
o For all vendors, separate the number from the name by a tab, not two
  spaces (this affects 5 entries).
2004-12-27 07:04:26 +00:00
imp ee755844ef Sync to usbdevs 1.389 2004-12-26 07:39:50 +00:00
imp 71d471a43a Sort HAGIWARA entry (0x0693) numerically 2004-12-26 07:39:24 +00:00
imp 10065c5c65 Sync to usbdevs 1.388 2004-12-26 07:05:32 +00:00
imp d30682d183 Sort LOGITEC (0x0789) entry numerically. 2004-12-26 07:03:29 +00:00
joff 330c69ca0e Make sure to ack the interrupt even if we are ignoring it. Otherwise, we will
keep coming back.
2004-12-22 19:36:13 +00:00
fvdl 735ac78567 Use 256k, not 256M (I thought I had fixed that, since it was discussed
a while ago, but apparently I did forget it). Thanks to Juan for reminding
me.
2004-12-21 19:49:56 +00:00
fvdl a3cea30b50 Implement an USB memory reserve. Allocate some memory per host controller
in the wanted bus_dma space. If an allocation fails during operation
(i.e. when hotplugging an umass device), fall back to using the reserve.

The amount can be configured as USB_MEM_RESERVE. The default value is
256k.

Ideally, there would be a way to steal pages in the desired area from
UVM, but that's far more complicated, and this is not intrusive, plus
it works.
2004-12-21 16:41:24 +00:00