Commit Graph

152011 Commits

Author SHA1 Message Date
wiz
de593fa02d New sentence, new line. 2006-10-03 02:08:16 +00:00
macallan
9be39536c1 don't run clock interrupt stuff as long as we're cold 2006-10-03 02:07:37 +00:00
wiz
5eebb711b9 Use present tense for device scope, like for the others. 2006-10-03 02:06:28 +00:00
wiz
96227bfb22 Bump date for previous. 2006-10-03 02:04:42 +00:00
wiz
caf900a58e Sync usage with man page (correct program name, sort options). 2006-10-03 02:03:33 +00:00
wiz
c0cd11cf40 Some minor fixes. 2006-10-03 02:02:02 +00:00
mrg
fa535729f9 remove some sparc v8 only definitions. 2006-10-02 23:22:52 +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
manu
9547d0f260 avoid reusing free'd pointer (Coverity 2613) 2006-10-02 21:51:33 +00:00
manu
1966cc3311 Check for NULL pointer (COverity 4175) 2006-10-02 21:47:32 +00:00
manu
e1ade705e1 Remove dead code (Coverity 3451) 2006-10-02 21:41:59 +00:00
manu
520ec462f7 Fix array overrun (Coverity 4172) 2006-10-02 21:33:14 +00:00
manu
e5d24ec446 Fix memory leak (Coverity 2002) 2006-10-02 21:27:08 +00:00
jmcneill
f40fbf1bb9 Print error on powerhook_establish failure, not success. PR# 34698. 2006-10-02 21:23:44 +00:00
manu
cdb1e64a8c Fix memory leak (Coverity 2001), refactor the code to use port get/set
functions
2006-10-02 21:19:43 +00:00
apb
9ff8e2d57f Add some markup missed in previous. 2006-10-02 20:54:27 +00:00
manu
cd350eaf6d Avoid reusing free'd pointer (Coverity 4200) 2006-10-02 20:52:17 +00:00
xtraeme
57407188dd Use aprint_debug in debug messages not aprint_normal. 2006-10-02 20:01:11 +00:00
xtraeme
89463b9dfa p[34]_get_bus_clock: change aprint_normal to aprint_debug, we don't
want these messages by default.
2006-10-02 19:59:24 +00:00
bouyer
ecea89c394 Bump MSGBUFSIZE to 24k; with MPBIOS, ioapic and acpi boot message can be
quite verbose.
2006-10-02 19:36:41 +00:00
bouyer
a4bcbb000a Claim ipmi. 2006-10-02 19:30:31 +00:00
apb
d9afa12b42 A field with a null custom heading retains a minimum width derived
from the default heading.  Add a test for this.  src/bin/ps/keywords.c
revision 1.47 failed this test, but revision 1.48 passes.
2006-10-02 19:18:30 +00:00
manu
d564be9350 Don't use NULL pointer (Coverity 3443), reformat to 80 char/line 2006-10-02 18:54:46 +00:00
apb
7c5fcf623a Set the width in the correct data structure. (Fix error in previous.) 2006-10-02 18:43:13 +00:00
apb
524fe13df1 Add ps to SUBDIRS in regress/bin. 2006-10-02 17:59:45 +00:00
apb
6c7dcc02eb Add regression tests for bin/ps. At present, the only feature
tested is the selection of columns and headings, especially
via the -o option.
2006-10-02 17:59:00 +00:00
apb
b9f435a549 Document changes to -o and -O options, and improve markup. 2006-10-02 17:57:01 +00:00
apb
d9463bc15b * When all columns are given null customised headers, the blank header
line is not printed at all.  This is specified in P1003.1-2004
  (SUSv3), and is useful.

* Customised headers may contain embedded space, commas and equals
  signs.  To specify multiple customised headers, use multiple -o or -O
  options.  This is specified (for "-o", not for "-O") in P1003.1-2004
  (SUSv3), and is useful.

* When a column is given a null (blank) customised header, it keeps its
  default minimum width.  This is specified in P1003.1-2004 (SUSv3), and
  seems harmless.

* Fix a bug that made it impossible to print the same keyword multiple
  times, with different customised headers each time.  (Previously, the
  last customised header was used for all instances of the keyword.)

* Make the behaviour of "-O" more useful.  The first -O option adds
  the default keywords only if there have not yet been any formatting
  options, and multiple -O options now insert their keywords in adjacent
  positions.  Now {ps -j -O %cpu} is like {ps -j} with one extra column;
  Previously, it would have had all the columns implied by "-j", plus
  all the default columns, plus the extra column specified by "-O".

* Convert from home-grown linked lists to SIMPLEQ lists.

Discussed in tech-userlevel.
2006-10-02 17:54:35 +00:00
christos
5c86a088e8 Completion on a line like "." at the command prompt gives you a rather
rude response! (from our anonymous user)
2006-10-02 16:43:31 +00:00
elad
f0c7040a3f Move the kauth_init() call above auto-configuration; this will fix some
recent bugs introduced with the usage of kauth(9) in MD/device code.

While here, change the sanity checks to KASSERT(), because they're really
bugs we should fix if triggered.
2006-10-02 16:29:57 +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
dogcow
f54a9b4797 If you're going to initialize a pointer, you have to init it with a pointer
type, not an int.
2006-10-02 12:44:40 +00:00
manu
68e9583818 Don't use NULL pointer (coverity 3439) 2006-10-02 12:04:53 +00:00
manu
5227e9475b Don't use NULL pointer (Coverity 1334) 2006-10-02 11:59:40 +00:00
yamt
9e39e8d5b2 yamt-splraiseipl: next68k, macppc. 2006-10-02 10:29:09 +00:00
elad
67a80f57ce Move the kauth_cred_free() call above the "is connected" check to not
leak credentials.

Pointed out by yamt@, thanks!
2006-10-02 09:22:34 +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
d6493c3f58 Note new SPI bus framwework. (Hmmmm... it would be nice to have spi(4)
man pages, I suppose.)
2006-10-02 08:16:10 +00:00
gdamore
118d36b6e7 Add the final glue bits required to enable the SPI interface on the
DBAU1550.  This is parameterized somewhat as machdep pluggable code, so
different boards can supply different implementations.

At the moment, the DBAU1550 is the only Au1550 board I know of with SPI
connected devices.

I have not enabled I2C on the DBAU1550, as we do not have drivers for either
of the I2C connected devices (a different temperature/voltage sensor and
a serial eeprom.)
2006-10-02 08:13:53 +00:00
gdamore
bcad08160c Add Alchemy PSC SPI bus protocol driver. Not activated on any boards yet,
that requires an evbmips commit.
2006-10-02 08:00:07 +00:00
gdamore
533076c8ff Go ahead and include files.spi. It is going to be used by my alchemy
commit and it appears to be harmless to other configs.  This is modeled
much like files.i2c.
2006-10-02 07:57:46 +00:00
gdamore
3bd9bd2f64 Make PSC better able to support different protocols, as developed for SPI.
The main changes needed are:

	1) pass address and IRQ information from aubus (auspi uses interrupts)

	2) all Au1550 PSC protocols have the same status and register bits
	   for enable, so clean that up (clock registers could be different)

	3) improve timeout logic on enable (a fixed delay isn't good enough)

	4) make aupsc_print return QUIET, as it is annoying to see messages
	   for unconfigured protocols.  This whole mechanism should be re-
	   engineered, to either use indirect configuration or provide more
	   detailed board-driven configuration.  A comment to that effect is
	   placed in the source.

This is shown to work on DBAU1550.
2006-10-02 07:32:16 +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
manu
41042afaf6 Don't use NULL pointer (Coverity 944) 2006-10-02 07:17:57 +00:00
manu
01d5ad642c Don't use NULL pointer (Coverity 941) 2006-10-02 07:15:09 +00:00
manu
9a55720f5c Don't use NULL pointer (Coverity 942) 2006-10-02 07:12:26 +00:00
manu
bfd607cda0 Don't use null pointer (Coverity 863) 2006-10-02 07:08:25 +00:00