dyoung
55196426e6
Update to wi interrupt handling:
...
No longer require a hi-low-hi transition of a status bit before
we believe it. It's a performance killer, and without it there
does not seem to be a race.
Sam Leffler reports that wi_intr needs to be bracketed by
disable/enable interrupts through WI_INT_EN, or else performance
is bad on Lucent. So now we do that.
2003-05-22 06:34:45 +00:00
christos
a2f80a1464
size_t != unsigned int all the time.
2003-05-21 17:23:55 +00:00
dyoung
ba845eeeb3
Stop wi panics on card ejection in Powerbook in both the enabled
...
and disabled states. This should fix an x86 panic somebody reported
on icb.
2003-05-20 01:29:35 +00:00
kochi
620bc11015
Fix a locking problem, which closes kern/21607.
...
ok'd by Jason Thorpe.
2003-05-19 23:24:55 +00:00
tsutsui
09d1921299
Misc cosmetics:
...
- some KNF and wrap long lines
- use TAILQ macro
- replace some magic numbers with macro
- use #if 0/#endif pair to disable code
2003-05-19 14:56:03 +00:00
uwe
c7e8d1f928
Oops, correct platids for 680/690 with European English (ABB)
...
keyboard. We still use hpcboot's "Hungarian" entry for them.
2003-05-18 19:06:11 +00:00
fvdl
385c785fd2
Inialize sc_tty->t_dev early for serial console, so that cn_check_magic
...
will match in the case of a break before the console was opened for the
first time. Makes BREAKing into DDB work (again) as soon as interrupts
are enabled.
2003-05-18 15:10:08 +00:00
thorpej
02ad493d76
Fail icpioctl() if securelevel > 1.
2003-05-18 06:18:25 +00:00
thorpej
577fd9d8fa
* Use aprint*().
...
* Add Ultra/133 to wdc_print_modes().
2003-05-17 21:52:03 +00:00
thorpej
2f25411d28
Use a buffer queue. Primary advantage here is robustness in the face
...
of temporary resource shortages.
2003-05-17 21:42:08 +00:00
christos
acec85bb7c
Initialize and reset curtxeps to zero each time the error rate is exceeded.
...
This stops the continuous spewing of error messages, making it just sporadic.
2003-05-17 16:46:03 +00:00
thorpej
4aef050969
Add DIOCKLABEL support. Fixes PR kern/21605 (Luke Mewburn).
2003-05-17 16:11:52 +00:00
thorpej
548e1373f8
Another fix from Achim Leubner @ ICP:
...
Test-busy *before* marking the controller as processing a user ioctl,
otherwise the command queue could stall permanently if test-busy returned
true.
2003-05-17 15:34:12 +00:00
agc
23a6c4c9b7
Test the right variable after allocating space, and then get rid of an
...
unused local variable.
2003-05-17 14:26:30 +00:00
scw
d1fb17639e
defflag GT_ECC.
2003-05-17 08:27:58 +00:00
scw
f8a82ee618
Fix some DPRINTF statements to deal with bus_addr_t and bus_size_t types
...
defined in terms if 'int' instead of 'long'.
2003-05-17 08:23:14 +00:00
kristerw
2c7ae90e5b
ISO C requires a statement after a label.
2003-05-16 23:55:32 +00:00
itojun
ce084afabe
use strlcpy
2003-05-16 15:34:25 +00:00
dyoung
045ad0db5e
IEEE80211_LOCK and WI_LOCK conceal enormous differences in locking
...
semantics on FreeBSD and NetBSD, so I am backing them out until
the macro set is enriched.
2003-05-16 01:26:17 +00:00
fvdl
c0b6986667
Add quirk handling to ACPI. First quirk entry is "PTLTD " rev 0x06040000,
...
which gives problems with PCI bus finding; the object hierarchy doesn't
match the real world for some systems, most notably SuperMicro boards.
Linux has this one blacklisted as well.
2003-05-15 21:29:49 +00:00
fvdl
a47c14adcc
Fix reversed arguments to bus_space_unmap.
2003-05-15 18:04:08 +00:00
wiz
ee6d7b94d4
Remove last traces of obsolete olms and omms drivers.
...
Ok'd by drochner and fvdl.
2003-05-15 13:13:21 +00:00
petrov
182de37049
Move DTIMEXP and RFIFOVF warnings under control of HMEDEBUG.
...
PR port-sparc64/20280 by grant beattie.
2003-05-14 19:46:59 +00:00
wiz
1adfebd8ae
coaless -> coalesce.
2003-05-14 13:03:36 +00:00
wiz
74da88f77a
Correct spelling of coalesce. (Will forward to Justin Gibbs.)
2003-05-14 12:57:45 +00:00
wiz
05e990b871
summarize with two m.
2003-05-14 12:46:27 +00:00
wiz
41ebad8a42
create, not craete.
2003-05-14 12:43:26 +00:00
drochner
7460d83817
need wsfont.c for wsfont pseudodevice
2003-05-14 11:26:52 +00:00
ad
b9ac701d8a
Fix thinko.
2003-05-14 11:22:55 +00:00
wiz
b71230c47d
Typos from Jean-Francois Brousseau, via jmc@openbsd.
2003-05-13 22:43:20 +00:00
thorpej
405790a85a
Add support for the user-generated command interface and event logging
...
required by the ICP-Vortex management tools. Many thanks to Achim Leubner
at ICP-Vortex for a few bug fixes and for testing.
2003-05-13 15:42:33 +00:00
kochi
bf026fa41a
Fix a reference count problem that may cause unexpected memory free etc.
...
This is a backport of the latest ACPI CA that has a fix for this.
2003-05-13 13:29:00 +00:00
kochi
19e73853da
Fix parent-child loop problem found by Takashi Yamamoto.
2003-05-13 13:07:13 +00:00
dyoung
e91ed415cd
Revert to previous multicast logic, which enami@sm.sony.co.jp says
...
was correct.
2003-05-13 08:58:01 +00:00
dyoung
850a6ef1e6
Begin synchronization with FreeBSD:
...
1 Add channel mask, transmit rate-mask arguments to wi_scan_ap.
2 Adopt the macros WI_LOCK/WI_UNLOCK for synchronization. FreeBSD
uses a different synchronization mechanism.
3 In wi_cmd, adopt constants WI_DELAY/WI_TIMEOUT for timing.
4 Pull debug messages from into wi_read_nicid from FreeBSD.
5 Bug fix: if IFF_ALLMULTI, don't filter any multicasts.
6 Count and report TX exceptions, but don't generate any additional
interrupts.
2003-05-13 08:35:58 +00:00
dyoung
5ffe819b6e
For converge with FreeBSD:
2003-05-13 07:17:46 +00:00
dyoung
45e5f65918
Track TX exceptions. This will eventually enable round-robin retries
...
(for fairness) and RTM_LOSING or some such other message to indicate
a losing wireless destination.
From FreeBSD.
2003-05-13 07:13:49 +00:00
dyoung
904079b8af
Complete prior patch: dump packets in wi_rx_intr, too.
2003-05-13 06:51:10 +00:00
dyoung
aa1a3737de
Debug code from FreeBSD: handy packet dumps when IFF_DEBUG|IFF_LINK2
...
are set.
2003-05-13 06:48:56 +00:00
dyoung
a090735114
Misc changes to wi_stop. First, block interrupts in wi_stop. (From
...
FreeBSD.)
Fix a bug in wi_stop where ejecting from the Powerbook crashes the
system. Essentially, the patch makes sure we write *no* registers
when we are no longer attached.
Also, for consistency w/ FreeBSD, use sc_portnum throughout wi,
instead of hard-coding WI_PORT0 .
2003-05-13 06:33:40 +00:00
dyoung
8f56bda785
For uniformity between FreeBSD & NetBSD, adopt FreeBSD's more
...
concise wi_cmd.
2003-05-13 06:15:47 +00:00
gson
34388cbdcc
Function names printed in debug messages did not always match the
...
actual name of the function.
2003-05-13 04:41:59 +00:00
thorpej
292b5a8b0c
Use aprint*().
2003-05-13 03:00:07 +00:00
thorpej
50e0b3a100
Use aprint_error() where appropriate.
2003-05-13 02:56:13 +00:00
fvdl
f0e810d923
Always use 32bit-wide header pointers for an RSDT (ACPI 1.0). The comment
...
in the code talks about "machine-dependent length", but my copy of
the spec clearly says "an array of 32-bit physical addresses".
2003-05-12 00:19:17 +00:00
atatat
7a309d7e64
make this compile again.
2003-05-12 00:19:00 +00:00
fvdl
26f04d0979
Avoid a strict-alias warning.
2003-05-11 21:21:16 +00:00
fvdl
3d7030e668
Avoid some strict-alias warnings.
2003-05-11 21:20:23 +00:00
fvdl
c99f4a15ba
s/UINT32/ACPI_SIZE/ to match function prototypes.
2003-05-11 19:08:37 +00:00
fvdl
beed0b1c91
Fix format / number of argument mismatch for a printf.
2003-05-11 18:52:39 +00:00
augustss
581056322e
Support for Belkin F5U109. From PR kern/21534.
2003-05-11 16:26:49 +00:00
uwe
a3e1bfb091
Use hardware sprite for the text mode cursor.
...
Fail cursor related ioctls with EBUSY while in text mode.
Don't do uvm_useracc checks before copyout, instead check copyout()
return value directly.
Minor cleanups.
2003-05-11 03:20:09 +00:00
thorpej
e43fecb228
Change bounds_check_with_label() to take a pointer to the disk structure,
...
rather than the label itself. This paves the way for some future changes.
2003-05-10 23:12:28 +00:00
hamajima
8d97ea2fa6
Regen.
2003-05-10 17:52:02 +00:00
hamajima
54950a70eb
Add Platronics DSP-400 Headset.
2003-05-10 17:47:14 +00:00
uwe
6311425db4
Don't need a separate bit expansion table for the cursor mask.
2003-05-10 16:20:23 +00:00
uwe
64e9f09f51
Enforce that the cursor position and the hot spot are within bounds.
...
Constify a bit. Fix unsignedness of a few local variables.
2003-05-10 15:25:19 +00:00
augustss
96221eb168
Try to make message about missing companion controllers clearer.
2003-05-10 12:04:22 +00:00
uwe
2866542ad3
Redo attachment to support proper cnattach.
...
wscons on netwinder almost works now.
2003-05-10 01:51:56 +00:00
fvdl
d88cf589cb
A few ISA sound drivers like to share dma channels, and hence deferred
...
isa_dmamap_create() calls to their open/close entrypoints. This worked
with some luck, but broke on i386 when _bus_dmamap_create started
to allocate bounce buffers upfront, since memory below 16M may well
not be available when the sound devices is opened for the Nth time.
To fix this, create a new simple interface, isa_drq_alloc/isa_drq_free,
wrappers around already existing bitmask macros. These are expected
to be used before an isa_dmamap_create call, and after an
isa_dmamap_destroy call, respectively. For the sb and ad1848 drivers,
they're deferred until open/close.
All isa_dmamap_create calls can now use BUS_DMA_ALLOCNOW and be done
at attach time.
2003-05-09 23:51:25 +00:00
christos
16561289af
PR/13653: Onno van der Linden: Set tranceiver media properly.
2003-05-09 20:54:18 +00:00
martin
4e2589a192
We are getting passed an integer value via a void* arg (in an ioctl() like
...
function) - cast it to an intptr_t.
Addresses parts of PR kern/21448 by Frank Kardel.
2003-05-08 21:18:42 +00:00
martin
82f1702c53
Add missing include.
...
Addresses parts of PR kern/21448 by Frank Kardel.
2003-05-08 21:16:19 +00:00
augustss
7209b4436c
Regen.
2003-05-08 15:20:18 +00:00
augustss
b76302ea23
Add another Diskonkey product id.
2003-05-08 15:19:46 +00:00
enami
507b844289
Regen.
2003-05-08 04:39:33 +00:00
enami
c39e03508c
Spell AirH"PHONE correctly.
2003-05-08 04:38:23 +00:00
augustss
5a80843f7d
Regen.
2003-05-07 16:56:57 +00:00
augustss
392d5e112d
Add some new devices. From FreeBSD.
2003-05-07 16:56:34 +00:00
dsainty
3437bf0668
Add quirk for the 3in1 MobileDrive USB SD card reader, also sold as the
...
"DSE USB ProDrive".
2003-05-06 09:58:44 +00:00
rafal
5741e0f6ce
Regen for MELCO Inc. MCR-SM2 SmartMedia Card Reader
2003-05-06 02:07:16 +00:00
rafal
d856fe57b6
Add MELCO Inc. MCR-SM2 SmartMedia Card Reader, from FUKAUMI Naoki in PR 18990.
2003-05-06 02:05:43 +00:00
fvdl
31826208ad
Define PCI32_DMA_BOUNCE_THRESHOLD
2003-05-05 13:04:29 +00:00
fvdl
6bd0c9f44d
Move definition of ISA_DMA_BOUNCE_THRESHOLD to dev/isa/isareg.h.
2003-05-05 12:55:41 +00:00
dsainty
ee6dbf8959
Regen.
2003-05-05 11:59:13 +00:00
dsainty
da6d9d4cb0
Add 3in1 MobileDrive product (inside the Dick Smith ProDrive)
2003-05-05 11:56:27 +00:00
kristerw
204dc598d9
Change the type of the 'code' parameter of ahc_send_async() from u_int
...
to ac_code to agree with the function definition.
2003-05-04 23:37:27 +00:00
ad
a079c0eb98
- Fix the mailbox protocol. Not tested with newer 'Quartz' controllers.
...
- Handle failure during initalisation more gracefully.
- Create a watchdog thread to poke the board and check for status changes.
- Make ready for > 64kB transfers.
2003-05-04 16:15:35 +00:00
uwe
c6aa061dfa
In rasops_copycols change bcopy to memmove. In that particular place
...
the src and dst are very likely to overlap, so using bcopy causes
garbage to be displayed
2003-05-03 18:32:42 +00:00
wiz
1ffa7b76c4
DMA, not dma nor Dma.
2003-05-03 18:10:37 +00:00
thorpej
9039a9311b
Fix inverted logic in pci_vpd_write(). From Jachym Holecek, PR kern/21440.
2003-05-03 18:02:37 +00:00
ad
db67878c50
Get the interrupt config from the correct register.
2003-05-03 14:57:38 +00:00
scw
37a9b25563
Match Broadcom's BCM5214 Quad 10/100 media interface.
2003-05-02 19:42:35 +00:00
scw
4c6f8bfaa7
Regen
2003-05-02 19:39:47 +00:00
scw
5f24295efa
Add entry for Broadcom's BCM5214 Quad 10/100 media interface.
2003-05-02 19:39:29 +00:00
dyoung
a7d738c524
Adapt SMC 93cx6 library so that it will work with both 8- and 32-bit
...
registers. This is so that I can read an SMC 93cx6 through the
32-bit registers of the ADMtek ADM8211 802.11 wireless MAC.
Adapt aic to choose 8-bit registers.
2003-05-02 19:12:19 +00:00
fvdl
1f81d34aa0
Local change I had lying around: add NOLUNS quirk for an older seagate
...
drive.
2003-05-02 12:27:49 +00:00
dsl
d91455ce26
Change return type of readdisklabel() to const char *
...
I hope I've found all the correct places!
2003-05-02 08:45:10 +00:00
gmcgarry
45f7813d26
Regen: NTT DoCoMO PALDIO 611S PCMCIA
2003-05-02 07:17:18 +00:00
gmcgarry
d9925c605d
Add NTT DoCoMO PALDIO 611S PCMCIA.
...
From PR#9768.
2003-05-02 07:16:40 +00:00
fvdl
df29adfb0e
Don't reference channel_b if it's not a twin channel adapter.
...
From MINOURA Makoto.
2003-05-01 23:00:20 +00:00
thorpej
c1e26c1b48
Free the mpt request structure before calling scsipi_done(), as
...
scsipi_done() may start another command which needs the request
structure being freed.
Patch from Stephan Uphoff, modified slightly by me.
2003-05-01 20:18:35 +00:00
scw
84d2659d16
In gtmpscinit_stop(), don't wait for abort completion status if the
...
receiver is disabled. It'll never complete in this case.
2003-05-01 12:13:26 +00:00
matt
de36c1091b
Update inptr *after* we do the dmasync.
2003-04-30 20:49:49 +00:00
matt
0259e9541c
Fix overrun of TX buffer dmamap.
2003-04-30 18:31:30 +00:00
scw
f95724bd6b
Add support for the SMC91C111 chip, with its internal PHY.
2003-04-29 08:47:29 +00:00
thorpej
c31f87a5cb
Use aprint*().
2003-04-29 01:49:33 +00:00
thorpej
b43b1645a2
Use aprint*().
2003-04-29 01:07:30 +00:00
fvdl
a51397e9b2
Quell a strict-alias warning by applying the same cast to '&target' as
...
already done in all other cases.
2003-04-28 14:43:32 +00:00
haya
0daef8c89f
Regenerate for pcidevs 1.529 and 1.530 changes.
2003-04-28 08:33:48 +00:00