christos
6ecf0e2cbe
add a pfdetach() method to be used by lkm's
2004-06-22 18:04:32 +00:00
christos
e287801e16
make this compile and fix error handling (does not load yet).
2004-06-22 18:04:05 +00:00
mrg
b83f6fa528
Add re; Realtek GbE.
2004-06-22 16:28:28 +00:00
toshii
792bff8d3c
Add re; Realtek GbE.
2004-06-22 15:31:38 +00:00
toshii
a9b9fd4313
Add re; Realtek GbE.
2004-06-22 15:18:33 +00:00
itojun
ffe2ca6827
fix "includes" for pfvar.h
2004-06-22 14:29:45 +00:00
itojun
7ef0131ac7
PF LKM - not working (ld dumps core) because of the lack of my LKM knowledge.
...
committed to ask help from LKM guru.
reviewed by matt, christos, perry
2004-06-22 14:18:58 +00:00
itojun
bfcdaa5766
PF from openbsd 3.5. missing features:
...
- pfsync (due to protocol # assignment issues)
- carp (not really a PF portion, but thought important to mention)
- PF and ALTQ are mutually-exclusive. this will be sorted out when
kjc@csl.sony.co.jp updates ALTQ and PF (and API inbetween)
reviewed by matt, christos, perry
torture-test is very welcomed.
2004-06-22 14:17:07 +00:00
itojun
596aec9a47
have pf and pflog pseudo-device (commented out).
...
reviewed by matt, perry, christos
2004-06-22 14:09:49 +00:00
itojun
a225f02f05
foundation for PF
2004-06-22 14:04:04 +00:00
itojun
3696a8d60c
use strlcpy
2004-06-22 14:00:54 +00:00
itojun
6adffbf983
PF from OpenBSD 3.5
2004-06-22 13:52:05 +00:00
itojun
047170b1cc
prepare PF-related hooks. reviewed by matt, perry, christos
2004-06-22 12:50:41 +00:00
itojun
afa9c2cdac
hide in-kernel structure by _KERNEL
2004-06-22 12:45:57 +00:00
mycroft
a995be9908
Fix a printf() error.
2004-06-22 12:21:04 +00:00
bsh
a3f45b38fe
Implement software reset by means of watchdog timer.
2004-06-22 11:18:32 +00:00
soren
1e4090e3e1
Make ubt build; bluetooth.c is btbus code, not bthcidrv.
2004-06-22 10:37:00 +00:00
mycroft
a31a65fb9f
Remove comment about the data toggle being borked.
2004-06-22 09:46:46 +00:00
enami
8bafaf56a7
As the ehci_idone() now uses the variable `epipe' unconditionally, always
...
declare it (in other words, make this file compile w/o EHCI_DEBUG).
2004-06-22 09:16:56 +00:00
mycroft
7a2cdd24f9
Fix a stupid bug in ehci_check_intr() that caused use to try to complete a
...
transaction that was still running. Now ehci can handle multiple devices
being active at once.
2004-06-22 08:55:25 +00:00
mycroft
4114710563
Oops. Remove a couple of printf()s.
2004-06-22 07:40:19 +00:00
mycroft
941901b304
Failure to properly mask off UE_DIR_IN from the endpoint address was causing
...
OHCI_ED_FORMAT_ISO and EHCI_QH_HRECL to get set spuriously, causing rather
interesting lossage.
Suddenly I get MUCH better performance with ehci...
2004-06-22 07:20:35 +00:00
mycroft
46d9c14fee
Set the data toggle correctly, and use EHCI_QTD_DTC. This fixes problems with
...
my ALi-based drive enclosure (it works now, rather than failing to attach).
Also seems to work with a GL811-based enclosure and an ASUS enclosure with a
CD-RW, on both Intel and NEC controllers.
Note: The ALi enclosure is currently very SLOW, due to some issue with taking
too long to notice that the QTD is complete. This requires more investigation.
2004-06-22 05:25:10 +00:00
christos
0fe4a0b07a
Don't check for negative offset in the memory case. 64 bit addresses can
...
have the high bit set, and thus be interpreted as negative offsets. This
is not a problem because uvm_io() does all the range checks.
2004-06-22 02:06:55 +00:00
jmc
84fafa3db5
Ignore errors on some rm -rf's for platforms that aren't quite
...
POSIX compliant
and return errors on r/o source (FreeBSD) for -rf. Fixes PR#25022
2004-06-21 18:20:08 +00:00
manu
a7a2220651
We used to look in psuedo-hid (with a typo) device for the keyboard. On
...
newer machines (iBook G4), it is in pseudo-hid (without typo), and there
are no `adb-kbd-ihandle or `usb-kbd-ihandles methods. In that situation,
just try to attach anything we can.
This patch fixes spurious inputs on iBook G4.
2004-06-20 21:02:07 +00:00
manu
72f86bef61
We used to look for the interrupt controller through the "interrupt-controller"
...
property of "/chosen" node in OF tree. On newer machines (e.g: iBook G4),
this property does not exist. We look for the node "mpic" as a second attempt
after a failure in /chosen.
This makes the iBook G4 keyboard almost usable (there are still some spurious
inputs on system startupi)
2004-06-20 20:50:13 +00:00
dillo
730a37a686
Use unsigned long for file size and location; avoids sign extension
...
for files >2GB. Okayed by Martin Husemann.
2004-06-20 20:44:06 +00:00
hannken
7a5be5a9ff
- Add flag L_COWINPROGRESS to struct lwp to avoid recursion when
...
doing copy-on-write.
- Change VFS_SNAPSHOT() to return the snapshot vnode locked.
- Make the IO path for copy-on-write and snapshot-read more lightweight.
Avoids deadlocks where vn_rdwr(...READ...) has a shared lock and needs
to copy-on-write.
Avoids deadlocks/panics where to clean pages the copy-on-write needs
to allocate pages for its VOP_PUTPAGES().
L_COWINPROGRESS part approved by: Jason R. Thorpe <thorpej@netbsd.org>
2004-06-20 18:55:58 +00:00
thorpej
3183ea47c2
When initializing the buffer cache memory pools where the size <= PAGE_SIZE,
...
also use the standard allocator on systems that use a direct-mapped memory
segment for mapping pool pages.
2004-06-20 18:29:47 +00:00
hannken
2c825e5573
Use a pool for struct direct instead of kernel stack.
...
Reduces the kernel stack usage by 264 bytes.
Approved by: Jason R. Thorpe <thorpej@netbsd.org>
2004-06-20 18:25:49 +00:00
hannken
78a89b12b6
Use one daddr_t XXXblks[NDADDR + NIADDR] instead of two.
...
No functional changes. Reduces kernel stack usage by 120 bytes.
Approved by: Jason R. Thorpe <thorpej@netbsd.org>
2004-06-20 18:23:30 +00:00
thorpej
3cd310ba0f
Remove PR_IMMEDRELEASE, since setting the high water mark will achieve
...
the same thing.
Pointed out back in January by YAMAMOTO Takashi.
2004-06-20 18:19:27 +00:00
thorpej
bbbb3183d6
Don't use PR_IMMEDRELEASE on buffer cache pools. Instead, set a high
...
water mark of 1, which will have the same effect.
Pointed out back in January by YAMAMOTO Takashi.
2004-06-20 18:17:09 +00:00
thorpej
bddc74072e
Define and use pcmciabuscf_controller as an alias for
...
cf_loc[PCMCIABUSCF_CONTROLLER] and pcmciabuscf_socket
as an alias for cf_loc[PCMCIABUSCF_SOCKET].
2004-06-20 18:09:46 +00:00
thorpej
221edc1cb1
Define and use zsccf_channel as an alias for cf_loc[ZSCCF_CHANNEL].
2004-06-20 18:07:35 +00:00
thorpej
67e828e7d8
Remove the "ID" component of the x86 bus_dma flags, since these are no
...
longer "ISA DMA" specific flags.
2004-06-20 18:04:08 +00:00
thorpej
82c52d4891
Add COMPAT_20.
2004-06-20 03:24:04 +00:00
manu
31f25e173c
Fix a reversed errno issue for Linux binaries on mips. While we are there,
...
fix broken includes for alpha and m68k.
2004-06-19 22:59:40 +00:00
fredb
c6f9967d69
Introduce a variable "cc" to hold the cpu counter delta, rather than
...
overloading "usec". The counter isn't counting micro-seconds, and using
the same variable to mean two different things is false economy: with
this change, the compiled object is 72 bytes smaller on i386, and the
code is easier to understand, to boot.
2004-06-19 20:02:38 +00:00
yamt
8a2c13021f
cache_lookup: avoid to grab two vnode's v_interlock.
...
just hold a reference (usecount) to a vnode instead.
2004-06-19 18:49:47 +00:00
manu
b2563527a8
Build COMPAT_LINUX again on mips after the siginfo change.
2004-06-19 18:45:30 +00:00
fredb
e89e654031
Fix a typo in the comments.
2004-06-19 18:12:55 +00:00
thorpej
6862b70e43
Merge x86/bus_dma.c 1.11 by yamt:
...
Simplify bus_dma internal "load" functions by eliminating the "first"
variable, using seg == -1 instead.
2004-06-19 18:06:00 +00:00
yamt
79dd9743cd
getcleanvnode: fix spurious ENFILE.
...
try vnode_hold_list if none of vnodes on vnode_free_list are re-usable.
2004-06-19 06:20:02 +00:00
yamt
9ba27abaf6
layer_islocked: check a status of the lower vnode as well.
2004-06-19 06:17:15 +00:00
itohy
73b59a9484
Add corega FEtherII PCC-TXD.
...
From website of Sano Yukihiko.
2004-06-19 04:20:48 +00:00
itohy
fc83a1b610
Regen from pcmciadevs rev 1.194.
2004-06-19 04:15:29 +00:00
itohy
42d8d112df
Add corega FEtherII PCC-TXD.
...
From website of Sano Yukihiko.
2004-06-19 04:13:12 +00:00
martin
4c2f43b8cf
Better support for booting from partitions != a or at the start of the
...
disk, allow commands like "boot disk:d disk:d/netbsd" to work.
Use the real RF_PROTECTED_SECTORS define instead of a local magic number.
While there, minor cosmetics in diagnostics/output format.
2004-06-18 21:04:39 +00:00