Commit Graph

18353 Commits

Author SHA1 Message Date
thompsa
616dc8027b The NRL value in the queue head must be zero for interrupt transfers. This was
diagnosed using a USB analyser obtained through a FreeBSD Foundation grant.

Thanks to:	FreeBSD Foundation
2009-02-08 21:08:00 +00:00
sam
17606abd64 fix typo
Submitted by:	Christoph Mallon <christoph.mallon@gmx.de>
2009-02-08 20:29:37 +00:00
thompsa
093a3609e4 Fix build, sigh. 2009-02-07 15:51:32 +00:00
thompsa
804c089571 Dont hold the lock over the controller init, we are still attaching. 2009-02-07 06:27:16 +00:00
sam
61f77d6544 count stuck beacon events 2009-02-07 05:34:41 +00:00
sam
1e003b5a3f fix building w/o CFI_ARMEDANDDANGEROUS 2009-02-07 05:32:19 +00:00
sam
9c81682488 expand CFI_ARMEDANDDANGEROUS to include writing the user segment
of the PR; this register is actually write-once so deserves the
safety-belt as much as the PLR
2009-02-07 05:03:25 +00:00
wkoszek
3312f12f71 si_cmdname() is defined only when SI_DEBUG is enabled, thus
using this function in simple printf() causes compile-time
problems. Use conditionally enabled DPRINT() macro instead.
2009-02-07 02:14:27 +00:00
sam
4b8982cf33 fix 11n channel construction 2009-02-07 01:54:57 +00:00
sam
f7b39f5e66 add macro for future regulatory mods 2009-02-07 01:53:44 +00:00
nwhitehorn
149d70c667 Rearrange this code slightly to pass softcs around instead of device_t,
solving a possible panic when snd_ai2s is loaded at boot time. Also change
the device setup to indicate to the pcm layer that the device is MPSAFE.

Submitted by:	Marco Trillo
Suggestions by: Ariff Abdullah
2009-02-07 01:15:13 +00:00
wkoszek
a6c32bcda6 Fix AGP debugging code:
- correct format strings
- fill opt_agp.h if AGP_DEBUG is defined
- bring AGP_DEBUG to LINT by mentioning it in NOTES

This should hopefully fix a warning that was...

Found by:	Coverity Prevent(tm)
CID:		3676
Tested on:	amd64, i386
2009-02-06 20:57:10 +00:00
kevlo
974ef5e843 In urtw_init() call urtw_stop(ifp, 0) rather than urtw_stop(ifp, 1)
to stop the device.
2009-02-06 15:27:40 +00:00
kevlo
1029fa8a52 Regen 2009-02-06 15:04:06 +00:00
kevlo
9fbefbe96f Add the Buffalo WLI-U2-SG54HG 2009-02-06 15:03:17 +00:00
imp
fdc03cf101 fix spelling error
Submitted by:	trasz
2009-02-06 09:34:17 +00:00
imp
8448edb36a Store the entire funce for disk type functions (eg CF cards and the
like).
2009-02-06 07:49:03 +00:00
wkoszek
3d93b85eb4 Remove unused variable.
Found with:	Coverity Prevent(tm)
CID:		4138
2009-02-06 00:55:19 +00:00
sam
d40450f670 add PSB channels to the calibration list 2009-02-06 00:48:56 +00:00
wkoszek
4d019c63b6 Bring consistent debugging output for all values that are supposed
to be printed in a hexadecimal format. Otherwise, '270' doesn't say
much.

Reviewed by:	imp
2009-02-05 23:51:11 +00:00
kmacy
f8d6e74e3a fix non-witness compile 2009-02-05 21:18:39 +00:00
sam
336cb9e99f eliminate gainFCorrection; just have ar5212GetGainFCorrection return
the calculated value as it's only used in one place
2009-02-05 21:13:31 +00:00
sam
18819a0562 Minor packet drop improvements:
o change tdma packet drop msg when ack required to ATH_DEBUG_TDMA
  (ATH_DEBUG_XMIT is too noisy)
o add a debug msg for raw packet drop due to interface down/invalid
o add stats for these two cases
o explain how another drop case is handled
2009-02-05 21:02:40 +00:00
sam
5b2183aa12 improve IQ cal debug msgs; in particular don't scare people by screaming
"MISGATED IQ CAL!" when it's not
2009-02-05 20:56:33 +00:00
sam
d9b4eedcd5 fill in ar5212ResetCalValid; reset the IQ valid flag on the channel
so IQ calibration will be started on the next periodic cal
2009-02-05 20:51:53 +00:00
sam
3eb0ca6204 style 2009-02-05 20:49:13 +00:00
sam
1434b839c9 replace r/w idiom with OS_REG_SET_BIT (to match other code) 2009-02-05 20:48:30 +00:00
imp
0129b996aa Don't check for mapping above 4GB on 32-bit platforms. 2009-02-05 20:44:06 +00:00
imp
5370f72626 do_product_lookup should return a const struct pccard_product *. 2009-02-05 19:39:07 +00:00
imp
7730d077dc Fix parameter types for set_res_flags and read_ivars 2009-02-05 19:38:31 +00:00
imp
3a5200e02e shutdown returns an int 2009-02-05 19:37:49 +00:00
imp
519fc8678e shutdown returns an int 2009-02-05 19:36:14 +00:00
imp
c3297b3cc4 writereg returns an int. 2009-02-05 19:33:35 +00:00
imp
1ce99eeccb writereg returns an int. 2009-02-05 19:33:20 +00:00
imp
49862b4836 Make iclear return int, since that matches all function definitions of it. 2009-02-05 19:32:34 +00:00
imp
10f81d10bb reset_epp and ecp_sync both return int. 2009-02-05 19:31:55 +00:00
imp
41dda7f4c2 Shutdown returns an int. 2009-02-05 19:30:55 +00:00
imp
1d8d2a7ac9 Add some additional debugging for the memory code. 2009-02-05 18:51:14 +00:00
imp
062d78912f device_shutdown returns an int. 2009-02-05 18:43:13 +00:00
imp
0751bde8b4 pcib_read_config and pcib_write_config take u_int params. 2009-02-05 18:40:42 +00:00
imp
935c541038 device_shutdown returns int. 2009-02-05 18:39:33 +00:00
imp
93f8c41e18 bus_add_child takes a const char *. 2009-02-05 18:38:39 +00:00
sam
a7490070eb Add support for frobbing Intel StrataFlash Protection Registers:
o add CFI_SUPPORT_STRATAFLASH compile option to enable support
o add new ioctls to get/set the factory and user/oem segments of the PR
  and to get/set Protection Lock Register that fuses the user segment
o add #defines for bits in the status register
o update cfi_wait_ready to take an offset so it can be used to wait for
  PR write completion and replace constants w/ symbolic names

Note: writing the user segment isn't correct; committing now to get review.

Sponsored by:	Carlson Wireless
Reviewed by:	imp, Chris Anderson
2009-02-05 18:12:07 +00:00
nwhitehorn
420044c9bd Fix bm_shutdown() KOBJ method to correspond to return int, as it should.
Found by:	Andriy Gapon
2009-02-04 22:16:27 +00:00
imp
f0da128350 Correct signatures to match kobj function definitions. 2009-02-04 21:11:31 +00:00
imp
d59ba59489 Shutdown routine returns int. 2009-02-04 20:39:45 +00:00
imp
00c586aa2b detach doesn't return an unsinged int, but returns an int. 2009-02-04 20:35:22 +00:00
imp
f2d1b16468 Fix shutdown routine to return 0 and change signature from void return
to int.
2009-02-04 20:26:27 +00:00
imp
26fa1c42bc Correct signature for the identify routine. The bad parameter wasn't
used at all, so this is just a tidiness excersize.
2009-02-04 20:23:42 +00:00
ed
85ebf97341 Slightly improve the design of the TTY buffer.
The TTY buffers used the standard <sys/queue.h> lists. Unfortunately
they have a big shortcoming. If you want to have a double linked list,
but no tail pointer, it's still not possible to obtain the previous
element in the list. Inside the buffers we don't need them. This is why
I switched to custom linked list macros. The macros will also keep track
of the amount of items in the list. Because it doesn't use a sentinel,
we can just initialize the queues with zero.

In its simplest form (the output queue), we will only keep two
references to blocks in the queue, namely the head of the list and the
last block in use. All free blocks are stored behind the last block in
use.

I noticed there was a very subtle bug in the previous code: in a very
uncommon corner case, it would uma_zfree() a block in the queue before
calling memcpy() to extract the data from the block.
2009-02-03 19:58:28 +00:00