Commit Graph

157701 Commits

Author SHA1 Message Date
xtraeme
db251ec1b9 Sort items. (hi mjf, liamjfoy, dyoung) 2007-03-20 12:34:33 +00:00
yamt
5d8da2a332 yamt-idlelwp: how to adapt a port? 2007-03-20 12:17:17 +00:00
tsutsui
251bb51bf0 Fix shadowed declaration warning. 2007-03-20 11:39:34 +00:00
pooka
a4143b4298 g/c unused debug variable 2007-03-20 11:28:35 +00:00
tsutsui
c55df5782d Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.
2007-03-20 11:27:48 +00:00
yamt
44203998c5 sync with reality. 2007-03-20 11:11:51 +00:00
njoly
226b6c843f Add ktrace I/O support to netbsd32_ioctl() syscall.
Reviewed by cube.
2007-03-20 11:02:18 +00:00
pooka
5c0f0bcf80 initial support for cacheops 2007-03-20 10:22:22 +00:00
pooka
8d9c021816 * rework the page cache interaction a bit: cache metadata in the
kernel and flush it out all at once instead of continuous updating
* add support for delivering notifications to the file server about
  when a page was written to (but disabled by default for now).  the
  file server can use this to request flushing or invalidating the
  kernel page cache
2007-03-20 10:21:58 +00:00
tsutsui
d60cbb92f9 Prepare sc_rtl8201l flag in softc and use it in rlphy_status() so that
we don't have to check device names of device_parent(). From FreeBSD.
2007-03-20 10:17:18 +00:00
dyoung
8db8860cb3 Add an example kernel configuration for the RouterBOARD 153.
XXX This is a fairly specialized configuration that I use for a
XXX wireless router.
2007-03-20 09:22:01 +00:00
dyoung
f57733138c Note Infineon ADM5120 port. 2007-03-20 09:18:05 +00:00
cube
e80df1a6aa Typo. Reported by martin. 2007-03-20 09:11:04 +00:00
dyoung
5451083ef2 Comment out admflash, I have not supplied a source file for that,
yet.
2007-03-20 08:55:43 +00:00
dyoung
320845dda2 Add a port to the Infineon ADM5120.
Basics: the ADM5120 is a 175 MHz MIPS32 4Kc processor featuring a
6-port ethernet 10/100 switch with Auto MDI/X, a PCI controller,
USB 1.1 controller, UART, watchdog timer, eight GPIO pins, and a
multiport memory controller with both NOR and NAND flash support.
This code supports most of the devices on the ADM5120, including
the 6-port switch (each port attaches as an ethernet, admsw0 through
admsw5), the PCI controller, USB controller, GPIO, watchdog, and
UART.

Remaining work: the port includes no NOR/NAND flash drivers.  No
bootloader is included.  I have only tested the PCI bus driver with
the use of one PCI slot on the RouterBOARD 153.  It is not possible
to exploit the capabilities of the ethernet switch using bridge(4).
I have only netbooted the ADM5120 on the RB153.  Booting other
boards, and booting from flash memory, remains to be done.

Hardware availability: many low-cost routers, including the
RouterBOARD 100 series at RouterBOARD.com, use the Infineon ADM5120
processor.

Credits: Ruslan Ermilov and Vsevolod Lobko ported to the ADM5120,
and they wrote device drivers for the UART, USB controller, and
10/100 switch.  Matt Isaacs brought the port up-to-date with
NetBSD-current, made it compile, and ran it first on the RB153.
I added drivers for the PCI controller, GPIO, and watchdog timer.
I produced the bus attachment for the CompactFlash slot with advice
from Mikrotik technical support and from Matt Thomas.
2007-03-20 08:52:00 +00:00
cube
e8beebe1e2 More SCARG_P32 fallout. 2007-03-20 08:25:37 +00:00
cube
35a0a309fb Fix typo. Reported by martin. 2007-03-20 08:12:42 +00:00
garbled
a23808d635 Special case the MTX604 and other RAVEN based machines to not attach
wdc@pnpbus.
2007-03-20 05:58:40 +00:00
garbled
6f633e2b65 Put a small hack in slide.c disabled by default. PCIIDE_SLIDE_SETIRQA. This
sets IDE_IRQA in the IDE Control/Status Register.  This is needed on prep
machines with Motorola RAVEN host bridges, as they wire up the ide device
oddly.
2007-03-20 05:50:35 +00:00
njoly
f7ed257809 When decoding ioctl commands type; do not output non printable
characters, but the corresponding hexadecimal values.

ok by christos
2007-03-19 18:51:09 +00:00
gdt
9da1e4cf5f Change mismatch of bytes 11 to 90 to be a warning, not an error, and
print out the values of the bytes that do not match.
Add comment explaining that there is no documented rationale for the
check.

fsck_msdos checks that several bytes are equal in the primary and
backup bootblock.  There is no documented rationale.  The kernel does
not enforce this when mounting a filesystem.  I have a FAT32
filesystem on my disk (mounted as /share) which fails this check, but
is accepted by both Windows XP and NetBSD.  My volume differs in bytes
71-81.  The primary contains "SHARE " and the backup NUL bytes.

Further, fsck_msdos does not have code to repair the mismatch.  As a
result such filesystems can be used not checked.
2007-03-19 18:30:40 +00:00
kent
5deb14ad9d readable mixer item names for AD1981HD 2007-03-19 16:27:00 +00:00
drochner
4d1d1f005b fix variable in DEBUG code, from Lubomir Kundrak per PR kern/36036 2007-03-19 14:02:56 +00:00
tnozaki
037cfac899 revert to rev1.127 for iconv(3). 2007-03-19 12:27:22 +00:00
tsutsui
af7a0c1731 Prepare rlphy_reset() and set BMCR_AUTOEN in it.
This makes autonegotiation on rlphy(4) at re(4)
on landisk (8139C+) select 100baseTX full-duplex
at boot time (before first ifconfig) properly,
and there is no bad side effect on rlphy(4) at nfe(4).

This may also fix PR kern/34109.
2007-03-19 12:23:30 +00:00
njoly
f408971232 Fix TIOCGPTN ioctl.
Do not use sysioctl() directly, but netbsd32_ioctl() instead.
2007-03-19 10:16:46 +00:00
dillo
0fb2977031 args.path is in UIO_USERSPACE too.
Fixes statvfs on macppc and PR kern/36012.
Thanks to Magnus Henoch for testing.
2007-03-19 09:16:22 +00:00
xtraeme
0d40da510d typo. 2007-03-18 22:36:11 +00:00
dsl
d364d308c7 Change all the NETBSD32PTR64(SCARG(uap, xxx))) to SCARG_P32(uap, xxx). 2007-03-18 21:38:32 +00:00
dyoung
cafee584b5 KNF: compare pointers with NULL instead of 0, and do not "test
truth" of either integers or pointers, so that it's clear
     what's going on.  Remove superfluous () from return statements.
     bcmp -> memcmp, bcopy -> memcpy.

Misc. cosmetic: join some lines, remove a few empty lines, remove
spaces from type casts.  Don't open-code IFNET_FOREACH().  Shorten
some staircases.
2007-03-18 20:59:38 +00:00
uwe
f54c2e5ccf Don't do curupte checks if the miss address is in user space. 2007-03-18 20:18:36 +00:00
dyoung
912b6eb53e The departure of IPv6 interfaces does not agree with pf. The pfil
hooks that signal the interface's departure run before IPv6 sends
messages to indicate that it is leaving its multicast groups; when
pf filters the departure messages, it does not recognize the output
interface, so it complains at the departure of gre65, for example:

pf_test6: kif == NULL, if_xname gre65

I have changed if_detach() so that it calls pr_usrreq(PRU_PURGEIF)
before pfil_run_hooks(PFIL_IFNET_DETACH), instead of the other way
around.  That quiets the pf_test6: messages.
2007-03-18 20:05:52 +00:00
jdc
d77557d8c3 Add USB support (for the Javastation Espresso). 2007-03-18 17:29:56 +00:00
plunky
c6f8856e3c For sdpd(8), change default user/group from nobody/nobody to _sdpd/_sdpd 2007-03-18 15:53:54 +00:00
xtraeme
5dbf7fbdf5 Forgot to initialize cstate, make it global and static. Fixes
build problem with the LKM.
2007-03-18 14:30:54 +00:00
kent
3e124ca34a don't make a mixer item for a power widget 2007-03-18 14:16:00 +00:00
kent
371c325530 correct the DAC group definition for AD1988.
reported by wiz
2007-03-18 11:49:21 +00:00
plunky
5c5f46b32b Add an option to permit members of a specific group to register services, in
order to lower the barrier for users of bluetooth devices which may need to
query services on the local host.
2007-03-18 10:00:42 +00:00
tsutsui
ca549fcb8e CPPICFLAGS -> CPPPICFLAGS (in comments) 2007-03-18 09:08:45 +00:00
tnozaki
7ed1567506 don't use CPPPICFLAGS but CPICFLAGS.
CPPPICFLAGS obly affect *.s sources only,
but we want -D_I18N_DYNAMIC flag for *.c source
(src/lib/libc/citrus_module.c and so on).
use CPICFLAGS instead.

this fix suggested by tsutsui-san in current-users@, thanks.
2007-03-18 08:52:48 +00:00
xtraeme
0959735d30 Fix previous, sync prototypes and missing curcpu(). 2007-03-18 07:56:01 +00:00
xtraeme
90872da93f Don't write same code when there's an error, just use the goto
statement.
2007-03-18 07:40:29 +00:00
xtraeme
4c6e4fcf9b Sync with est.c, est_init does not take any argument now. Just use
curcpu().
2007-03-18 07:28:37 +00:00
xtraeme
3599c78870 Fix mem leak in k8_powernow_destroy, when it's called multiple times.
Found by mrg@.

Also, make sure they have data before trying to free them.
2007-03-18 07:23:53 +00:00
xtraeme
efd5228a6f There's no need to run est_init or k8_powernow_init on each CPU.
Just run it once (in the first cpu probed) with the RUN_ONCE(9)
framework.

Change the argument of est_init and k8_powernow_init to void, we don't
need cpu_info * anymore.

Suggested by tls@ and mrg@.
2007-03-18 07:21:40 +00:00
xtraeme
5ec1f7a202 Change k8_powernow_init to accept a struct cpu_info * as argument,
so that in the informative messages it prints the correct cpu
and not curcpu().

This fixes the first part of PR kern/35676.
2007-03-18 04:41:03 +00:00
reinoud
c1a1692e09 Modify description of the reinoud-bufcleanup experiment branch:
Branch:      reinoud-bufcleanup
Description: implement and evaluate struct buf usage cleanup strategies.
             Ideas currently in mind (preference for b):
             a)
                 1. use of bio_ops per buffer.
                 2. allow chaining/overloading of functions in bio_ops
                    and provide some private context.
                 3. extend the bio_ops with commenly used functionality
                    like pending action counting, custom context passing,
                    last minute processing of buffer data, buffer cache
                    etc.
                 4. investigate the use of the kcont()
                    continuation-passing framework for async io
                    completion notification for bufs
                 ...
             b)
                 1. all sequencing use of B_CALL replaced by
                    device-threads, if possible generic code around BUFQ
                 2. possibly use kcont() for async IO finished signalling
                 3. counter of pending and queued actions requestable
                    by IOCTL interface?
                 4. implement `last minute buffer fixup' calls and maybe
                    even finished I/O calls as vnode operations
                 ...
Status:         Active
Start Date:     Thu Mar 15 2007
End Date:
Base Tag:       reinoud-bufcleanup-base
Maintainer:     Reinoud Zandijk <reinoud@NetBSD.org>
Scope:          src/sys and src/common
Notes:          Used as expiriment sandbox and if successful hopefully one day
                to be intergrated.
2007-03-17 17:24:44 +00:00
uwe
911335e303 Shave off few instructions when doing ldtlb. 2007-03-17 17:23:31 +00:00
tsutsui
3f372aff43 Fix compile errors in the previous:
- include <sys/filedesc.h> for do_sys_stat()
- include <sys/namei.h> for FOLLOW and NOFOLLOW
- add missing semicolons
- fix typos
2007-03-17 17:02:44 +00:00
uwe
62f5ccf3c2 Cosmetic - fix local label name to match the name of the var it refers. 2007-03-17 14:23:07 +00:00