Commit Graph

163623 Commits

Author SHA1 Message Date
xtraeme da3a7579a9 Use BUILDSYMLINKS to avoid a compilation error where the source file
has the same name than the LKM.
2007-11-20 21:47:34 +00:00
plunky 166b860e06 allow listening to channel RFCOMM_CHANNEL_ANY, which means that
we should allocate the first available channel at the given
device address.
2007-11-20 20:25:57 +00:00
plunky fb5c91f9fc when listening, don't attach to the 'any' address unless
we wanted to listen to the 'any' address.
2007-11-20 20:19:24 +00:00
plunky cd286130a6 don't explicitly list unused and NULL entries in the domain declaration 2007-11-20 20:18:00 +00:00
pooka b305014b90 add /dev/pud 2007-11-20 18:58:46 +00:00
pooka 378e2f0d3e Add a very simple intro-level example on how to use pud. 2007-11-20 18:58:17 +00:00
pooka b7737261b0 pud (userspace char/block drivers) build goo 2007-11-20 18:54:31 +00:00
pooka 001b8e986e Add initial support for userspace block/char device drivers. This
is a very rough cut supporting only open/close/read/write for char
devices for the time being.  It also takes some extra liberties in
error value processing wrt. to the request-response protocol, but
that will be fixed later.  On the bright side, I haven't managed
to crash my test kernel in several hours with this anymore, so it
can be considered extra-stable ...  All in all this is remarkably
similar to puffs from multiple angles (well, actually, big surprise
there) and these two will share more and more code in the future.

The hardest part, coming up with the name, was done by agc.  I'm
not exactly sure what "pud" is supposed to stand for, but if my
British is anything close to par, I understand that "pud" over
there can stand for just about anything, so it's a safe bet.
2007-11-20 18:47:05 +00:00
pooka b6cf4ea195 Allow to register configuration routines to putter. Once a
configuration routine has been attached to the putter device minor
number, the configuration routine will be called when the device
is opened.  This is required for subsystems which enter the kernel
only through the file descriptor and cannot configure themselves
via another route (like puffs does via the mount() syscall).  Keep
the minor number 0 for "wildcard" uses where we do not require a
hardwired config routine (e.g. the puffs case).
2007-11-20 18:35:22 +00:00
xtraeme 58406f0ac9 Update a comment. 2007-11-20 17:27:35 +00:00
xtraeme 714201def5 After comments from Andrew Doran:
- The mutex for the callout handler must run at IPL_SOFTCLOCK.
- Just stop the callout in sysmon_envsys_unregister() and don't wait
  for the callout to finish.
2007-11-20 17:24:32 +00:00
ad 10564377d6 Use the softint API. 2007-11-20 17:13:04 +00:00
macallan bc546cac16 don't bother looking for console-specific properties on devices that aren't
PCI_CLASS_DISPLAY
2007-11-20 17:06:18 +00:00
tsutsui ddd9ad0a5e Fix e2fs_itpg calculation. 2007-11-20 16:34:37 +00:00
sborrill e14a5d3249 Fix some typos and note that bootxx_cd9660 can load from a path name longer
than 8 chars.
2007-11-20 16:12:50 +00:00
sborrill 980d2ea0f0 Support for boot.cfg has been added to the i386 bootloader 2007-11-20 15:49:14 +00:00
sborrill d849e6b356 Add support for /boot.cfg configuration file in x86 boot loader.
This allows easy configuration of banner text, console device and timeout
as well as allowing menus of commands to be displayed. If /boot.cfg
is not present, then the existing behaviour does not change.

The sections in the boot loader source are surrounded by #ifdef SMALL
allowing this functionality to be removed if space is at a premium.
2007-11-20 15:37:36 +00:00
pooka e0122367ec Don't pass devname to {b,c}devsw_attach(), it's not used. 2007-11-20 14:47:14 +00:00
ad b7b14106bd Don't rely on others being kind enough to pull in sys/device.h 2007-11-20 14:33:58 +00:00
yamt 3a40ff100a put back IPL_IPI as it's still used. 2007-11-20 14:31:46 +00:00
yamt c77d808475 build rb.c. 2007-11-20 13:49:01 +00:00
yamt c64de7a608 sync the prototype of cpu_switchto with sys/cpu.h. 2007-11-20 13:37:37 +00:00
yamt 3acf687ede rename
RB_LEFT
	RB_RIGHT
	RB_OTHER
to
	RB_DIR_LEFT
	RB_DIR_RIGHT
	RB_DIR_OTHER
so that it can coexist with sys/tree.h.
2007-11-20 12:32:55 +00:00
sborrill 3cdec1aaba Add IYSWIM 2007-11-20 12:26:12 +00:00
pooka 7c0ef2ee17 Retire M_PUFFS, use kmem(9) instead. 2007-11-20 11:51:01 +00:00
sborrill 12e455f905 Some manufacturers use the same vendor and product id for different devices.
We need to sanity check the DeviceClass in this case.

Currently known guilty products:
0x050d/0x0121 Belkin Bluetooth and USB2LAN

If this turns out to be more common, we could use a quirk table.
2007-11-20 10:43:01 +00:00
xtraeme 53cbf2f68b Improve description for ENVSYS_FMONNOTSUPP. 2007-11-20 10:08:47 +00:00
yamt 0ae55456d7 dzstart: remove a variable which is no longer used after the previous change. 2007-11-20 09:16:53 +00:00
xtraeme 21ba58354e Indentation fix for the units list. 2007-11-20 09:16:36 +00:00
yamt 636f153f4d fix compilation in the case of _KERNEL && DIAGNOSTIC && !RBDEBUG. 2007-11-20 08:30:05 +00:00
ad a72bb4a2f0 For the last time, compile! 2007-11-20 01:53:50 +00:00
uebayasi dfd4cf0aaf Indent. 2007-11-20 01:33:32 +00:00
uebayasi 146861b4fa Sort variable definitions. No functional change expected. 2007-11-20 01:30:07 +00:00
ad bf2e3dcbb6 Call ttstart() with tty_lock held. 2007-11-20 00:45:23 +00:00
ad ce2527b4f4 IPL_IPI -> IPL_HIGH 2007-11-19 23:07:48 +00:00
ad 772ae8c190 G/C the PDP cache generation stuff. When allocating, just check for a valid
entry where nkpde currently points.
2007-11-19 21:46:51 +00:00
mjf 0b2e8c0fd9 Document mjf-devfs branch. Thanks to xtraeme for reminding me to do this. 2007-11-19 20:45:41 +00:00
ad e27aeee1b7 Work around another funny until I figure out what is going wrong: somehow,
tp->t_rawq.c_cv.cv_waiters is dropping to zero while there are still LWPs
waiting on the queue. dtrace would be really handy here :-/
2007-11-19 19:53:48 +00:00
plunky b0d7f48f6f use optarg instead of mode when reporting failure - mode is uninitialised 2007-11-19 19:49:58 +00:00
ad 3f269d8907 Tidy up the locking a bit. 2007-11-19 19:47:00 +00:00
ad 81a2a5ec4b Regen. 2007-11-19 19:04:43 +00:00
ad dd6968cfd3 Add a few more pcibs 2007-11-19 19:04:10 +00:00
ad 59a5b82b4e Fix cpu_need_resched(). 2007-11-19 19:03:13 +00:00
ad f73e8d8529 IPL_IPI -> IPL_HIGH 2007-11-19 19:02:20 +00:00
ad 73f1f51cda Fix cpu_need_resched. 2007-11-19 19:01:19 +00:00
ad c60c05b2ef TS_ASLEEP is gone. 2007-11-19 19:00:30 +00:00
ad dc26833bb6 - Factor out too many copies of the same bit of tty code.
- Fix another tty signalling/wakeup problem.
2007-11-19 18:51:36 +00:00
ad 417cd168ee Use the softint API. 2007-11-19 18:41:29 +00:00
ad 8fa4c02554 pccons was removed. 2007-11-19 18:29:25 +00:00
minskim 315b1fb6f5 Remove MKUUCP from RELEASEVARS. It is no longer used in src. 2007-11-19 18:27:27 +00:00