dragonfly.git
16 years agoKill devinfo handling in drivers, set device description in one place -
Hasso Tepper [Tue, 6 Nov 2007 07:37:02 +0000 (07:37 +0000)]
Kill devinfo handling in drivers, set device description in one place -
usbd_probe_and_attach() and let generic device code to output descriptions.

Obtained-from: FreeBSD with modifications

16 years agoAdd split on whitespace functionality.
Jeffrey Hsu [Tue, 6 Nov 2007 05:50:23 +0000 (05:50 +0000)]
Add split on whitespace functionality.

16 years agoUse TAILQ for packet queue in flow queue and pipe
Sepherosa Ziehau [Tue, 6 Nov 2007 04:09:45 +0000 (04:09 +0000)]
Use TAILQ for packet queue in flow queue and pipe

16 years agoConvert the global 'bioops' into per-mount bio_ops. For now we also have
Matthew Dillon [Tue, 6 Nov 2007 03:50:02 +0000 (03:50 +0000)]
Convert the global 'bioops' into per-mount bio_ops.  For now we also have
to have a per buffer b_ops as well since the controlling filesystem cannot
be located from information in struct buf (b_vp could be the backing store
so that can't be used).  This change allows HAMMER to use bio_ops.

Change the ordering of the bio_ops.io_deallocate call so it occurs before
the buffer's B_LOCKED is checked.  This allows the deallocate call to set
B_LOCKED to retain the buffer in situations where the target filesystem
is unable to immediately disassociate the buffer.  Also keep VMIO intact
for B_LOCKED buffers (in addition to B_DELWRI buffers).

HAMMER will use this feature to keep buffers passively associated with
other filesystem structures and thus be able to avoid constantly brelse()ing
and getblk()ing them.

16 years agoNuke usbdevs and references to it.
Hasso Tepper [Mon, 5 Nov 2007 19:09:44 +0000 (19:09 +0000)]
Nuke usbdevs and references to it.

16 years agoYet another round of clean up
Sepherosa Ziehau [Mon, 5 Nov 2007 15:16:46 +0000 (15:16 +0000)]
Yet another round of clean up

16 years ago- Move some macros from ip_dummynet.h to ip_dummynet.c; they are
Sepherosa Ziehau [Mon, 5 Nov 2007 14:06:06 +0000 (14:06 +0000)]
- Move some macros from ip_dummynet.h to ip_dummynet.c; they are
  implementation details
- Hide dn_heap and dn_heap_entry under _KERNEL
- Rearrange comment in ip_dummynet.h
- Indentation

16 years agoKill usage of USB_VENDOR_FOO and USB_PRODUCT_BAR defines mostly using two
Hasso Tepper [Mon, 5 Nov 2007 13:32:28 +0000 (13:32 +0000)]
Kill usage of USB_VENDOR_FOO and USB_PRODUCT_BAR defines mostly using two
methods:

  - USB_DEVICE(vendor_id, product_id) macro.
  - Using C99 structure initialisers.

While at it, kill all custom "vendor and product id pair" structures and
custom walkthrough methods for these structures.

16 years agoReplace debug printf macro
Sepherosa Ziehau [Mon, 5 Nov 2007 13:26:08 +0000 (13:26 +0000)]
Replace debug printf macro

16 years agoUse POSIX int type
Sepherosa Ziehau [Mon, 5 Nov 2007 13:11:16 +0000 (13:11 +0000)]
Use POSIX int type

16 years agoSync with FreeBSD - add OpenBSD 4.2.
Hasso Tepper [Mon, 5 Nov 2007 11:17:15 +0000 (11:17 +0000)]
Sync with FreeBSD - add OpenBSD 4.2.

16 years agoUpdate named.root to the version from 1 November 2007 from ftp.internic.net.
Hasso Tepper [Mon, 5 Nov 2007 10:16:51 +0000 (10:16 +0000)]
Update named.root to the version from 1 November 2007 from ftp.internic.net.
L.ROOT-SERVERS.NET changed the IP address:
  http://blog.icann.org/?p=227

16 years agoIn free_chain() if we are asked to "kill default":
Sepherosa Ziehau [Mon, 5 Nov 2007 09:25:44 +0000 (09:25 +0000)]
In free_chain() if we are asked to "kill default":
- Set default rule pointer to NULL
- Free dynamic rules(states) hash table.  This avoids memory leakage when
  unloading ipfw(4) module, if dynamic rules(states) are created.

16 years ago- Create user land ipfw(4) rule/state/flow_id structures, so that we could
Sepherosa Ziehau [Mon, 5 Nov 2007 08:58:35 +0000 (08:58 +0000)]
- Create user land ipfw(4) rule/state/flow_id structures, so that we could
  change kernel land structures without interfering user land programs
  (mainly ipfw(8))
Approved-by: dillon@
- Add assertion to make sure that static rules size/count and dynamic rules
  count are correct

16 years agosendmail 8.14.2 has been imported
Gregory Neil Shapiro [Mon, 5 Nov 2007 01:46:32 +0000 (01:46 +0000)]
sendmail 8.14.2 has been imported

16 years agoMerge from vendor branch SENDMAIL:
Gregory Neil Shapiro [Mon, 5 Nov 2007 01:37:48 +0000 (01:37 +0000)]
Merge from vendor branch SENDMAIL:
Import sendmail 8.14.2

16 years agoImport sendmail 8.14.2
Gregory Neil Shapiro [Mon, 5 Nov 2007 01:37:48 +0000 (01:37 +0000)]
Import sendmail 8.14.2

16 years agoUse .Dv for ioctls.
Sascha Wildner [Sun, 4 Nov 2007 19:04:42 +0000 (19:04 +0000)]
Use .Dv for ioctls.

16 years agoRemove reference to nonexistant section.
Sascha Wildner [Sun, 4 Nov 2007 16:34:55 +0000 (16:34 +0000)]
Remove reference to nonexistant section.

16 years agoFix section reference.
Sascha Wildner [Sun, 4 Nov 2007 16:33:19 +0000 (16:33 +0000)]
Fix section reference.

16 years agoFix broken section.
Sascha Wildner [Sun, 4 Nov 2007 16:23:23 +0000 (16:23 +0000)]
Fix broken section.

16 years agoFactor out ipfw_dec_static_count(); add assertion in it to make sure
Sepherosa Ziehau [Sun, 4 Nov 2007 06:57:46 +0000 (06:57 +0000)]
Factor out ipfw_dec_static_count(); add assertion in it to make sure
that static_{count,len} are correct.

16 years ago- Add ipfw_init_default_rule() to perform default rule initialization
Sepherosa Ziehau [Sun, 4 Nov 2007 04:28:52 +0000 (04:28 +0000)]
- Add ipfw_init_default_rule() to perform default rule initialization
- In add_rule(), nuke special handling for default rule
- Factor out ipfw_inc_static_count()

These could ease upcoming user/kernel land ipfw structures splitting

16 years agoCheck bit D0 ("Mode supported by hardware configuration") in the
Sascha Wildner [Sat, 3 Nov 2007 22:24:53 +0000 (22:24 +0000)]
Check bit D0 ("Mode supported by hardware configuration") in the
mode attributes field and reject video modes for which it isn't
set. I don't know why this was always commented out but X checks
it too so I guess it's safe.

The bit is unset e.g. for video modes which are not supported due
to not enough memory being assigned to an onboard graphics adapter
in the BIOS, or if a mode is supported by a laptop's graphics card
but not by its screen.

Reported-by: Joseph Garcia <bsd_usr@yahoo.com>
16 years agoUpdate for libarchive 2.4.0 import.
Peter Avalos [Sat, 3 Nov 2007 20:12:10 +0000 (20:12 +0000)]
Update for libarchive 2.4.0 import.

16 years agoMerge from vendor branch LIBARCHIVE:
Peter Avalos [Sat, 3 Nov 2007 20:03:46 +0000 (20:03 +0000)]
Merge from vendor branch LIBARCHIVE:
Import libarchive 2.4.0 which brings some performance enhancements.

16 years agoImport libarchive 2.4.0 which brings some performance enhancements.
Peter Avalos [Sat, 3 Nov 2007 20:03:46 +0000 (20:03 +0000)]
Import libarchive 2.4.0 which brings some performance enhancements.

16 years agoSort references.
Sascha Wildner [Sat, 3 Nov 2007 18:37:42 +0000 (18:37 +0000)]
Sort references.

16 years agoRemove unused tunables.
Sascha Wildner [Sat, 3 Nov 2007 17:43:39 +0000 (17:43 +0000)]
Remove unused tunables.

16 years agoAdd missing '.'
Sascha Wildner [Sat, 3 Nov 2007 17:06:46 +0000 (17:06 +0000)]
Add missing '.'

16 years agoRemove ipfw1 from system.
Sepherosa Ziehau [Sat, 3 Nov 2007 14:05:28 +0000 (14:05 +0000)]
Remove ipfw1 from system.

16 years agoCreate user land dummynet(4) pipe/flow_set/flow_queue/flow_id structures,
Sepherosa Ziehau [Sat, 3 Nov 2007 13:14:29 +0000 (13:14 +0000)]
Create user land dummynet(4) pipe/flow_set/flow_queue/flow_id structures,
so that we could change kernel land structures without interfering user
land programs (mainly ipfw(8)).

Approved-by: dillon@
16 years agoNote that an interface doesn't have to be up when enabling polling.
Sascha Wildner [Sat, 3 Nov 2007 07:35:52 +0000 (07:35 +0000)]
Note that an interface doesn't have to be up when enabling polling.

16 years agoBelated update of ktr(4) to reflect our current state of affairs.
Sascha Wildner [Sat, 3 Nov 2007 07:24:52 +0000 (07:24 +0000)]
Belated update of ktr(4) to reflect our current state of affairs.

16 years agoBreak-out the standard UNIX uid/gid tests for VOP_ACCESS into a helper file.
Matthew Dillon [Fri, 2 Nov 2007 19:54:16 +0000 (19:54 +0000)]
Break-out the standard UNIX uid/gid tests for VOP_ACCESS into a helper file.
The code was basically taken from UFS and the helper file retains the
appropriate copyright.  This way HAMMER can call the procedure without us
needing to add the University copyright to HAMMER sources.

16 years agoModify struct vattr:
Matthew Dillon [Fri, 2 Nov 2007 19:52:28 +0000 (19:52 +0000)]
Modify struct vattr:
Increase va_nlink, va_fileid (the inode number), and va_gen from
32 bit to 64 bit integers.

Add va_uid_uuid, va_gid_uuid, and va_fsid_uuid, and flags to
indicate that these fields are valid.  The original va_uid and
va_gid are retained.

This change has no external visibility.

Modify struct statvfs:
Use spare fields to add f_fsid_uuid and f_uid_uuid to the
structure, and flags indicating that those fields are valid.

This change has minimal external visibility. The size of the
structure has not changed.

Modify struct stat:
Add a new file type S_IFDB.  DB files are like regular files but
access data on a record by record basis.  The seek position is a
64 bit record key and not a byte offset.  Further work in this
area will be done later on to support related UIO operations.

This change has minimal external visibility. The size of the
structure has not changed.

16 years agoAdd a PHOLD/PRELE sequence around a sysctl_out to fix a race against
Matthew Dillon [Fri, 2 Nov 2007 18:47:34 +0000 (18:47 +0000)]
Add a PHOLD/PRELE sequence around a sysctl_out to fix a race against
the reaper.

Submitted-by: "Nicolas Thery" <nthery@gmail.com>
16 years agoSince sys/net/dummynet/ip_dummynet.c rev 1.24, dummynet(4) callout frequency
Sepherosa Ziehau [Fri, 2 Nov 2007 14:01:17 +0000 (14:01 +0000)]
Since sys/net/dummynet/ip_dummynet.c rev 1.24, dummynet(4) callout frequency
is control by net.inet.ip.dummynet.hz

16 years agoAdjust DUMMYNET_CALLOUT_FREQ_MAX according to the comment in ip_dummynet.h
Sepherosa Ziehau [Fri, 2 Nov 2007 13:42:47 +0000 (13:42 +0000)]
Adjust DUMMYNET_CALLOUT_FREQ_MAX according to the comment in ip_dummynet.h

16 years ago'ipfw pipe X config bw iface' never works, so nuke the related user/kernel
Sepherosa Ziehau [Fri, 2 Nov 2007 12:50:20 +0000 (12:50 +0000)]
'ipfw pipe X config bw iface' never works, so nuke the related user/kernel
land bits.

16 years agoClean up
Sepherosa Ziehau [Fri, 2 Nov 2007 10:28:50 +0000 (10:28 +0000)]
Clean up

16 years agoSync zoneinfo database with tzdata2007i from elsie.
Sascha Wildner [Fri, 2 Nov 2007 08:15:14 +0000 (08:15 +0000)]
Sync zoneinfo database with tzdata2007i from elsie.

asia:           8.12 -> 8.13
northamerica:   8.18 -> 8.19

* Winter local time in Syria was observed at midnight of Thursday 1
  November 2007.

* Cuba ended DST on the last Sunday of October.

16 years agoClean up
Sepherosa Ziehau [Fri, 2 Nov 2007 07:10:14 +0000 (07:10 +0000)]
Clean up

16 years agoClean up
Sepherosa Ziehau [Fri, 2 Nov 2007 06:27:24 +0000 (06:27 +0000)]
Clean up

16 years agoHAMMER 2/many - core mount and unmount code now works, the B-Tree search
Matthew Dillon [Fri, 2 Nov 2007 00:57:16 +0000 (00:57 +0000)]
HAMMER 2/many - core mount and unmount code now works, the B-Tree search
properly locates the root inode (though the root is a degenerate leaf in
a newly formatted filesystem so it isn't much of a test).

Properly implement special cases for hammer_btree_cmp() for the handling
of the creation and deletion transaction ids.  In particular a create_tid
for key1 indicates 'the most recent version if not deleted' and a delete_tid
for key2 indicates a record which has not yet been deleted.

16 years agoA delete_tid of 0 indicates a record which has not yet been deleted and
Matthew Dillon [Fri, 2 Nov 2007 00:54:26 +0000 (00:54 +0000)]
A delete_tid of 0 indicates a record which has not yet been deleted and
therefore is the 'highest' delete_tid possible, as a special case.  The
right bound's delete_tid for the root cluster must be set to 0.

16 years agoProperly set the buf_type in the volume, super-cluster, and cluster headers.
Matthew Dillon [Fri, 2 Nov 2007 00:38:36 +0000 (00:38 +0000)]
Properly set the buf_type in the volume, super-cluster, and cluster headers.
Fix a bug in getopt().

16 years agoCorrect a bug in the lockf code. F_NOEND was not being properly set.
Matthew Dillon [Thu, 1 Nov 2007 22:48:16 +0000 (22:48 +0000)]
Correct a bug in the lockf code.  F_NOEND was not being properly set.

16 years agoSynchronize newfs_hammer with recent changes.
Matthew Dillon [Thu, 1 Nov 2007 22:26:37 +0000 (22:26 +0000)]
Synchronize newfs_hammer with recent changes.

16 years agoAdd a HAMMER kernel build option, add a VFS type for HAMMER, add a file
Matthew Dillon [Thu, 1 Nov 2007 22:05:23 +0000 (22:05 +0000)]
Add a HAMMER kernel build option, add a VFS type for HAMMER, add a file
type for key-access (database) files.

16 years agoHAMMER part 1/many. This is a clear-my-plate commit.
Matthew Dillon [Thu, 1 Nov 2007 20:53:05 +0000 (20:53 +0000)]
HAMMER part 1/many.  This is a clear-my-plate commit.

* Skeleton VFS infrastructure.  No VFS ops yet.
* Core B-Tree infrastructure - including the delete & rebalance code, but
  not yet including the cluster extension code.
* Core in-memory structures and related locking and tracking primitives.
* Core A-List (allocator) and buffer management infrastructure.

16 years agoUse the orignal dummynet's indentation style
Sepherosa Ziehau [Thu, 1 Nov 2007 15:48:26 +0000 (15:48 +0000)]
Use the orignal dummynet's indentation style

16 years ago- Yet another round of cleanup
Sepherosa Ziehau [Thu, 1 Nov 2007 15:28:32 +0000 (15:28 +0000)]
- Yet another round of cleanup
- Protect the pipe/flow_set iteration in {config,delete}_pipe() with critical
  section too

16 years ago- Use upper case for first letter in comment
Sepherosa Ziehau [Thu, 1 Nov 2007 14:03:50 +0000 (14:03 +0000)]
- Use upper case for first letter in comment
- Move variable near its usage

16 years ago- Nuke no longer apply comment
Sepherosa Ziehau [Thu, 1 Nov 2007 13:43:31 +0000 (13:43 +0000)]
- Nuke no longer apply comment
- Head inclusion clean up
- Nuke unused functions
- Strip excessive white space
- Nuke FreeBSD compat code

16 years ago- Strip excessive white space
Sepherosa Ziehau [Thu, 1 Nov 2007 12:10:58 +0000 (12:10 +0000)]
- Strip excessive white space
- Strip excessive parenthesis
- Add blank line between code blocks
- 'for (; cond;)' --> 'while (cond)'
- Minor style changes

16 years agoWhite space cleanup for heap functions
Sepherosa Ziehau [Thu, 1 Nov 2007 06:54:17 +0000 (06:54 +0000)]
White space cleanup for heap functions

16 years agoRemove fugly hack from the ATA channel interrupt handler. It never was really
Thomas E. Spanjaard [Mon, 29 Oct 2007 12:56:45 +0000 (12:56 +0000)]
Remove fugly hack from the ATA channel interrupt handler. It never was really
correct, and it has long become redundant.

16 years agoMaking dntpd server list match the recommendations at:
Justin C. Sherrill [Mon, 29 Oct 2007 12:51:21 +0000 (12:51 +0000)]
Making dntpd server list match the recommendations at:
http://www.pool.ntp.org/use.html

Dragonfly-bug: <http://bugs.dragonflybsd.org/issue832

16 years agorealloc_dynamic_table() and add_dyn_rule() may be called from interrupt thread
Sepherosa Ziehau [Mon, 29 Oct 2007 12:23:57 +0000 (12:23 +0000)]
realloc_dynamic_table() and add_dyn_rule() may be called from interrupt thread
and TCP/UDP thread, so instead of M_WAITOK, (M_INTWAIT | M_NULLOK) should be
used.

16 years agoComment out some "negative options" (options which make stuff not compile)
Sascha Wildner [Mon, 29 Oct 2007 10:31:27 +0000 (10:31 +0000)]
Comment out some "negative options" (options which make stuff not compile)
for more code coverage.

16 years ago- M_WAITOK will never return NULL
Sepherosa Ziehau [Mon, 29 Oct 2007 02:59:03 +0000 (02:59 +0000)]
- M_WAITOK will never return NULL
- White space

16 years agoNuke unnecessary NOMAN and .PATH
Sepherosa Ziehau [Mon, 29 Oct 2007 02:54:15 +0000 (02:54 +0000)]
Nuke unnecessary NOMAN and .PATH

16 years agoUse CRC_LEN consistently
Sepherosa Ziehau [Sun, 28 Oct 2007 02:29:07 +0000 (02:29 +0000)]
Use CRC_LEN consistently

16 years agoRemove two unused variables and model the copyright a bit more
Sascha Wildner [Sun, 28 Oct 2007 01:32:33 +0000 (01:32 +0000)]
Remove two unused variables and model the copyright a bit more
after /usr/src/COPYRIGHT.

16 years agoSwitch from libreadline to libedit.
Peter Avalos [Sat, 27 Oct 2007 22:36:47 +0000 (22:36 +0000)]
Switch from libreadline to libedit.

16 years agoSync with NetBSD.
Peter Avalos [Sat, 27 Oct 2007 22:27:16 +0000 (22:27 +0000)]
Sync with NetBSD.

16 years agoRemove OS name from the description.
Sascha Wildner [Sat, 27 Oct 2007 18:45:00 +0000 (18:45 +0000)]
Remove OS name from the description.

16 years agoAdjust column.
Sascha Wildner [Sat, 27 Oct 2007 18:25:39 +0000 (18:25 +0000)]
Adjust column.

16 years agodummynet_io() may be called from interrupt thread and TCP/UDP netisr thread,
Sepherosa Ziehau [Sat, 27 Oct 2007 12:19:43 +0000 (12:19 +0000)]
dummynet_io() may be called from interrupt thread and TCP/UDP netisr thread,
so instead of M_WAITOK, (M_INTWAIT | M_NULLOK) should be used when creating
flow queue.

16 years agoFix some mdoc issues.
Sascha Wildner [Fri, 26 Oct 2007 08:22:01 +0000 (08:22 +0000)]
Fix some mdoc issues.

Taken-from: FreeBSD

16 years agoWESTELL A90-200WG-01 works woth acx(4)
Sepherosa Ziehau [Thu, 25 Oct 2007 13:46:56 +0000 (13:46 +0000)]
WESTELL A90-200WG-01 works woth acx(4)

16 years ago- Switch dummynet(4) from mbuf based tagging to mtag.
Sepherosa Ziehau [Thu, 25 Oct 2007 13:13:18 +0000 (13:13 +0000)]
- Switch dummynet(4) from mbuf based tagging to mtag.
- Fix comment concerning mtag in sys/mbuf.h

Reviewed-by: dillon@
16 years agoIf answer to the repeated probe (same TTL as in the previous probe) packet
Hasso Tepper [Thu, 25 Oct 2007 08:12:42 +0000 (08:12 +0000)]
If answer to the repeated probe (same TTL as in the previous probe) packet
comes from different host (common in case of multipath routes), output it
to the new line - much better to read.

Obtained-from: FreeBSD with modifications

16 years agoUpdate for OpenSSL upgrade to 0.9.8g.
Peter Avalos [Thu, 25 Oct 2007 04:13:44 +0000 (04:13 +0000)]
Update for OpenSSL upgrade to 0.9.8g.

16 years agoMerge from vendor branch OPENSSL:
Peter Avalos [Thu, 25 Oct 2007 04:11:26 +0000 (04:11 +0000)]
Merge from vendor branch OPENSSL:
Import OpenSSL-0.9.8g.

16 years agoImport OpenSSL-0.9.8g.
Peter Avalos [Thu, 25 Oct 2007 04:11:26 +0000 (04:11 +0000)]
Import OpenSSL-0.9.8g.

16 years agoReactivate a vnode after associated it with deadfs after a forced unmount.
Matthew Dillon [Wed, 24 Oct 2007 21:56:41 +0000 (21:56 +0000)]
Reactivate a vnode after associated it with deadfs after a forced unmount.
This fixes numerous system panics that can occur due to the vnode's
unexpected change in state.

Submitted-by: "Nicolas Thery" <nthery@gmail.com>
16 years agoMove ipfw/dummynet from SI_SUB_PSEUDO to SI_SUB_PROTO_END, so they
Sepherosa Ziehau [Tue, 23 Oct 2007 15:01:15 +0000 (15:01 +0000)]
Move ipfw/dummynet from SI_SUB_PSEUDO to SI_SUB_PROTO_END, so they
could use services provided by netisr.

Submitted-by: Nicolas Thery <nthery@gmail.com>
16 years ago- Add jumbo buffer support for et(4), which supports up to 15794(*) bytes
Sepherosa Ziehau [Tue, 23 Oct 2007 14:28:42 +0000 (14:28 +0000)]
- Add jumbo buffer support for et(4), which supports up to 15794(*) bytes
  jumbo buffer size.  Allow jumbo buffer pool allocation to fail, if this
  happened, MTU still could be changed to a value less than 2026 bytes.
- Correct onboard memory configuration (*)
- Pack TX/RX enablement bool variable and newly added jumbo buffer supporting
  bool variable into a flag field in softc
- Increase TX spare segement count to reduce the possibility of busdma(9)
  operation failure
- Fix comment
- Replace magic number with macro in truephy, though the macros themselves
  are still quite magical
- Configure TX FIFO depth in truephy to support jumbo buffer

# (*) are based on experiments; peer is an Intel 82540EM, which supports
# 16218 bytes jumbo buffer size.

16 years agoRemove unnecessary argument.
Sascha Wildner [Tue, 23 Oct 2007 07:51:09 +0000 (07:51 +0000)]
Remove unnecessary argument.

16 years agoMerge ACPI resource manager changes From FreeBSD:
YONETANI Tomokazu [Tue, 23 Oct 2007 03:04:49 +0000 (03:04 +0000)]
Merge ACPI resource manager changes From FreeBSD:

acpi.c,v 1.158, acpivar.h,v 1.70
  Associate a device_t with an ACPI_HANDLE.  This make AcpiWalkNamespace more
  useful.  If ACPI-CA allowed null object handlers, we wouldn't need the
  placeholder function.

acpi.c,v 1.159-1.160 and others:
  Add support to ACPI to manage its own resources.  Previously, resource
  allocation was passed up to nexus.  Now, we probe sysresource objects and
  manage the resources they describe in a local rman pool.  This helps
  devices which attach/detach varying resources (like the _CST object) and
  module loads/unloads.  The allocation/release routines now check to see if
  the resource is described in a child sysresource object and if so,
  allocate from the local rman.  Sysresource objects add their resources to
  the pool and reserve them upon boot.  This means sysresources need to be
  probed before other ACPI devices.

  Changes include:
  * Add ordering to the child device probe.  The current order is:  system
  resource objects, embedded controllers, then everything else.
  * Make acpi_MatchHid take a handle instead of a device_t arg.
  * Replace acpi_{get,set}_resource with the generic equivalents.

acpi.c,v 1.175:
  Call device_identify routines after doing the namespace walk.  This is
  needed so that sysresource objects are created first to reserve all regions,
  then other devices can allocate from them.  Otherwise, acpi_timer (the only
  ACPI device with an identify routine), would allocate its resources from
  the nexus, causing the later sysresource reserve to fail.

  Debugging by:   Taku YAMAMOTO, Andrea Campi

And add ACPI attachment to some devices trying to obtain resources
from the ISA bus.

16 years agoFix more NULL structural dereferences that can occur when a process is in
Matthew Dillon [Sun, 21 Oct 2007 16:45:17 +0000 (16:45 +0000)]
Fix more NULL structural dereferences that can occur when a process is in
an exiting state.

Reported-by: Peter Avalos <pavalos@theshell.com>
16 years agoAdd a sysctl node, which could be used to turn off software TX power
Sepherosa Ziehau [Sun, 21 Oct 2007 09:50:33 +0000 (09:50 +0000)]
Add a sysctl node, which could be used to turn off software TX power
calibration.

16 years agoUse .Nm
Sascha Wildner [Sat, 20 Oct 2007 18:13:25 +0000 (18:13 +0000)]
Use .Nm

16 years agoUse .Nm
Sascha Wildner [Sat, 20 Oct 2007 17:56:47 +0000 (17:56 +0000)]
Use .Nm

16 years agoOops, missing space.
Sascha Wildner [Sat, 20 Oct 2007 13:43:00 +0000 (13:43 +0000)]
Oops, missing space.

16 years ago* Add an example how to create /etc/mtree style mtree(8) files.
Sascha Wildner [Sat, 20 Oct 2007 13:30:33 +0000 (13:30 +0000)]
* Add an example how to create /etc/mtree style mtree(8) files.

* Remove duplicate word.

Taken-from: FreeBSD

16 years ago- Change some comment's style
Sepherosa Ziehau [Sat, 20 Oct 2007 11:10:50 +0000 (11:10 +0000)]
- Change some comment's style
- White space changes
- Use POSIX int types

16 years ago- m_tag_get() expects MB_DONTWAIT not M_NOWAIT
Sepherosa Ziehau [Sat, 20 Oct 2007 10:28:44 +0000 (10:28 +0000)]
- m_tag_get() expects MB_DONTWAIT not M_NOWAIT
- Utilize MBTOM() in m_tag_alloc()

16 years agoM_WAITOK -> MB_WAIT
Sepherosa Ziehau [Sat, 20 Oct 2007 09:38:01 +0000 (09:38 +0000)]
M_WAITOK -> MB_WAIT

16 years ago- Instead of overriding the meaning of the embedded mbuf header's mh_nextpkt,
Sepherosa Ziehau [Sat, 20 Oct 2007 09:08:28 +0000 (09:08 +0000)]
- Instead of overriding the meaning of the embedded mbuf header's mh_nextpkt,
  add 'dn_next' field in dn_pkt, which is used to link dn_pkt into various
  packet queues; this reduces dependency on the embedded mbuf header
- Nuke DN_NEXT and DN_NEXT_NC, use dn_pkt.dn_next directly
- Nuke white space before ';'

16 years agoUse __offsetof()
Sepherosa Ziehau [Sat, 20 Oct 2007 07:36:20 +0000 (07:36 +0000)]
Use __offsetof()

16 years ago- Add macro to convert MTU to frame length
Sepherosa Ziehau [Sat, 20 Oct 2007 05:22:57 +0000 (05:22 +0000)]
- Add macro to convert MTU to frame length
- Strip CRC of the received frames
- Add macros for RX rings' buffer size

16 years agoAdd missing .Nm
Sascha Wildner [Fri, 19 Oct 2007 20:46:53 +0000 (20:46 +0000)]
Add missing .Nm

16 years agoAdd missing MLINKS.
Sascha Wildner [Fri, 19 Oct 2007 20:39:25 +0000 (20:39 +0000)]
Add missing MLINKS.

16 years agoRemove duplicate line and add missing MLINK.
Sascha Wildner [Fri, 19 Oct 2007 20:28:43 +0000 (20:28 +0000)]
Remove duplicate line and add missing MLINK.

16 years agoAdd missing comma.
Sascha Wildner [Fri, 19 Oct 2007 20:28:09 +0000 (20:28 +0000)]
Add missing comma.

16 years agoAdd some missing MLINKS and sort alphabetically.
Sascha Wildner [Fri, 19 Oct 2007 20:16:43 +0000 (20:16 +0000)]
Add some missing MLINKS and sort alphabetically.

16 years agoFix nrelease/Makefile from trying to execute whatever is in an environment
Thomas E. Spanjaard [Fri, 19 Oct 2007 18:02:22 +0000 (18:02 +0000)]
Fix nrelease/Makefile from trying to execute whatever is in an environment
variable which it never explicitly set before. ${ENV} ought to be ${ENVCMD},
which makes for weird errors if people use a Bourne shell like mksh with a
custom .shrc.