Commit Graph

157617 Commits

Author SHA1 Message Date
xtraeme
2c3b13f126 Note addition of the x86/iclockmod driver. 2007-03-20 21:25:53 +00:00
xtraeme
28050fc1b5 Driver for Intel Thermal Monitor (feature TM) On-Demand Clock
Modulation.

This works by changing the duty cycle of the clock modulation,
and saves power and helps to not increase the temperature by
software.

Adapted from OpenBSD/FreeBSD's p4tcc.

To enable it one must use "options INTEL_ONDEMAND_CLOCKMOD".

Tested by me in UP and SMP, ok'ed by Matthew R. Green.
2007-03-20 21:22:03 +00:00
xtraeme
4b852b5e23 Use the new MSR IPI handlers to make it work properly with SMP. 2007-03-20 21:13:06 +00:00
xtraeme
b803090b66 Use the new MSR IPI handlers to make it work properly with SMP.
Tested by Daniel Carosone and Michael Van Elst.
2007-03-20 21:12:22 +00:00
xtraeme
32b7185652 MSR read and write IPI handlers for x86. A MSR will be read or written
in all CPUs available in the system. This adds another member
to struct cpu_info, ci_msr_rvalue; it will contain the value of the MSR
in a previous operation.

Tested with clockmod in UP and SMP by me, tested with est in SMP
by Daniel Carosone and Michael Van Elst.

Ok'ed by Andrew Doran and Matthew R. Green.
2007-03-20 21:07:38 +00:00
plunky
ac2ed142c1 discard inbound packets if the channel is not open 2007-03-20 20:25:24 +00:00
pooka
6d03fb0803 add support for permissions and file ownership 2007-03-20 18:30:30 +00:00
pooka
2bddbed0e0 export puffs version of namei ISLASTCN macro to userspace 2007-03-20 18:28:49 +00:00
pooka
1ba4b810d1 implement counterpart of vaccess() 2007-03-20 18:28:08 +00:00
pooka
a1e98c19f2 match puffs_node_access prototype with reality 2007-03-20 18:25:56 +00:00
drochner
2d9e04fc35 Import DRM drivers, brought into shape by Yorick Hardy, posted to tech-x11.
Minor modifications by me:
-use an mi device major number
-(coarsly) divided into pci card specific and less specific parts, moved
 the latter to dev/drm
-renamed autoconf attributes to reflect this
Todo:
-adapt all card frontends but i915 to drm include file location
-review the mtrr change
-make the change to agp_i810.c coexist with the fix for buggy VESA
 BIOSes which is commented out temporarily
-RCS IDs etc style stuff
-LKM support (rescan support for vga)
-test
2007-03-20 18:05:25 +00:00
garbled
f8ef9d1431 Add the slide device, and the special PCIIDE_SLIDE_SETIRQA option to set
the irq up properly for a RAVEN.  (So far, the only prep machines that
seem to have these chips are RAVEN's, so we should be ok here)
2007-03-20 17:20:59 +00:00
garbled
8e09750d58 The motorola RAVEN is both a pchb and an MPIC. Block out the pci
configuration of it's mem area to keep the PIC available.
2007-03-20 17:16:33 +00:00
drochner
a6fee167b2 allocate chracter dev major #180 for drm 2007-03-20 16:37:12 +00:00
tsutsui
5394379e91 Use crunched binary on sun2 miniroot so that miniroot is
now much smaller (18MB -> 4MB).
Installation is tested on TME (with a workaround for uvm_readahead.c bug).
2007-03-20 16:20:20 +00:00
hubertf
b1eaefe397 Xref shuffle(1) from random(6), and vice versa 2007-03-20 16:12:40 +00:00
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