Commit Graph

98316 Commits

Author SHA1 Message Date
christos a5e2dcc3e2 christos-time_t: welcome to 5.99.7 2009-01-11 03:12:21 +00:00
christos 50728e7823 merge christos-time_t 2009-01-11 02:57:17 +00:00
christos 461a86f9bd merge christos-time_t 2009-01-11 02:45:45 +00:00
mrg 6bbe77565e add an empty module_init_md(), allows a MODULAR kernel to link. 2009-01-11 00:25:12 +00:00
pooka c0284edf66 * sparc supports rump kernel symbol rename
* plonk vax in here since it has issues with rename
2009-01-10 23:38:40 +00:00
pooka a25e3b17bc Track mutex/rwlock/condvar status. This allows us to get rid of
the pthread_np calls which will not likely exist on other platforms.
2009-01-10 22:28:42 +00:00
pooka f326c3106f Disable symbol renaming for now on arm, mips, sh3 and sparc to
allow them to build.  Some libgcc symbols are being renamed also,
plus not all atomic operations are provided by libkern on these
archs.
2009-01-10 20:19:43 +00:00
mhitch 9ecd51cd2c For some reason lost in obscurity and time, I did not ever implement a
timeout capability to these drivers.  Apparently no one has ever had
scsi devices that failed to complete a scsi operation in some fashion,
or at least no one has reported it as best I can remember.  I've just
run into this situation and figured out that one disk would fail to
complete an I/O transaction and never timed out.  Add the appropriate
timeout function to reset the controller and restart things.
2009-01-10 19:10:50 +00:00
cegger c288f70f98 use new exported constants from net80211.
no functional change.
2009-01-10 13:03:19 +00:00
cegger 13175d24c8 BCM4328 has MAC rev 12.
XXX Driver now tells me, this chip has unsupported PHY type 4.
2009-01-10 12:57:50 +00:00
cegger 48a2c14752 Attach on BCM4328. This chip supports 11n. 2009-01-10 12:55:45 +00:00
cegger 09b32df7ac Introduce ieee80211_setbasicrates().
Use it to set speed in ieee80211_ifattach().
Export new ieee80211_std_rateset_11{a,b,g}.

From OpenBSD.
2009-01-10 12:53:45 +00:00
tsutsui 7c5092b818 Remove unnecessary "last kernel PT page" mapping.
The lkptpa was required for hp300 (where PA != VA)
to prepare a page PA == VA to turn on the MMU,
and it is not needed for mac68k which has PA == VA
mappings even in kernel text/data/bss.  Tested on LC630.
2009-01-10 11:28:47 +00:00
isaki 917e1cad29 Clean up messages.
- fdcintr: remove duplicated status message.
- fdioctl: make it easy to track ioctl.
2009-01-10 06:45:06 +00:00
isaki 9c9d081d26 fdc->sc_dev is not necessary. 2009-01-10 06:41:06 +00:00
jym ae69d2f013 Do not probe for console when configuring xenbus devices, as it is
attached earlier during boot, when initializing hypervisor.

This avoids the "unknown type console at xenbus0 id 0 not configured"
autoconf(9) messages, which are misleading during domU's boot.

See also http://mail-index.netbsd.org/port-xen/2009/01/05/msg004621.html

Ok by bouyer@ in private mail.
2009-01-09 22:26:25 +00:00
cegger 096c5722ac add flow control support. From OpenBSD. 2009-01-09 22:03:13 +00:00
cegger f7112a92d1 add support for RTL8211C(L) phy.
From FreeBSD.
2009-01-09 21:56:35 +00:00
jmcneill df68862dbf Make the "EULA not accepted" message a bit more informative, now reads:
EULA not accepted; please see the <driver>(4) man page.
2009-01-09 21:14:36 +00:00
macallan d6ded78b71 Fix previous screwup.
This is the real bwi driver.
Ported by Taylor R. Campbell
2009-01-09 20:49:42 +00:00
macallan 2af193eec9 add bwi driver for Airport Extreme
This driver didn't get much testing so I'd consider it experimental for now
2009-01-09 20:01:28 +00:00
macallan 71a6e25dc4 Last bit of the bwi driver
From Urban Boquist
2009-01-09 19:58:17 +00:00
macallan b7893fb67e PCI attachment for the bwi driver
From Urban Boquist
2009-01-09 19:53:24 +00:00
macallan c83792f07e A driver for Broadcom BCM4302 wlan controllers, otherwise known as
Airport Extreme.
Ported from Dragonfly and OpenBSD by Urban Boquist
2009-01-09 19:50:24 +00:00
mhitch 08fb41ba70 This driver doesn't use sicallbacks, so don't bother pre-allocating one.
Probably left over from a copy/edit of the zssc driver.
2009-01-09 19:37:37 +00:00
briggs 0bc37e80cc Enable lmtemp0/1. 2009-01-09 17:21:19 +00:00
briggs 9ee13eae71 According to the datasheet, temperatures on the LM75 are kept in
0.5 degC-precision the most-significant 9 bits of a 16-bit register.
Interpret them as such and simplify the conversion.
2009-01-09 17:20:31 +00:00
briggs 9a22d28e6e Allow IQ80321-derived systems to provide an m.d. reboot routine.
Use this on the IQ31244 to force a watchdog reset from the M41ST84
if it's been attached.  The generic reset doesn't fully reset the
system whereas the RTC watchdog reset does.
2009-01-09 16:23:59 +00:00
briggs 6d5de89955 Enable the M41ST84 RTC. 2009-01-09 16:21:27 +00:00
briggs c43973de4b Provide a utility routine to configure/write the watchdog.
XXX This watchdog should eventually be integrated into the generic
    watchdog framework.
2009-01-09 16:09:43 +00:00
pooka 6520945b68 Add a handcrafted assym.h to allow hp700 to build. This file should
really be autogenerated, but seems it's generally not required by
stuff in rump and guessing the location of the appropriate genassym.cf
is difficult without a major consultation.

Thanks to Havard for spotting the build failure.
2009-01-09 01:38:35 +00:00
pooka f72740e2d9 Add Makefile.rump to DPSRCS. Should solve issues with UPDATE=1 builds. 2009-01-08 20:00:12 +00:00
pooka 2a81341f7a Remove vax MD source which is now brought in automatically via libkern. 2009-01-08 19:14:37 +00:00
jakllsch 0f24b5edb2 Use ${VERSIONFILE} instead of ${.ALLSRC} to match Makefile.boot.
This change stops the full path of newvers_stand.sh from showing up in
pxeboot_ia32.bin.
2009-01-08 19:02:12 +00:00
pooka ed610ecd69 Rename symbols in rump kernel libraries to always belong to a "rump"
symbol namespace.  This has several implications:
  * no symbols are accidentally linked against host platform libraries
  * all host platform access is done via rumpuser, and hence the
    portability of rump is now well defined
  * functionality such as proplib can now exist within the rump virtual
    kernel and the application using it

Thanks to uwe for originally suggesting the bulk renaming approach
over a pint of what I believe was very crisp, curious and untypical
stout.  It had an almost acidic characteristic with fruity notes
and lacking dark and roasted flavours.

And thanks to lukem for pointing me in the right direction with make.
2009-01-08 18:42:42 +00:00
reinoud a0d3b4c9bf Fix the mess i made with the iso partitioning reading due to the fact that
disk_read_sector() wants DEV_BLKSIZE blkno's BUT sectorsize unit lengths
specified... how `logical'.

Real fixup pending on discussion on tech-kern/source-changes.
2009-01-08 14:06:50 +00:00
njoly 16cef148ad Restore expected FUTEX_WAIT behaviour with NULL timeout argument,
which was broken in my recent timespec cleanup/fix.
2009-01-08 12:46:23 +00:00
uwe 8cbbe584c6 Put symbolsize calculation under the same #if condition that is used
to load symbols.  While here sort the terms of that condition
consistently.  This unbreaks the build w/out ksyms, DDB and MODULAR.

Pointed out by joerg@
2009-01-08 06:40:44 +00:00
pooka a378ac816b Put syspuffs_glueinit in the rump kernel namespace. 2009-01-08 03:27:10 +00:00
matt 60d7f59687 When allocating a KMPAGE and it has multiple colors, make sure to flush them.
Add some more KASSERTs for multiple colors (or lack thereof).
2009-01-08 01:42:48 +00:00
pooka 77fce09067 missed this in previous commit:
Explicitly pass a pointer to the kernel lock/unlock routines in
rumpuser init instead of magically relying on the linker giving us
the symbols.

thanks to uwe for pointing out
2009-01-08 01:30:33 +00:00
pooka e99d5fab49 Sprinkle comments explaining purpose of kobj_machdep(), per email from ad.
no functional change
2009-01-08 01:03:24 +00:00
bjh21 583bfaa708 Autoconfiguration cleanup for arcvideo(4):
- Use device_t and cfdata_t rather than explicit structure pointers.
- Use device_private() rather than a cast to convert device_t to a softc.
- Use device_*() to get at the innards of device_t.
device/softc split not done yet because of worrying about bootstrap console
stuff.
2009-01-07 23:14:40 +00:00
bjh21 a3551a3ce2 Autoconfiguration cleanup for arcpp(4):
- Split device_t out of softc.
- Use device_t and cfdata_t rather than explicit structure pointers.
- Use device_*() rather than accessing parts of device_t directly.
- Use aprint_*() rather than printf().
Also ANSIfy arcpppushbytes.
2009-01-07 23:05:46 +00:00
bjh21 60f9cd19b7 Add arcpp(4) and eca(4) since they are aren't horribly broken. 2009-01-07 23:01:53 +00:00
bjh21 5ddd0631a0 Rework the bootstrap IIC stuff used by cmos_read() so that it works
properly, albeit only after iociic0 has been attached.  Happily,
cmos_read() isn't needed before that anyway.
2009-01-07 22:58:38 +00:00
pooka 15509962b4 Explicitly pass a pointer to the kernel lock/unlock routines in
rumpuser init instead of magically relying on the linker giving us
the symbols.
2009-01-07 22:50:08 +00:00
uwe 533bbdff7e These copy of gcc millicode routines is now included in librump (that
sucks in all libkern sources), so mark them ".hidden".  I'm not sure
if this is the best course of action (dropping millicode from librump
might be a better idea), but it's the quickest fix to get sh3 builds
going again for now.
2009-01-07 22:15:18 +00:00
pooka 5fc66a37cf _rump_init() - > rump__init() 2009-01-07 21:12:30 +00:00
pooka 39c896dd00 ksyms_init() 2009-01-07 21:11:19 +00:00