Commit Graph

21118 Commits

Author SHA1 Message Date
oster
04200d30df Remove unused variable. (Noted by mrg. Thanks.) 2006-10-09 02:43:28 +00:00
oster
89d18f0e72 Fix previous a different way. (pseudo_disk_init() needed to be called earlier) 2006-10-08 23:22:26 +00:00
christos
aa4e53f0e7 Call pseudo_disk_init in the autoconfig case. 2006-10-08 22:57:51 +00:00
rpaulo
bfbbf2d900 Add missing initializer. 2006-10-08 16:53:43 +00:00
scw
4f8db3981d Add the 'volatile' qualifier to all descriptor fields to prevent the
compiler optimising away or reordering accesses to them.

Fixes ehci(4) on NetBSD/evbarm when using -Os optimisation. It's likely
ohci(4) and uhci(4) are similarly afflicted, so the same changes have
been made there.

Quite how other platforms got away without this for so long is a mystery...
2006-10-08 11:52:48 +00:00
xtraeme
337d5c1a2f regen 2006-10-08 08:14:45 +00:00
xtraeme
68d8faa258 Added support for the following devices:
* Matrix Orbital MX4/MX5 Series
 * Crystal Fontz CFA-635 LCD

Patch sent by Claus Andersen via PR kern/34753.
2006-10-08 08:14:24 +00:00
mlelstv
e19fb1ec00 Use last track info only if it gives a sane value. Fixes PR#34688. 2006-10-08 07:50:16 +00:00
oster
1d51ed695f Re-work some of the initialization code to now use config_attach_pseudo()
and friends.  Addresses PR#32881.  BOOT_FROM_RAID_HOOKS dies.
More simplification possible now.
2006-10-08 02:39:01 +00:00
gdamore
0ccaea15ce Fix an incorrect calculation for the destination X direction when doing
blitting.  Thanks to David Redman (Tadpole) for noticing it.   This probably
escaped notice before, since we never do overlapping blits (in the X
direction), but this fix may prevent problems if someone ever does use it
for that.
2006-10-07 21:36:12 +00:00
gdt
058379036b Use IEEE80211_RADIOTAP_DBM_ANTSIGNAL (and NOISE) instead of DB,
because the Atheros values are at least close.
(discussed on tech-net)
2006-10-07 20:54:40 +00:00
oster
71b8d6a6de It's ok to wait for memory for the emergency buffers. If we don't get
that memory, fail harder, and bail on configuring the RAID array.
Addresses PR#25787.
2006-10-07 17:42:53 +00:00
peter
75809b1d7f Fix compilation with IRFRAMET_DEBUG (use %zu/%zd for sizes). 2006-10-07 14:31:53 +00:00
peter
0e931e0449 Fix compilation with AN_DEBUG (use %zu instead of %d). 2006-10-07 14:30:27 +00:00
peter
fe52b6e2b5 Add hpcarm devices. 2006-10-07 14:17:12 +00:00
peter
d0109f306b Jornada 720: change key 127 to KEY_SPECIAL_OFF. 2006-10-07 14:03:12 +00:00
gdamore
c36ea7cf37 Add spiflash driver, and M25P instance, used for STMicro flash devices
found on Meraki Mini (for example).
2006-10-07 07:21:13 +00:00
tsutsui
e44b991120 Fill undefined region (char 0x7f-0xa0) on ISO-8859-1 with dummy data
like other fonts. Closes PR kern/12899.
2006-10-07 02:34:59 +00:00
oster
2992626c96 Revert previous change: Remove an unused variable declaration that was
(likely accidentally) added as the only change in the last commit.
2006-10-05 17:59:36 +00:00
tls
8cc016b4bc Protect calls to pool_put/pool_get that may occur in interrupt context
with spl used to protect other allocations and frees, or datastructure
element insertion and removal, in adjacent code.

It is almost unquestionably the case that some of the spl()/splx() calls
added here are superfluous, but it really seems wrong to see:

	s=splfoo();
	/* frob data structure */
	splx(s);
	pool_put(x);

and if we think we need to protect the first operation, then it is hard
to see why we should not think we need to protect the next.  "Better
safe than sorry".

It is also almost unquestionably the case that I missed some pool
gets/puts from interrupt context with my strategy for finding these
calls; use of PR_NOWAIT is a strong hint that a pool may be used from
interrupt context but many callers in the kernel pass a "can wait/can't
wait" flag down such that my searches might not have found them.  One
notable area that needs to be looked at is pf.

See also:

http://mail-index.netbsd.org/tech-kern/2006/07/19/0003.html
http://mail-index.netbsd.org/tech-kern/2006/07/19/0009.html
2006-10-05 17:35:19 +00:00
chs
33c1fd1917 add support for O_DIRECT (I/O directly to application memory,
bypassing any kernel caching for file data).
2006-10-05 14:48:32 +00:00
dogcow
52ba9f7bb5 add braces for if-else statement, in the event that DPRINTF is an
empty statement; shuts gcc up about 'empty statement in if-else'.
2006-10-04 23:55:22 +00:00
dogcow
b7a0575ffb add missing initializer element 2006-10-04 22:44:50 +00:00
plunky
c1ad03adbe Internally, use the service name as the identifier for matching 2006-10-04 19:23:59 +00:00
christos
b64edcaded fix empty if 2006-10-04 15:53:24 +00:00
christos
1f689bbab1 fix empty if. 2006-10-04 15:52:35 +00:00
christos
82e1169df4 fix empty if 2006-10-04 15:49:59 +00:00
christos
12288ce635 Fix empty if 2006-10-04 15:48:47 +00:00
christos
ff685a253e we have rounddown in <sys/param.h> now 2006-10-04 15:48:36 +00:00
christos
888446efb0 fix empty if 2006-10-04 15:41:25 +00:00
christos
53dabe0e36 fix empty if body. 2006-10-04 15:39:24 +00:00
christos
a40b878b67 fix incomplete initializer 2006-10-04 15:38:14 +00:00
christos
f2e38a9477 prevent empty body in if. 2006-10-04 15:36:23 +00:00
tsutsui
2f49bc32a3 Reorganize MI intersil7170(4) TOD clock driver:
- make intersil7170_softc more generic and allocate it during autoconf(9)
  rather than MALLOC(9) in attachment
- put todr_chip_handle_t, year0 value, and the century adjustment flag
  into the intersil7170_softc
- change the attachment function to just take the softc like mk48txx(4)
- split sys/dev/ic/intersil7170.h into intersil7170reg.h and intersil7170var.h
- cleanup some macro

Untested on real sun4 machines, but no objection on port-sparc
(and port-sun3) in three days.
2006-10-04 15:04:43 +00:00
christos
2f0f18be71 prevent empty if. 2006-10-04 15:03:25 +00:00
christos
894062c90e Coverity CID 3061: Add KASSERT (from Arnaud Lacombe) 2006-10-03 18:21:53 +00:00
christos
5dd246492d Coverity CID 3014: Don't check for NULL after deref (from Arnaud Lacombe) 2006-10-03 18:20:57 +00:00
he
adb2b00a4a Restore inadvertently deleted close-brace by previous change. 2006-10-03 12:50:12 +00:00
bjh21
8ca76bdc37 Don't use the uPD71071's autoinitialize mode. This may slow things down
slightly, but autoinitialize mode is impossible to use reliably, since it
means that if disc interrupts are blocked for long enough (or sec_copyout
is too slow), the uPD71071 can run off the end of a block before the
base registers have been updated and end up processing the same block
twice.  With this change, the SEC in my A540 seems finally to be solid.
2006-10-02 22:10:55 +00:00
jmcneill
f40fbf1bb9 Print error on powerhook_establish failure, not success. PR# 34698. 2006-10-02 21:23:44 +00:00
bouyer
a4bcbb000a Claim ipmi. 2006-10-02 19:30:31 +00:00
cube
e815c718be Regen (fix pasto). 2006-10-02 13:09:10 +00:00
cube
a086b3aa30 Oops, pasto. 2006-10-02 13:08:45 +00:00
cube
4b2dd7d48f Regen (MCP55 ISA brige). 2006-10-02 12:51:02 +00:00
cube
8d0897fa4a Add an NVIDIA MCP55 device I forgot (ISA bridge). 2006-10-02 12:50:23 +00:00
gdamore
f0bb59ddcd Reserve the names "spi", "auspi", and "tmp121temp", to reflect recent
commits.  No, there aren't man pages for any of this stuff yet.
2006-10-02 08:19:22 +00:00
gdamore
5c050c465e Initial commit of SPI bus (also known as Microwire) framework, along with
a sample driver for the TI TMP121 temperature sensor.  This has been
moderately tested on Au1550, and it is not enabled in sys/conf (yet).  So
the change is harmless at worst, and useful at best.

Alchemy Au1550 bus driver forthcoming, along with a driver for SPI flash
devices, such as found on the Meraki Mini

This development was partially funded by the Champaign-Urbana Community
Wireless Network Project.

Note that there are some MD-specific SPI drivers that could probably be
made MI under this new framework.
2006-10-02 07:18:19 +00:00
bjh21
439213ef2c Allow wd33c93 attachments to choose what DMA mode it should use, and arrange
to use burst mode on sec(4), which makes it slightly but significantly faster.
2006-10-01 22:02:55 +00:00
bjh21
7da05dea5d There's no need to explicitly deny DMA support, and that causes compile
problems when the kernel doesn't support IDE DMA.
2006-10-01 21:50:33 +00:00
bjh21
bcef78957e Don't explicitly specify no DMA support, since that doesn't work if the kernel
doesn't support IDE DMA at all.
2006-10-01 21:34:30 +00:00