Commit Graph

195538 Commits

Author SHA1 Message Date
jmcneill c618ceecc4 video(4) changes to support analog tv capture devices:
- support interlacing with VIDIOC_G_FMT
 - set V4L2_CAP_TUNER if driver implements the set_tuner/get_tuner
   callbacks
 - set V4L2_CAP_AUDIO if driver implements the set_audio/get_audio/enum_audio
   callbacks
 - add support for the following ioctls: VIDIOC_ENUMSTD, VIDIOC_G_STD,
   VIDIOC_S_STD, VIDIOC_ENUMINPUT, VIDIOC_G_INPUT, VIDIOC_S_INPUT,
   VIDIOC_ENUMAUDIO, VIDIOC_G_AUDIO, VIDIOC_S_AUDIO, VIDIOC_G_TUNER,
   VIDIOC_S_TUNER, VIDIOC_G_FREQUENCY, VIDIOC_S_FREQUENCY
 - in video_submit_payload(), fix support for signaling sample complete
   using frame numbers
 - new optional callbacks for drivers: enum_standard, get_standard,
   set_standard, enum_input, get_input, set_input, enum_audio, get_audio,
   set_audio, get_tuner, set_tuner, get_frequency, set_frequency

for drivers that don't provide enum_standard, get_standard, set_standard,
enum_input, get_input and set_input, the original stub implementations are
provided
2010-12-14 03:25:16 +00:00
christos 89d498aa24 moved to external 2010-12-14 03:07:07 +00:00
dyoung ae5edec954 Stop wm(4) from needlessly resetting when you add or delete a vlan(4):
ifconfig vlan0 create vlan 2 vlanif wm0
ifconfig vlan0 destroy

It pays to avoid a reset because after a reset it can take about 30
seconds before wm0 is back on the net.

The patch garnered no objections on tech-net@.

Sponsored by CoyotePoint Systems Inc.
2010-12-14 02:51:46 +00:00
joerg 674a655551 Prefix ctype bitmask macros with _CTYPE 2010-12-14 02:28:57 +00:00
haad 7527c22f7f Add NetBSD version of zfs snapshot management code. IT needs testing it
was only compile tested for now, but I would like to have some code in to be
sure that it will not be lost.
2010-12-14 01:28:18 +00:00
haad 732f954b5c Define mutex_owned. 2010-12-14 01:25:37 +00:00
haad f60c1b8f4b Remove now unneeded print_timestamp. 2010-12-14 01:23:43 +00:00
haad 9e62f6ad09 Fix amd64 build where sysinfo was not defined, disable libshare for now. 2010-12-14 01:22:24 +00:00
haad b407fc2e79 Do not include debug.h 2010-12-14 01:21:25 +00:00
haad a0200337cd Add some more solaris vnode defs for zfs_ctldir. 2010-12-14 01:21:02 +00:00
haad 3c4cc2dec7 Include sys/debug.h to get ASSERT defined. 2010-12-14 01:18:34 +00:00
haad 72392f89e6 Define print_timestamp during build, to shut up gcc warning. 2010-12-14 01:03:10 +00:00
haad 01d7ba741b Simple routine to convert long to string. 2010-12-14 01:01:40 +00:00
haad 2940dfac08 NetBSD doesn't have /etc/mnttab replace it with /dev/null. 2010-12-14 01:00:26 +00:00
pooka 0c0346ae48 Don't __weak_alias non-existent symbols. Apparently the alpha
compiler doesn't like it.
2010-12-13 23:10:12 +00:00
pooka 67a4f392d8 use crunchops for crunchables 2010-12-13 21:48:01 +00:00
pooka a74a091f67 use CRUNCHOPS for a crunched prog 2010-12-13 21:47:32 +00:00
pooka 43673c5e38 befriend RUMPPRG with CRUNCHEDPRG 2010-12-13 21:47:04 +00:00
pooka f2ee316255 Add netstat rump client. For now, it always sets -X, i.e. will
use only sysctl and no kvm (implementing /dev/mem for a rump kernel
would probably not be hard, but still a non-zero effort).

Note: since there is absolutely no network activity in a fresh rump
kernel, rump.netstat usually displays exactly nothing when invoked
without parameters.  Arguments like -r, -bi, -p icmp etc. produce
more stuff.
2010-12-13 21:15:30 +00:00
plunky c7407d6266 add attributes from the Basic Printing Profile v1.2r00 2010-12-13 21:08:37 +00:00
pooka 5f35396ed8 last of the RUMP_ACTION syscall swappers 2010-12-13 21:07:54 +00:00
pooka 91780b046c +rump.mod* 2010-12-13 20:51:11 +00:00
pooka e73ffdda13 Add rump client support for module utilities. It should be noted
that while modstat and modunload and builtin modules work exactly
the same as in the host case, modload loads file system kernel
modules from the rump kernel namespace.  By default, archs which
have rump support for the kernel kernel ABI have the host module
directory mapped into the rump kernel namespace at the same location
(/stand/...).  Therefore, if the *host* module directory is populated,
"rump.modload foo" will work as expected.  Otherwise, RUMP_MODULEBASE
can be used to point to the module directory.
2010-12-13 20:48:44 +00:00
pooka 759b07d20a there's a manpage now ... just not here 2010-12-13 19:39:37 +00:00
joerg fbd98e1bd6 Add PT_GNU_EH_FRAME definition 2010-12-13 19:37:32 +00:00
pooka 78f20aa8ef manpage 2010-12-13 19:36:34 +00:00
jruoho f6b2d8b701 Prompted by dholland@; add the C99 TCORs. 2010-12-13 19:35:00 +00:00
jruoho 37f05f2dfb Clarifications. Improvements to wording and markup. Also follow the common
conventions and split the NOTES into CAVEATS (all these really highlight the
work-in-progress nature of the modules). Split the note about security into
SECURITY CONSIDERATIONS. Add an EXAMPLE on how to manually update modules.
2010-12-13 19:22:01 +00:00
pooka e8de1d91d0 be a happy crunch build 2010-12-13 19:19:10 +00:00
njoly 6c19f9ea7b op_read return value is a ssize_t, not an int. 2010-12-13 19:17:20 +00:00
pooka c7202418cd +rump.envstat 2010-12-13 18:02:04 +00:00
pooka 3d4766ce57 RUMP_ACTION -> RUMPPRG 2010-12-13 18:00:38 +00:00
pooka 3731ffce96 add fresh rump clients 2010-12-13 17:51:39 +00:00
pooka f9740ada7f RUMP_ACTION -> RUMPPRG 2010-12-13 17:42:17 +00:00
pooka e3d9b779d8 Convert from RUMP_ACTION to RUMPPRG. 2010-12-13 17:39:47 +00:00
pooka 8603230f7e Define PROG here since Makefile.inc no longer defines it. 2010-12-13 17:35:31 +00:00
pooka a415ef09e9 Convert from the .ifdef RUMP_ACTION stuff to RUMPPRG. 2010-12-13 17:35:08 +00:00
pooka 84d9317cb6 Define RUMPPRG, which is just like PROG, except it additionally
builds a rump client with the name rump.${PROG}.  The rump client
is not installed suid/sgid by default even if BINMODE is defined.
2010-12-13 17:22:26 +00:00
christos 63cfe07dab PR/44229: Henning Petersen: Remove dup check for whitespace. 2010-12-13 16:54:04 +00:00
christos fc494df71d - no casts for malloc and free
- malloc(type) -> malloc(*value)
- malloc+strcpy -> strdup
2010-12-13 16:52:53 +00:00
matt 4f2934afef Change definition of pc_bus_maxdevs to get a void * instead a pci_chipset_tag_t
to match its use in pci_bus_maxdevs.  This makes it the same as pci_conf_read
and pci_conf_write.
Change all struct device * to device_t.
[Obviously nothing ever used the first argument to pc_bus_maxdevs since it
could have never worked because it wasn't being passed a pci_chipset_tag_t.]
2010-12-13 16:19:02 +00:00
pooka dde3f793dc Also support ld syntax in -l.
was: -l librumpvfs.so
now: -lrumpvfs
2010-12-13 14:26:22 +00:00
matt 2c1217a227 Back out rev that shouldn't have been committed. 2010-12-13 14:18:50 +00:00
pooka 2f36209c20 Mirror sysctlgetmibinfo RUMP_ACTION change. 2010-12-13 14:17:11 +00:00
pooka d3ab3ede2e Add -m which can be used to load modules (which is a completely
different code path than using dlopen() before rump_init(), since
the former uses the in-kernel linker and the latter links the object
in rtld).

So:
golem> ./rump_server -l librumpvfs.so -m /sys/modules/tmpfs/tmpfs.kmod unix:///tmp/commsuck
==>
golem> env RUMP_SERVER=unix:///tmp/commsuck rump.modstat
NAME             CLASS      SOURCE     REFS  SIZE     REQUIRES
suser            secmodel   builtin    0     -        -
tmpfs            vfs        filesys    0     16713    -
wapbl            vfs        builtin    0     -        -

Source is filesys instead of builtin, as expected.

Notably, for -m you *must* use -l librumpvfs.so.  This is because
you need VFS in your kernel to be able to load modules from the
file system.  In a regular kernel "librumpvfs.so" is linked at
kernel build time and loaded by the bootloader.  Here we use dlopen()
for both effects (the other choices would have been to link
rump_server with -lrumpvfs, but that would limit the flexibility,
or link tmpfs.kmod directly into the binary, but that would limit
the flexibility even more).
2010-12-13 14:13:21 +00:00
pooka 92050ae959 stubs to make life easier 2010-12-13 14:03:59 +00:00
pooka ae428f9a60 directory not used anymore 2010-12-13 13:41:41 +00:00
pooka 73b0b48907 Retire h_simpleserver and use rump_server instead. 2010-12-13 13:39:42 +00:00
pooka bfedfec98d +rump_server 2010-12-13 13:38:18 +00:00
pooka ac0678fe1e Handle -l which dlopens libs. This is more applicable to rump_server
than rump_allserver.

So if I do:

golem> rump_server unix:///tmp/commsuck
==>
golem> env RUMP_SERVER=unix:///tmp/commsuck rump.modstat
NAME             CLASS      SOURCE     REFS  SIZE     REQUIRES
suser            secmodel   builtin    0     -        -

and:

golem> rump_server -l librumpvfs.so unix:///tmp/commsuck
==>
golem> env RUMP_SERVER=unix:///tmp/commsuck rump.modstat
NAME             CLASS      SOURCE     REFS  SIZE     REQUIRES
suser            secmodel   builtin    0     -        -
wapbl            vfs        builtin    0     -        -

golem> rump_server -l librumpvfs.so -l librumpfs_ffs.so unix:///tmp/commsuck
==>
golem> env RUMP_SERVER=unix:///tmp/commsuck rump.modstat
NAME             CLASS      SOURCE     REFS  SIZE     REQUIRES
ffs              vfs        builtin    0     -        -
suser            secmodel   builtin    0     -        -
wapbl            vfs        builtin    0     -        -

Well, you get the picture...
2010-12-13 13:32:25 +00:00