Commit Graph

34 Commits

Author SHA1 Message Date
thorpej e43fecb228 Change bounds_check_with_label() to take a pointer to the disk structure,
rather than the label itself.  This paves the way for some future changes.
2003-05-10 23:12:28 +00:00
dsl d91455ce26 Change return type of readdisklabel() to const char *
I hope I've found all the correct places!
2003-05-02 08:45:10 +00:00
he 6098c9ba7f Change SBSIZE to SBLOCKSIZE to make this compile after UFS2 was brought
in.  OK'ed by ragge.
2003-04-02 20:32:01 +00:00
matt 7c49a58fcd Fix wrong argument to free due to malloc_type changes. While there,
spot blatant bug by inspection and fix that as well.  (do not compare
scaled value against unscaled value).
2003-02-04 13:20:45 +00:00
thorpej 72a7af27b0 Use aprint_normal() in cfprint routines. 2003-01-01 00:10:15 +00:00
mrg 603098b9b5 implement separate read/write disk statistics:
- disk_unbusy() gets a new parameter to tell the IO direction.
	- struct disk_sysctl gets 4 new members for read/write bytes/transfers.
	when processing hw.diskstats, add the read&write bytes/transfers for
	the old combined stats to attempt to keep backwards compatibility.

unfortunately, due to multiple bugs, this will cause new kernels and old
vmstat/iostat/systat programs to fail.  however, the next time this is
change it will not fail again.

this is just the kernel portion.
2002-11-01 11:31:50 +00:00
jdolecek e0cc03a09b merge kqueue branch into -current
kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe
2002-10-23 09:10:23 +00:00
thorpej c9b3657ce9 Add trailing ; to CFATTACH_DECL. 2002-10-02 16:33:28 +00:00
thorpej 71adb76f75 Use CFATTACH_DECL(). 2002-09-30 21:57:46 +00:00
thorpej f818766afe Declare all cfattach structures const. 2002-09-27 20:31:45 +00:00
gehenna 77a6b82b27 Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.
2002-09-06 13:18:43 +00:00
ragge 535e154ac7 Correct ra disk instrumentation. From Johnny Billquist. 2002-07-25 12:13:03 +00:00
hannken bfc31ebc74 Convert to new device buffer queue interface.
Approved by: Anders Magnusson <ragge@netbsd.org>
2002-07-22 21:48:36 +00:00
simonb 64c7743a05 Don't "extern int cold;" - this is in <sys/kernel.h>. 2002-03-04 02:19:07 +00:00
tsutsui bcba62925f Call malloc(9) with M_ZERO flag instead of bzero() after malloc(). 2002-01-14 13:32:44 +00:00
lukem 8b7bb91219 add RCSID 2001-11-13 07:38:28 +00:00
thorpej 5da5b5ae5b Upon inspection of a 4000/600 dmesg, change the splbios to splubas.
XXX THIS CODE IS SERIOUSLY BROKEN!  MSCP DEVICES ARE BLOCK I/O DEVICES,
AND THUS SPLBIO SHOULD BLOCK THEIR INTERRUPTS.  The VAX port really
needs to get virtualized spl*() levels.
2001-04-12 20:13:26 +00:00
thorpej 06b19d90b8 splimp -> splbio 2001-04-12 20:03:35 +00:00
fvdl d040bd5908 Return error in the case of using ODIOCGDINFO or ODIOCGDEFLABEL when
the number of partitions is > OLDMAXPARTITIONS. This is better
than silently truncating the label (don't want to silently throw
away partitions when using an old disklabel binary on a label with
> 8 partitions). From Enami Tsugutomo.
2001-01-08 02:03:45 +00:00
fvdl e2d1c1f926 Adapt all disk devices in MI directories to handle ODIOC* calls
for ports that have bumped MAXPARTITIONS (and thus define
__HAVE_OLD_DISKLABEL).
2001-01-07 18:09:01 +00:00
thorpej 21fc65e1a8 sleep() -> tsleep() 2000-05-27 04:52:27 +00:00
ragge 9f7a44710e Remove (more) VAX dependencies. 2000-05-20 13:41:33 +00:00
augustss 169ac5b3c1 Remove register declarations. 2000-03-30 12:41:09 +00:00
ragge fc55ca0933 Allow 16 fragments for MSCP DMA. 2000-03-26 11:37:55 +00:00
thorpej dc59bc1db3 Update for sys/buf.h/disksort_*() changes. 2000-01-21 23:39:55 +00:00
ragge 508b5c5cee Bus'ify the mscp code also. 1999-06-06 19:16:18 +00:00
ragge a03c17e53b Copied from ../../arch/vax/mscp/mscpvar.h,v 1999-05-29 19:13:04 +00:00
ragge 14ef56958a Copied from ../../arch/vax/mscp/mscpreg.h,v 1999-05-29 19:12:53 +00:00
ragge 870031c90a Copied from ../../arch/vax/mscp/mscp_tape.c,v 1999-05-29 19:12:42 +00:00
ragge bf0ac446d2 Copied from ../../arch/vax/mscp/mscp_subr.c,v 1999-05-29 19:11:52 +00:00
ragge 29cdff1acd Copied from ../../arch/vax/mscp/mscp_disk.c,v 1999-05-29 19:11:41 +00:00
ragge 6c8c62c541 Copied from ../../arch/vax/mscp/mscp.h,v 1999-05-29 19:11:16 +00:00
ragge bf16b9271a Copied from ../../arch/vax/mscp/mscp.c,v 1999-05-29 19:11:02 +00:00
ragge 39e7e58401 Copied from ../../arch/vax/mscp/files.mscp,v 1999-05-29 19:10:52 +00:00