Commit Graph

157838 Commits

Author SHA1 Message Date
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
uwe
2e7cdeb33d Don't hijack COPTS to specify cpu type, we have CPUTYPE for that.
Provide a commented out example of a useful COPTS setting.
2007-03-17 14:19:39 +00:00
msaitoh
548cdc0050 s/intialized/initialized/ 2007-03-17 13:51:46 +00:00
tsutsui
40b782670f Use char * where pointer arithmetics are required. 2007-03-17 11:45:21 +00:00
dyoung
2ee6d07aca Regen. 2007-03-17 06:44:31 +00:00
dyoung
67e99bd532 Add Infineon ADM5120 PCI host bridge. 2007-03-17 06:43:52 +00:00
dyoung
4888b33c86 Let config(1) know that #define ATADEBUG goes in opt_ata.h. In
dev/ic/wdc.c and in dev/ata/ata.c, #include "opt_ata.h", and make
both the files compile with or *without* ATADEBUG.  Do not compile
with ATADEBUG by default.
2007-03-17 06:41:35 +00:00
dyoung
72d41408ef bcopy -> memcpy, bcmp -> memcmp.
Don't open-code LIST_FOREACH().
2007-03-17 06:36:05 +00:00
tsutsui
752b5779eb Use (char *) on pointer arithmetic. (I forgot to commit this one) 2007-03-17 06:34:25 +00:00
dyoung
95b277379f In nd6_rtrequest(), when we lookup/create a route whose destination
is equal to one of the host's IPv6 addresses, do not stop at setting
the route's interface to lo0, but also clear the route's RTF_CLONED
flag, if it is present, so that ip6_input() will accept packets
sent to that destination.  This is necessary because ip6_input()
will not accept a packet if it looks up the packet's destination
and finds a route with RTF_CLONED set.

I believe this will help IPv6 networking survive '/etc/rc.d/network
restart'.  See the problem report, kern/33279.
2007-03-17 06:32:46 +00:00
uwe
cfeed1498f sh3_switch_setup: make md_upte[] map uarea pages in reverse order so
that mapping for the bottom of the stack (practically the only page we
ever touch) is found on earlier iterations through md_upte[] in the
tlb miss handler.
2007-03-17 00:56:46 +00:00
matt
125090f30f Remove errant debug line. 2007-03-17 00:11:03 +00:00
matt
bbd7ce97e9 Didn't fix it completely. Now fixed. 2007-03-16 22:50:22 +00:00
abs
bde6709836 Ignore comment (starting with #) lines in mixerctl.conf 2007-03-16 22:30:22 +00:00