thorpej
1e1c759c66
Don't use newlines in string literals.
2002-11-07 06:54:25 +00:00
thorpej
61eddf92a7
Clean up token pasting so that this works with GCC 3.3's CPP.
2002-11-07 06:51:51 +00:00
kent
12ac4ab865
Fix LR contrary problem of mixer and record gain polarity
...
problem. The change is based on the patches in PR kern/12878 by
Zdenek Salvet and PR kern/18901 by SUNAKAWA Hirokatsu.
2002-11-06 16:58:37 +00:00
kent
dbf1b9ea9f
Add codec IDs for AD1981B, STAC9750/51, and STAC9766/67.
...
Whitespace.
2002-11-06 13:41:22 +00:00
dsainty
d85f3281dd
ARGSUSED/FALLTHROUGH delinting (first pass)
2002-11-06 10:56:22 +00:00
onoe
d125f36802
Add support of Sony PEGA-WL100 CF Wireless LAN Card.
2002-11-06 05:45:17 +00:00
cjs
faade5e87c
Fix typo.
2002-11-05 12:13:40 +00:00
cjs
c866abcfc9
Restore umass_fixup_sony so that Sony cameras work once again.
2002-11-05 12:06:58 +00:00
pooka
00f370741b
we don't own Jason, even if we'd like to
...
(fix typo in comment, in case you're wondering ;)
2002-11-04 19:17:33 +00:00
kent
22d0e4bb85
auvia_set_params:
...
For a fixed-rate codec, when AUMODE_RECORD and AUDIO_ENCODING_MULAW or
AUDIO_ENCODING_ALAW, use AUDIO_ENCODING_SLINEAR_LE/16bit for native encoding
instead of AUDIO_ENCODING_ULINEAR/8bit because aurateconv does not support
sampling rate conversion for 8 bit PCM.
This change fixes PR kern/18834.
2002-11-04 16:38:49 +00:00
pooka
d6b170e2de
add support for the second DAC found on the chip. to attach the second
...
audio device, define EAP_USE_BOTH_DACS
2002-11-04 16:34:25 +00:00
kent
8eadd119b9
Add power-management register definitions.
2002-11-04 14:56:10 +00:00
wiz
98219f2782
regen (typo fix from PR 18921)
2002-11-04 12:36:25 +00:00
wiz
ec50e0a966
Fix typo reported by Nicolas Joly in PR 18921.
2002-11-04 12:35:27 +00:00
junyoung
0c51bd608e
Missing '.'
2002-11-04 08:05:52 +00:00
jdc
09f6c6a9cc
Apply patch from Takeshi Nakayama on current-users which fixes problems
...
when trying to play audio CD's on some drives. The original message was :
> In my analysis, rev 1.19 of cd_scsi.c used cd_scsibus_set_mode()
> instead of scsipi_mode_select(). cd_scsibus_set_mode() had the code
> which clear a data.header.data_length, but scsipi_mode_select()
> does not have. So we need `data.header.data_length = 0;' before
> calling scsipi_mode_select().
Fixes PR 7299 and probably PR 15155 and PR 16883 too.
2002-11-03 21:14:28 +00:00
bjh21
b9870fb26c
Quieten lint a little.
2002-11-03 14:59:06 +00:00
bjh21
bfd06a4ff0
Regen (Simtec USB).
2002-11-03 12:59:44 +00:00
bjh21
097f627f92
Add Simtec USB podule.
2002-11-03 12:58:15 +00:00
augustss
a098e7a97d
Avoid lint complaints.
2002-11-03 09:57:40 +00:00
jdolecek
9d0bfe1097
reduce number of <'s in FatalOp debug print, to not get mistaken with
...
CVS conflict marker
2002-11-02 20:58:17 +00:00
perry
1645cbb7b4
change array to unsigned char. fixes 23430 lint warnings. "really!"
2002-11-02 16:26:03 +00:00
martin
b78c3d23e1
Need to cast a bus_space_addr_t to (u_long) before gcc allows us to cast
...
it to a pointer on 32bit spacr64 kernels. Sigh.
2002-11-02 15:54:10 +00:00
kristerw
e3355c4796
Removed unused structure.
2002-11-02 10:47:49 +00:00
perry
6858187df6
/*CONTCOND*/ while (0)'ed macros
2002-11-02 07:20:42 +00:00
perry
c290830eb1
changed asm()s to __asm()s.
...
XXX Now, could someone please explain to me why in the love of Bob a
file containing inline x86 assembler is in sys/dev/isa/????
This should be moved, fixed, or nuked from space.
2002-11-02 02:10:56 +00:00
jdolecek
60c092247e
pckbc_poll_data1(): make sure the loop variable is always initialized
...
this potential problem found by Krister Walfridsson
2002-11-01 21:39:31 +00:00
mrg
603098b9b5
implement separate read/write disk statistics:
...
- disk_unbusy() gets a new parameter to tell the IO direction.
- struct disk_sysctl gets 4 new members for read/write bytes/transfers.
when processing hw.diskstats, add the read&write bytes/transfers for
the old combined stats to attempt to keep backwards compatibility.
unfortunately, due to multiple bugs, this will cause new kernels and old
vmstat/iostat/systat programs to fail. however, the next time this is
change it will not fail again.
this is just the kernel portion.
2002-11-01 11:31:50 +00:00
martin
8ab4396fef
Rearange struct mach64screen to be derived from struct rasops_info,
...
move a few bits around and make adding screens after attach time
actually work.
When not booting as console, try to properly set up the hardware to
get a display nevertheless (XXX - does not yet work on my U5).
#if 0 some unused functions planned for future extensions (to make clear
they are unused now)
2002-10-31 14:10:07 +00:00
junyoung
c6326ab133
Now VGA_CONSOLE_SCREENTYPE can be specified with VGA_RASTERCONSOLE.
...
Currently only 80x25 and 80x30 modes are supported.
2002-10-31 13:06:50 +00:00
junyoung
78e97058d5
Simplify vga_raster_setscreentype() and clean up code.
2002-10-31 11:05:25 +00:00
ichiro
c0c620567a
regen
2002-10-31 10:40:19 +00:00
ichiro
5cbc05430b
add WLI-USB-KS11G USB wlan adapter
2002-10-31 10:36:42 +00:00
leo
4ffdd69467
Fix typo (isic_isac_recover -> isic_recover). Noticed by Matthias Drochner.
2002-10-29 21:02:45 +00:00
junyoung
d285dd8c38
Reduce the number of #ifdef __sparc__ from 5 to 3.
2002-10-29 17:54:40 +00:00
tsutsui
561b10d262
Remove no longer needed #ifdef __alpha__ and #ifdef __mips__.
2002-10-29 17:01:16 +00:00
junyoung
93c1a9d0c7
Rename sparc_screen_is_console() to mach64_is_console() and turn it into
...
a MI interface.
2002-10-29 13:50:11 +00:00
blymn
29b7b4241f
Added support for fingerprinted executables aka verified exec
2002-10-29 12:31:20 +00:00
chs
fc374b9d4f
add Boca Research 4- and 8-port cards. from openbsd.
2002-10-29 08:59:36 +00:00
augustss
94a55d86a0
Cosmetic changes.
2002-10-27 20:16:41 +00:00
martin
6837231089
Allow attaching wskbd at kbd, idea from Valeriy Ushakov.
...
This allows us to use both the old sun keyboard events (/dev/kbd) as
new wscons events (/dev/wskbd*).
TODO: Not implemented for the kbd at zstty attachment.
Wskbd as console does not yet work.
2002-10-26 19:11:13 +00:00
martin
a4c5b71389
Fix pasto.
2002-10-25 21:50:10 +00:00
martin
8c2d46f972
Add a few symbols.
2002-10-25 21:49:41 +00:00
leo
e70f340199
Fritz!PCI v2.0 ISDN driver from FreeBSD.
2002-10-25 21:03:47 +00:00
martin
325d7cc0df
Scan code/keymap table for sun keyboards and wscons.
...
From OpenBSD, written by Jason L. Wright.
2002-10-25 20:40:34 +00:00
junyoung
9d459e65ae
Register aperture is now mapped as a subregion of the framebuffer aperture
...
using bus_space_subregion(). This makes reg*() look better.
2002-10-25 18:57:06 +00:00
martin
456f63b54e
Sprinkle a few bus_space_read*/bus_space_write* calls and simplify register
...
offset calculation. Mostly from Bang Jun Young.
Don't call wsdisplay_cnattach unconditionally.
On sparc use OF to decide whether we are console output.
This makes it actually work on my U5 - if only we had a keyboard driver
to produce wskbd events (coming soon).
2002-10-25 18:03:03 +00:00
kent
4669f33e4f
regen
2002-10-25 15:58:03 +00:00
kent
9bedd91d95
Correct a typo in the previous change.
2002-10-25 15:56:47 +00:00
kent
7da30dbfb0
Add vender IDs and product IDs:
...
- ENE CB1410 (http://mail-index.netbsd.org/tech-kern/2002/10/24/0038.html )
- iCompression iTVC15
Correct ID of AMD PBC8111_AC.
2002-10-25 15:54:33 +00:00
oster
661b040860
Poolify callback descriptor allocation. While some of the underlying
...
problems just get shuffled around a bit, we do play more nicely with
LOCKDEBUG now.
2002-10-25 03:14:37 +00:00
mycroft
8131f239bf
IBSS mode does in fact work on some earlier Symbol firmware versions, as
...
witnessed by my home network.
2002-10-25 01:35:12 +00:00
martin
1def10c9a4
A few 64bit nits.
2002-10-24 20:41:59 +00:00
junyoung
2c1cfbd9df
Add machfb, ATI Mach64/Rage framebuffer display driver.
...
XXX this version is not fully functional yet. More to come shortly.
2002-10-24 18:15:57 +00:00
jdolecek
4501e88f21
put back the D_DISK tag for cdevsw mistakely removed in previous
...
revision
2002-10-24 08:04:00 +00:00
grant
20aee41979
regen
2002-10-24 06:40:56 +00:00
grant
e1efdc58c7
COREGA are OEM NDC products.
...
add NDC NCP130 rev A2 wireless NIC.
From T. M. Pederson in kern/18609.
2002-10-24 06:40:07 +00:00
augustss
37da939075
Make it compile after the kq changes.
...
XXX I'm not sure what kqfilter cgd should have, it gets nokqfilter for now.
2002-10-24 01:43:54 +00:00
augustss
ec2ec8eeeb
g/c IRDA ioctls (was within #if 0 anyway)
...
Fix kqueue pasto.
2002-10-24 01:36:34 +00:00
pooka
d16eacc3ef
avoid namespace collision with IMASK
2002-10-23 14:57:15 +00:00
jdolecek
e0cc03a09b
merge kqueue branch into -current
...
kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals
kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)
based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe
2002-10-23 09:10:23 +00:00
christos
f64a8c827d
remove duplicate cpp defs.
2002-10-23 02:32:36 +00:00
perry
0b13788269
remove redundant defines caught by lint
2002-10-23 02:06:11 +00:00
perry
43ed640ca5
fix lint warnings about things being stringified under cpp -traditional
2002-10-23 01:50:11 +00:00
christos
ab944659c0
change the macro params to longer names
2002-10-23 01:34:58 +00:00
petrov
a1d708ab63
Correct typo in comment(pointed by john heasley <heas@shrubbery.net>).
2002-10-22 17:58:45 +00:00
drochner
d17faedcd0
-fix script botch from CFATTACH_DECL introduction
...
-while here, spotted probe error: we shouldn't try other locations if the
base address is nailed down per locator
2002-10-22 16:18:26 +00:00
thorpej
3e6493c448
Fix typos in media configuration register init. From patch posted
...
to tech-kern by Erik Anggard <erik.anggard@packetfront.com>.
May address PR 16346.
2002-10-22 16:13:44 +00:00
kent
742633f2d2
Correct codec id of VT1611A.
...
Add codec id of VT1616.
ALC650 codec specific chagne:
Add outputs.surround.mixtofront,
outputs.center.mixtofront, and outputs.lfe.mixtofront.
VT1616 codec specific change:
Add outputs.surround.mixtofront,
outputs.center.mixtofront, and outputs.lfe.mixtofront.
(Not tested)
XXX: We should provide ac97(4) manual page and describe
codec-specific features.
2002-10-22 13:48:30 +00:00
ad
0d6011b266
PR 18760: don't issue I2O_EXEC_IOP_CLEAR to AMI boards, since some
...
firmware revisions can't handle it.
2002-10-22 13:42:33 +00:00
chs
cb1254e9a1
in ofnet_read(), interpret returns of either -2 or 0 from OF_read() as
...
meaning that there is no packet available. the OF spec reportedly
says that it's supposed to return 0 in this case, but my Firepower box
uses -2, so this is probably another of those FIRMWORKSBUGS things.
we'll accept both values in any case.
2002-10-22 06:28:50 +00:00
oster
08933e5968
Better protect hot-spare adding, and make it LOCKDEBUG friendly.
2002-10-22 03:15:28 +00:00
simonb
10a55ec82a
In pcic_chip_socket_enable() we need to set "reg" ifdef PCICDEBUG as
...
well so we can print it out a little further on.
While here, remove an unreachable "return" statement.
2002-10-22 02:12:42 +00:00
simonb
3e8b9bad9e
In icp_init(), initialise the "state" variable before incrementing it.
2002-10-22 01:25:28 +00:00
fair
96b8b890ed
Change the "dontcare bits" argument to ifmedia_init() to IFM_IMASK
...
so that it is possible select PHY instances other than the first
one (instance zero), if there is more than one PHY attached.
2002-10-22 00:01:55 +00:00
fair
2104199dc3
Change the "dontcare bits" argument to ifmedia_init() to IFM_IMASK
...
so that it is possible select PHY instances other than the first
one (instance zero), if there is more than one PHY attached.
2002-10-21 23:38:10 +00:00
uwe
af2a75546d
Clean-up kbd driver layers a bit more. Lift common code into the upper layer.
...
Add some wskbd TODO remarks (hi, martin).
2002-10-21 15:36:35 +00:00
uwe
c33f6bd531
vuid_event.h is in dev/sun now.
2002-10-21 15:22:03 +00:00
soren
1e2dbbd422
Regen.
2002-10-21 14:45:19 +00:00
soren
7fe8894787
Correct name of TI 802.11 chip.
2002-10-21 14:45:00 +00:00
grant
9c7cf018ff
regen
2002-10-21 13:41:12 +00:00
grant
f6e8b6f584
add D-Link 520+ wireless ethernet.
2002-10-21 13:40:14 +00:00
soren
75a75e1d7a
WI_PCI_CBMA belongs in dev/pci.
2002-10-21 11:57:25 +00:00
itojun
6fdbe5f4cb
regen
2002-10-20 13:50:36 +00:00
itojun
3a816c9777
PENTAX Optio230 ( http://www.digital.pentax.co.jp/ja/optio230/ )
...
From: Yasushi Oshima <oshimaya@sc.starcat.ne.jp>
2002-10-20 13:49:46 +00:00
martin
a5e0b21547
Make it compile again (the softc struct is named inconsistently,
...
so Jasons script did break this, but thats a bigger fish to fry than I'm
willing to handle now.)
2002-10-20 10:50:01 +00:00
someya
66711e8f5f
Bit shifts for interrupt channel exceeded u_int32_t width.
2002-10-20 01:06:10 +00:00
mjacob
3c709b448c
Fixes kern/18709 (correcting some typos in comments)
2002-10-19 18:41:34 +00:00
atatat
df90f09849
Don't print messages about pccbb_intr_disestablish() unless debugging
...
is actually enabled.
2002-10-19 18:01:59 +00:00
mjacob
3e9f96217e
Remove ISP_DMA_ADDR_T as a 'type'. Instead, go off of whether
...
ISP_DAC_SUPPORTED is defined and do a real typedef for the size
of DMA addresses. ISP_DAC_SUPPORTED also decides how much of any
particular DMA address is significant.
Lose STRNCAT over the side.
Add in (sight unseen) 10160 support.
2002-10-18 23:35:25 +00:00
mjacob
eaf36bcbb5
Add some A64 related support.
2002-10-18 23:33:39 +00:00
mjacob
af03ded9f1
Some lint fixes.
2002-10-18 23:33:14 +00:00
mjacob
efd47c5c46
Slight cleanup to use ISP_MUSTPOLL macro in case we can ever fix the
...
issue about knowing when we're on the interrupt stack or not.
2002-10-18 23:32:53 +00:00
mjacob
c4e94625c8
Fix buglet in structure canonicalization of A64 commands.
2002-10-18 23:32:08 +00:00
mjacob
c58e841e1e
Add in (sight unseen) 10160 support.
...
Start doing the work necessary to support DAC (Dual Address Cycle)
environments. This allows for direct DMA to > 4GB memory from a PCI
card.
Lose STRNCAT over the side and use SNPRINTF instead.
2002-10-18 23:31:11 +00:00
mjacob
ce9eb51cc5
Put in, sight unseen, changes which should enable 10160 support.
...
Interestingly enough, Sun actually made a product out of the 10160,
which is a single channel variant of the 12160 (Ultra3) card.
2002-10-18 23:26:15 +00:00
mjacob
0d0c2f5911
Update to the latest Fibre Channel f/w from the QLogic intranet site.
...
Fixes beaucoup bugs.
2002-10-18 23:19:20 +00:00
junyoung
cc537c2f3a
Add option NEW_BUFQ_STRATEGY, a new buffer queue strategy for better
...
system responsiness under high disk I/O load.
OK'ed by Juergen Hannken-Illjes.
2002-10-18 14:31:10 +00:00
oster
2eecfbf479
Improve and/or re-arrange a number of locks. While much of the locking is
...
still a mess, and there are a number of unresolved issues here, this
gets us closer to being happier in LOCKDEBUG land.
2002-10-18 02:46:36 +00:00
yamt
b4890b32a7
regen; fix simple typos
2002-10-18 00:59:11 +00:00
yamt
2e29ebca4d
fix typos; "wiseman" is 82542, not 82452.
2002-10-18 00:56:16 +00:00
fair
8459c79958
Change the "dontcare" bits argument of ifmedia_init() to IFM_IMASK,
...
so that PHY instance is not siginificant in ifmedia_match(). This
is done to support multiple PHYs on the MII. Without this change,
ifmedia_set() would panic the system when no PHYs were matched.
I ran into this on an AMD EasyNow PC, which is built around SiS
system chips with an embedded SiS 900 core, and an external AMD
Am79c901 PHY, which presents two PHYs on the MII: one for HomePNA,
and one for standard 10base-T. The 10base-T PHY ends up with instance
number 1...
2002-10-17 01:17:30 +00:00
jdolecek
4f2f1a6fd4
match the joystick device on Creative SBLive! card; note this only works
...
when emuxki(4) driver is compiled into the kernel, it has to enable
the joystick port
2002-10-16 21:09:31 +00:00
jdolecek
cafbd6033f
for AUDIO_SETINFO, silently enforce same mode as the currently used one;
...
this value is supposed to be read-only for this ioctl
2002-10-16 21:07:08 +00:00
kent
56d5eaf4f4
Add all vendor/codec IDs which OpenBSD has and NetBSD doesn't have.
2002-10-16 16:38:25 +00:00
kent
565a6b3384
Support for 4ch/6ch audio playback with VT8233/VT8235.
2002-10-16 15:27:28 +00:00
leo
8ad35e6ebd
Regen.
2002-10-16 15:00:50 +00:00
leo
6a4a98f7a2
Add Fritz!PCI v2.0 ISDN Interface
2002-10-16 14:55:26 +00:00
tshiozak
47cefca831
fix a simple, but wicked bug in EcSpaceHandler().
...
this bug causes EcWrite via EcSpaceHandler to always write 0 as the data byte.
2002-10-15 20:53:37 +00:00
junyoung
1ce9af548e
Add VGA raster graphics console driver. It is written as an extension
...
to char-cell based vga(4) driver, and fully compatible with existing
apps like XFree86. Currently it supports 80x25, 80x30, 80x40 and 80x50
text modes using emulation. You can enable it by specifying `options
VGA_RASTERCONSOLE' in your kernel config file.
Note that displaying multilingual text doesn't work yet. Necessary
code is already there, but userland stuff and some functionality isn't
ready for prime time yet. I'm working on them.
2002-10-15 18:14:41 +00:00
junyoung
847ebeec25
Add modecookie to struct wsscreen_descr, which is used to point to video
...
mode specific information.
2002-10-15 17:38:08 +00:00
junyoung
0f061c7c7a
Move vga_common_probe() to vga_common.c. vga_common.c contains common
...
stuff between existing char-cell VGA driver and raster VGA driver to
come shortly.
2002-10-15 17:30:43 +00:00
onoe
db87a0f069
Fix to use 104bit key for Intersil/Symbol firmware:
...
It seems that the firmware accept 104bit key only if
all the keys have 104bit length. We get the length of
the transmit key and use it for all other keys.
Perhaps we should use software WEP for such situation.
2002-10-15 08:53:46 +00:00
elric
faa24007eb
Allow debugging to work on LP64 arches.
2002-10-14 19:16:55 +00:00
kent
297e3c5d35
Mixer changes:
...
- Add "outputs.surround", "outputs.center", and "outputs.lfe"
- If the codec is not capable of a feature, mixer variables
about the feature is not created. For example, no
"outputs.tone" for a codec without tone control.
- Set the following mixer values in ac97_attach():
outputs.master=127,127
outputs.master.mute=off
outputs.headphones.mute=off
outputs.surround=127,127
outputs.surround.mute=off
outputs.center=127
outputs.center.mute=off
outputs.lfe=127
outputs.lfe.mute=off
inputs.dac.mute=off
inputs.cd.mute=off
inputs.line.mute=off
inputs.aux.mute=off
inputs.video.mute=off
record.volume.mute=off
because the default setting of AC'97 codec (all mutes are on,
and maximum volume) is troublesome.
- Make "char*" parameters of ac97_get_portnum_by_name() "const char*"
Codec ID changes:
- If a codec ID is unknown but its vendor ID is known,
ac97_attach() prints the vendor name like "dev0: <vendor name>
unknown (0xXXXXXXXX) codec;"
- Add IDs of Asahi Kasei AK4542, AK4544, AK4544A, AK4545,
Realtek ALC100
- Correct a vendor name: "Advance Logic" -> "Avance Logic"
- Add capability of codec-specific initialization
ac97_attach():
- CDAC, SDAC, and LDAC are eanabled.
- DELAY() before mixer settings. ThinkPad X24 needs it.
ALC650 codec specific change:
- Add "outputs.surround.lineinjack" to switch the line-in jack
to the surround output
- Add "outputs.center.micjack" and "outputs.lfe.micjack" (alias
of "outputs.center.micjack") to switch the mic jack to the
center/lfe output.
2002-10-14 08:48:15 +00:00
takemura
900b200c92
Moved MI APM definitions into dev/apm.
2002-10-14 02:08:37 +00:00
kent
5179f774f7
Support for sampling rate conversion against slinear_be 16bit/24bit.
2002-10-13 11:34:54 +00:00
fair
03f1a009cb
If pnaphy attaches, make sure the mii_flags has MIIF_IS_HPNA in it.
2002-10-13 06:28:01 +00:00
elric
bc24d33b67
We need to pass the dk_softc, not the osc.
2002-10-12 22:43:25 +00:00
wiz
0db3e0b3d6
Fix typo in comment.
2002-10-12 19:45:54 +00:00
kent
1bb5fc51aa
Correct spelling. VENDER -> VENDOR
2002-10-12 10:46:24 +00:00
someya
21249921f3
add autri_flags_codec() from OpenBSD, reported by grendel@zeitbombe.org
2002-10-12 08:42:21 +00:00
kent
1d5039e637
Add AC97_CAPS_* and AC97_VENDER_ID_MASK from OpenBSD.
2002-10-12 07:40:41 +00:00
jdolecek
0f4abac044
use nopoll() instead of empty uriopoll() for NetBSD
...
rename former uriopoll() to urioselect() and provide it only for OpenBSD -
FreeBSD uses nopoll() for urio too
g/c no longer needed uriopoll define for OpenBSD
2002-10-11 20:29:30 +00:00
fvdl
6dc742c240
Don't include <i386/isa/icu.h>
2002-10-11 19:14:06 +00:00
kent
3d86014c1c
Kick auich_calibrate() by config_interrupts().
...
auichi_calibrate(): If the measured rate is less than 48k, use
48k.
2002-10-11 04:11:28 +00:00
kent
42e4e19119
ac97_attach(): Restore the default rate value after VRA checking.
...
This change might solve PR kern/18613.
2002-10-11 02:32:23 +00:00
oster
4eb16a0a4f
bye-bye to RF_FREELIST_GET_INIT_ARG and RF_FREELIST_FREE_CLEAN_ARG
...
whos services are no longer needed after poolification of PSS structures.
2002-10-11 02:15:57 +00:00
oster
9401ec32c0
poolify the allocation of Parity Stripe Status structures.
...
XXX: Current code may have problems if kernel memory is completely depleted.
This is, unfortunately, not the only chunk of RAIDframe code to have
this problem, and will have to be dealt with. :(
2002-10-11 02:10:08 +00:00
thorpej
b4d9be67e5
Fix up IPKDB_NE_PCI option dependencies:
...
* IPKDB_NE_PCISLOT does not need any dependencies (it is merely a
required parameter for IPKDB_NE_PCI).
* IPKDB_NE_PCI does should not have an option-dependency on IPKDB_NE_PCISLOT.
While IPKDB_NE_PCISLOT is a required parameter, that is not how option-
dependencies work, and we don't want IPKDB_NE_PCI to imply IPKDB_NE_PCISLOT,
as that would cause a bogus value for IPKDB_NE_PCISLOT to be used.
Also, the IPKDB_NE_PCI selector should be lower-case; make it so.
2002-10-11 00:57:59 +00:00
martin
de956cbcda
Only use one interrupt handler for both status changes and pcmcia IO
...
intterupts. No more races between the two interrupt handlers, without any
locking, and the driver becomes a bit simpler too.
Use the last bit of the config flags to select between the first and the
second sbus interrupt level the firmware has assigned to us.
2002-10-10 22:23:16 +00:00
thorpej
6be7d2f3e6
Move IR and Bluetooth config defns missed in previous commit.
2002-10-10 22:07:44 +00:00
thorpej
05f976610a
Move IR and Bluetooth config defns to their own files.
2002-10-10 21:52:28 +00:00
pooka
fec12d1505
make a few debug printf's match reality
2002-10-10 15:39:01 +00:00
thorpej
60adad59bd
Define a "scsi_core" attribute. Make the "scsi" attribute depend on
...
"scsi_core". Make all the files previously selected by the "scsi"
attribute selected by the "scsi_core" attribute. Give the "scsibus"
device the "scsi_core" attribute.
2002-10-09 20:23:56 +00:00
jdolecek
d679e94c87
tlp_pci_vpc_21140_quirks(): make agnostic to signed/unsigned char; fixes
...
compile on cats
2002-10-09 16:59:19 +00:00
dan
86d2054739
Account for 1 bit of entropy for each timestamp added during
...
initialisation. This is just as silly as the other entropy
estimations, but it at least allows us to see how many values have
been added.
spl protect rnd_get_entropy_counter call properly
Make rndpool start out doing rotations on the first pass - make the
LSFR's be less sensitive to stuck bits in poor initial inputs.
Add considerable comments regarding the mixing function.
2002-10-09 14:48:58 +00:00
elric
152dfaff5d
We need to do biodone() if strategy is called on an unconfigured device.
2002-10-09 14:04:08 +00:00
kent
dd7455ebdc
Add 'mask' member to the struct ac97_codecid.
...
Cirrus Logic Crystal codec uses lower three bits in ID for a
revision number. We should mask an actual ID value before
matching to this table.
2002-10-09 12:06:17 +00:00
fair
336a7fda4a
correct LP64 bug in RND code and close PR 18592
2002-10-09 06:27:09 +00:00
augustss
9487fc5b8b
Make sure we are at splusb() while polling.
2002-10-09 01:02:26 +00:00
pooka
48f6d7e229
fill in name for TriTech unknown: TR28602
2002-10-08 21:40:04 +00:00
pooka
164c4e3bec
ubsa_activate() is prototyped unconditionally as non-static,
...
reflect that here.
Fixes compilation on non-DEBUG kernels.
2002-10-08 16:13:36 +00:00
minoura
5139f048fb
Add quirk for Connectix VirtualPC emulated 21140, just to print the name
...
from the SROM.
2002-10-08 15:09:54 +00:00
minoura
0ca32eba66
Check existence of the default 10baseT media for 21140.
...
If one does not exist, fall back to the first.
2002-10-08 15:05:35 +00:00
kent
54419c891c
- Enable in-kernel sampling rate conversion for fixed-rate codec
...
- Remove VRA/VRM enabling in auvia_attach()
- Use ac97_codec_if::set_rate()
- Return no AUDIO_PROPS_MMAP for fixed-rate codec
- Remove unused variables in auvia_softc
2002-10-08 13:10:24 +00:00
kent
376a43fb3d
auvia:
...
- Add aurateconv
- Update comment
2002-10-08 13:09:18 +00:00
augustss
e785db54af
Add driver for Belkin (and other) serial adapter.
...
From FreeBSD.
2002-10-08 13:08:02 +00:00
ad
eaf0107d26
Fix pasto.
2002-10-08 12:51:20 +00:00
augustss
581b31c79c
Regen.
2002-10-08 12:40:52 +00:00
augustss
f4cd09f3f3
Add some serial adapters. From FreeBSD.
2002-10-08 12:40:24 +00:00
kent
3decf6fda3
If the codec is fixed-rate, ac97_set_rate() returns 48kHz.
2002-10-08 12:33:34 +00:00
kent
d3307382f1
auich_set_params(): Don't return in the for loop.
2002-10-08 12:31:45 +00:00
dan
8c19166361
Comment initialisation conditions for rnd better, and don't uselessly
...
call rnd_init - instead assert that it has already been called
earlier.
change assert() -> KASSERT()
2002-10-08 12:12:56 +00:00
kent
1adb5c1562
auich_softc:
...
Remove sc_fixed_rate and sc_ac97rate. ac97_softc has such
information.
auich_attach():
Remove VRA/VRM enabling code. ac97_attach() does it.
auich_set_rate():
Use ac97_codec_if::set_rate().
auich_get_props():
Return no AUDIO_PROP_MMAP if the codec is fixed-rate.
auichreg.h:
Remove unnecessary ICH_PM_*.
2002-10-08 10:25:45 +00:00
dan
7c2a3f9044
mix in another counter when the psuedo-device attachment is called,
...
this actually happens *after* most of the sources have attached, so microtime
is as safe now as it was when they attached.
2002-10-08 09:59:27 +00:00
dan
234b471752
Add support for uhidev children (eg, ums, ukbd) as rnd entropy
...
sources.
Multifunction devices, such as keyboards with built-in mice or
scrollwheels on different interfaces and/or repid's are each handled
as a separate entropy source.
2002-10-08 09:56:17 +00:00
kent
20040ef785
Add IDs for YMF743-S and YMF753-S.
...
ac97_attach(): Enable VRA/VRM if the codec is capable of them.
The struct ac97_softc keeps the clock of the codec, the basic
features flag (the value of AC97_REG_RESET), and the extended
features flag (the value of AC97_REG_EXT_AUDIO_ID).
ac97_codec_if: Add get_extcaps(), set_rate(), and set_clock()
methods.
2002-10-08 09:19:44 +00:00
kent
e3b5b1897b
Revive VIA8233_RP_DXS_[LR]VOL in auvia_trigger_*().
2002-10-07 16:28:24 +00:00
dan
b03866d6f0
mix in another counter when called if not yet satisfied
2002-10-07 11:02:20 +00:00
onoe
e6fe57e960
Update BSSID at every CONNECTED LINK_STAT notification in IBSS mode,
...
since it can be updated by IBSS merge. Also the lucent firmware 8.10.1
changes random generated bssid every 10 seconds in IBSS creation enable.
PR 18520
2002-10-07 11:01:52 +00:00
dan
8c81fa7fa7
Add counter info at source attach time too, since there might be some
...
reasonable timing variance in the probing process.
Improve the usefulness and presentation of RND_VERBOSE output.
2002-10-07 09:41:51 +00:00
dan
55c11a958e
cleaner and safer version of the previous, for arch's that may define
...
__HAVE_CPU_COUNTER but where not all machines actually have one.
2002-10-07 04:51:00 +00:00
oster
16f8b30fa2
Minor comment and 80-column fixes. No functional changes.
2002-10-07 04:05:55 +00:00
dan
168dbd282b
stir in something at initialisation
2002-10-07 02:38:41 +00:00
kristerw
e367c94b9c
Do not try to print uninitialized variable.
2002-10-06 23:34:56 +00:00
kristerw
e20c7acad8
Do not free uninitialize pointers.
...
Do not try to print with uninitialized format-string pointers.
2002-10-06 23:17:46 +00:00
kent
bebbf91a39
- auvia_trigger_output(): correct register;
...
AUVIA_RP_CONTROL -> AUVIA_RP_MODE
- auvia_trigger_output(), auvia_trigger_input(): Remove DXS_[LR]VOL setting.
- whitespace
2002-10-06 23:14:25 +00:00
petrov
94f3e9b824
Reset the driver on scsibus reset.
2002-10-06 21:35:33 +00:00
oster
644e9151d0
poolify the RF_ReconMapListElem_t's used by rf_ReconMapUpdate().
...
Gives LOCKDEBUG kernels one less thing to complain about.
2002-10-06 18:49:12 +00:00
kent
f06ae93219
Add some constant symbols for AC97 registers and values based on OpenBSD.
...
Rename some symbols to sync with OpenBSD:
AC97_REG_EXTENDED_ID
-> AC97_REG_EXT_AUDIO_ID
AC97_REG_EXTENDED_STATUS
-> AC97_REG_EXT_AUDIO_CTRL
AC97_CODEC_DOES_VRA/AC97_ENAB_VRA
-> AC97_EXT_AUDIO_VRA
AC97_CODEC_DOES_MICVRA/AC97_ENAB_MICVRA
-> AC97_EXT_AUDIO_VRM
ac97feature: "mic channel" -> "dedicated mic channel"
ac97_attach(): print extended capabilities; VRA, DRA, SPDIF, VRM, CDAC,
SDAC, LDAC.
2002-10-06 16:33:35 +00:00
kent
f5f630d1df
Correct MICVRA values: 0x0004 -> 0x0008
2002-10-06 15:06:05 +00:00
bjh21
7d7fc4e3d8
Change obviously-acorn32-specific entries to say acorn32 rather than arm32.
2002-10-06 12:35:01 +00:00
bjh21
b3db781eb3
Add "hydra" on acorn32.
2002-10-06 12:32:02 +00:00
kristerw
bc68323a39
Correct test for busy-ness when setting parameters.
2002-10-06 10:01:08 +00:00
kristerw
d509ae30db
Correct possible return of uninitialized error variable.
2002-10-06 09:48:29 +00:00
oster
eb9d6f5ffa
Add a missing RF_LOCK_MUTEX().
2002-10-06 05:32:59 +00:00
oster
0567afd1cf
Introduce a temp variable, and allocate the ReconCtrl structure before
...
we protect raidPtr. One less thing for LOCKDEBUG to complain about.
2002-10-06 05:23:55 +00:00
oster
6108856337
update_size() does some bookkeeping, but nothing ever reads the data
...
it gathers. Nuke it. Without update_size, FreeReconMapListElem() can
do without mapPtr. That, in turn, means crunch_list() doesn't need a
mapPtr either.
2002-10-05 22:45:46 +00:00
kent
550acc6c64
Add support for VIA VT8233/VT8235. The patch was provided by Ola Eriksson
...
<ola at mreriksson dot net> in PR kern/18375. It is based on auvia of
OpenBSD.
2002-10-05 18:08:30 +00:00
tsutsui
071330b986
Slightly modify attach messages.
2002-10-05 17:52:31 +00:00
kent
5636e4e770
Add support for VIA VT8235
2002-10-05 17:07:32 +00:00
kent
527d1dafae
regen
2002-10-05 17:04:28 +00:00
chs
cdd13585e9
add missing protos.
2002-10-05 17:01:51 +00:00
kent
36f44886c1
- Broadcom BCM4401
...
- VIA VT8235
- Modify description of VT8233_AC97: "VT8233 AC-97 ..." -> "VT8233/VT8235 AC-97 ..."
2002-10-05 17:01:50 +00:00
oster
e29eccb29a
RU_NIL is not used. Remove it.
2002-10-05 16:10:41 +00:00
tsutsui
200406b07a
Overhaul of fmv(4) driver:
...
- Split if_fmv.c into MI/MD part and add ISA-PnP attachment for FMV-183.
(XXX FMV-184 is not tested. It would require extra media-select functions..)
- Fix probe functions of fmv_isa so that FMV-181A/182A will also match.
Fixes port-i386/9476.
2002-10-05 15:16:10 +00:00
tsutsui
c56045bf1a
Regen: Added Fujitsu FMV-183/184, MB86964 based ISA-PnP Ethernet adapters.
2002-10-05 14:59:36 +00:00
tsutsui
0c3944d3c4
Add Fujitsu FMV-183/184, MB86964 based ISA-PnP Ethernet adapters.
2002-10-05 14:57:15 +00:00
christos
4b7d7adde4
strstr() is part of libkern now. don't supply another.
2002-10-05 01:21:40 +00:00
gehenna
3d14337121
g/c unused function.
2002-10-05 01:11:47 +00:00
oster
150a2e7941
Minor cleanup. No functional changes.
2002-10-04 23:49:35 +00:00
oster
40e0eab4fd
Clean up #includes. Group function prototypes. Fix more 80-column lossage
...
that was missed before. Cleanup a printf.
2002-10-04 22:56:54 +00:00
oster
ad11d11dc2
Undo the change from 1.16->1.17, and 1.19->1.20. The ltsleep and locking
...
that was there before before is just fine, and plays nicely with LOCKDEBUG
now that we've added the raidio thread.
2002-10-04 22:50:26 +00:00
oster
dfd9bc2a73
Tidy up comments and do some 80-column fixing. No functional changes.
2002-10-04 22:35:08 +00:00
tsutsui
510762487a
Allied-Telesyn AT-1700xT and Allied-Telesis RE200x are actually identical,
...
so show both names in attachment. (From FreeBSD's if_fe_isa.c)
2002-10-04 21:19:34 +00:00
oster
8bdc70d040
As part of the effort to get RAIDframe playing nicely with LOCKDEBUG,
...
rework how completed requests are handled. In particular, instead of
doing all sorts of work and locking in interrupt context, completed
requests are now queued. A new kernel thread (rf_RaidIOThread) now
handles calling rf_DiskIOComplete() and (req->CompleteFunc)() for each
completed request. There is still work to be done to make RAIDframe
LOCKDEBUG friendly, but this change is a huge step forward.
Reviewed by (and many thanks to): thorpej
2002-10-04 20:05:14 +00:00
joda
65e92349c7
more device names
2002-10-04 19:22:40 +00:00
soren
98ec436df3
As in scsiconf.c, don't print the numberic device type in the attach message.
2002-10-04 18:58:45 +00:00
elric
5013e7bd46
Add cgdvar.h to the list of files installed.
2002-10-04 18:33:03 +00:00
elric
4366a007ff
The CryptoGraphic Disk Driver.
2002-10-04 18:22:35 +00:00
elric
017f74d210
A slight abstraction for disks. This is mainly [right now] in
...
support of the cryptographic disk which I'll be checking in shortly.
2002-10-04 18:02:00 +00:00
soren
3a89aff59e
Slightly simplicy the SCSI device attachment message:
...
- Use the plain words 'disk' and 'tape' instead of 'direct' and 'sequential'.
- Media status will be printed in the frontend, so don't bother with it.
- Don't bother printing the SCSI version, which is fixed these days, or the
numberic device type.
2002-10-04 17:53:33 +00:00
tsutsui
af5d007ede
- Merge if_levar.h into if_le_isapnp.c since it is included only by
...
if_le_isapnp.c.
- Rename struct le_softc -> le_isapnp_softc
- Fix some messages on attachment.
2002-10-04 16:16:32 +00:00
tsutsui
b449802f93
Regen: Added Melco Inc. LGY-VI, Am79c961 (PCnet-ISA) based network interface.
2002-10-04 15:43:37 +00:00
tsutsui
5d7ea80531
Add Melco Inc. LGY-VI, Am79c961 (PCnet-ISA) based network interface.
2002-10-04 15:42:17 +00:00
tsutsui
fdedb8dbd6
- Merge dev/ic/ate_subr.c into dev/ic/mb86960.c since it only has EEPROM
...
read function which can also be used for other MB86965 based boards.
- Rewrite EEPROM read function as per 93C06 EEPROM datasheet.
- Misc cleanup.
2002-10-04 15:22:27 +00:00
kent
839ec5d8cb
Improve nForce MCP support.
...
Submitted by: FUKAUMI Naoki <naoki at fukaumi dot org>
PR: kern/18524
2002-10-04 14:33:30 +00:00
gehenna
bbe393f930
Alphabetical sort.
2002-10-04 08:31:57 +00:00
gehenna
78112440cc
Remove 'any match' entry from quirks table.
...
This entry detects all unknown SONY USB devices as USB storage device.
2002-10-04 08:16:00 +00:00
onoe
d131e2b1a8
Handle of AP_IN_RANGE/AP_OUT_RANGE, to fix a problem once the station
...
is out of ragen, it never comes up again.
For HostAP, prohibit sending DATA frame to an unassociated but authenticated
station.
2002-10-04 04:23:20 +00:00
soren
af7ec6d1b2
Pass on indication of absent media in the general case as in the optical
...
device case.
2002-10-04 03:43:06 +00:00
soren
25674469e6
Leave error printing to the callers of scsipi_size().
2002-10-04 03:41:50 +00:00
soren
97a91a0443
PQI Travel Flash likes PQUIRK_NODOORLOCK too.
2002-10-04 03:40:57 +00:00
soren
fc9a318a07
Avoid noise on kbd-less machines.
2002-10-04 03:40:29 +00:00
onoe
f383b2e780
Set IEEE80211_F_IBSSON before test in wi_init() to set CREATE_IBSS
...
correctly for Lucent firmware to work with IBSS mode.
PR 18520
2002-10-03 22:32:37 +00:00
uwe
191626f788
Refactor kbd and mouse drivers so that they can use different middle
...
layers. Common middle layer shared by kbd_zs and sunkbd is moved into
the new file. Move shared config directives to files.sun and adjust
ports' files.* accordingly.
Need this to support console/Xsun on Mr.Coffee JavaStation.
Tested on sparc, sparc64 (by martin) and sun3 (by jdc).
2002-10-03 16:13:24 +00:00
oster
9fbf5b5d27
Create a thread creation macro that make it easier to name the DAG process.
...
Use it to have the DAGExecutionThread have a better name for each RAID
process ('raid0', 'raid1', etc., vs. just 'raid', 'raid', etc.)
2002-10-02 21:48:00 +00:00
onoe
031d8de6cf
Fix NIC-memory leak for symbol firmware at reinitialization. After 4-5
...
times changing of 802.11 parameters, such as nwid, the error
"tx buffer allocation failed" occured unless ifconfig down up.
Pass signal streangth and timestamp to ieee80211_input, though it is not
useful for wi driver for now.
2002-10-02 17:11:34 +00:00
kent
c51dca5ba6
Remove a line added accidentally(?) at revision 1.21.
2002-10-02 17:08:10 +00:00
thorpej
b75a007d9f
Add trailing ; to CFATTACH_DECL.
2002-10-02 16:51:16 +00:00
thorpej
9b2c2ec24d
Add trailing ; to CFATTACH_DECL.
2002-10-02 16:50:59 +00:00
thorpej
c9b3657ce9
Add trailing ; to CFATTACH_DECL.
2002-10-02 16:33:28 +00:00
thorpej
8043c2cbd9
Use CFDRIVER_DECL(). PR #18500 .
2002-10-02 15:29:35 +00:00
oster
1ebb206e58
We're going to need rf_lkmgr_mutex_destroy() sooner than I thought.
2002-10-02 15:18:12 +00:00
oster
0e45bff1d4
Since we are unlocking the lock before sleeping, there is no need
...
to use ltsleep() when a tsleep() will suffice. Makes RAIDframe+LOCKDEBUG
play together much better.
2002-10-02 14:38:53 +00:00
reinoud
e46f039e1a
G/c static pow() function that was used to calculate (2^x) only; replaced
...
the two instances with equivalent (1<<x).
2002-10-02 10:43:06 +00:00
itojun
30f6bff0ac
copyright clarification, from openbsd
2002-10-02 06:51:59 +00:00
thorpej
60530be43c
Fix sizeof and whitespace bug from the script I'm using to do the
...
CFATTACH_DECL conversion. (Grumble.)
2002-10-02 03:10:45 +00:00
thorpej
434631fe62
Remove unnecessary extern decl of fpa_ca.
2002-10-02 02:16:36 +00:00
thorpej
674c37a017
Use CFATTACH_DECL().
2002-10-02 02:16:10 +00:00
thorpej
c8f74e725f
Remove unnecessary extern decl of iframe_ca.
2002-10-02 02:15:32 +00:00
thorpej
66db35f9ab
Use CFATTACH_DECL().
2002-10-02 02:14:45 +00:00
thorpej
0dac35b547
Use CFATTACH_DECL().
2002-10-02 02:00:07 +00:00
uwe
909a73ae25
Add missing args to CFATTACH_DECL.
2002-10-01 19:15:45 +00:00
thorpej
2b99f7cc34
Add a generic config finalization hook, to be called once all real
...
devices have been discovered. All finalizer routines are iteratively
invoked until all of them report that they have done no work.
Use this hook to fix a latent bug in RAIDframe autoconfiguration of
RAID sets exposed by the rework of SCSI device discovery.
2002-10-01 18:11:57 +00:00
soren
45dfd29508
Regen.
2002-10-01 17:13:45 +00:00
soren
be583d6f33
PQI Travel Flash Drive.
2002-10-01 17:13:17 +00:00
onoe
5dd315acee
Do not call wi_stop() with disabled flag set from wi_init(), since it
...
sometimes call within interrupt and deleting handler causes panic.
Fix to display current tx rate as media.
Clear trailer bytes in ssid fields.
2002-10-01 16:11:19 +00:00
onoe
25c18040cf
make it compilable with CBB_DEBUG.
2002-10-01 14:30:54 +00:00
onoe
a7a8e96683
Linkstatus AP_IN_RANGE doesn't mean associatted, rather it just mean trying
...
to associate.
2002-10-01 09:48:02 +00:00
haya
f7568c1e88
Use LIST in sys/queue. Add some comments.
2002-10-01 09:09:16 +00:00
petrov
b5de398a25
Adjust residual counter for wide transfers.
2002-10-01 07:07:03 +00:00
thorpej
f59e5352f2
Use CFATTACH_DECL().
2002-10-01 04:21:32 +00:00
onoe
8c17118b22
Allow SIOCSIFADDR with AF_LINK and WI_RID_MAC_NODE (wiconfig -m)
...
to set MAC address.
2002-10-01 03:27:02 +00:00
onoe
785c37f700
initialize sc_txcur and sc_txnext at wi_init to avoid reordering after
...
reinitialized.
2002-10-01 03:24:35 +00:00
thorpej
40822344c6
Remove unnecessary extern decl of bthci_ca.
2002-10-01 01:41:19 +00:00
thorpej
563cc48dad
Remove uneecessary extern decl of de_ca.
2002-10-01 01:39:38 +00:00
thorpej
f02c7869a0
Remove unused extern decl of cgsix_sbus_ca.
2002-10-01 01:37:56 +00:00
thorpej
90c48d2563
Use CFATTACH_DECL().
2002-10-01 01:25:25 +00:00
thorpej
ab29a17b64
Use CFATTACH_DECL().
2002-10-01 01:05:50 +00:00
thorpej
239b192ca3
Use CFATTACH_DECL().
2002-09-30 23:07:07 +00:00
thorpej
71adb76f75
Use CFATTACH_DECL().
2002-09-30 21:57:46 +00:00
thorpej
9bb77522c1
Use CFATTACH_DECL().
2002-09-30 21:31:52 +00:00
thorpej
e9d707fbd5
Use CFATTACH_DECL().
2002-09-30 21:17:57 +00:00
thorpej
9d4a640785
Use CFATTACH_DECL().
2002-09-30 21:04:24 +00:00
thorpej
12b8e3917b
Use CFATTACH_DECL().
2002-09-30 20:54:25 +00:00
thorpej
bacf3a10fa
Use CFATTACH_DECL().
2002-09-30 20:43:55 +00:00
thorpej
387fc6dc87
Use CFATTACH_DECL().
2002-09-30 20:37:04 +00:00
augustss
fc12d83285
Put some ifdefs around USB_USE_SOFTINTR stuff. From FreeBSD.
2002-09-30 16:36:19 +00:00
onoe
9fadcea372
old lucent adhoc-demo mode (adhoc,flag0 or wiconfig -p 3) wasn't handled
...
correctly. To avoid massive extra code in each driver, now if_iee80211subr.c
also handles non-standard old lucent adhoc-demo mode.
This also fixes PR 14227.
2002-09-30 15:48:41 +00:00
onoe
efe919010c
Jumbo commit for wi driver.
...
- Eliminate wi_hostap.c since most of the code are duplicated with
net/if_ieee80211subr.c
- Station for Infrastructure network and IBSS also use service functions
as much as possible to be consistent with other wireless drivers.
Now WEP works for station/ibss/hostap.
2002-09-30 06:50:35 +00:00
onoe
45667e55b9
re-enable IBSS creation.
2002-09-30 06:38:10 +00:00
onoe
2f8340c369
Nuke unneeded member sc_ifp and use #define sc_if instead,
...
to prepare jumbo commit for wi.c
2002-09-30 06:29:29 +00:00
wiz
b1c7ac0e6d
"definitions" has lots of 'i's, but that's not reason to leave one out.
2002-09-29 23:23:56 +00:00
augustss
9c8c3183df
Regen.
2002-09-29 21:20:39 +00:00
augustss
434abd832d
Add #ifdef USB_USE_SOFTINTR for some softintr code. From FreeBSD.
2002-09-29 21:13:01 +00:00
augustss
9dd94a1878
Remove extra call to ohci_rem_ed(). From kern/18448, Takeshi Nakayama.
2002-09-29 20:59:30 +00:00
augustss
25ff7d8c33
Add some spl calls to protect critical regions. From kern/18440,
...
Takeshi Nakayama.
2002-09-29 20:58:25 +00:00
augustss
2505336106
Add a Netgear adapter. From OpenBSD.
2002-09-29 19:55:52 +00:00
tsutsui
c90eeb8f06
Call mb86960_attach() with MB86960_TYPE_86965 since
...
all FMV-18x have MB86964 or MB86965A, not MB86960,
2002-09-29 17:15:59 +00:00
tsutsui
f84a0fccc0
Fix chip identification bit definitions in DLC7 register,
...
from Christian Groessler on port-dreamcast.
2002-09-29 17:10:37 +00:00
martin
a531f18275
Plug memory leak. From OpenBSD via PR kern/18457.
2002-09-29 10:19:21 +00:00
thorpej
0720e04052
Remove a debugging printf.
2002-09-28 19:07:43 +00:00
tsutsui
a5638d54a0
Remove unused code in #if NetBSD <= 199712 part.
2002-09-28 18:55:19 +00:00
tsutsui
a05eb615fe
Rename if_fereg.h -> if_fmvreg.h since now it has only
...
FMV-18x specific definitions.
2002-09-28 18:43:08 +00:00
tsutsui
065fc336c2
Move AT1700/RE2000 EEPROM definitions from isa/if_fereg.h to ic/ate_subr.h.
...
XXX Maybe all stuff in ate_subr.* should be merged into ic/mb86960*.[ch].
2002-09-28 18:19:08 +00:00
tsutsui
4dc734d128
Remove unused FE_VERSION.
2002-09-28 18:02:21 +00:00
tsutsui
073f0d7f8f
Remove unused FE_MB86960_H_VERSION.
2002-09-28 17:52:59 +00:00
tsutsui
d73bf82699
Remove unused FE_VERSION and FE_REG_VERSION.
2002-09-28 17:22:49 +00:00
tsutsui
43367243b6
Remove unused code in #if NetBSD <= 199712 part.
2002-09-28 17:18:28 +00:00
tsutsui
a531ef1f17
Remove MBH10302 register definitions, which is also defined
...
in dev/ic/mb86960reg.h.
2002-09-28 17:09:20 +00:00
scw
b9ca9c375c
Before declaring pci_conf_interrupt(), check to see if it's
...
already defined as a CPP macro, which is the case for SH5 at least.
2002-09-28 10:31:02 +00:00
scw
cbc5db835b
Try a little harder to work around the "Isolated After Reset" lossage.
2002-09-28 10:27:21 +00:00
scw
ee37eef012
Add smc91cxx_copy_tx_frame(), based on the version in cs89x0.c, to deal
...
with misaligned mbufs.
2002-09-28 10:24:46 +00:00
thorpej
3c31492a4f
Increase the timeout in wi_cmd(). Fixes reports of "busy didn't
...
clear". From David Young <dyoung@ojctech.com>.
2002-09-27 21:54:17 +00:00
thorpej
bf97c13c6c
Declare all cfattach structures const.
2002-09-27 20:41:46 +00:00
thorpej
f818766afe
Declare all cfattach structures const.
2002-09-27 20:31:45 +00:00
drochner
0766f7d128
Remove a check whether the drive is initialized before crashdump.
...
It prevents dumping on an otherwise unused disk and seems
unnecessary anyway - the driver will deal with initialization.
fixes my PR kern/18135
2002-09-27 17:17:53 +00:00
provos
0f09ed48a5
remove trailing \n in panic(). approved perry.
2002-09-27 15:35:29 +00:00
itojun
1eb6ef2a80
don't go into D3 state if revision <= 82558_B0. PR 18011
2002-09-27 14:54:08 +00:00
thorpej
98f020f181
Fix a latent bug uncovered by the new autoconfiguration code: make
...
sure the "ofbus" device carries the "ofbus" interface attribute.
This is the other part of the fix for PR #18433 .
2002-09-27 06:23:09 +00:00
onoe
30d884d47c
Add support for SIOC[SG]80211BSSID, SIOC[SG]80211CHANNEL.
...
Change the name of structure ieee80211_bss to ieee80211_node, which is
used for management of stations in hostap mode, and peers in ibss mode.
Split off ic_opmode, ic_phytype from ic_flags.
Preparation to merge 'wi' driver into 80211subr.c.
2002-09-27 05:36:04 +00:00
thorpej
d7067078a4
Compare the driver name against "ledma", rather than looking for
...
&ledma_ca.
2002-09-27 05:07:09 +00:00
thorpej
6c88de3b53
Introduce a new routine, config_match(), which invokes the
...
cfattach->ca_match function in behalf of the caller. Use it
rather than invoking cfattach->ca_match directly.
2002-09-27 03:17:40 +00:00
thorpej
d1ad2ac4f2
Rather than referencing the cfdriver directly in the cfdata entries,
...
instead use a string naming the driver. The cfdriver is then looked
up in a list which is built at run-time.
2002-09-27 02:24:06 +00:00
martin
e6c17aca91
If we wi_stop the card in wi_shutdown, better do that before the frontend
...
removes power from the pcmcia slot (inside the sc_disable hook).
2002-09-26 23:55:43 +00:00
martin
67bd51c724
Set error = 0 (instead of EINVAL) when it is later tested against != 0.
...
This allows using wiconfig while the interface is not (yet) marked IFF_UP
again.
2002-09-26 23:47:57 +00:00
martin
aba5b183cd
In wi_shutdown only call wi_stop if sc_enabled is set (don't try to send
...
commands to a card that is not powered up - it will always fail)
2002-09-26 22:51:30 +00:00
thorpej
e40e3c96cf
G/c extern reference to ioasic_cd.
2002-09-26 20:37:42 +00:00
thorpej
69de06f36a
No need to make sure parent's cfdriver == &ioasic_cd.
2002-09-26 18:30:54 +00:00
onoe
e8bc592172
Oops. forgot to delete old line in previous commit:
...
| Changed the name for resource id 0xfd45 to match the reality.
| WI_RID_OWN_BEACON_INT -> WI_RID_CUR_BEACON_INT
2002-09-26 16:58:44 +00:00
onoe
55ef0eb8b9
Changed the name for resource id 0xfd45 to match the reality.
...
WI_RID_OWN_BEACON_INT -> WI_RID_CUR_BEACON_INT
2002-09-26 16:52:44 +00:00
ad
989a076f27
Update for dzattach() change.
2002-09-26 05:54:07 +00:00
thorpej
71404bb533
Don't include <sys/map.h>.
2002-09-25 22:21:01 +00:00
reinoud
360e94d0c9
Fix some small unclear documentation and cleanup a bit...
2002-09-25 14:21:07 +00:00
mycroft
5031fe3837
Update copyright.
2002-09-25 06:23:29 +00:00
mycroft
04f09a4b0c
Additional fixes to make 16 targets work on FAS366.
2002-09-25 05:19:20 +00:00
pooka
218f60746c
Driver for Winbond W6692 passive ISDN cards.
...
Ported from the FreeBSD driver by Ilpo Ruotsalainen <lonewolf@cubical.fi>,
and reviewed by Martin.
2002-09-24 22:05:19 +00:00
uwe
be3f67ca41
Add some preliminary support for setting up the CyberPro in Netwinder.
...
Setup sequence obtained from Krups OFW with some CyberPro-specific
magic from Linux driver. The driver still has a lot of hardcoded
stuff, but it is useful enough to bring up wscons on netwinder.
XXX: Proper console attachment needs to be written (the driver was
originally developed on sparc, where our approach to attaching console
is totally different).
Caveat emptor!
2002-09-24 18:17:24 +00:00
mycroft
06c9e05c76
Oof, this driver needs a lot more work to support 16 targets.
2002-09-24 13:29:44 +00:00
ad
d5a6fc237b
Deal with the strange SCC wiring on TC IOASIC machines. Thanks to Bill
...
Studenmund and Jonathan Stone for useful comments.
2002-09-24 13:23:31 +00:00
ad
f8ec17dbbc
Make the self-test logic match zsms, removing a 300ms delay on open.
2002-09-24 12:53:30 +00:00
pooka
5993927201
regen
2002-09-24 09:25:47 +00:00
pooka
3cd6af88f6
Fix Asus ISDN card ID to be the actual device ID instead of the vendor ID
2002-09-24 09:24:40 +00:00
ad
176dcfaf3d
On pmax, drop into DDB on break.
2002-09-24 06:19:09 +00:00
bsh
63422177a6
make this compile again on ports that don't have bus space stream methods.
2002-09-24 02:30:15 +00:00
oster
6d1870476a
Nuke some ancient debugging code.
2002-09-24 00:53:58 +00:00
oster
8a5a36de43
Cleanup the comment formatting a bit.
2002-09-24 00:12:55 +00:00
oster
f0efca630a
Nuke a couple of unneeded #defines.
2002-09-23 23:53:54 +00:00
thorpej
4f4dc45bbb
Jumbo patch, from David Young <dyoung@ojctech.com>, with small tweaks
...
by me:
* Speed up reading/writing buffers from the hardware by avoiding
slow forward seeks. In preparation to use the optimization, do
not read overlapping bytes. This is currently disabled, but can
be enabled with OPTIMIZE_RW_DATA.
* Hand 802.11 and Prism-specific frames to BPF. User can watch these
frames by specifying an alternate DLT to e.g. tcpdump(8).
* Add support for SIOC[SG]80211BSSID and SIOC[SG]80211CHANNEL.
* Issue join requests and track join/create state through link-status
notifications.
* Split wi_rxeof into separate routines for receiving Ethernet II,
802.11 data, and 802.11 management frames.
* Bug fix: Account for aligning m_data to a word boundary in the Rx
buffer size check.
* Bug fix: Check for LLC/SNAP even if the firmware tells us the frame
is Ethernet II, as the firmware sometimes gets this wrong.
* Process as many events as possible when we get an interrupt, using
a simple heuristic to avoid reprocessing an event (which can have
bad side-effects). Clamp the time spent in the interrupt handler
to 4ms.
* Redo the timeout loops to be consistent and less prone to error.
* Add delays to timeout loops which were missing them, so that a
fast CPU won't win the race.
* Borrow some timeout loop values from the linux-wlan-ng driver,
which seems to reflect a high level of clue (due to direct support
from Intersil).
* Get rid of silly wi_read_data(..., len + 2) idiom; simply round up
in wi_read_data() and wi_write_data(). Also, protect against a
length of 0.
* Name some frequently-used constants. Correct spelling. Other style nits.
* Bug fix: On Prism, set Create IBSS register to 0 *always*. The meaning
of Create IBSS == 1 is join an IBSS or *ESS*, and we do not want to
join an ESS, because that would put us in an inconsistent state. 0
is the right value for Prism.
* Bug fix: Clean up state at the top of wi_init(), in the event that
we don't reach the bottom.
* Simplify wi_start() by always providing an RFC1042-encoded 802.11
frame to the firmware.
* Larval powersave support for HostAP mode, enabled by WI_HOSTAP_POWERSAVE.
* Bug fix: Call wi_stop() from wi_shutdown().
* Bug fix: sync media options with HostAP mode in wi_sync_media().
* In wi_media_status(), inquire firmware for current media state if
media == auto. From FreeBSD.
* Clean up the way buffer lengths are computed by using pointer
arithmetic rather than magic constants.
* Swap the order of comparisons in addr_cmp() for speed.
* Bug fix: Send ReAssoc Response instead of Assoc Response to a
ReAssoc Request.
* Bug fix: Copy SSID using the correct size.
* Give more meaningful names to offsets in a wi_frame.
* Bug fix: Assign the right values to the named constants for
Rx frame encoding.
* Get rid of useless SNAP constants.
2002-09-23 14:31:27 +00:00
thorpej
8972c9d466
Make the PCI reset more robust. From David Young <dyoung@ojctech.com>.
2002-09-23 14:12:35 +00:00
simonb
8292cf7b00
Don't return a value in a void function.
2002-09-23 05:59:01 +00:00
simonb
4e3613273b
Remove breaks after returns, unreachable returns and returns after
...
returns(!).
2002-09-23 05:51:10 +00:00
chs
cc28b18bbb
don't print anything when attaching as part of a FAS.
...
it doesn't add any information and it messes up the autoconf output.
2002-09-23 04:57:59 +00:00
oster
3ea42f1599
lockTable is not needed for AddToWaitersQueue(). Thanks to Simon B.
...
(cleanup a couple comments while I'm here.)
2002-09-23 04:34:46 +00:00
oster
8f2c8387e2
Nuke a couple of unreached 'break's. Thanks (again) to Simon B.
2002-09-23 04:19:05 +00:00
oster
eb144de792
The 'reconDesc' argument to rf_SignalQuiescenceLock() is a holdover from
...
simulation code. *poof* Thanks to Simon B.
2002-09-23 04:14:20 +00:00
oster
7db6bcd2ed
CheckCvscanState never prints the file and line number. Thanks to Simon B.
2002-09-23 04:02:29 +00:00
oster
7370acda44
Nuke 'lockflag', a holdover from the simulation code. Thanks to Simon B.
2002-09-23 03:53:14 +00:00
christos
6079632012
fix unitialized variable. from simonb. OI
2002-09-23 03:44:56 +00:00
oster
d1ef62f266
rf_lkmgr_mutex_destroy is currently unused. Thanks to Simon B.
2002-09-23 03:44:18 +00:00
oster
1c67e9d94b
Hide more stuff inside RF_DEBUG_SHUTDOWN. Add a prototype for
...
rf_FreeShutdownEnt() while we're here. Thanks to Simon B.
2002-09-23 03:42:50 +00:00
oster
e875ee2d89
Nuke "baddisk". Thanks to Simon B.
2002-09-23 03:40:28 +00:00
oster
3ac36660fa
Another 'unblockNode' goes *poof*. Also nuke an instance of an
...
(effectively) unused layoutPtr. Thanks to Simon B.
2002-09-23 03:38:51 +00:00
oster
9d518ec378
Clobber basically unused 'pda', and 'unblockNode' and 'wrUnBlock'.
...
Thanks to Simon B.
2002-09-23 03:36:08 +00:00
oster
a8c038ad35
struct proc *p was only assigned to. Thanks Simon B.
2002-09-23 03:31:51 +00:00
oster
f1529267b8
Make this build w/ DEBUG.
2002-09-23 03:28:41 +00:00
oster
4b1300c83f
The declaration for rf_GetSpareTableFromDaemon might be supplied in
...
a header file, but that doesn't help here if said header is not pulled in!
(Hi Simon :) )
2002-09-23 03:27:17 +00:00
itojun
8e89eeb639
missing include - sys/conf.h
2002-09-23 03:20:51 +00:00
itojun
393f467c67
make it compile with DIAGNOSTIC
2002-09-23 03:17:36 +00:00
simonb
daa3345504
Don't need declarations for rf_copyback_in_progress and
...
rf_GetSpareTableFromDaemon() - these are already supplied
in various header files.
2002-09-23 03:04:27 +00:00
oster
3e5db6c469
Ooops.. should have included this 'row' with the last change.
2002-09-23 02:55:03 +00:00
oster
d5e5932f5e
'row' was defined and set, but never used. *poof* Thanks to Simon B.
2002-09-23 02:53:58 +00:00
oster
b0da983806
Neither force nor retcode are used. *poof* Thanks to Simon B.
2002-09-23 02:51:43 +00:00
oster
d5e793770c
Remove unneeded variables and lame assignments. Thanks Simon B.!
2002-09-23 02:49:14 +00:00
oster
23b87a323a
bytesPerStripeUnit is set, but never used. Thanks to Simon B. for pointing
...
this out.
2002-09-23 02:40:07 +00:00
oster
35d3621d0c
dataBytesPerStripe is set, but never used. *poof*
2002-09-23 02:35:24 +00:00
augustss
83ef67ef1d
Add a struct shared by all unit and terminal descriptors.
2002-09-22 23:21:30 +00:00
augustss
9859bd8412
Increasre the reset recovery time.
2002-09-22 23:20:50 +00:00
mycroft
b200651116
Tell the scsibus layer we have 16 targets on the FAS366.
2002-09-22 19:05:11 +00:00
ad
25441c6b4a
- Fix a command accounting bug.
...
- Don't use ID 0, since 1.x firmware may not like it.
2002-09-22 18:59:00 +00:00
martin
1fc22808f2
Apply a patch from Murray Armfield in PR kern/18372: bring in some changes
...
from FreeBSD to improve receive performance.
2002-09-22 10:13:32 +00:00
oster
7264a7cc8c
RAIDGETBUF and RAIDPUTBUF were #defines that were only used in
...
one place. Simplify things by removing them, and clean up more
unneeded instances of 'unit' and 'rs'.
2002-09-22 03:56:08 +00:00
oster
fe654a583a
rf_flags wasn't being used. *poof*
2002-09-22 03:46:40 +00:00
oster
f99563a0ff
A little housecleaning to nuke stuff that was unused.
2002-09-22 03:44:42 +00:00
drochner
69ea314996
call the capability list ptr by its name
2002-09-21 19:14:14 +00:00
drochner
7bc4622603
correct caplist head for Cardbus bridges
2002-09-21 18:56:03 +00:00
drochner
ec517fd6a5
-corrected "MSI" capability
...
-added some new subclasses and capabilities
-move capability list printing into a separate function and call it
for each header type (not type 0 only)
2002-09-21 16:19:34 +00:00
drochner
8dba6ca13a
-correct the "MSI" capability
...
-add some new subclasses and capability IDs
2002-09-21 16:16:31 +00:00
oster
86a6fcfe0a
Minor cleanup/reformatting.
2002-09-21 14:47:07 +00:00
oster
2a10c08e0a
#if 0 more stuff, per Krister's list. Thanks Krister!
...
(RAIDframe is now at a shade under 174K in GENERIC on i386)
2002-09-21 07:12:46 +00:00
oster
61da76cbbe
#if 0 out one other function, and shuffle DEBUG code. Actually
...
reclaims another 14K!?!?!! Thanks Krister!
2002-09-21 07:05:06 +00:00
oster
2876788c95
rf_RegisterReconDoneProc() isn't needed.
...
This is the last of the 'easy' ones that Krister made me aware of.
Total savings on i386 GENERIC kernel: 13151 bytes
RAIDframe in GENERIC is now at: 179033
Thanks again Krister!
2002-09-21 01:25:10 +00:00
oster
0efe63f46b
rf_ReleaseBufferWaiter(s) were not being used! Thanks Krister!
2002-09-21 01:21:19 +00:00
oster
580f8b6e1e
rf_FreePhysDiskAddr is only needed by paritylogging.
...
rf_NumFailedDataUnitsInStripe is only needed by PQ, RAID6 and EVENODD.
rf_PrintAccessStripeMap is only needed for RF_DEBUG_MAP.
Thanks Krister!
2002-09-21 01:18:45 +00:00
oster
ce38eb4f8c
rf_FreeAccessStripeMapComponent() goes too. Thanks Krister!
2002-09-21 01:14:22 +00:00
oster
ce8b221a5e
Nuke rf_AllocAccessStripeMapComponent(). Thanks Krister!
2002-09-21 01:12:49 +00:00
oster
22f5e1b6bb
Garbage collect some old mountroothook stuff. Thanks Krister!
2002-09-21 01:09:43 +00:00
oster
265379416b
#if 0 an unused stub. Thanks Krister!
2002-09-21 01:08:38 +00:00
oster
24b54af7fb
Protect more stuff that's only used by the declustering code.
...
Thanks Krister!
2002-09-21 01:07:37 +00:00
oster
a16692eff6
rf_UnbootRaidframe isn't used. rf_print_assert_panic_message is
...
only needed if RAID_DIAGNOSTIC is defined. Thanks Krister!
2002-09-21 01:00:43 +00:00
oster
cbf5be6ee1
rf_MakePropListEntry isn't used anywhere, so nuke it. Thanks Krister!
2002-09-21 00:56:57 +00:00
oster
34fb146d27
Shuffle #ifdefs to include stuff only if we're doing parity logging
...
stuff. Thanks Krister!
2002-09-21 00:52:49 +00:00
oster
1b852f9959
Various "Fwd" versions of DAG creation functions arn't actually used anywhere!
...
Big thanks to Krister for noticing! (Saves another 10K on i386)
2002-09-21 00:50:10 +00:00
oster
5451819a68
rf_gcd, rf_free_2d_array, rf_make_1d_array, and rf_free_1d_array are
...
only used by the declustering bits. Thanks Krister!
2002-09-21 00:47:59 +00:00
oster
ec7171cd75
rf_CreateMirrorPartitionReadDAG is only used for chain declustering and
...
interdecluster. Thanks Krister!
2002-09-21 00:40:18 +00:00
oster
ea9e550f69
rf_CvscanConfigure() is a NOP. Nuke it. Thanks Krister!
2002-09-21 00:37:14 +00:00
pooka
e59b54da09
regen
2002-09-20 15:03:22 +00:00
pooka
c19950f9de
Add vendor Dynalink and a few devices by other manufacturers for use
...
in the iwic ISDN driver.
2002-09-20 14:59:58 +00:00
oster
8a7eefa217
Another couple of functions that arn't used unless one is debugging RAIDframe.
2002-09-19 23:29:03 +00:00
oster
5faa29ac7d
Introduce RF_DEBUG_MAP, and use it to ignore more rarely used code.
2002-09-19 23:23:19 +00:00
ad
600684fe1c
Also initalize dz_sc for each line.
2002-09-19 23:22:56 +00:00
oster
bc235cf75b
Introduce and use RF_DEBUG_PSS, and save a few more bytes.
2002-09-19 22:52:52 +00:00
oster
0c1690c441
One signal will do, thanks.
2002-09-19 22:41:51 +00:00
oster
c3bab92ad6
Nuke an obsolete comment.
2002-09-19 22:36:23 +00:00
nathanw
4b6782ddb3
Slight wording cleanup in a comment.
2002-09-19 19:04:50 +00:00
oster
f6127d1018
Introduce and use RF_DEBUG_STATES to save a bit more kernel space.
2002-09-19 18:54:50 +00:00
nathanw
4a30a46eca
Regen.
2002-09-19 18:53:00 +00:00
nathanw
d6e8dbd366
Add AMD 761 system controller and ppb.
2002-09-19 18:50:45 +00:00
oster
f1113b29c2
Nuke old (and now incorrect) comment.
2002-09-19 17:55:22 +00:00
jmc
c7258354f0
Force the initial probes to happen within the newly forked off kthread.
...
This eliminates problems where the underlying interrupt handler isn't the
specific layer calling scsipi_complete() for a given scsi transaction.
This avoids deadlocks where the kthread that called the autoconf routines
to configure a scsibus shouldn't be the one put to sleep waiting on a
scsipi_complete (only the scsibus's kthread should be doing that).
To avoid jitter this will force the scsibus's to probe in the order they
run through autoconf (so machines with multiple bus's don't move sd* devices
around on every reboot).
2002-09-19 08:31:05 +00:00
thorpej
620a647b60
For the 21142/21143 internal Nway, only advertise/resolve media for
...
which we have SROM blocks.
2002-09-18 19:12:17 +00:00
ad
60c69eb3f1
Squash some bugs.
2002-09-18 18:42:06 +00:00
ad
02efaf3855
Remove some duplicate/confusing lines.
2002-09-18 17:06:07 +00:00
ad
4db02b982d
Initalize sc_dz[*].dz_line for the benefit of the bus front-end.
2002-09-18 16:51:16 +00:00
abs
332c0b2de1
Recognise the Intel PRO/100 VM Network Controller as seen in the HP
...
omnibook 6100.
2002-09-18 16:45:01 +00:00
chs
f5191984f6
use splnet() around the body of ofnet_read(). this is logically the
...
receive interrupt handler since it passes received packets to the
interface's input handler. that ends up scheduling a network softint
and queuing the packet on the interface's receive queue (in that order),
so if softnet isn't blocked at this point then softnet() doesn't find
the packet until it's triggered again by something else.
remove all vesitages of dk_establish().
2002-09-18 01:47:08 +00:00
chs
658ce04ab1
fix error checking in ofdisk_open().
...
remove all vesitages of dk_establish().
2002-09-18 01:46:40 +00:00
chs
128b037bfc
remove all vesitages of dk_establish().
2002-09-18 01:46:23 +00:00
chs
b5e02d5677
implement device_register() for ofppc.
...
use ofcons_cnprobe().
2002-09-18 01:44:12 +00:00
oster
8fd475e54a
RF_DEBUG_ACCESS and RF_DEBUG_QUIESCE make things a little smaller.
2002-09-17 03:54:42 +00:00
oster
1b0ab96194
Introduce and use RF_DEBUG_QUEUE (for debugging the various queueing
...
types available in RAIDframe).
2002-09-17 03:43:34 +00:00
oster
aad979b7eb
Cast the RF_DEBUG_RECON net a little wider.
2002-09-17 03:30:33 +00:00
oster
1b1653573f
Rename RF_DEBUG_RECONBUFFER to RF_DEBUG_RECON in order to facilitate
...
disabling other stuff without having to introduce another #define.
2002-09-17 03:21:40 +00:00
oster
fe703e624d
Were these functions actually called by anything, I might have considered
...
keeping them...
2002-09-17 03:11:41 +00:00
oster
5dced80d48
Use RF_DEBUG_DISKQUEUE to eliminate more debuggin printfs that the
...
vast majority of the world will never see much less care about.
2002-09-17 02:55:12 +00:00
oster
e8ffb40a0e
Those of us who might be interested in debugging internal memory usage
...
of RAIDframe can use RF_DEBUG_MEM. I suspsect the rest of the world would
rather use that 14K of kernel memory for something else.
2002-09-16 23:40:57 +00:00
oster
763ac2f8fe
Assign a value to recon_buffer_size in a different way so that the
...
compiler doesn't complain when we change what RF_Free looks like.
2002-09-16 23:37:18 +00:00
petrov
dc81a805ea
Use driver reset in case 'internal state mismatch'.
2002-09-16 21:49:15 +00:00
mycroft
e9e73c9a7d
Force GPSR to 0 before a blit, so my text doesn't get shifted to the right...
2002-09-16 17:12:07 +00:00
mycroft
05d15857f0
Copy forwards even when moving to the right, if the regions do not overlap.
2002-09-16 16:40:57 +00:00
mycroft
6db8861212
Simplify the blitting code slightly, and fix fenceposts.
2002-09-16 16:33:13 +00:00
oster
55b509f490
Cleanup some comments.
2002-09-16 02:48:34 +00:00
oster
969c6e9caf
'char *arrived' was such a nice variable. Too bad all we ever did
...
with it was malloc/free space for it. *poof*
2002-09-16 02:39:42 +00:00
oster
4511efdca0
rf_CheckFloatingRbufCount() is only really useful when debugging the
...
reconstruct buffer stuff. #if it out in the general case.
2002-09-16 02:35:17 +00:00
oster
549b1bde93
Cleanup some printf's, and disable some (debugging) output.
2002-09-16 02:25:08 +00:00
oster
8c2b691d7a
Release our hold on raidPtr if we're going to sleep.
2002-09-15 23:40:40 +00:00
oster
201928d9fa
Nuke unlockingOp -- it was only used for the userland version of the
...
code.
2002-09-15 21:34:03 +00:00
oster
7193ba8687
Remove a couple of unneeded structure members.
2002-09-15 21:31:11 +00:00
oster
207409a242
'buf2' is unused. Nuke it.
2002-09-15 21:19:50 +00:00
oster
be70d191af
General cleanup of a mess. No functional changes.
2002-09-15 21:04:35 +00:00
bouyer
f30ddf1a29
Fix typo in comment. From Alexander Yurchenko <grange@rt.mipt.ru>
2002-09-15 20:27:09 +00:00
oster
b51d271e17
Nuke 'numPending' from the RF_RaidAccessDesc_s structure, and minor cleanup.
2002-09-15 19:25:07 +00:00
bouyer
7ccb421b1d
Regen: add ACCTON EN2216.
2002-09-15 17:44:33 +00:00
bouyer
2f6aa3ef83
Add ACCTON EN2216-PCMCIA-ETHERNET (there seems to be different variants of
...
the ACCTON EN2216) to pcmciadevs, and support this adapter by if_ne_pcmcia.
Tested by Rémi Zara <remi_zara@mac.com>.
2002-09-15 17:43:48 +00:00
yamt
82de657077
make AcpiOsStall always delay instead of sleep.
...
sleeping isn't safe because sometimes it's called with interrupt-disabled.
ok'ed by thorpej.
2002-09-15 17:04:12 +00:00
chs
f0beff44d2
recognize HP ScanJet 4c.
...
add a catch-all case for other HP scanners.
remove a local version of atoi() in favor of strtoul() from libkern.
2002-09-14 21:41:24 +00:00
oster
7266276fb2
Add a local #define, and disable some debugging stuff.
2002-09-14 18:37:28 +00:00
oster
4499412f1a
Minor formatting cleanup, and nuke unused stuff.
2002-09-14 18:17:52 +00:00
oster
f41ac02382
rf_FlushAccessTraceBuf goes bye-bye.
2002-09-14 18:07:31 +00:00
oster
a2b9142871
Everyone and their dog was using RF_ERRORMSG3 to print out the same
...
sort of error message, over and over again, in different files.
Rather than having the same text repeated in multiple .o files,
create a couple of little functions to do the printing, and save a
bundle of space. Also improves readability of code.
2002-09-14 17:53:57 +00:00
oster
954775e02c
Add two more debugging #defines: RF_DEBUG_RECONBUFFER and RF_DEBUG_VERIFYPARITY.
...
Use them to reduce kernel bloat by a little more.
2002-09-14 17:11:30 +00:00
martin
cef25316c6
Following discussion on tech-kern, nuke calls to microtime() and use
...
mono_time instead. We loose some precision here (depending on hz),
so bump up the reset-mouse threshold quite a bit (from >=25ms to >40ms).
2002-09-13 23:39:05 +00:00
ad
ca0ac2c78c
Driver for the Sun ZX/Leo framebuffer. This would be called leo, but the
...
amiga port already has a driver by that name.
2002-09-13 14:03:52 +00:00
simonb
f2721c1ee4
Fix indent botch.
2002-09-13 02:16:08 +00:00
augustss
614176bdc6
No trailing , in enum (from OpenBSD).
2002-09-12 21:00:42 +00:00
tsutsui
48bddc7728
bus_dmamap_load() can't take BUS_DMA_COHERENT flag.
2002-09-12 16:01:06 +00:00
augustss
393ae71756
Make it compile. Rename a macro.
2002-09-12 06:42:54 +00:00
bouyer
2bbf86d46b
Regen: add 2 acard pciide controllers.
2002-09-11 20:43:42 +00:00
bouyer
60f292630a
Add 2 accard pciide controllers. From linux.
2002-09-11 20:43:07 +00:00
thorpej
b00903c834
Fix signed/unsigned comparison warnings from gcc 3.3.
2002-09-11 07:22:19 +00:00
oster
20185a3677
Amazingly enough, nothing is actually using the *_bxor3() functions.
...
#if 0 them.
2002-09-11 03:01:23 +00:00
oster
9dfe7eee91
Use the newly added RF_DEBUG_STRIPELOCK to effectively remove a bunch
...
of stuff that most of the world will never want to use.
2002-09-11 02:52:33 +00:00
oster
fc178c4727
Add a new debugging #define: RF_DEBUG_STRIPELOCK
2002-09-11 02:51:21 +00:00
oster
cdb79dd4ae
Nuke unneeded #include "rf_debugprint.h"
2002-09-11 02:22:49 +00:00
nathanw
cdee09ffbb
At least some versions of the M-Systems DiskOnKey also need
...
UMASS_QUIRK_NO_MAX_LUN.
2002-09-10 16:52:48 +00:00
oster
5965f8b92a
Disallow 'reconstruct-in-place' on a component that has failed
...
and has already been reconstructed to a hot spare.
2002-09-09 02:44:17 +00:00
oster
23f63d631e
On a 'raidctl -f' or 'raidctl -F', close the failed component.
...
Thanks to Grant and Matt (phone) for poking me about this.
2002-09-09 01:54:53 +00:00
isaki
4ff27b57fb
Correct xfer->busy_free status in DIAGNOSTIC.
2002-09-08 07:58:14 +00:00
oster
b07b6381d5
Protect rf_PrintDAGList() in a few more places. Thanks to Monroe Williams
...
on current-users for the patch.
2002-09-07 23:11:46 +00:00
uwe
d7b7f858cb
Regen for Integraphics Systems CyberPro 2000 and 2010.
2002-09-06 23:58:11 +00:00
uwe
5619fe21f9
Add product ids for Integraphics Systems CyberPro 2000 and 2010.
2002-09-06 23:41:56 +00:00
gehenna
77a6b82b27
Merge the gehenna-devsw branch into the trunk.
...
This merge changes the device switch tables from static array to
dynamically generated by config(8).
- All device switches is defined as a constant structure in device drivers.
- The new grammer ``device-major'' is introduced to ``files''.
device-major <prefix> char <num> [block <num>] [<rules>]
- All device major numbers must be listed up in port dependent majors.<arch>
by using this grammer.
- Added the new naming convention.
The name of the device switch must be <prefix>_[bc]devsw for auto-generation
of device switch tables.
- The backward compatibility of loading block/character device
switch by LKM framework is broken. This is necessary to convert
from block/character device major to device name in runtime and vice versa.
- The restriction to assign device major by LKM is completely removed.
We don't need to reserve LKM entries for dynamic loading of device switch.
- In compile time, device major numbers list is packed into the kernel and
the LKM framework will refer it to assign device major number dynamically.
2002-09-06 13:18:43 +00:00
petrov
3962bed888
compiler warning.
2002-09-05 08:02:29 +00:00
martin
a9cd647f4d
Adapt to recent sbusvar.h changes.
...
Use a slightly less conservative timing configuration.
2002-09-04 16:17:52 +00:00
martin
e7856d0f2a
Adapt to sbusvar.h changes.
2002-09-04 16:12:23 +00:00
scw
0dbf19c561
Add a flag, SMC_FLAGS_32BIT_READ, which is settable by the bus-specific
...
back-end to indicate that the device always sees reads as 32-bit
transactions, even if the host does 8 or 16-bit reads.
This is necessary for the SH-5 "Cayman" on-board ethernet. The SMsC part
is behind an FPGA which maps all cpu reads to 32-bits transactions.
2002-09-04 14:54:37 +00:00
itojun
5e8477f10f
correct integer overrun
2002-09-04 03:58:37 +00:00
mason
8b01de5e08
Commit with correct RCS IDs in these files - hadn't looked into them
...
previously to note that they reference the RCS ID in "pcmciadevs".
Hence, committed versions which incorrectly pointed back to the RCS ID
of the "pcmciadevs" that existed prior to my addition. Corrected in this
commit.
2002-09-04 02:21:09 +00:00
thorpej
467482eee8
Add support for memory-mapped PCnet-PCI chips.
2002-09-04 01:36:07 +00:00
mason
8e9d888f97
Support this device, which is evidently a rebadged GEMTEK WLAN which we
...
already support under another name:
wi0 at pcmcia0 function 0: NETGEAR MA401RA Wireless PC, Card, ISL37300PEval-RevA
wi0: 802.11 address <whatever>
wi0: using RF:PRISM2.5 MAC:ISL3873B(PCMCIA)
wi0: Intersil Firmware: Primary (1.0.7), Station (1.3.6)
2002-09-04 00:04:03 +00:00
augustss
405cd45f89
Replace the mr driver with the gtp driver. From OpenBSD.
2002-09-03 18:54:41 +00:00
augustss
2f5aeb92d3
Use a different way to recognize tea5759 chips. From OpenBSD.
2002-09-03 18:53:40 +00:00
thorpej
0007acff8b
Fix the PARTID for the original 79c970, from Dave Barnes, kern/18029.
2002-09-03 17:57:49 +00:00
jdolecek
6fcbc6b230
regen: Cabletron 22xx (AMD LANCE/PCnet Ethernet) addition
2002-09-03 17:42:54 +00:00
jdolecek
5c2a73c8d7
According to kern/17695, the Cabletron 22xx works with the NetBSD
...
Lance Ethernet driver attached to isapnp. Add it to the list.
2002-09-03 17:42:26 +00:00
onoe
26ebf5f371
Several fixes hostap for awi driver:
...
- aging ang clear inactivity stations
- DTIM field in beacon/probe response.
- ignore IFF_PROMISC for hostap mode, since 802.11 has 3 address fields,
so that promisc mode is not required for AP function.
2002-09-03 14:54:00 +00:00
itojun
c0a8cbae7c
drop garbage packet (due to chip bug) before injecting it to bpf.
...
make sure to behave as IFF_SIMPLEX, some lance chips does not behave as
IFF_SIMPLEX (e.g. vmware in outgoing multicast case).
http://mail-index.netbsd.org/tech-net/2001/05/16/0001.html
2002-09-03 14:48:16 +00:00
onoe
efcfc3e1c8
Add experimental support of Host-AP mode for awi driver.
...
It works also with WEP enabled.
But aging the associated clients is not implemented yet, so that the number
of clients may increase unlimitedly..
2002-09-02 13:37:35 +00:00
mjacob
e2f3e02af9
Do not enable interrupt driven mailbox commands for non-FC scsi.
2002-09-01 22:30:09 +00:00
takemura
6a286a4f2a
BUGFIX: WSDISPLAYIO_SVIDEO and WSDISPLAYIO_GVIDEO don't work.
2002-09-01 11:38:29 +00:00
uwe
e724974d54
Add quirks for Neodio ND5010.
2002-08-31 22:51:16 +00:00
ad
e7ab6ca550
Nuke incorrect mailbox length defines and just use 13 everywhere. May help
...
with PR/14266.
2002-08-31 05:18:03 +00:00
abs
f951ddc019
Fix AHC_NO_TAGS to actually disable tagged queuing, and document.
2002-08-30 21:54:10 +00:00
hannken
815491c0b3
Remove the old device buffer queue interface.
...
Approved by: Jason R. Thorpe <thorpej@wasabisystems.com>
2002-08-30 15:43:36 +00:00
ross
839099aa7b
regen
2002-08-30 00:34:09 +00:00
ross
b2703dc568
fix typo
2002-08-30 00:33:15 +00:00
bouyer
3d187bd055
The 1010 will generate a scsi gross error if a RAM entry is read before being
...
written (i.e. is used uninitialised). The esiop SCRIPT may do this in some
circonstances (and it is safe) so bus_space_set_region_4() the RAM in
reset routine.
Problem reported and fix tested by Allen Briggs.
2002-08-29 18:23:52 +00:00
augustss
186b9996e7
Regen.
2002-08-29 16:46:36 +00:00
augustss
d498b930ff
Add two devices.
2002-08-29 16:46:15 +00:00
bouyer
f86eed6ce2
Add definitions for the AIP control registers (1010 only).
2002-08-29 16:43:23 +00:00
bouyer
b13c46b64c
Fix typo in comment.
2002-08-29 15:42:49 +00:00
martin
95617c00d7
Experimentation shows the hme chip is SIMPLEX if used in full-duplex
...
mode, but not otherwise.
This fixes PR 17523.
2002-08-29 14:33:03 +00:00
matt
e25f13dfbe
From OpenBSD:
...
- Fix one typo (instead of two disable_rx, one disable_rx and one disable_tx)
[The other bug fix isn't appropriate since the was OACTIVE is dealt with
has been changed in NetBSD.]
2002-08-28 17:46:58 +00:00
dsainty
278bea1a2b
Fix playback at 48kHz sample rate (integer overflow bug introduced in 1.18)
2002-08-28 10:51:03 +00:00
onoe
fd9daca7ea
Attach another DLTs for bpf: DLT_IEEE802_11 to capture raw 802.11 frame.
2002-08-28 09:38:08 +00:00
toshii
e2d964c3ec
Remove a superfluous interrupt request bit in yuvpack_prog,
...
which confuses the state machine in common_bktr_intr.
This makes "mplayer -tv ..." work (but only with NTSC).
2002-08-28 06:06:10 +00:00
thorpej
d8e650d53a
* The Netgear GA-621 is a 64-bit card, so add it to the 64-bit
...
quirk table.
* We want to hardwire BMSR_EXTSTAT, not BMSR_EXTCAP, when reading
the TBI BMSR.
* Fetch the GPIO bits from the GPIOR register after an auto-load,
rather than reading from the EEPROM directly.
2002-08-26 22:52:02 +00:00
uwe
ee45afec36
Add no strings quirk for Neodio ND5010.
2002-08-26 21:34:28 +00:00
uwe
6504ec382d
Regen for Neodio/ND5010.
2002-08-26 20:25:06 +00:00
uwe
fd02e2f63b
Add Neodio and their nd5010 multi-format flash controller.
2002-08-26 20:18:56 +00:00
ad
35c2b89513
Add an ioctl to retrieve basic controller information.
2002-08-26 17:02:15 +00:00
martin
d797b29d85
Give arrays in the softc indexed by channel number the right size
...
and define a symbolic name for the number of channels.
2002-08-26 17:00:42 +00:00
ad
fba11cbab8
Handle aincent firmware as found on EISA/MCA boards. Untested.
2002-08-26 15:27:12 +00:00
scw
ce2ec9e63e
Add support for the SMsC LAN83C183 PHY, which actually probes as a
...
Seeq 84220.
Also add an 84220-specific work-around for some braindamage (at least
in the PHY I'm working with) where the PHY always comes out of reset
isolated, regardless of the previous state of the BMCR_ISO bit. This
happens even if the PHY has address zero, which is contrary to the
part's datasheet...
The work-around is only applied if we notice BMCR_ISO is set when it
should be clear following reset. The fix is to wait 30mS and clear
it manually. (The change doesn't stick if it's cleared sooner than this)
2002-08-26 11:13:13 +00:00
ragge
217df25ecc
Include DMF32/DMZ32 files. The actual device drivers will be checked in when
...
the licensing of the 4.4BSD encumbered files are solved.
2002-08-26 08:08:06 +00:00
itojun
9287c3fbb9
need to set wantinit variable
2002-08-26 07:38:34 +00:00
itojun
3931bcf3a3
suppress some of debugging output (IFF_DEBUG will re-enable it). PR 18069
2002-08-26 07:37:26 +00:00
petrov
a413e88543
Accept WDTR from device(based on John Heasley patch for SCSI3 drive).
...
Do not define NCR53C9X_DEBUG.
2002-08-26 06:23:32 +00:00
petrov
3a67429963
Start SYNC/WIDE renegotiating in controller reset, rearrange debug output.
2002-08-26 05:17:48 +00:00
petrov
584ece2d73
Dispose unused tinfo flags.
2002-08-26 05:14:47 +00:00
thorpej
f066e17960
Fix some signed/unsigned comparison warnings from GCC 3.3.
2002-08-25 19:11:16 +00:00
bouyer
9ca1f94f72
Support Ultra/133 on promise controllers that can do it.
2002-08-25 17:26:58 +00:00
bouyer
a9d165fd6a
Correct setup for Ultra133 capable VIA chipsets, From Matthias Drochner
...
on current-users, with cross-check and some improvement from linux-2.4.19
and FreeBSD-current.
Also don't set the APO_UDMA_CLK66 bit for Ultra/100 capable chipset, and
support Ultra/133 for the VT8233A.
2002-08-25 17:25:33 +00:00
bouyer
7e6804d723
Add support for Ultra/133 (ultra-DMA6) in wdc_probe_caps().
2002-08-25 17:22:38 +00:00
augustss
bd028c470a
Fix a name I forgot.
2002-08-24 17:58:15 +00:00
augustss
ffc3083503
Attach Bluetooth host controller driver (which has not been written) to
...
ubt device.
2002-08-24 17:31:19 +00:00
augustss
7db70d7d18
Add some placeholders for Bluetooth code.
2002-08-24 17:30:13 +00:00
augustss
4e63b2ebe1
Add needs-flag for ubtbcmfw.
2002-08-24 17:27:53 +00:00
augustss
36e33c869d
Add sysctl support to firmware loader.
2002-08-24 17:24:04 +00:00
itojun
a8b4aa9a72
#if 0 out call to rnd_add_uint32() in interrupt logic until thorpej
...
measures performance differences.
2002-08-23 16:30:10 +00:00
bouyer
0d17a940f8
Add support for HPT372. From sdegler@kashmir.degler.net in kern/17908,
...
with some improvement from me, and from FreeBSD.
2002-08-23 16:24:54 +00:00
bouyer
1a7bae9619
Add support for Promise Ultra133TX2 and Ultra133TX2v2, from FreeBSD and
...
stephen@degler.net in kern/17509.
2002-08-23 16:02:32 +00:00
bouyer
ea9862cb62
Regen: Add Promise Ultra133TX2 and Ultra133TX2v2 PCI ID
2002-08-23 15:57:04 +00:00
bouyer
f49156d31c
Add Promise Ultra133TX2 and Ultra133TX2v2 PCI ID.
2002-08-23 15:56:30 +00:00
itojun
e68a39d27b
attach random number source.
2002-08-23 07:45:39 +00:00
thorpej
90817e313c
Use the structures defined in bsd_openprom.h for "reg", "range",
...
and "intr" properties, rather than having identical-except-for-names
sbus_* and iommu_* versions.
2002-08-23 02:53:10 +00:00
augustss
6add8c3d67
Remove some debugging crap.
2002-08-23 00:58:58 +00:00
augustss
fb1033e35b
Add firmware downloader for BCM2033 (no firmware yet; waiting for OK
...
from Broadcom).
2002-08-23 00:55:20 +00:00
augustss
19801c46c9
Regen.
2002-08-23 00:53:58 +00:00
augustss
70dfad754f
Use separate ids for BCM2033 before and after firmware download.
2002-08-23 00:52:45 +00:00
martin
be6275d6fc
Add a mixerctl to mute the internal (mono) speaker via
...
"mixerctl -w monitor.mono=off".
From Sung-Won Chung, slightly modified. All errors by me.
2002-08-22 20:42:22 +00:00
augustss
974cba9514
Print a message saying that this is not real driver.
2002-08-22 10:17:46 +00:00
augustss
4b34ae978d
A placeholder until we have a real Bluetooth driver.
2002-08-22 10:15:57 +00:00
augustss
f7f7bb1ee4
Update class codes.
2002-08-22 10:15:12 +00:00
augustss
b8a7c4ede8
Add Bluetooth related classes etc.
2002-08-22 10:08:34 +00:00
martin
f2889deae7
Argh! Remove accidently commited debug changes.
2002-08-22 10:06:22 +00:00
martin
0d833862da
Fix output volume handling, port-sparc64/18033 from Sung-Won Chung.
2002-08-22 10:02:21 +00:00
augustss
cbd5a8c29d
Fix typo.
2002-08-22 09:57:13 +00:00
augustss
7ad63025e4
Fix an error message.
2002-08-22 02:54:18 +00:00
augustss
8a40ad021e
Regen.
2002-08-22 02:12:16 +00:00
augustss
bd7284c0c1
Add Apple's Bluetooth adapter (Broadcom BCM2033).
2002-08-22 02:11:53 +00:00
itojun
7b0ecaee62
use RND_ENABLED() to avoid unneeded function call. should help if_gsip case.
2002-08-21 03:59:31 +00:00
onoe
19a6d3dfb3
Make the meaning of media options consistent with other wireless drivers.
...
mediaopt adhoc 802.11 adhoc (IBSS) mode. IBSS creation is enabled
for cards which can create IBSS.
mediaopt adhoc,flag0 old lucent adhoc demo mode.
Note that [adhoc] media options for wi driver was used for adhoc demo mode,
which is NOW CHANGED.
2002-08-21 03:26:29 +00:00
christos
64bf5ef14f
Fix battery support (Masanori Kanaoka).
...
XXX: ToDo: Still the battery charge is 96% when the battery is
fully charged on my libretto because of the estimated total charge offset.
2002-08-20 14:07:51 +00:00
itojun
76f65d83e3
attach random number source.
2002-08-20 00:35:46 +00:00
itohy
125a1bc0a9
Leaving overflow-sensitive code, very similar to what was fixed
...
in the previous changes to cfb.c / sfb.c / xcfb.c, would not be clever.
Just modify in the similar way.
2002-08-19 13:05:42 +00:00
itohy
a64e475289
Make it compile again.
...
Hi, itojun!
2002-08-19 03:52:53 +00:00
kanaoka
6e12c44e0f
- Fix typo in a message.
...
- Avoid to divide by 0.
When booting without battery, sc->sc_design_capacity become 0.
2002-08-18 07:45:04 +00:00
thorpej
3e3fdc01e9
* After testing for DD on a descriptor, and finding it clear,
...
sync that descriptor with PREREAD to make sure that it is evicted
from the data cache. From Allen Briggs.
* With the above bug fixed, stop using BUS_DMA_COHERENT, resulting in
a fairly decent performance improvement on systems where BUS_DMA_COHERENT
causes descriptors to be accessed uncached (most painful in wm_start()).
2002-08-17 20:58:04 +00:00
mjacob
672c41205f
If we're using ancient (pre 1.17.0) 2100 f/w (for the cards that cannot
...
load f/w images > 0x7fff words), set ISP_FW_ATTR_SCCLUN. We explicitly
don't believe we can find attributes if f/w is < 1.17.0, so we have to
set SCCLUN for the 1.15.37 f/w we're using manually- otherwise every
target will replicate itself across all 16 supported luns for non-SCCLUN
f/w.
2002-08-17 17:31:53 +00:00
mjacob
bb6cb67b54
Further fix problems with 23XX ISR handling and correctly initialize the
...
23XX to use ZIO in preference to fast posting.
2002-08-16 21:43:14 +00:00
heinz
306c75457d
regen
2002-08-16 15:08:08 +00:00
heinz
fb31736257
Add Lucent/Agere FW322/323 IEEE 1394 controller
2002-08-16 15:03:02 +00:00
kent
4cb030f3b9
Fix division-by-zero when auich_set_params() is called before auich_calibrate().
2002-08-16 11:22:13 +00:00
thorpej
b9d86783bf
* Hard-code EXTSR_1000XFDX|EXTSR_1000XHDX for reads of the MII_EXTSR
...
in the TBI case.
* Force BMSR_ANEG | BMSR_EXTCAP to be returned for reads of the MII_BMSR
in the TBI case.
2002-08-16 07:10:56 +00:00
thorpej
00a0212e10
Update a comment; TCP/IP checksum offloading is fixed!
2002-08-15 18:35:25 +00:00
briggs
8d5eb3e93d
On transmit, zero the upper 32 bits of the address in the tx descriptor.
...
The descriptor may have been used as as context descriptor in the past,
in which case this field will be non-zero. h/w checksum offload works now.
2002-08-15 18:29:02 +00:00
christos
4251568ad8
Fix multi-function card memory problems:
...
- centralize pcmcia function allocation and free'ing.
- free the cfe too, not just the pf in the multifunction card case.
- don't free pointers while walking the list, because free() will
fill the memory with deadbeef, thus killing list walking.
2002-08-15 10:37:02 +00:00