enami
063c7653e3
Sync with sys/dev/pci/pcidevs change (ProductID 0x0213 was renamed
...
to CSB6_RAID from CSB6_IDE). And exclude the device of RAID subclass
(i.e., match IDE subclass only).
2003-11-07 10:44:42 +00:00
he
0b0101a884
Re-balance parenthesis.
2003-11-07 10:41:55 +00:00
bouyer
eb42e75cd8
If we already have a channel reset pending, don't try to queue a new one.
...
Otherwise we would bump queue_freeze several times, but the kernel thread would
decrease it only one time.
Fix PR kern/23377 by Mattias Karlsson, and should also fix similar problem
reported by Mihai CHELARU and Bruce J.A. Nourish on current-users.
2003-11-07 08:58:33 +00:00
thorpej
32ddb3f486
Fix brain'o in PCIX speed detection. kern/23375 (John R. Shannon).
2003-11-07 06:03:52 +00:00
mycroft
552d27479a
Replace home-grown locks with lockmgr().
2003-11-07 04:10:56 +00:00
simonb
4116da8027
Sync with dev/ic/com.c rev 1.221.
2003-11-07 02:08:35 +00:00
kivinen
cd9bd33872
eUSB ORCA Quad Reader (SHUTTLE) returns invalid CSWTAGs
...
(always 0). Added quirk to fix it.
2003-11-07 01:04:27 +00:00
kivinen
57d07fa4e6
Regenerated.
2003-11-07 01:02:18 +00:00
kivinen
ff83a852f5
Added eUSB ORCA Quad Reader (Shuttle).
2003-11-07 00:59:38 +00:00
fvdl
1eb5f3a2f2
intr_find_pcibridge returns 0 or error, not < 0.
2003-11-06 23:04:03 +00:00
simonb
7b4feff831
Be consistent with other COM_TYPE_PXA2x0 checks.
2003-11-06 23:02:27 +00:00
simonb
c26e70ad3c
White space nit.
2003-11-06 22:30:09 +00:00
ragge
c556165f92
Do not try to enter more than MAX_INT16 symbols into the patricia tree;
...
the not-entered symbols will be found anyway but via a linear-search.
This only happens if something is wrong when linking the kernel.
Fixes problems reported on port-hp700.
2003-11-06 18:22:01 +00:00
kleink
9acc1a6c3b
Have the linker discard local labels' symbols.
2003-11-06 18:19:32 +00:00
yamt
8b91732e18
fix wrong assertions.
...
they can be false due to alignment requiments (and PMAP_PREFER).
2003-11-06 12:45:26 +00:00
dsl
aed7f069e5
Ensure that the controlling tty is unlinked from the session and pgrp.
...
Due to the way the console is handled, neither the revoke() nor vrele()
is guaranteed to be seen by the real, underlying tty.
2003-11-06 09:30:13 +00:00
dsl
96e2f904d9
Remove a pile of redundant (caddr_t) casts.
2003-11-06 09:16:22 +00:00
dsl
618165063e
When closing a process's controlling terminal, also remove the links
...
to the session and pgrp from the tty. The way that the console is
handled means that the vrele() may not actually do the final close
on the tty itself.
2003-11-06 08:58:04 +00:00
he
1995f8d682
Replace an overlooked instance of p->p_nras with LIST_EMPTY(&p->p_raslist).
2003-11-06 08:49:13 +00:00
jdolecek
a10e06c83e
force -Wno-uninitialized if the compiler is gcc 2.95
2003-11-06 08:23:22 +00:00
mycroft
2ef56c13e8
Force the codec into a known state before trying to determine its speed.
2003-11-06 07:13:33 +00:00
itojun
ae3e6f6041
correct behavior when ipv6mr_interface is 0. Matthias Drochner
2003-11-06 06:10:51 +00:00
simonb
f3bced434d
Try using matching numbers of open and close parentheses to make this
...
compile again.
2003-11-06 04:17:11 +00:00
christos
e9b24cbc3d
make this compile again
2003-11-06 02:25:07 +00:00
christos
16eaa4c6a9
pc532 passes everything on the stack like the i386...
2003-11-06 00:58:17 +00:00
simonb
43621cbb3a
Add kernel portion of siginfo for ns32k.
...
Much thanks to Christos Zoulas for doing this.
2003-11-06 00:41:20 +00:00
simonb
f2706af267
Add COMPAT_16.
2003-11-06 00:38:36 +00:00
he
69c90d9f70
Initialize 'p' to NULL, to work around that the compiler otherwise
...
can't know that 'p' is initialized before it's being used.
Reviewed by ragge.
2003-11-06 00:35:23 +00:00
he
4a1426d85c
Pull up the initialization of 'minnex', so that the compiler can know
...
that it's going to be set before it's used.
2003-11-06 00:33:36 +00:00
he
11f834a44a
Add a default: branch with a panic() to the switch statement to
...
handle "impossible" segment types, so that the compiler can know
that 'pt' has been initialized after the switch statement.
2003-11-06 00:32:27 +00:00
he
93d88e5e12
Work around gcc 2.95.3's inability to detect that 'ck' will be set
...
in rounds 129 and 130 through the loop. Will be noted in doc/HACKS,
and should be reviewed when gcc 3.3.2 is ready for vax.
2003-11-06 00:30:13 +00:00
he
505125808c
Work around gcc 2.95.3's inability to detect that "ret" is initialized.
...
Will be documented in doc/HACKS, and should be looked at again when
gcc 3.3.2 for vax is ready.
2003-11-06 00:25:50 +00:00
simonb
00ea35b3b3
Fix gcc332 uninitialised bogon.
2003-11-05 23:39:21 +00:00
scw
f77bf2bb0c
Enable/Restore alignment fault state on interrupt handler entry/exit.
2003-11-05 21:10:59 +00:00
fvdl
aad37eaff6
Apparently, Dell PERC 4/Di controllers can have two memory BARs, with the
...
second one empty. The previous revision made it pick the empty one.
Reinstate the BAR size check.
2003-11-05 16:03:27 +00:00
yamt
4a570157d7
add a missing pmap_update().
2003-11-05 15:45:54 +00:00
yamt
b479cef701
don't move hint backward.
2003-11-05 15:34:50 +00:00
yamt
171053e863
- fix a reversed comparison.
...
- fix "nextgap" case.
- make sure don't get addresses behind hint.
- deal with integer wraparounds better.
- assertions.
2003-11-05 15:09:09 +00:00
fvdl
664bce39ae
Remove extraneous (
2003-11-05 13:58:00 +00:00
fvdl
51c222e5a2
Add igphy.
2003-11-05 13:51:29 +00:00
scw
aee833c0ee
Add "options ARM32_DISABLE_ALIGNMENT_FAULTS" to forcibly disable
...
alignment fault checking if necessary.
This option gets the acorn32 port working again.
XXX: Richard Earnshaw suggested enabling alignment faults for
XXX: userland only on acorn32. Need to investigate this.
2003-11-05 12:53:15 +00:00
scw
754f153b0d
Use the alignment fault enable/restore macroes in irq_entry.
2003-11-05 12:03:58 +00:00
hannken
2ef662a69e
Clean up the usage of vn_start_write(). At least one occurence clobbered
...
previous error conditions.
If "(flags & (V_WAIT|V_PCATCH)) == V_WAIT" the return value is always zero.
Ignore the return value in these cases.
From Darrin B. Jewell.
2003-11-05 10:18:38 +00:00
scw
ca8c391c95
s/bcopy/memmove/
...
The kernel's bcopy (actually a wrapper around memcpy) is not guaranteed to
handle overlapping regions, even though the old ARM version did.
This fixes a problem where the kernel reported more available memory
than actually existed.
2003-11-05 10:09:10 +00:00
tron
0ad4493632
Update comment for wm(4) attachment because the driver supports more
...
than the Intel 82543 and 82544.
2003-11-05 07:51:12 +00:00
junyoung
dfb82ca484
rindex() shouldn't be used in the kernel. Use strrchr() instead.
2003-11-05 05:46:32 +00:00
mycroft
06eb56a853
So, on other platforms we use the BOOTP/DHCP file name for the boot program
...
and use a default file name of "netbsd" for the kernel. Do the same thing
here, as it hardly makes sense any other way.
2003-11-05 04:18:26 +00:00
christos
82812c7677
remove malloc.h (we don't need it)
2003-11-05 04:03:43 +00:00
christos
293ab5b508
limit malloc so that corrupted executables don't allocate a lot of memory.
2003-11-05 04:03:21 +00:00
uwe
81468ece49
Register definitions for SH7709 DAC.
2003-11-05 03:08:13 +00:00
uwe
7dac2eaa7a
Add closing parenthesis missed in previous.
2003-11-05 01:43:16 +00:00
itojun
60dac07656
use hash table for in6_pcbbind(). similar to in_pcb 1.89 -> 1.90
2003-11-05 01:20:56 +00:00
uwe
758b6ed7d7
ispell comments.
2003-11-05 00:28:34 +00:00
fvdl
60a5dfd880
Add and enable igphy.
2003-11-04 23:38:41 +00:00
he
6a3911e9ce
Make this compile, at least.
2003-11-04 23:19:12 +00:00
christos
808f08e986
Try to make this work. Havard will test it.
2003-11-04 23:01:13 +00:00
scw
5d63abe1f1
Fix a braino introduced in r1.37. Thanks to Tom Spindler for spotting it.
2003-11-04 22:20:50 +00:00
aymeric
a60cfa8cd7
. ANSIfy, make compile
...
. get rid of kbd_intr() and low-level keyboard handling
2003-11-04 19:18:05 +00:00
mycroft
c6589d2082
Ignore a CRCTO error on a SETUP transaction in combination with STALLED or NAK.
...
This fixes problems with the GL641.
2003-11-04 19:11:21 +00:00
thorpej
73fea8467b
Enable i82541 and i82547 chips - it works well enough to get broader
...
testing. Update the TODO list.
2003-11-04 19:09:39 +00:00
mycroft
94d9caaae4
Re-add ServerWorks IDE support, as "rccide". Note: this is untested, as I no
...
longer have a ServerWorks-based motherboard.
2003-11-04 16:57:57 +00:00
dsl
190473c7b3
Remove p_nras from struct proc - use LIST_EMPTY(&p->p_raslist) instead.
...
Remove p_raslock and rename p_lwplock p_lock (one lock is enough).
(pad fields left in struct proc to avoid kernel bump)
Somehow this file escaped the earlier commit (in spite of being in the cvs diff
I did beforehand!)
2003-11-04 16:19:52 +00:00
scw
7f80949f0d
Use the same trick as powerpc to resolve the 24-bit pc-relative
...
branch limitation.
2003-11-04 14:50:27 +00:00
pk
1fac26c0a5
* Set ksi_code to SI_NOINFO where we used to return zero.
...
* Fill in ksi_errno if we have an error code to report.
2003-11-04 14:24:25 +00:00
pk
bf835f94c2
Remove !__HAVE_SIGINFO transitional code.
2003-11-04 14:14:28 +00:00
jdolecek
f96eb7635f
yield to the strchr() prototype from libkern.h
2003-11-04 14:04:04 +00:00
dsl
2ffbd2ab99
Remove p_nras from struct proc - use LIST_EMPTY(&p->p_raslist) instead.
...
Remove p_raslock and rename p_lwplock p_lock (one lock is enough).
Simplify window test when adding a ras and correct test on VM_MAXUSER_ADDRESS.
Avoid unpredictable branch in i386 locore.S
(pad fields left in struct proc to avoid kernel bump)
2003-11-04 10:33:15 +00:00
itojun
57b5c736df
suppress -Wuninitialized
2003-11-04 05:50:54 +00:00
uwe
0af2a03977
Provide wskbd* at j6x0tp? attachment that maps taps on the "HP hard
...
icons" (along the right edge of the screen) to key presses.
2003-11-04 03:43:12 +00:00
uwe
399158308d
Redo a quick hack for intc_intr_disable() and intc_intr_enable() to have
...
a saner interface/semantic.
2003-11-04 03:13:48 +00:00
simonb
1c7a9a7183
Indentation nit.
2003-11-04 02:19:28 +00:00
simonb
d576cd5c19
Fix tyop in previous - a "$" before a make variable works wonders.
2003-11-04 02:18:49 +00:00
kleink
272041c199
Compact previous a little, making better use of _NETBSD_SOURCE.
2003-11-04 00:00:36 +00:00
kleink
331b96d4cf
* define S_IFSOCK as an XSI extension,
...
* define S_ISLNK() for POSIX-2001, and
* define S_ISSOCK() for POSIX-2001.
The latter addresses standards/22902.
2003-11-03 23:55:02 +00:00
cl
66c8bc7693
Reimplement VP donation such that multiple unblocked upcalls can be
...
combined. Also prepare for adding VP repossession later.
- kern_sa.c: sa_yield/sa_switch: detect if there are pending unblocked
upcalls.
- kern_sa.c: sa_unblock_userret/sa_setwoken: queue LWPs about to invoke
an unblocked upcall on the sa_wokenq. put queued LWPs in a state where
they can be put in the cache. notify LWP on the VP about pending
upcalls.
- kern_sa.c: sa_upcall_userret: check sa_wokenq for pending upcalls,
generate unblocked upcalls with multiple event sas
- kern_sa.c: sa_vp_repossess/sa_vp_donate: g/c, restore original
sa_vp_repossess
2003-11-03 22:34:51 +00:00
manu
10d03389ac
mach_port_get_attributes (incomplete and untested)
2003-11-03 22:17:42 +00:00
manu
90b3ec4640
First attempt at mach_make_memory_entry. Untested
2003-11-03 20:58:18 +00:00
jdolecek
ed1e458331
vaddr_t is not a pointer
2003-11-03 20:32:17 +00:00
petrov
334dcc0296
Do not set HMEDEBUG as default mode.
2003-11-03 20:30:14 +00:00
mycroft
64bd03aa66
Remove acpiec locking from the list.
2003-11-03 20:16:46 +00:00
mycroft
823720b33d
Rework slightly so we use acpi_match_hid() in pckbc_acpi_attach() too.
2003-11-03 19:11:41 +00:00
mycroft
3ee522bd34
Match all PNP03?? IDs.
...
Also match more PNP0F?? IDs (e.g. the one the HP OmniBook reports). There's
also no need to check IBM3780 any more, as the IBM and Acer machines which
returned it also return a CID of PNP0F13.
2003-11-03 19:04:56 +00:00
mycroft
cec77f23d6
Match all PNP04?? IDs.
2003-11-03 19:03:54 +00:00
mycroft
c992c0b1e9
Match all PNP07?? IDs.
2003-11-03 19:03:40 +00:00
mycroft
8a8efa0ccf
Use pmatch() so that we can use patterns.
2003-11-03 18:51:31 +00:00
mycroft
d4f7d52915
Add a SMC ID.
2003-11-03 18:25:56 +00:00
mycroft
4ac0e3e5c6
More cleanup:
...
* Use ACPI_FAILURE() and ACPI_SUCCESS().
* Output exception strings in a few more places.
2003-11-03 18:07:10 +00:00
mycroft
b910c03a32
Clean up some messages:
...
* Use AcpiFormatException() in a bunch of places.
* acpi_resource_parse() already prints an error, so don't do it in the callers.
2003-11-03 17:54:39 +00:00
mycroft
01558f7ee2
Clean up some messages:
...
* Use AcpiFormatException() in a bunch of places.
* acpi_resource_parse() already prints an error, so don't do it in the callers.
2003-11-03 17:24:22 +00:00
mycroft
72ae89b69a
Fix locking protocol, and use _GLK appropriately. From kochi, with some
...
modifications.
2003-11-03 17:23:38 +00:00
thorpej
05225cfc05
Add two new boot flags:
...
-x Boot with debugging messages (AB_DEBUG)
-z Boot silently (AB_SILENT)
2003-11-03 16:39:07 +00:00
cube
78677ac649
Regen.
2003-11-03 15:58:48 +00:00
cube
bda71e9e81
Add some IDs for the EPIA-M 10000 motherboard.
2003-11-03 15:57:46 +00:00
briggs
07a0e27c44
Revert the change in default value of ipv6_v6only. Further discussion
...
on this topic is required. It should be reintroduced and pursued in
the IETF.
2003-11-03 15:12:06 +00:00
briggs
953bcec0ab
ifmedia_set() should not panic, nor can it really fail. So if there is
...
some problem setting the media to the requested value (usually IFM_AUTO),
we now force the media selection to IFM_NONE.
This addresses PR/14029 ``panic("ifmedia_set") a little too brutal''
and may address to some degree PR/19504 and PR/23341.
2003-11-03 14:43:32 +00:00
kochi
84795bd3fd
* now the size of ACPI_DEVICE_INFO is variable:
...
it can now accomodate multiple _CIDs
sizeof(ACPI_DEVICE_INFO) should not be used
* make ad_devinfo member in acpi_devnode a pointer
* implement acpi_match_hid() to simplify matching devices;
_CIDs are also taken into account now as well as _HID
2003-11-03 06:03:47 +00:00
mycroft
21978e6e0a
Add another item, and some comments on particular machines affected.
2003-11-03 05:41:06 +00:00
yamt
933834a7ae
revert rev.1.70 as it was not needed.
...
uvm_map_lookup_entry() should handle addresses out of the map.
2003-11-03 04:39:11 +00:00
yamt
efe5d5c154
make lint happy.
2003-11-03 04:20:28 +00:00
yamt
c8d12c1c35
retire PG_ZERO zero-fill checks. uvm_pagefree now check it for us.
2003-11-03 04:02:13 +00:00
yamt
70538d0c22
add a DEBUG check if freed PG_ZERO pages are really zero-filled.
2003-11-03 03:58:28 +00:00
ichiro
8b115395c7
Fix uninitialized variable warnings
2003-11-03 03:05:25 +00:00
he
20a53a5841
Fix uninitialized error in pcib_print().
2003-11-02 22:03:42 +00:00
scw
b9d5da7eda
The expansion bus is mapped via ixpsip now.
2003-11-02 21:27:51 +00:00
scw
e9cd075343
It makes more sense to map the expansion bus registers in ixpsip
...
instead of the pci bridge driver.
2003-11-02 21:24:39 +00:00
scw
21f388f6e0
Add generic read/write region 1 ops.
2003-11-02 21:20:32 +00:00
mycroft
d94e36f311
Add another one.
2003-11-02 19:42:03 +00:00
matt
0c6f824d5a
Fix LP64 bug.
2003-11-02 18:29:46 +00:00
jdolecek
a2ed003b8b
sa_yield(): 'sa' is used only for KDASSERT(), so make it #ifdef DEBUG
2003-11-02 17:04:05 +00:00
jdolecek
5e94c73334
kill unneded SYSVSHM includes
...
use ANSI C function definition for uvm_lwp_exit()
2003-11-02 16:53:43 +00:00
cl
afee7aa4d7
Extend the #ifdef M68040 so that the `sig' variable declaration is moved
...
in as well, as it's otherwise not used. (from atari/atari/trap.c and
x68k/x68k/trap.c)
2003-11-02 16:49:38 +00:00
jdolecek
1cfc34d60f
use LIST_FOREACH() as appropriate
2003-11-02 16:42:22 +00:00
jdolecek
7d64ff943e
add /* nothing */ comment to cpu_wait()/cpu_swapout()
2003-11-02 16:37:09 +00:00
cl
763d8350f0
perform indention change left out of previous commit
2003-11-02 16:30:55 +00:00
cl
350dd95eff
Cleanup signal delivery for SA processes:
...
General idea: only consider the LWP on the VP for signal delivery, all
other LWPs are either asleep or running from waking up until repossessing
the VP.
- in kern_sig.c:kpsignal2: handle all states the LWP on the VP can be in
- in kern_sig.c:proc_stop: only try to stop the LWP on the VP. All other
LWPs will suspend in sa_vp_repossess() until the VP-LWP donates the VP.
Restore original behaviour (before SA-specific hacks were added) for
non-SA processes.
- in kern_sig.c:proc_unstop: only return the LWP on the VP
- handle sa_yield as case 0 in sa_switch instead of clearing L_SA, add an
L_SA_YIELD flag
- replace sa_idle by L_SA_IDLE flag since it was either NULL or == sa_vp
Also don't output itimerfire overrun warning if the process is already
exiting.
Also g/c sa_woken because it's not used.
Also g/c some #if 0 code.
2003-11-02 16:26:10 +00:00
chs
914233e001
commands have grown, make the ramdisk bigger.
2003-11-02 16:02:09 +00:00
chs
d9fc04266e
fix parallel build.
2003-11-02 16:01:16 +00:00
chs
79f70b37d7
find libsa files.
2003-11-02 16:00:54 +00:00
he
ce7ac04a96
Extend the #ifdef M68040 so that the `sig' variable declaration is moved
...
in as well, as it's otherwise not used.
2003-11-02 15:55:16 +00:00
isaki
9f580c69ba
Oops, make it compilable with or without M68040.
2003-11-02 14:06:05 +00:00
isaki
ae50a81244
make it compilable.
2003-11-02 13:57:38 +00:00
shin
8e83097ff5
fix return value of _gsfb_mmap().
2003-11-02 13:12:14 +00:00
tsutsui
c7058a99ee
Fix leftover of MI mk48txx(4) changes inside #if defined(SUN4).
...
Pointed out by Juergen Hannken-Illjes.
2003-11-02 12:59:18 +00:00
he
c8122b488e
The compiler doesn't know that setjmp() always returns 0 "the first
...
time around", so move the initialization of cp0 and cp15 to outside
the if() statement to make this compile again.
2003-11-02 12:39:30 +00:00
jdolecek
b74c137c2a
use LIST_FOREACH() where appropriate
2003-11-02 12:01:40 +00:00
gson
159f73f5c9
Some possible MIDI input byte streams could cause sc->in_msg[]
...
to be overrun, causing a crash.
2003-11-02 11:56:36 +00:00
jdolecek
ec23fd5f28
properly initialize local variable in pnp_debugdump()
2003-11-02 11:32:03 +00:00
wiz
dfb3c51536
Fix some typos. From Tom Cosgrove via jmc@openbsd.
2003-11-02 11:14:22 +00:00
jdolecek
076f4674a8
acpi_res_parse_ioport(): if the added entry is next to a previous I/O port
...
entry, just expand the previous entry instead of adding separate mapping
apparently some BIOSes make separate I/O port entries like this, and
some drivers then fail to attach; this change fixes mappings like
fdc0: io 0x3f2-0x3f3,0x3f4-0x3f5,0x3f7 irq 6 drq 2
to
fdc0: io 0x3f2-0x3f5,0x3f7 irq 6 drq 2
change tested by Bernd Ernesti
2003-11-02 11:12:53 +00:00
wiz
c5670263e0
Fix some typos. From Tom Cosgrove via jmc@openbsd.
2003-11-02 11:07:44 +00:00
wiz
218b6186ff
deferred, not deffered. Inspired by Tom Cosgrove.
2003-11-02 10:50:40 +00:00
wiz
d88f7b1d62
boundary, not boundry. Inspired by Tom Cosgrove.
2003-11-02 10:31:06 +00:00
martin
43b448a711
Redo previous so that it actually works - the OF node still is called "wdc"
...
but it is not the parent but the grandparent of the disk device now.
2003-11-02 10:13:23 +00:00
wiz
c0177219fe
Fix some typos. From Tom Cosgrove via jmc@openbsd.
2003-11-02 09:52:33 +00:00
wiz
0aca09fbc0
Fix two typos. From Tom Cosgrove via jmc@openbsd.
2003-11-02 09:49:20 +00:00
he
2cd9d70a98
Make the clock device aldo depend on mc146818, to make kernels without
...
the 'rtc at ebus' driver configured (e.g. for sbus machines) link.
2003-11-02 09:33:56 +00:00
simonb
20db9285ba
Kill trailing blank lines.
2003-11-02 08:29:06 +00:00
christos
38dd4ae2dc
Initialize another fp instance
2003-11-02 08:27:41 +00:00
christos
6dba5c3bc3
only assign to fp when we have a valid lwp. Thanks simon
2003-11-02 08:20:48 +00:00
christos
df7d5f4716
Use siginfo_t not ksiginfo_t in the frame. Doh!
2003-11-02 08:20:09 +00:00
yamt
c6d9c8814d
fix a wrong assertion. pointed by Christian Limpach.
2003-11-02 07:58:52 +00:00
dyoung
82097fd078
Fix PCMCIA attach messages for wi(4). Tested by Greg Troxel.
2003-11-02 03:31:29 +00:00
dyoung
6892b91b88
No need to check which state we're changing FROM when we deactivate
...
the scan callout.
2003-11-02 02:14:33 +00:00
dyoung
313961b974
Get a clue from ath(4) and move the ieee80211_new_state() calls in
...
atw_init to one place.
2003-11-02 02:05:15 +00:00
dyoung
3800e8585a
Fix thinko that breaks IBSS merges in atw(4). sc->sc_opmode !=
...
ic->ic_opmode!
2003-11-02 01:58:22 +00:00
dyoung
76db6bfa8c
Use ieee80211_find_rxnode to attribute Rx packets to the write
...
ieee80211_node. This reduces code duplication. It will help us
support passive scanning and rate adaptation.
2003-11-02 01:55:40 +00:00
briggs
1d2bfa591d
Implement a separate nsphy_reset(). There are two reasons for this:
...
1) This PHY can take an inordinate amount of time to reset if
media is attached. Under fairly normal circumstances, up
to near one second. This is because it appears to go through
an implicit autonegotiation cycle as part of the reset.
2) During reset and autonegotiation, the BMCR will clear the reset
bit before the process is complete. It will return 0 until the
process is complete and it's safe to access the PHY again.
This gets the on-board pcnet + nsphy ethernet working properly for me on
an IBM PC Server/325. Fixes PR/16346.
2003-11-02 01:42:28 +00:00
dyoung
45f756f520
Mark the available channels using the ic_channels table instead of
...
setting bits in ic_chan_avail, which is the responsibility of
ieee80211_ifattach. I cannot believe the previous code worked.
2003-11-02 01:39:22 +00:00
dyoung
85f84a3155
Cosmetic: get rid of an indent level in ieee80211_find_txnode by
...
changing an if () ... else to an if () return.
2003-11-02 01:29:05 +00:00
dyoung
f64ab7b2a4
Get the ieee80211_node for management packets from the rcvif field.
2003-11-02 00:55:46 +00:00
manu
60e46c0cc8
Finnally, the missing field in IOHIDSystem keyboard events was identified. The
...
keyboard now works in XDarwin. Hurrah!
2003-11-02 00:44:19 +00:00
thorpej
dec320ebc1
Squish some recent compiler warnings.
2003-11-02 00:23:38 +00:00
dyoung
bf9644d3d3
Fix bugs in power-saving:
...
Use a power-saving station's ieee80211_node, which is stored in
the rcvif field.
Do not free a node if it is put onto the power-saving queue.
2003-11-02 00:22:49 +00:00
dyoung
22f9e4aae7
On the output path, save a power-saving station's ieee80211_node
...
in the mbuf's rcvif field so that the driver can get at it.
2003-11-02 00:17:27 +00:00
dyoung
e3bc096fe4
Bug fix: in wi_cfg_txrate, do not divide the 802.11 rate by 2 and
...
take off the flags before giving it to wi_write_txrate.
Also add a useful debug message to wi_write_txrate.
2003-11-01 23:57:05 +00:00
reinoud
4e923603f1
Fix for PR # 23264 thanks to Mike Pumford; it is only attatching clock once
...
now.
2003-11-01 23:37:54 +00:00
mycroft
e45065a344
Dropped a word...
2003-11-01 23:22:54 +00:00
mycroft
c4330d824f
A small list of things needed here.
2003-11-01 23:22:21 +00:00
tsutsui
bd0f8ee224
- Adapt to MI mk48txx(4) changes.
...
- Switch rtc (M5819) routines to use MI mc146818(4) driver.
Tested on Ultra5 (mkclock_ebus), but mkclock_sbus and rtc_ebus are not tested.
XXX This file should be split into each device and each bus attachment,
XXX and moved into sys/arch/sparc64/dev or sys/dev/sun.
2003-11-01 23:04:32 +00:00
tsutsui
deb5638bdc
Adapt to MI mk48txx(4) changes.
...
Tested on SS1+ (mainbus), but not tested on sun4/sun4m (obio).
XXX maybe this file should be split into mainbus and obio attachments
XXX and moved into sys/arch/sparc/dev or sys/dev/sun.
2003-11-01 22:59:24 +00:00
mycroft
4b29327094
Don't bothering reinitializing the sensor name strings when the battery info
...
is updated. Do print out the battery manufacturer info, though. (It's too
bad we can't return this through envsys........)
2003-11-01 22:55:53 +00:00
tsutsui
4e8b58dd02
- Adapt mkclock_isa.c to MI mk48txx(4) changes.
...
- Switch mcclock_isa.c to use MI mc146818 driver.
- Use todr(9) interface with both todclock drivers.
2003-11-01 22:54:46 +00:00
tsutsui
2ddfa78de4
Adapt MI mk48txx(4) changes. Tested on NWS-3470D (hb) and NWS-5000X (apbus).
2003-11-01 22:50:45 +00:00
tsutsui
164022f59e
Adapt MI mk48txx(4) changes. Tested on NWS-1750.
2003-11-01 22:49:38 +00:00
tsutsui
97717cc9f4
Adapt MI mk48txx(4) changes. (compiles but untested)
2003-11-01 22:48:01 +00:00
tsutsui
6fa76b3b92
No need to include <dev/ic/mk48txxreg.h> here.
2003-11-01 22:42:23 +00:00
tsutsui
614e6d4de9
Cleanup MI mk48txx(4) todclock driver:
...
- Prepare mk48txxvar.h and leave only register definitions in mk48txxreg.h.
- Define struct mk48txx_softc as usual devices and allocate necessary
members like struct todr_chip_handle in it.
- Change mk48txx_attach(), mk48txx_nvwr() and mk48txx_nvrd() to take
struct mk48txx_softc.
2003-11-01 22:41:42 +00:00
tsutsui
ab09fdd80e
Rename flag NO_CENTURY_ADJUST -> MC146818_NO_CENT_ADJUST to avoid conflicts.
2003-11-01 21:58:43 +00:00
mycroft
31806f9f22
One more spot for a structure change.
2003-11-01 20:58:33 +00:00
scw
f557964d0c
Quell an uninitialised variable warning.
2003-11-01 20:04:57 +00:00
yamt
142a2d4058
- update uvm_map::size fewer places.
...
- add related assertions.
2003-11-01 19:56:09 +00:00
yamt
c45bf442f2
commit rest of the previous (rbtree).
...
(i should check .rej files before commit, sorry)
2003-11-01 19:45:13 +00:00
yamt
64f5a4d263
make this compilable again with ACPI_DEBUG.
2003-11-01 19:24:42 +00:00
tsutsui
c747a93798
Count necpb interrupts with evcnt(9).
2003-11-01 19:23:52 +00:00
provos
c224a63428
use fdremove to remove kqueue file descriptor so that bitmap information
...
is maintained correctly; found by Juergen Hannken-Illjes
2003-11-01 18:47:16 +00:00
manu
bb7e6443cb
Remove all our real devices from the IOKit registry, as they won't be
...
usefull. Emulate only IOHIDSystem, IOFramebuffer and friends in the
registry.
ioreg is able to display the tree and dump the properties.
2003-11-01 18:41:25 +00:00
matt
1dc67abbb1
Compile at -O2. Fix various GCC3-isms
...
XXX mem.c still fails to assemble.
2003-11-01 18:23:37 +00:00
jdolecek
8f8952e2b1
add a macro to copy ksiginfo_t, and use it in kern_sig.c:ksiginfo_put()
...
change suggested by Christian Limpach
2003-11-01 17:59:57 +00:00
tsutsui
518c5a2e6a
Fix an uninitialized warning.
2003-11-01 17:48:20 +00:00
jdolecek
3abecdb88d
avoid stong words in comments
2003-11-01 17:35:42 +00:00
he
d800494086
Based on the historic hp300 pmap, initialize firstpage to TRUE, and
...
negate that after processing the first page.
2003-11-01 17:16:30 +00:00
jdolecek
467746e275
avoid strong words; use 'screw' instead
2003-11-01 17:00:49 +00:00
cl
5d2db86263
cleanup whitespace and debugging output
2003-11-01 15:36:35 +00:00
he
22c1eedd0c
Initialize needcflush to FALSE in pmap_do_remove().
2003-11-01 15:32:47 +00:00
yamt
fe3e5aa0b8
as we know PTPs are zero-filled when being freed,
...
mark them PG_ZERO so that they'll be used to serve UVM_PGA_ZERO requests.
2003-11-01 15:21:02 +00:00
yamt
d6dc30aeba
in uvm_pagefree and friends, if freed pages have been marked by
...
PG_ZERO flag, put them to PGFL_ZEROS queue rather than default one
so that we can re-use zero-filled pages efficiently.
2003-11-01 15:18:42 +00:00
yamt
e36739df67
use explicit "l" suffixes.
...
(xor -> xorl)
2003-11-01 15:14:27 +00:00
tsutsui
fe1d71458c
- Flush cache only if mips_sdcache_line_size == 0 in pmap_copy_page() when
...
options MIPS3_L2CACHE_ABSENT is defined.
- Fix comments following #endif for MIPS3_L2CACHE_ABSENT.
2003-11-01 14:48:16 +00:00
jdolecek
c12a055f27
g/c index.c and rindex.c (not used anywhere)
2003-11-01 13:17:01 +00:00
jdolecek
d944bca949
rename local index() to strchr()
2003-11-01 13:02:04 +00:00
jdolecek
917bc10805
g/c local index() routine and switch to (libkern's) strchr()
2003-11-01 12:56:32 +00:00
jdolecek
0ce8029b4c
shutup one bogus -Wunitialized warning, and fix one correct
...
XXX parrw() routine looks like not actually correct for transfers
XXX larger than sc_burst - someone with the hardware should check & fix this
2003-11-01 12:53:33 +00:00
jdolecek
ca2d6f9331
drop register qualifiers
2003-11-01 12:43:30 +00:00
jdolecek
8064ffcedd
fix several places where variables might be used uninitialized
2003-11-01 12:41:59 +00:00
jdolecek
aae2faadc5
the storagesize parameter of extent_create() is a size_t, not a pointer
2003-11-01 12:21:14 +00:00
jdolecek
5a088df3e8
mem_exists(): pacify one apparently bogus -Wuninitialized warning
...
setmemrange(): add default case for cputype (same as CPU_68030), to fix
a potential uninitialized use
2003-11-01 12:18:55 +00:00
jdolecek
b1686553ae
drop register qualifiers
2003-11-01 11:50:53 +00:00
jdolecek
a51175c327
fix potential use of uninitialized local variable 'error'
2003-11-01 11:44:46 +00:00
yamt
57e554da69
track map entries and free spaces using red-black tree
...
to improve scalability of operations on the map.
originally done by Niels Provos for OpenBSD.
tweaked for NetBSD by me with some advices from enami tsugutomo.
discussed on tech-kern@ and tech-perform@.
2003-11-01 11:09:02 +00:00
mycroft
efe8779bb3
Provide percentages for the threshold values too.
2003-11-01 10:55:12 +00:00