Commit Graph

73723 Commits

Author SHA1 Message Date
grant
63ea06b029 add ITE 8212 IDE controller. 2004-11-30 05:02:37 +00:00
christos
0146482549 Clonify bpf. I am not changing /dev/bpfX -> /dev/bpf until all userland
programs have been fixed.
2004-11-30 04:28:43 +00:00
christos
31c81b28f5 Cloning cleanup:
1. make fileops const
2. add 2 new negative errno's to `officially' support the cloning hack:
    - EDUPFD (used to overload ENODEV)
    - EMOVEFD (used to overload ENXIO)
3. Created an fdclone() function to encapsulate the operations needed for
   EMOVEFD, and made all cloners use it.
4. Centralize the local noop/badop fileops functions to:
   fnullop_fcntl, fnullop_poll, fnullop_kqfilter, fbadop_stat
2004-11-30 04:25:43 +00:00
briggs
87dda823cf Minor tweak to add newline to an aprint_error(). 2004-11-30 03:08:27 +00:00
jmc
355c871f88 Fix the way this checks the object files so it works correctly with make -j 2004-11-29 15:19:26 +00:00
atatat
f9bdf3cd08 Remove the digits() function and simply set va_bytes and va_size to
zero in ptyfs_getattr().  There's no reason to make them something
else and no other devices (except for disk devices) report anything
other than zero here, so why should we be different?
2004-11-29 13:55:59 +00:00
yamt
7acc501dd3 splvm should be enough to protect rnd sample queue and rnd_mempool
as you can't use rnd_add_uint32 safely with >IPL_VM anyway.
2004-11-29 13:33:37 +00:00
ws
739e2052fd We just checked that the parent is the root, not current.
So we better determine the bus number of this parent node.
Now, MPACPI on my Opteron board finally correctly determines its
PCI/AGP busses even without the help of the AMD64 Address Map
support implemented in my local tree.
2004-11-29 00:07:22 +00:00
thorpej
961245b8bf Sync with i386 bus_dma. 2004-11-28 17:36:27 +00:00
thorpej
7a60e77293 bus_dmamap_load_mbuf(): Skip zero-length mbufs.
kern/24811
2004-11-28 17:34:45 +00:00
skrll
4979a4d3be Re-order the inclusion of opt_pfil_hooks so PFIL_HOOKS gets set properly. 2004-11-28 17:16:10 +00:00
bouyer
9958df25fd Add RAID support, from Shin'ichiro TAYA on current-users@. 2004-11-28 14:34:31 +00:00
martin
e07d3f82e7 Add a pfil(9) hook to get notified when interfaces detach.
When the ethernet interface of a pppoe pseudo-interface detaches, remove
the association and mark the pppoe interface down.
This should fix PR kern/28375.
2004-11-28 11:44:36 +00:00
jmc
9bfe9b9970 Convert mkboot into a full cross tool. Last hurdle for hp300 to building on
non NetBSD/bsd hosts.
2004-11-28 11:14:41 +00:00
jmc
ca09268a5e Reduce pci pullin's to just pcibusprint.c. This doesn't attach pci in a way
config will include any of the generic pci code and all the current code
needs is pcibusprint for now. XXX this really needs more careful looking over
but does allow ofppc to build clean again.
2004-11-28 10:01:25 +00:00
jmc
4a8d169c08 Just include files.wscons since it has some defparams needed by includes
that get picked up from rcons files. Note the fact we're assuming files.wscons
will include files.rcons. Fixes builds on pmax.
2004-11-28 09:05:49 +00:00
thorpej
29671d6616 Fix the fcntl entry points; cmd is a command, not the flags themselves.
Pointed out by Christos (he wrote the broken code originally, and I copied
it to another file later :-)
2004-11-28 07:44:05 +00:00
jmc
c7464d49db Convert remaining host tools for amiga to correct cross tools. Now allows
complete amiga builds on non netbsd/bsd hosts
2004-11-28 07:00:52 +00:00
christos
694d5b6a91 We don't need to include bpfilter.h 2004-11-28 02:37:38 +00:00
uwe
520a24ea83 Use standard uintN_t types instead of home-grown u_intN_t types. 2004-11-26 22:29:36 +00:00
he
5e3fe78edd Convert the sgimips section to use int types from <sys/stdint.h>
instead of <sys/types.h>, to allow hp700's mkboot to build both as
a host tool and built for the target.  The problem with including
<sys/types.h> before <sys/bootblock.h> is that this ends up defining
_NETBSD_SOURCE, which is incompatible with the tool build.

I've verified that both sgimips and hp700 build after this change.
2004-11-26 21:51:50 +00:00
mycroft
67325f43a5 Fix what appears to be a byte order error on big-endian systems with Symbol
cards.
2004-11-26 17:55:41 +00:00
jmc
25287474ca Put back a few locators.h includes that are still needed here. Now evbppc
kernels build clean once again
2004-11-26 05:10:31 +00:00
uwe
c82b9df9d8 Fix several typos in comments. 2004-11-26 02:07:09 +00:00
kim
d62a9fc15a Whitespace police. 2004-11-25 16:13:34 +00:00
manu
6dfb732236 For and from bouyer@: call wdc_init_shadow_reg(chp) only after chp has
been initialized. Cause the hard disk to be detected again on the iBook G4,
and probably other machines.

Weee, I can run -current again!
2004-11-25 15:24:14 +00:00
christos
35a75baff6 PR/28418: Do not drop packets for which we cannot add state, because adding
state is not applicable. The fix just reverts the new code that blocked
packets where fr_addstate() fails. This is not correct in all cases, but
blocking them is a bit drastic and breaks existing functionality. The proper
fix is to change fr_addstate() to return:

- state added
- adding state failed
- adding state is not applicable

and then filter packets only in the second case. I am leaving this for someone
else.
2004-11-25 09:49:12 +00:00
christos
aae3f73769 include sys/types.h to make this compile again. 2004-11-25 08:30:52 +00:00
jmc
9a999c376a Convert bebox's remaining host tools over to cross tools scheme. Builds to sets
w/o error now.
2004-11-25 08:09:14 +00:00
yamt
5dac1f19cb revert unintended changes in the previous. pointed by matthew green. 2004-11-25 06:52:14 +00:00
christos
051b79b0c3 Add pty group and mode settings. 2004-11-25 05:15:10 +00:00
yamt
eb54e7db24 lookup bufq using link_set rather than a switch statement. 2004-11-25 04:52:23 +00:00
yamt
e558aadcb2 remove __lockbarrier, which i forgot to remove in the previous. 2004-11-25 04:50:48 +00:00
atatat
e7eaf9a12d Properly set va_fsid so that st_dev ends up correct. 2004-11-25 03:46:50 +00:00
christos
96832589f8 Limit the hard-coding of things to tty_bsdpty.c. 2004-11-24 22:19:27 +00:00
christos
3a6758fe9c Add a method to set the vattr of the granted pty, so that ptyfs can set it
to what it wants.
2004-11-24 22:18:35 +00:00
christos
6c29f97902 Remove _TTY_GID 2004-11-24 22:17:51 +00:00
jmc
417e73cb35 Retool sgivol into a proper hostool that doesn't depend on disklabel.h.
Assume defaults for file images that match what a vnd would have used.
Native use will still use the standard NetBSD label to get this data.
Fixes PR#25996
2004-11-24 22:01:21 +00:00
jmc
ceb4d24120 Pull host/arch native label information into bootblock.h. Therefore pieces of
this are accessible from host tools.
2004-11-24 21:59:32 +00:00
bouyer
4994bd88e1 Regen (initially for pdcsata(4), but it looks like the files were not
regenerated after some recent addition to kernel configs).
2004-11-24 20:52:23 +00:00
bouyer
fe4d81db48 pdcsata(4), a driver for the Promise SATA150 (aka PDC203xx) serie of
controllers. Tested with a PDC20375 (2 SATA, one PATA) controller on sparc64.
Added to all kernel config file which had pdcide(4).
2004-11-24 20:49:17 +00:00
bouyer
489e5e5287 Move bus_dma setup out of pciide_dma_init() in a new function,
pciide_dma_dmamap_setup(), for the benefit of drivers that needs special
registers setup in dmainit().
2004-11-24 19:52:50 +00:00
tsutsui
c6824e7fc3 Fix comment. 2004-11-24 17:31:58 +00:00
briggs
83931ac682 The 8254x apparently doesn't respond well to I/O accesses at 0. Do not
attempt to map the I/O BAR if it is 0.  This will have the side-effect
of causing the wm_reset() routine to fall back to memory BAR accesses
for those chips on which it would attempt I/O BAR accesses for the reset.

Also update the comments about why we attempt the I/O BAR accesses for
the reset in favor of the memory BAR accesses.
2004-11-24 15:14:13 +00:00
scw
1d6e3e9f5a Check and clear the HT bit in strtc_clock_read(), not just strtc_clock_write()
otherwise we end up reading the date/time of the previous powerfail event.
2004-11-24 14:46:18 +00:00
oster
fc7a4ed42c Only touch bufpool whilst in splbio(). (That should be the case
already, but this makes it explicit and safer in the case where
that changes for some reason.)
2004-11-24 13:42:36 +00:00
martin
3aeabb25dc Add BCM 4401 phy (from FreeBSD). 2004-11-24 10:15:54 +00:00
martin
8eb4323ca4 Regen (BCM4401 added) 2004-11-24 10:15:15 +00:00
martin
66839a739e Add BCM4401 phy 2004-11-24 10:14:41 +00:00
thorpej
38f94c5d99 Don't bother caching the checksum context. Other drivers for this chip
don't, and it seems as though doing it may cause some problems.
2004-11-24 00:02:50 +00:00