Commit Graph

189300 Commits

Author SHA1 Message Date
pooka
b7a2b071f9 Put cfdata* in a similar namespace with cfdriver** cfattachinit*.
This was nagging me already yesterday, but I decided to leave it
alone for better compat with old ioconf.c builds.  But as it turns
out, new code depends on newly built ioconf.c with a new config(1)
anyway, so renaming is not an issue (at least not at this stage).

While renaming, namespace cfdriver and cfattach in "ioconf" rather
than "comp", since the former reflects the config(5) keyword.
2010-03-26 15:51:17 +00:00
jakllsch
c2ca7b837e Fix build of i386 ALL kernel with patch from Greg A. Woods in PR/43056. 2010-03-26 15:46:04 +00:00
pgoyette
e235f1e850 Export the sensor device's class. 2010-03-26 12:36:59 +00:00
cegger
1359eca921 toolchain buildfix on OSX with MKDTRACE=yes:
The host <sys/time.h> doesn't provide CLOCK_REALTIME but ctf uses it.
See http://mail-index.netbsd.org/current-users/2010/03/20/msg012963.html

No comments.
2010-03-26 07:16:12 +00:00
pooka
929e108067 Convert to config_init/fini_component.
tested by jruoho
2010-03-26 05:59:26 +00:00
pooka
11815d9c1d Depend ioconf.c on config (if doing a USETOOLS==yes build).
While this is not strictly sensible, it keeps UPDATE=1 builds
rolling if I change some aspect of config (such as adding the
cfdriver/cfattach lists now).  This is going away eventually.
2010-03-25 20:37:36 +00:00
pooka
1af4db65a0 define the incredible FLAWLESSCALL macro in one place 2010-03-25 19:54:19 +00:00
pooka
28a9c4ad96 use config_init_component() 2010-03-25 19:54:08 +00:00
pooka
abc34bd561 Generate cfdriver and cfattach lists for ioconf configs. 2010-03-25 19:39:05 +00:00
pooka
8b70574df1 Add init/fini for components (modules etc.). These eat the standard
driver/attach/data typically present and once some locking is grown
in here, these routines can be made to fail or succeed a component
attachment/detachment atomically.
2010-03-25 19:23:18 +00:00
dholland
d4ca0466e8 Avoid SIGSEGV in forked child process for (some?) instant-disconnect clients. 2010-03-25 16:36:00 +00:00
jruoho
69b3087bc0 Minor spelling fixes. 2010-03-25 15:34:30 +00:00
jruoho
c6f31e5d95 Vaguely describe the frame-parameter. Beautify. 2010-03-25 15:17:38 +00:00
jruoho
38cd37cea1 Mention the updated hz(9) here. 2010-03-25 15:09:05 +00:00
pooka
7fb0f92c04 Check open return value and close fd when we're done. 2010-03-25 15:00:20 +00:00
jruoho
cbdab0119f In addition to 'hz', document also 'tick', 'tickadj', 'stathz', and 'profhz'.
The idea comes from OpenBSD, but this was written largely based on the
comments in kern_clock.c. XXX: schedhz?
2010-03-25 14:59:36 +00:00
jruoho
7294899bb7 Add pfind(9). 2010-03-25 10:21:09 +00:00
jruoho
c7e9fc77aa Document p_find(), pfind(), pg_find(), and pgfind().
XXX: Needs a quick proofread.
2010-03-25 10:09:54 +00:00
jruoho
4a1c4330a9 Add stdlib(3). 2010-03-25 07:03:33 +00:00
jruoho
df0a5adb89 Document <stdlib.h>.
Written with minimum maintenance costs in mind; only the defined types and
macros are described.
2010-03-25 06:56:20 +00:00
explorer
fc70b598c4 fix the pthread pt_lid in the fork callback function that runs in the child instead of a function that may be going away. KNFify 2010-03-25 01:15:00 +00:00
joerg
ea34e88ea7 Merge 2010-03-24 20:52:39 +00:00
joerg
0ab1cb6dc1 libfetch-2.31:
PR 43013 by Brook Milligan: fetch(3) violates RFC 1738 for ftp:// URLs
if the home directory is not the root directory.

Remember the current directory the first time a CWD / CDUP has to be
issued. Use the document as full URL if the URL started with two /
(quoted or not), otherwise append it to the initial directory.
2010-03-24 20:51:41 +00:00
tnn
7c4a3fc1a3 sys/dev/ic/videomode.h is almost identical to sys/dev/videomode/videomode.h
Remove the former.
2010-03-24 19:33:51 +00:00
njoly
3e46e29198 Fix ENVSYS_DEBUG build. 2010-03-24 19:15:00 +00:00
scw
a239f60810 Update with new download link provided by Marcin M. Jessa in
http://mail-index.netbsd.org/port-arm/2010/03/24/msg000912.html.

Add a note about version 3.0 microcode.
2010-03-24 13:55:04 +00:00
pgoyette
7e351badfc In sysmon_envsys_sensor_event(), permit delivery of all events for the
sensor if no event type is specified.
2010-03-24 13:11:41 +00:00
skrll
2bc65cd509 Correct the list of traps that we need to get the va and space from
ii[os]q.

From OpenBSD.
2010-03-24 12:56:30 +00:00
skrll
c2008f6d9b Improve panic message. 2010-03-24 12:38:55 +00:00
pgoyette
0c7008e9c3 Set the SME_INIT_REFRESH flag so that the sensors' values (including
charge's max_value) are available when the event monitors are created.
2010-03-24 12:18:54 +00:00
pgoyette
f8d161b1f5 Do the initial refresh before creating the event monitors, in case the
event monitors require some of the data loaded by the refresh.  For
example, the initial refresh might load sensor limits and max_value in
addition to the cur_value.
2010-03-24 12:15:54 +00:00
explorer
3f82e012db Correctly set pt_lid in the child, after a fork 2010-03-24 07:27:22 +00:00
pgoyette
c998024539 Only set the APM_BATT_FLAG_NO_SYSTEM_BATTERY if _all_ batteries are
not_present.
2010-03-24 01:45:37 +00:00
dyoung
f52f7d91ef Do not use unitialized bus_space_tag_t's. Use the tag(s) from the
attachment arguments.
2010-03-24 01:13:30 +00:00
macallan
6e669af40f mention cgtwelve 2010-03-24 00:41:21 +00:00
macallan
4e7878cd4e enable CG12 support 2010-03-24 00:39:07 +00:00
macallan
da6c0e814c first stab at a driver for the cg12 / matrox cg3
for now it uses the same monochrome overlay as OBP, otherwise it's got the
usual wsdisplay / vcons goodies
TODO:
- fill in mmap and ioctl methods so we can at least run X in monochrome
- figure out where the 24bit buffer is ( and maybe if there's an 8 bit buffer )
- see if we can do any acceleration
- find the DAC registers
2010-03-24 00:33:06 +00:00
pgoyette
d41a3cef46 Split spdmem driver into a bus attachment and a common back-end
probe and ROM decode, to follow similar changes made in OpenBSD:

        http://article.gmane.org/gmane.os.openbsd.cvs/94948
        http://article.gmane.org/gmane.os.openbsd.cvs/94956

There exists at least one alternative attachment (for SGI IP35
systems; see http://article.gmane.org/gmane.os.openbsd.cvs/94947),
and there could be more in the future.

Thanks to Christoph Egger for pointing out the OpenBSD activity.
2010-03-24 00:31:41 +00:00
dyoung
8183d39c9c In the #definition of PCI_HME_BASEADDR, use PCI_BAR(0) instead of the
anonymous constant 0x10.
2010-03-23 21:54:23 +00:00
dyoung
e99a7c0550 Put back PCI_HME_BASEADDR. 2010-03-23 21:51:39 +00:00
dyoung
a75c1e887e Use the PCI BAR type to decide which I/O enables to set.
TBD: Put back the old BAR #definition, s/PCI_BAR(0)/PCI_HME_BASEADDR/.
2010-03-23 21:22:25 +00:00
dyoung
8c6df9756c dmaiot is supposed to be a bus_space_tag_t, not a bus_space_handle_t.
Make it so.
2010-03-23 21:18:23 +00:00
drochner
1982972a07 catch up with the __RENAME of nanosleep(2) a while ago, otherwise we
get the compatibility function which assumes a different struct timespec
2010-03-23 20:35:44 +00:00
drochner
71380b75fd pull in some more headers to get prototypes into scope, and, more
importantly, the __RENAME of pollts(2)
2010-03-23 20:32:13 +00:00
drochner
ebfe3c0a28 remove some stray __weak_aliases, where the target functions were
__RENAMEd due to the time_t/dev_t type changes, which caused bogus
references to compat functions
now a libc built with BUILDCOLD is usable
2010-03-23 20:28:58 +00:00
martin
d6bdba5871 Properly convert values according to block size differences between the
underlying device (might be a CD drive) and the sun label when carrying
over defaults from a ISO9660 partition.
2010-03-23 20:01:09 +00:00
jakllsch
4af989b1cc Make device node for altq JoBS.
Should fix palindromic PR/43034.
2010-03-23 19:22:41 +00:00
jakllsch
4a4de35bc7 This actually wasn't (completely) replaced by a shell script, restore. 2010-03-23 19:19:03 +00:00
martin
ce69648c34 If we find a device in non-2048 byte/block mode and manage to switch
it over, we need to adjust the capacity - so just read it again.
2010-03-23 18:56:18 +00:00
dholland
1021e8e12c bump date for previous 2010-03-23 18:09:16 +00:00