mbalmer
cf39ee7883
Fix non-COMPAT_50 compilation.
2011-10-03 11:31:56 +00:00
mbalmer
de05db530c
Unbreak and move the list of child devices to COMPAT_50.
2011-10-03 11:28:28 +00:00
mbalmer
d394843f35
Remove the GPIODETACH gpio(4) ioctl (it is still available in COMPAT_50) and
...
the 'detach' command line option from gpioctl(8). Drivers that are
attached to gpio pins can be detached using the drvctl(8) command.
2011-10-03 11:16:47 +00:00
hannken
15b3d123ae
As getnewvnode() is prepared to wait for an allocation change vnalloc()
...
to always use PR_WAITOK.
No more 'WARNING: unable to allocate new vnode, retrying...' messages.
2011-10-03 10:30:13 +00:00
njoly
d20e1ca1b9
+i2cscan.debug
2011-10-03 09:52:23 +00:00
mbalmer
a429601b29
Don't cast void pointers.
2011-10-03 08:23:58 +00:00
mbalmer
d0a114ea0b
Build i2cscan, since it is the list files.
2011-10-03 07:29:33 +00:00
mbalmer
0d24d954db
Enable an iic(4) device to prevent a linker warning.
2011-10-03 07:28:14 +00:00
jmcneill
9899f465bf
Newer ATI SB800 SMBus controllers don't report the base address in PCI
...
config space. According to the SB800-Series Southbridges Register Reference
Guide, we can still read this value from PM config space using indirect I/O.
2011-10-02 23:25:20 +00:00
jmcneill
b2284bc274
_ACx is for active cooling policy, using it for envsys temp 'warn max' doesn't
...
make sense
2011-10-02 22:20:33 +00:00
christos
8d68885ceb
No point on keeping hp700 on the old gcc; it is produces broken assembly
...
according to the new binutils.
2011-10-02 22:10:10 +00:00
jmcneill
de012e9fef
Attansic L2 is 10/100 but the status registers report 1000 Mbps, so don't
...
bother reading MII_EXTSR for this part. Also use MII_ANEGTICKS instead of
MII_ANEGTICKS_GIGE for this part.
2011-10-02 21:42:19 +00:00
rmind
d551e49456
- Replace calc_order() with ilog2(), wrap into SIZE2ORDER().
...
- Inline some functions, reduce some #ifdefs.
2011-10-02 21:32:48 +00:00
pgoyette
547c078b7d
Add termname(3) entries
2011-10-02 21:19:35 +00:00
jmcneill
2e7ee9e5d8
rename ioconf file to match module name, and remove an invalid include path
...
from cppflags
2011-10-02 21:14:22 +00:00
jmcneill
afdecb8ae7
iic_ioctl_exec: initialize cmd before using it
2011-10-02 21:12:43 +00:00
christos
959df2bbf2
fix broken sets.
2011-10-02 21:10:03 +00:00
christos
0e4108c639
eat the last d in double constants.
2011-10-02 19:45:10 +00:00
pgoyette
c2d58f1a39
Also re-add usr/include/dev/i2c to the mtree file
2011-10-02 19:31:45 +00:00
pgoyette
173f2e95e5
Now that we're installing i2c/io.h usr/include/dev/i2c/ is no longer
...
obsolete!
2011-10-02 19:29:41 +00:00
roy
fd2d10c6b0
Add termname(3) as defined by POSIX.
2011-10-02 19:24:25 +00:00
jmcneill
8086112a88
Attempt to load the xc5k firmware at attach time using config_mountroot. If
...
it is unavailable the driver will try again on the next open of either the
video or dtv device.
2011-10-02 19:15:39 +00:00
jmcneill
76608f59e8
now that iic is a module, add "iic" dependency to iic drivers
2011-10-02 19:03:56 +00:00
jmcneill
3b6fbb4913
add support for detaching iic(4)
2011-10-02 18:58:45 +00:00
christos
07f6e1d3b5
remove stray underscore.
2011-10-02 18:34:17 +00:00
christos
c38245fcf6
Bump SYMTAB_SPACE
2011-10-02 18:32:36 +00:00
christos
31674ac746
don't mark vers.c phony.
2011-10-02 18:30:50 +00:00
christos
0f48379f18
put back pthread__dbg variable; this is set to no zero by td_open() when
...
debugging to avoid multiple td_open() mess.
2011-10-02 18:18:56 +00:00
christos
80e86efb1f
constify.
2011-10-02 18:18:14 +00:00
christos
b7c50fc18d
enable thread debugging support.
2011-10-02 18:16:06 +00:00
christos
ce760d083b
Enable thread debugging support (not completely working yet).
2011-10-02 18:15:23 +00:00
christos
0ef3cdf303
- add objfile hook.
...
- constify.
- we cannot run things, so don't lie.
2011-10-02 18:14:24 +00:00
jmcneill
fccaaf8f20
I2C_IOCTL_EXEC: only allow i2c write ops if the device was opened for writing
2011-10-02 17:39:40 +00:00
jmcneill
f11f373e5d
add userland implementation of I2C_SCAN code
2011-10-02 16:48:47 +00:00
jmcneill
ab747348b5
Install dev/i2c/i2c_io.h and implement the API in the iic(4) driver.
...
Obsolete the I2C_SCAN option as this can now be done from userland.
2011-10-02 16:39:45 +00:00
jmcneill
0f85e13f2d
allow attaching an iic to auvitek if AUVITEK_I2C_DEBUG is defined, and
...
change the auvitek i2c lock from IPL_VM to IPL_NONE
2011-10-02 16:30:58 +00:00
christos
ecb433c89b
undo previous, my sources were wrong.
2011-10-02 15:04:47 +00:00
christos
7cdf1ad1d3
add a missing file, found with the new binutils. No chance we are going
...
to run mknative again on this, so the manual fix.
2011-10-02 14:24:08 +00:00
hannken
cafde4eb6a
The path getnewvnode()->getcleanvnode()->vclean()->VOP_LOCK() will panic
...
if the vnode we want to clean is a layered vnode and the caller already
locked its lower vnode.
Change getnewvnode() to always allocate a fresh vnode and add a helper
thread (vdrain) to keep the number of allocated vnodes within desiredvnodes.
Rename getcleanvnode() to cleanvnode() and let it take a vnode from the
lists, clean and free it.
Reviewed by: David Holland <dholland@netbsd.org>
Should fix:
PR #19110 (nullfs mounts over NFS cause lock manager problems)
PR #34102 (ffs panic in NetBSD 3.0_STABLE)
PR #45115 (lock error panic when build.sh*3 and daily script is running)
PR #45355 (Reader/writer lock error: rw_vector_enter: locking against myself)
2011-10-02 13:00:06 +00:00
mbalmer
44f61c8547
It's actually 'the flag locator', not 'flags' (as 'flags' can not be used
...
as a locator name for reasons unknown to me.)
2011-10-02 12:43:52 +00:00
mbalmer
ebecabb816
Consistent use of 'return'.
2011-10-02 12:25:40 +00:00
mbalmer
56e78725ec
Document gpioiic flag in a comment.
2011-10-02 12:19:17 +00:00
mbalmer
f2b8ed7ad8
Build iic(4) and gpioiic(4) as modules.
2011-10-02 12:13:08 +00:00
mbalmer
8e70f7be4f
Modules for iic(4) and gpioiic(4).
2011-10-02 11:43:30 +00:00
mbalmer
5589d51709
ii2c can be built as module.
2011-10-02 11:38:48 +00:00
mbalmer
550019b8a7
Add the flag locator (missed in the previous commit).
2011-10-02 10:01:25 +00:00
mbalmer
90077b6e6d
Add a ga_flags field to the gpio_attach structure to hand driver
...
specific flags to drivers being attached at gpio pins. gpioiic(4)
uses this to reverse the SDA/SCL signal order. gpioctl(8) accepts
the flag values as optional argument to the attach command.
While here, make sure we retain backwards compatability and wrap compat
code in #ifdef COMPAT_50/#endif.
2011-10-02 09:33:18 +00:00
dholland
81e8d7471a
Describe the output more accurately, and in the correct order. Noted by
...
Snader_LB on freenode.
2011-10-02 01:51:00 +00:00
dholland
1e6da30b2e
Fix ambiguous/confusing wording.
2011-10-02 01:47:27 +00:00
christos
4e3d131fd2
add a missing E
2011-10-01 21:47:08 +00:00