Commit Graph

18592 Commits

Author SHA1 Message Date
fredb
fec463c4fe Comment as to why we run through the devinfo list twice, in audioattach(). 2005-02-13 23:50:22 +00:00
oster
e800226bf6 Convert a few "void *"'s to "struct buf *"'s. No functional changes. 2005-02-13 20:27:48 +00:00
heas
aa8184693f Add register definitions for hardware checksums, comments, and formats for
various register bitmask_snprintfs.
2005-02-13 19:12:06 +00:00
kent
68559dd1d9 fix a typo in audiogetinfo().
No behaviour changes though the code was wrong.
2005-02-13 17:05:15 +00:00
jdolecek
4737695e07 don't call re_rxeof a second time when we've already done the work
pull common code out from if and else clauses

from FreeBSD if_re.c rev. 1.33
2005-02-13 16:04:18 +00:00
jdolecek
ac81d6249a g/c debug printf 2005-02-13 15:43:33 +00:00
jdolecek
daadf23af5 KNF 2005-02-13 15:33:20 +00:00
jdolecek
739cd954dd constify 2005-02-13 09:10:54 +00:00
dyoung
6e9d895c23 Bug fix: use the MAC that the firmware tells us, resorting to the
CIS MAC only on error.

(NetBSD these days tries to read the MAC address from the PCMCIA
CIS.  Prism cards made by Senao set the MAC in every PCMCIA CIS to
00:02:6f:00:02:15.  In a network of Senao cards, this causes MAC
duplication.)
2005-02-13 07:33:06 +00:00
christos
be3704c73f pass the flag to fdclone. 2005-02-12 23:14:03 +00:00
rearnsha
d0a75ee514 Change PCIIDE_I31244_ENABLEDMA to PCIIDE_I31244_DISABLEDMA as
suggested by briggs.  Put the flag in opt_pciide.h.
2005-02-12 10:20:50 +00:00
oster
be864067da The 'next' argument to rf_CreateDiskQueueData is always NULL. Since
there is no particular reason to pass an extra NULL argument, turf it,
and initialize p->next to NULL within the function.
2005-02-12 03:44:41 +00:00
oster
0b15470982 Add a 'waitflag' argument to rf_CreateDiskQueueData() and use it to
determine if we are willing to wait for memory to come from the
diskqueuedata (dqd) and bufpool pools.  Cleanup the mess related to
code calling rf_CreateDiskQueueData() with different expectations
(and/or blatent disregard) of what might happen if there were
insufficient pool resources.
2005-02-12 03:27:33 +00:00
rearnsha
dfcdd57e20 Add support for the Artisea device operating in DPA mode.
Approved by briggs.
2005-02-11 21:12:32 +00:00
rearnsha
920296fb7f Add support for Artisea chips operating in DPA mode, which has a
16-bit view of the ATA command registers for extended commands.

Approved by briggs.
2005-02-11 21:11:15 +00:00
simonb
3cebd9325e White space nit- don't put a space before/after increment/decrement
operators.
2005-02-11 06:21:21 +00:00
hannken
78f7fe0941 - Unlock backing store vnode in case of error.
- 32 -> sizeof()*NBBY
2005-02-09 15:12:19 +00:00
yamt
7245b8aa0a remove a mysterious printf(" complete\n"). 2005-02-08 05:52:31 +00:00
briggs
fb9f110c8c Use aprint_*() instead of printf() at attach time. 2005-02-08 05:16:17 +00:00
augustss
ebb1c32c20 Never deliver HID data to subdrivers if the length is wrong. 2005-02-07 08:54:42 +00:00
skrll
b48e30cb2e Initialize 'error' in all cases in ioctl handler, otherwise it doesn't
compile (and of course might return garbage).  [hi kim!]
2005-02-06 09:33:23 +00:00
cube
d16fd94009 Initialize 'error' in all cases in ioctl handler, otherwise it doesn't
compile (and of course might return garbage).  [hi kim!]
2005-02-06 08:52:08 +00:00
kim
f045f7096d If the interface is up and running, only modify the receive filter
when setting promiscuous or debug mode.  This avoids resetting the
chip unnecessarily.

Fixes PR kern/29126.
2005-02-06 03:15:14 +00:00
oster
04a30b5e78 It's not a bad idea to update the component labels whether or not the
reconstruction was successful.
2005-02-06 02:29:36 +00:00
oster
00b2fb8253 CreateDiskQueueData() doesn't need to use void * for raidPtr.
RF_Raid_t is well known in RF, and there's no reason not to use it here.
2005-02-05 23:53:44 +00:00
oster
339f61b703 rf_GetNextReconEvent() *will* return a valid event, so no need for
the assert.  (we'd have panic'ed in there long before this assert
if that wasn't the case).

Minor whitespace changes.
2005-02-05 23:39:12 +00:00
oster
8ea3f15338 Cleanup function prototypes. 2005-02-05 23:35:33 +00:00
oster
c38bce14f6 Vastly improve the error handling in the case of a read/write error
that occurs during a reconstruction.  We go from zero error handling
and likely panicing if something goes amiss, to gracefully bailing and
leaving the system in the best, usable state possible.

- introduce rf_DrainReconEventQueue() to allow easy cleaning of the
reconstruction event queue

- change how we cleanup the floating recon buffers in
rf_FreeReconControl().  Detect the end of the list rather
than traversing according to a count.

- keep track of the number of pending reconstruction writes.  In the
event of a read error, use this to wait long enough for the pending
writes to (hopefully) drain.

- more cleanup is still needed on this code, but I didn't want to
start mixing major functional changes with minor cleanups.

XXX: There is a known issue with pool items left outstanding due to
the IO failure, and this can show up in the form of a panic at the
tail end of a shutdown.  This problem is much less severe than before
these changes, and the hope/plan is that this problem will go away
once this code gets overhauled again.
2005-02-05 23:32:43 +00:00
kanaoka
1054d5cc16 - Deal with status properly,if BMCR_ISO is set.
Fixes kern/29113.
2005-02-04 15:17:31 +00:00
joff
5cc20bed82 Support wsdisplay(4) attachments of hd44780 LCD controllers 2005-02-04 05:58:44 +00:00
perry
18db93c7f6 de-__P 2005-02-04 02:10:35 +00:00
christos
ba2396e33b Regen 2005-02-02 13:26:28 +00:00
christos
34508c6918 PR/29196: Robert Elz: Add support for Broadcom BCM4401-B0 ethernet 2005-02-02 13:26:06 +00:00
abs
f29f37c830 Regen to pick up corrected code for VIA VT6421 2005-02-02 11:20:40 +00:00
abs
0d94353073 Reminder not to trust cheap no-name packaging. VIA product 0x3249 is
a VT642*1* not VT642. Also add to list in viaide manpage and note
that drives need to be configured into RAID/JOBS sets via its BIOS.
http://www.via.com.tw/en/products/peripherals/serial-ata_raid/vt6421/
2005-02-02 11:19:49 +00:00
gson
971beb8edb Generate an interrupt only after processing all the samples in a block
rather than at the time of the last sample, to eliminate a click at the
end of each block when recording.  Fixes kern/18066.
2005-02-02 10:34:12 +00:00
matt
411c843baa Add entry for gti2c.c 2005-02-01 20:59:15 +00:00
matt
57b77a8963 Add a i2c driver for the onboard i2c/twsi controller on the GT642x0 2005-02-01 20:58:46 +00:00
matt
b3eef3bb0b Allow the driver to allocate needs resources on attach and not free
depending on cf_flags (instead of on interface up / down).
2005-02-01 20:47:02 +00:00
matt
61b5c08265 Add I2C child hooks. 2005-02-01 20:37:09 +00:00
drochner
12ff682534 Whitespace police. The rest remains crap. 2005-02-01 20:33:58 +00:00
abs
d3852ae541 regen to pick up the 'VT642 SATA RAID Controller'. 2005-02-01 18:21:58 +00:00
abs
6660565bb0 Add 'VT642 SATA RAID Controller'. It looks like a viaide, it smells
like a viaide... but you can only address the drives once you have
put two or more of them into a RAID or JBOD.
2005-02-01 18:21:14 +00:00
he
edf90a4645 There is no need to define DS1687_NVRAM_START twice. 2005-02-01 16:16:22 +00:00
gson
8de9537c69 Update printf format in debug printf to account for sample_rate now
being an unsigned int.
2005-02-01 12:07:58 +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
simonb
c9234f1972 Revert incorrect u_long->uint32_t conversion. 2005-01-31 23:46:33 +00:00
reinoud
4145e39ac7 Fix LP64 problems introduced by my u_long->uint32_t conversion. 2005-01-31 23:39:02 +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
reinoud
f93ea32254 As part of cleaning up sys/scsipi, replace all u_char by uint8_t and
replace all `short' with int16_t.
2005-01-31 21:13:16 +00:00
joff
5c5c7c1047 Add new wskbd type MATRIXKP 2005-01-31 06:07:32 +00:00
joff
ccd1cf1023 Matrix keypad wskbd(4) support. Matrix keypads are cheap/rugged user input
devices found in many embedded systems.  They must be polled and
debounced in software.  Should be able to handle any size matrix keypad, but
only tested with a 4x4 (16-key) device attached to the TS-7200 ARM embedded
board via the DIO header.
2005-01-31 06:03:40 +00:00
simonb
3c8e1a4259 Fix a typo. 2005-01-31 04:58:02 +00:00
thorpej
67568419ee Eliminate use of M_HASFCS. 2005-01-31 03:04:25 +00:00
thorpej
f3e948e11c Eliminate the use of M_HASFCS. 2005-01-31 03:02:27 +00:00
thorpej
a0c36aaebd Eliminate use of M_HASFCS. 2005-01-31 02:51:17 +00:00
reinoud
842f22fc3a As in revision 1.213, not all information is returned in read-TOC format 0. In order to add a new generic read-toc ioctl, i renamed the origional to _f0 to indicate its only format 0. The routines can then be changed one at a time to the new generic calling. This patch fixes two calls i'd overseen.... silly me forgot to recompile :( 2005-01-30 23:42:58 +00:00
reinoud
82eee08288 The code asumes all programs want to know is TOC response format 0. Support
for TOC response format 1 and 2 are mandatory on CD/DVD too and provide
more information.

Next an IOCTL needs to be implemented that can read all TOC formats in a
generic way. This is pending.
2005-01-30 23:39:42 +00:00
thorpej
d8474fd414 Eliminate the use of M_HASFCS. 2005-01-30 19:30:16 +00:00
thorpej
22044e51d1 Eliminate use of M_HASFCS. Use a buffer large enough to receive a
full-length Ethernet frame.
2005-01-30 19:24:05 +00:00
thorpej
53eac4d6eb Eliminate use of M_HASFCS. 2005-01-30 19:15:41 +00:00
thorpej
0fa67488f7 - Fix some logic errors in multi-descriptor packet reception case for
DP83820.
- Eliminate use of M_HASFCS.
2005-01-30 18:56:34 +00:00
thorpej
505f0442e5 Eliminate use of M_HASFCS. 2005-01-30 17:33:48 +00:00
thorpej
586d85d4f2 Eliminate use of M_HASFCS. 2005-01-30 17:23:45 +00:00
jonathan
b0c550f12b Remove duplicate stanza for re(4) at cardbus. When I added an entry
here and enabled it in i386 GENERIC_LAPTOP, I missed that yamt@ had
already added an entry here.
2005-01-29 22:05:26 +00:00
jonathan
0e8a3d7d0d Now that we've switched to the split re(4) for PCI, add the cardbus
frontend for the split re(4) to files.cardbus, and to the generic x86
laptop config (sys/i386/conf/GENERIC_LAPTOP).

NB: as best I know, there are still unresolved issues in attach and
powersave, with the NetGear cardbus cards and re(4).
2005-01-29 21:59:53 +00:00
kent
373214b329 * audiosetinfo()
call audio_clear() only when blocksizes are actually changed.
  This fixes a problem on some audio devices and applications which
use ossaudio and call SNDCTL_DSP_GETOSPACE repeatedly while playing.

* audiostartp()
  add some debug prints.
2005-01-29 18:16:49 +00:00
jmcneill
f697b3820f Fix typo (Capabiltites -> Capabilities). 2005-01-29 18:06:18 +00:00
jdolecek
f9b584bd58 match nForce2 Ultra 400 audio 2005-01-27 21:49:29 +00:00
jdolecek
7f0a422006 regen: add id for nForce2 Ultra 400 audio 2005-01-27 21:48:37 +00:00
jdolecek
0716a9ca67 add id for nForce2 Ultra 400 audio 2005-01-27 21:48:15 +00:00
kent
0e68407cf6 support nForce 4 2005-01-27 13:35:05 +00:00
kent
75432eafa2 support for nForce 4 PATA and SATA 2005-01-27 13:34:32 +00:00
kent
44200be30d regenerate for nForce 4 devices 2005-01-27 13:33:36 +00:00
kent
ab57a51809 add some nForce 4 devices 2005-01-27 13:31:45 +00:00
scw
1464f79e43 In vr_start(), don't forget to free the new mbuf if the second
bus_dmamap_load_mbuf() fails.
2005-01-27 11:58:01 +00:00
jmcneill
0a95a06218 Fix synaptics touchpad resume, from Kentaro A. Kurahone. 2005-01-27 03:04:31 +00:00
jmcneill
fac3e15af3 Fix typo. 2005-01-27 03:03:33 +00:00
jmcneill
7f3681fe2b Don't restore PCI configuration state if the chip isn't in D0, from
Kentaro A. Kurahone.
2005-01-27 02:58:52 +00:00
jmcneill
27d1abf7f8 Capture PCI configuration state on suspend and restore it on resume, from
Kentaro A. Kurahone.
2005-01-27 02:44:59 +00:00
jmcneill
73f985e393 Add agp_i810 powerhook, from Kentaro A. Kurahone 2005-01-27 02:43:42 +00:00
jmcneill
41a62b176d Add rtk_pci powerhook, from Kentaro A. Kurahone 2005-01-27 02:42:35 +00:00
jmcneill
6a3e1ea6a4 Missed a break in the powerhook (shouldn't matter functionally, but
fix anyway for correctness).
2005-01-26 22:15:26 +00:00
jmcneill
f9fc6336b1 Add pci_conf_{capture,restore} to auich(4) powerhook 2005-01-26 21:53:42 +00:00
jmcneill
0c537484ca Add powerhook to bge(4) 2005-01-26 21:52:47 +00:00
jmcneill
3ab5a3900d Add powerhook for atabus. 2005-01-26 21:51:40 +00:00
jmcneill
5a6c12cd3b Add powerhooks for PIIX IDE driver. 2005-01-26 21:50:31 +00:00
jmcneill
9c40186bce Add support functions for capturing and restoring PCI configuration
registers for power management code.
2005-01-26 21:49:00 +00:00
kleink
9ce91047cd Clean up the array of audio_formats supported. 2005-01-26 21:28:55 +00:00
fvdl
5ccd9c2654 Don't print a message when there's no interrupt to be handled, since this
can happen when one is shared. Also, don't claim it in that case.

Make some printfs more consistent.
2005-01-26 12:59:06 +00:00
jmmv
51b5451e34 Capture incomplete packets coming from the card, as this driver doesn't
support this feature.  This avoids multiple crashes that I've had in the
past.  Also ensure that packets are not empty when DIAGNOSTIC is set.

However, this is just another sanity check of the received packets, but
does not address the real problem.  The issue seems to be the following:
if the card receives data while doing a reset (vr_init), it later finds
a bunch of empty packets in the receive ring.

This explains the crashes I've hit: running a program which needs
promiscuous mode (dhclient) while the card was already running in
that mode (tcpdump).  In this situation, it's easy that the second
reset receives stuff from the network.

Unfortunately, I don't know why the card is producing these packets...

While here, fix a typo in a comment.
2005-01-25 17:02:09 +00:00
matt
1dfcdea23d Regen. 2005-01-25 00:55:25 +00:00
matt
2d074b9231 Add additional PCI Device IDs for ATI Radeon 9200 2005-01-25 00:55:00 +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
matt
027c11539b Add IFNET_FOREACH and IFADDR_FOREACH macros and start using them. 2005-01-24 21:25:09 +00:00
joff
4a237e5849 add atu 2005-01-24 02:08:57 +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
joff
f046ac8874 Atmel AT76C50XX firmware files (required by atu(4) USB-wifi adapter) 2005-01-24 01:00:19 +00:00
dan
f368e90e9b attach tl(4) as an event source to rnd(4)
patches from Sean Davis in PR/28556
(slightly modified to actually catch our own interrupts)
2005-01-23 10:53:19 +00:00
dan
724df7bd2e attach rtk(4) as an event source to rnd(4)
patches from Sean Davis in PR/28547
(also added a detach hook)
2005-01-23 10:26:06 +00:00
fredb
53c21c67e7 Regen. 2005-01-23 03:07:05 +00:00
fredb
18c05962e3 Recognize Belkin Gigabit Desktop Network PCI card. 2005-01-23 03:06:07 +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
briggs
d01fdd733e Put the headers in a more standard order with machine-specific and
dev/bus-specific headers after the sys and net headers.  This allows
it to actually compile on macppc, among other things.
2005-01-22 04:34:22 +00:00
oster
c18a242754 Torch some #define's missed in last commit. 2005-01-22 02:24:31 +00:00
oster
3140947870 Reconstruction Descriptors are only allocated once per reconstruction,
and don't need their own pool or freelist or anything fancier than a
malloc/free.
2005-01-22 02:22:44 +00:00
imp
babfd80c55 Update to using new INTERSIL names, plus a couple generic entries from FreeBSD 2005-01-21 20:27:03 +00:00
imp
fcc7589129 Replace NETGEAR_2 with INTERSIL to reflect who actually owns the ID. Add some IDs from FreeBSD 2005-01-21 20:26:09 +00:00
tsutsui
62b7a35d2d Unload xfer dmamap in pscsp_dma_stop(). 2005-01-21 14:37:58 +00:00
yamt
a9b37be6a2 - switch to dev/rtl8169.c from pci/if_re.c.
- enable re@cardbus.
both of re@pci and re@cardbus seem to work for me.
2005-01-21 12:32:18 +00:00
yamt
7ae610b397 remove a duplicated prototype of rgephy_reset. 2005-01-21 11:55:52 +00:00
dyoung
a10b4b5f6b Keep a count of free transmit/command descriptors, sc->txfree.
Make the transmit section reserve one descriptor for issuing a
command at all times.  If either transmit descriptors run out, or
header/buffer software descriptors run out, set IFF_OACTIVE and
get out of ipw_start, rather than re-using a descriptor or trying
to use a NULL descriptor that comes off the front of an empty
descriptor tailqueue.

This ought to fix port-i386/27439 and kern/28683.
2005-01-19 06:00:22 +00:00
dyoung
7f9c7dad5a For a proper IBSS merge, we have to discard the old beacon packet,
create and queue a new one that carries the new BSSID.  I mined
net80211 in FreeBSD for the solution, which is to make an
IEEE80211_S_RUN->IEEE80211_S_RUN state transition---ath_newstate
discards the old beacon packet creates a new one by calling
ath_beacon_alloc.

I tested the merge as follows.  Starting at my desk on the second
floor of the building where I work:

soekris% ifconfig ath0 mediaopt adhoc ssid zzz chan 11 down

powerbook% ifconfig rtw0 mediaopt adhoc ssid zzz chan 11 up

soekris% sleep 25; ifconfig ath0 up

I raced to the elevator with my Powerbook, pressed the "Down"
button, got in, and pressed "Floor 1."  At the first floor:

powerbook% ifconfig rtw0 | grep bssid
        bssid 02:p:p:p:p:p chan 11

I waited 25 seconds.  I pressed "Floor 2."  At Floor 2, I returned to my desk.
I checked to make sure that the Soekris console read:

soekris% ath0: creating bss 02:s:s:s:s:s
ath0: bss merge 02:s:s:s:s:s -> 02:p:p:p:p:p

0:s:s:s:s:s is the Soekris' WLAN MAC.  0:p:p:p:p:p is the Powerbook's
WLAN MAC.  Each created an ad hoc-mode BSSID from its WLAN MAC by
OR'ing 0x2 with the first octet.

My Powerbook created a network while the Soekris radio was off.
The Soekris radio turned on while I was in the 802.11-impervious
elevator with my Powerbook.  When I returned to the second floor,
the Soekris "heard" beacons from my Powerbook as the elevator door
opened.  Since the Powerbook's network was approximately 25 seconds
older than the Soekris', and since it had the same SSID (zzz) as
the Soekris', the Soekris merged with the Powerbook's network (by
setting its BSSID) as it should.
2005-01-19 04:56:42 +00:00
uwe
a1b87c0ac3 Shuffle persona_hpw200ec_keytrans[] to match recent change to
pfckbd_callout_hitachi().

Fix KEY_SPECIAL_OFF for both Persona machines.

From KIYOHARA Takashi.
2005-01-19 03:23:50 +00:00
yamt
28bcd01d16 - add rcsid.
- restore Bill Paul's copyright notice.
2005-01-18 11:11:58 +00:00
scw
2d0fc26c46 Address PR kern/28990 by making Synaptics Touchpad support contingent
on "options PMS_SYNAPTICS_TOUCHPAD" in the kernel config file. See
the PR for details on why this is necessary.

While here, defflag PMS_DISABLE_POWERHOOK.
2005-01-18 10:22:51 +00:00
tsubai
fcad06a784 Regen. 2005-01-18 06:24:18 +00:00
tsubai
e5b7a48413 Add some Apple devices. 2005-01-18 06:23:01 +00:00
uwe
8fc1984171 Kill trailing whitespace. 2005-01-18 06:05:52 +00:00
uwe
80e190d19b Use uint<N>_t instead of u_int<N>_t. 2005-01-18 06:03:31 +00:00
dyoung
fc524c150b Use IFQ_DEQUEUE instead of IF_DEQUEUE on if->if_snd to be consistent
with IFQ_SET_READY(&if->if_snd) elsewhere, and also to enable
ALTQ(9) on ipw(4).
2005-01-18 04:31:09 +00:00
uwe
a1e2e32edf Rewrite pfckbd_callout_hitachi() to do the same scan line dance that
pfckbd_callout_hp() does.  Change the order of scan and the layout of
the matrix to be more natural.

Chords like <Shift>+<L> now work.

From KIYOHARA Takashi.
2005-01-18 03:59:11 +00:00
oster
26187fa579 ForceReconReadDoneProc() needs a return after doing the first
rf_CauseReconEvent().
2005-01-18 03:29:51 +00:00
martin
ab7375f57f More changes from Michael Lorenz:
- fix a panic in mach64_alloc_screen()
 - some cleanup
 - restrict mach64_mmap() to addresses which belong to it
 - mach64_attach now prints bus addresses instead of kernel vm addresses
 - initial support for macppc
2005-01-17 22:52:46 +00:00
minoura
c2a6ed3b7b Fix panic when precision < 8.
From kent@.
2005-01-17 14:13:19 +00:00
scw
731215b5bf Support Broadcom BCM5222 dual 10/100 media interface. 2005-01-17 13:17:45 +00:00
scw
24e6317bf7 Regen for Broadcom BCM5222. 2005-01-17 13:16:50 +00:00
scw
68480055b3 Add entry for Broadcom BCM5222 Dual 10/100 media interface. 2005-01-17 13:16:19 +00:00
augustss
c9d494cae1 Make it compile with debug. 2005-01-17 12:24:37 +00:00
dyoung
1a198218b9 Delete an out-of-date comment. 2005-01-17 01:48:56 +00:00
bouyer
c306ebdd4c Also call ata_dmaerr() on DMA errors (as reported by the underlying controller
driver). We want to downgrade to PIO mode if DMA isn't functionnal.
2005-01-16 20:17:37 +00:00
kent
9dd560ddf7 * uaudio_round_blocksize()
calculate playing blocksize and recording blocksize independently
2005-01-16 12:46:00 +00:00
dyoung
55940f7c4e Move the register access mode into struct rtw_regs. Change
rtw_set_access, rtw_set_access1 to match.

Add a subroutine for setting WEP keys.  WEP isn't quite finished,
because I have to add the WEP header to Tx packets.  Implement the
SIOCS80211NWKEY ioctl for setting WEP keys.

Program the LEDs based on operating state and packet activity.

 * On a Revision F RTL8180, blink LED1 at 1Hz to indicate
   scan/authenticate/associate states.  In the run state, turn LED1
   on.  In every state, blink LED1 at 5Hz to indicate non-beacon
   tx/rx activity.  I would like to use two LEDs, but in all my
   Rev. F instances, LED0 is not wired to an LED; instead, the
   first LED is wired to indicate that the card's power is on.

 * On a Revision D RTL8180, program the LEDs so that LED0 indicates
   Tx, and LED1 indicates Rx.  The Rx LED will blink annoyingly if
   there are beacons in the air, but at least the Tx LED is useful.

 * Store the hardware revision in the softc to support my futile
   attempt at programming LEDs for both Rev. D and Rev. F parts;
   I never did get Rev. D LEDs to work right.

 * Add a debug flag RTW_DEBUG_LED for the LED transitions.

Add RTW_TPPOLL_ALL, RTW_TPPOLL_SALL to start and stop, respectively,
all of the transmit rings.

In ad hoc mode, allocate a beacon and load it into the beacon ring.
Start the ring.  In one trial, the card re-transmitted the beacon
ring's contents several times before stopping.  More programming
and testing for ad hoc mode is necessary.  I'm not setting the
beacon flag in the transmit descriptor.

Revamp the transmit section to make better use of all the transmit
rings:  beacon queue, high-, low-, and medium-priority rings.  Put
beacon frames on the beacon ring.  All other management frames,
and data frames, go on the medium-priority ring.  Power-save data
frames go on the high-priority ring.  (Note that powersaving is
not implemented!)  This is a work in progress.

Send all 802.11 Management frames at 1Mbps.

After we put a packet on a transmit ring, tickle the right bit in
the TPPOLL to tell RTL8180.  Stop all rings on error and in rtw_stop.

Use the RF chip type, not the RTL8180 revision, to choose between
host- and MAC-controlled RF serial I/O.  Now the Netgear MA521
works.

Remove bogus definition of bit RTW_TPPOLL_FSWINT.
2005-01-16 11:50:43 +00:00
dyoung
500260511f It's necessary to stop DMA on the beacon ring and reconfigure the
beacon after an IBSS merge, or else beacons transmissions may not
resume like we expect.  From Sam Leffler.
2005-01-16 11:43:34 +00:00
mycroft
ea0b1cb353 Just to be absolutely correct, wait an additional 1ms after the "power cycle"
event, to cover the RESET Width (Tw (RESET)).
2005-01-16 08:56:29 +00:00
mycroft
b0345c674e Christos's crappy Libretto 100CT has an extremely long ramp for socket Vcc
(violating the PC Card spec), so... use the "power cycle" socket event to
determine when we've reached Vcc before proceeding, rather than using a fixed
amount of time.  This has the double advantage that it makes the card attach
time even shorter on sane systems -- the minimum is now ~38ms on my i8500
rather than 222ms.

Probably a similar change should be made to pcic, but it was hard enough
figuring out whether it would work with pccbb.  The chip specs suck.

For now, I'm leaving in a couple of additional printf()s in the hope that I
will get some interesting data from them.
2005-01-16 08:51:55 +00:00
dsainty
ba43333ef8 Make this compile (after previous commit) with UAUDIO_DEBUG defined 2005-01-16 06:02:19 +00:00
kent
ba29617639 minor KNF 2005-01-15 16:23:03 +00:00
kent
93293b9ec7 ansify and KNF 2005-01-15 15:19:51 +00:00
skrll
4b90045498 Remove local PCI_PRODUCT defines 2005-01-15 13:27:23 +00:00
skrll
fcf73d97d0 Regen. 2005-01-15 13:23:31 +00:00
skrll
26e988358c Add Intel PRO/Wireless LAN 2915ABG Mini-PCI Adapter 2005-01-15 13:21:31 +00:00
kanaoka
79c7579be2 - Make sure D0 state if device has Power Managmet capability.
- Use aprint_*.
 - Change some cosmetic.

XXX not tested.
2005-01-15 12:33:37 +00:00
kanaoka
1c4a548b54 - Use aprint_*.
- Use ANSI decls.
 - Change some cosmetic.
2005-01-15 12:32:09 +00:00
dyoung
7ce33f984e Fix two bugs: frames were bogusly discarded with the complaint
"oversize frame."  Also, some an(4) instances (esp. w/ firmware
version 5+) would not reliably interoperate with some Cisco APs.

Add a sysctl for enabling/disabling debugging.

The problem with Aironet AP interoperability was that the rx frame
'gap' will sometimes be loaded with the 802.2 SNAP header, and
sometimes omitted, when connected to a Cisco AP; an(4) was *always*
discarding the gap.  The problem with "oversize frames" was an
off-by-2 error in the frame-length arithmetic.

While we're here, pad some RIDs to the length that new firmware
really expects.

Thanks to Jim Miller for his valuable bug reports and testing, and
to Dheeraj Reddy for RID-length patches.  Some clues from various
Linux drivers for Cisco/Aironet cards led to the gap fix.
2005-01-15 11:01:46 +00:00