150733 Commits

Author SHA1 Message Date
simonb
4f4791b37f Switch pc532 to timecounters and generic TODR.
From Garrett D'Amore, with only a couple of minor tweaks by me.
2006-09-07 15:56:01 +00:00
simonb
0c05b6c17e DEBUG="-g" wasn't good enough to remove the "objcopy -x" step, the
library makefiles want the "-g" in COPTS instead.
2006-09-07 15:50:04 +00:00
gdamore
6347eaa294 Run tc_setclock at splclock(). Suggested by kardel@. 2006-09-07 15:49:49 +00:00
simonb
a6e21ef05b Guard the timecounter manipulations including the call to tc_windup()
in tc_init() with splclock().  Fixes doubled-up "selected timecounter"
messages on some architectures, including pc532 and cobalt.

Fix suggested by Frank Kardel.
2006-09-07 15:48:14 +00:00
christos
156b02eae7 make postconf configurable 2006-09-07 15:26:08 +00:00
gdamore
257e75f92c Note that timecounters were added for sun3, cesfic, and cobalt. 2006-09-07 14:53:19 +00:00
ad
c2ed6959c7 Add a very brief EXAMPLES section. 2006-09-07 14:52:38 +00:00
ad
d8323c46d4 Fix a typo. 2006-09-07 14:44:05 +00:00
itohy
fd9e172492 Note on addition of njata(4): world foremost open-source driver for
Workbit NinjaATA-32 busmastering PIO IDE controller.
2006-09-07 14:38:10 +00:00
itohy
7e80848271 Add njata* at cardbus? 2006-09-07 14:23:44 +00:00
itohy
cb2fb285ec Workbit NinjaATA-32 busmastering PIO IDE controller driver (njata)
This driver supports NinjaATA-32Bi and NPATA-32 chips,
which are used for CardBus ATA interface cards and
CardBus CompactFlash adapters.
2006-09-07 14:22:07 +00:00
christos
4f593623cc - find the correct newaliases program from postconf
(suggested by Geert Hendrickx)
- only check for hash files.
2006-09-07 14:16:55 +00:00
itohy
6119b65726 Add PIOBM (busmastering transfer using ATA PIO mode) support.
The PIOBM is used by only one driver (will be added later,
stay tuned) and intruduce an attribute "ata_piobm" so that
it will be conditionally compiled in.
The "ata_dma" (busmastering transfer using ATA DMA mode) and
"ata_udma" (busmastering transfer using ATA Ultra DMA mode)
attributes are also added for consistency, but unused for now.
2006-09-07 12:46:47 +00:00
itohy
bf52851800 Regen from pcidevs rev 1.830. 2006-09-07 12:38:59 +00:00
itohy
eee2a035e9 Add Workbit NinjaATA-32Bi and NPATA-32 busmastering PIO IDE controllers. 2006-09-07 12:37:49 +00:00
itohy
0a30900857 Add PIOBM (busmastering transfer using ATA PIO mode) support.
The PIOBM is used by only one driver (will be added later,
stay tuned) and intruduce an attribute "ata_piobm" so that
it will be conditionally compiled in.
The "ata_dma" (busmastering transfer using ATA DMA mode) and
"ata_udma" (busmastering transfer using ATA Ultra DMA mode)
attributes are also added for consistency, but unused for now.
2006-09-07 12:34:41 +00:00
martin
9418521cf5 If we have not found our booted_device, tell the user and do not crash.
This seems more sensible than a simple KASSERT.
2006-09-07 12:26:37 +00:00
martin
df850dc70e Remove accidently commited debug printf when unblanking, and actually
do the unblank instead.
2006-09-07 08:39:37 +00:00
garbled
3ac9a5180a Note support for the F40 in the distrib notes. 2006-09-07 07:49:12 +00:00
dogcow
fe798dd421 Now compiles on systems without __HAVE_GENERIC_TODR 2006-09-07 07:26:07 +00:00
gdamore
1a001de39f Update to new friendlier todr entry points. While here, ANSIfy. 2006-09-07 05:09:29 +00:00
gdamore
a3925b6374 Updated to new clock_ymdhms support in kern_todr.
While here, ansify a few routines.
2006-09-07 05:02:16 +00:00
simonb
66e9a5e5c7 Print out a "\n" after calling mc146818_attach().
Pointed out by Izumi Tsutsui.
2006-09-07 04:59:30 +00:00
gdamore
8e82fb3308 Eliminate the 2038 year check, because clock_ymdhms_to_sec already performs
that check.  So instead, we test to make sure we have a non-negative second
after the conversion.

While here, we also add a check to round the second counter up when setting
time if we are more than half-way into the second.
2006-09-07 04:51:42 +00:00
simonb
68c7194a9c Revert rev 1.9. As pointed out by Izumi Tsutsui, the \n is printed
by MD code.
2006-09-07 04:33:55 +00:00
gdamore
711d816d2d Switch to friendlier todr ymdhms entry points. Moved a consistency check
to common kern_todr.c while here.
2006-09-07 04:29:34 +00:00
gdamore
6b6be489ab Add a few consistency checks for ymdhms. Taken from the mc146818 code. 2006-09-07 04:24:26 +00:00
dbj
fca8eb80dc don't filter out .WAIT when converting from _SUBDIR to SUBDIR 2006-09-07 03:51:44 +00:00
dbj
da6351f254 use ${.ALLSRC:M*o} instead of ${OBJS} in module build rule.
this uses correct .o files for MKDEBUGLIB
2006-09-07 03:45:50 +00:00
gdamore
5ebcd1bf4f Convert to common mips3_cp0_counter clock.
Convert to timecounters.

From Rivo Nurges (rix at estpak dot ee).  ok soren@, tested by simon@.
Note that this means we aren't using the gt clock, and maybe we should clean
that up a bit.
2006-09-07 03:38:54 +00:00
simonb
fcdc9ed735 Use a non-zero quality - 100 is an arbitrary number. 2006-09-07 03:14:22 +00:00
dogcow
f2d329dca0 remove more vestiges of CCITT, LLC, HDLC, NS, and NSIP. 2006-09-07 02:40:31 +00:00
xtraeme
21d82d60a0 scan_ffs(8): now it's -F file not -f file. Suggested by mrg. 2006-09-07 02:26:14 +00:00
xtraeme
96734c01d1 Change -f to -F, per mrg's suggestion. 2006-09-07 02:24:51 +00:00
ad
7813695db7 Add lock_owner_onproc(). 2006-09-07 02:06:47 +00:00
ad
ae594e0945 - Declare lock_owner_onproc(). Traverses the CPU list and checks if
ci->ci_curlwp == arg.
- Define SPINLOCK_SPIN_HOOK to /* nothing */ if it's not defined
  already.
- Define SPINLOCK_BACKOFF() macro.
2006-09-07 01:59:23 +00:00
uwe
2abb3f0523 Use MI rs5c313 driver attached as: rs5c313rtc0 at shb0
Mark landisk port as __HAVE_GENERIC_TODR.
2006-09-07 01:55:02 +00:00
uwe
d9aa7ac028 Make timeval argument to todr_settime volatile to keep non-timecounter
ports happy.
2006-09-07 01:50:49 +00:00
uwe
076748ce26 Mark sizeof(tvp->tv_sec) check CONSTCOND.
No space between the sizeof and the paren.
2006-09-07 01:43:52 +00:00
ad
5422bd30ba Note lockstat(8) 2006-09-07 01:40:32 +00:00
uebayasi
3ea2983121 Correct English; help with xtraeme. 2006-09-07 01:24:02 +00:00
ad
96d4a987b2 Fix an #include. 2006-09-07 01:23:59 +00:00
ad
44f6463cc4 Add /dev/lockstat. 2006-09-07 01:18:01 +00:00
uwe
c7a7101b20 MI part of the Ricoh RS5C313 real time clock todr(9) driver.
Based on the code from landisk port.  With help from gdamore@
2006-09-07 01:12:00 +00:00
ad
d7c9e86f43 Track lockmgr() sleep events for lockstat. 2006-09-07 01:08:45 +00:00
ad
5c5838e690 - Add a couple of XXX comments.
- lb->lb_cpu doesn't need to be filled in lockstat_event().
2006-09-07 01:03:02 +00:00
ad
297f461929 Add the lockstat command: displays a summary of kernel locking events
recorded over the lifetime of a called program.
2006-09-07 00:50:45 +00:00
xtraeme
cd9bde5343 Note scan_ffs(8) -f file support. 2006-09-07 00:49:49 +00:00
xtraeme
7aa92d971b Add -f file support. Useful to search for partitions on disk images. 2006-09-07 00:48:21 +00:00
ad
beafae096b Add the 'lockstat' driver, which collects basic information about lock events. 2006-09-07 00:20:28 +00:00