dragonfly.git
20 years agoAdd patch infrastructure for contrib/ and similiar directories.
Joerg Sonnenberger [Fri, 5 Mar 2004 01:06:50 +0000 (01:06 +0000)]
Add patch infrastructure for contrib/ and similiar directories.

This allows the inclusion of patches in SRCS in the following form:
this,is,the,source.c.patch
This will create ${.OBJDIR}/this/is/the/source.c by applying above patch
to ${CONTRIBDIR}/this/is/the/source.c. The patched files are deleted on
"make clean" and created by "make depend".

20 years agoI just scored a few duh-points for myself. I committed an older version
Hiten Pandya [Fri, 5 Mar 2004 00:10:31 +0000 (00:10 +0000)]
I just scored a few duh-points for myself.  I committed an older version
of the patch, because the patch file name got me confused.

Correct revision 1.7 of this file by using a proper conditional block.

20 years agothis -> the fix in comment.
Eirik Nygaard [Thu, 4 Mar 2004 20:52:27 +0000 (20:52 +0000)]
this -> the fix in comment.
Remove extra space in comment while I am here.

Submitted by: Chris Pressey <cpressey@catseye.mine.nu>

20 years agoMake the comment a bit clearer.
Eirik Nygaard [Thu, 4 Mar 2004 20:50:58 +0000 (20:50 +0000)]
Make the comment a bit clearer.

20 years agostyle(9) cleanup:
Eirik Nygaard [Thu, 4 Mar 2004 20:44:49 +0000 (20:44 +0000)]
style(9) cleanup:
 o use NULL instead of 0 for pointers
 o explicitly compare to 0 or NULL for non-booleans

Submitted by: Chris Pressey <cpressey@catseye.mine.nu>

20 years agostyle(9) cleanup:
Eirik Nygaard [Thu, 4 Mar 2004 20:40:48 +0000 (20:40 +0000)]
style(9) cleanup:
 o no space after casts
 o no space, but yes parens, after sizeof and return
 o spaces around binary operators
 o other minor whitespace issues

Submitted by: Chris Pressey <cpressey@catseye.mine.nu>

20 years agostyle(9) cleanup:
Eirik Nygaard [Thu, 4 Mar 2004 20:29:45 +0000 (20:29 +0000)]
style(9) cleanup:
 o change K&R declarations to ANSI declarations
 o remove ``register'' keywords

Submitted by: Chris Pressey <cpressey@catseye.mine.nu>

20 years agoIntroduce access methods for making protocol requests.
Jeffrey Hsu [Thu, 4 Mar 2004 10:29:24 +0000 (10:29 +0000)]
Introduce access methods for making protocol requests.

20 years agoA UDP socket is still bound after it is disconnected, so we need to
Jeffrey Hsu [Thu, 4 Mar 2004 06:13:05 +0000 (06:13 +0000)]
A UDP socket is still bound after it is disconnected, so we need to
reinsert it into the bind hash table.

Bug reported by:  David Rhodus, Matt Dillon

20 years agoPartitions>8: Increase the number of supported partitions from 8 to 16.
Matthew Dillon [Thu, 4 Mar 2004 01:38:01 +0000 (01:38 +0000)]
Partitions>8: Increase the number of supported partitions from 8 to 16.
Decrease the number of supported slices from 32 to 16.  Note that the
5.x boot2 code, which we adopted, was being installed just after the old
disklabel.  This commit moves the boot code install to the next logical
sector (aka 4.x) in order to accomodate the larger label.

Fix newfs to not hardcode 'h' as the last partition.

Also modify 'disklabel' to not complain about preexisting garbage past
partition #8, and to detect and refuse to overwrite the old bootcode
with the new larger label until after you have installed new boot code.

20 years agoSplit out wildcarded sockets from the connection hash table.
Jeffrey Hsu [Thu, 4 Mar 2004 01:02:06 +0000 (01:02 +0000)]
Split out wildcarded sockets from the connection hash table.

20 years agoPartitions>8: Leave a whole 512 bytes for the disklabel and squeeze code
Matthew Dillon [Thu, 4 Mar 2004 00:06:58 +0000 (00:06 +0000)]
Partitions>8: Leave a whole 512 bytes for the disklabel and squeeze code
to fit.  It was a really bad idea for FBsd5 to have changed this.

20 years agoPartitions>8: Do not hardwire partition limit at 'h'.
Matthew Dillon [Thu, 4 Mar 2004 00:03:23 +0000 (00:03 +0000)]
Partitions>8: Do not hardwire partition limit at 'h'.

20 years agoDo not print a warning about PIM sysctl node (net.inet.pim.stats)
Hiten Pandya [Wed, 3 Mar 2004 22:51:28 +0000 (22:51 +0000)]
Do not print a warning about PIM sysctl node (net.inet.pim.stats)
if sysctlbyname(2) sets *errno* to ENOENT, because that means we
do not have PIM in the kernel.

Reviewed by: hsu

20 years agoInclude thread.h if _KERNEL_STRUCTURES is defined.
Hiten Pandya [Wed, 3 Mar 2004 05:16:21 +0000 (05:16 +0000)]
Include thread.h if _KERNEL_STRUCTURES is defined.

This is necessary for fixing multiple FreeBSD sysutil/ port builds.

20 years agoBring the cue(4) and miibus(4) manual page in line with
Hiten Pandya [Wed, 3 Mar 2004 03:55:24 +0000 (03:55 +0000)]
Bring the cue(4) and miibus(4) manual page in line with
FreeBSD 4-STABLE.

Submitted by: Christian Brueffer <chris@unixpages.org>

20 years ago* Add in support for the Silicon Image SATA controller.
David Rhodus [Tue, 2 Mar 2004 21:03:46 +0000 (21:03 +0000)]
*   Add in support for the Silicon Image SATA controller.

20 years ago* Correct end value calculation. This should fix the numerous problems
David Rhodus [Tue, 2 Mar 2004 20:59:46 +0000 (20:59 +0000)]
*   Correct end value calculation. This should fix the numerous problems
    with accessing devices on the ATA controller channel.

20 years ago* Remove instances of PRIBIO because DragonFly no longer
David Rhodus [Tue, 2 Mar 2004 20:55:10 +0000 (20:55 +0000)]
*    Remove instances of PRIBIO because DragonFly no longer
     uses sleep priorities.

20 years agoPatch forr FreeBSD-SA-04:04.tcp
Robert Garrett [Tue, 2 Mar 2004 20:41:13 +0000 (20:41 +0000)]
Patch forr FreeBSD-SA-04:04.tcp

limits out of sequence reassembly queue size, to make sure we don't run
out of mbufs, resulting in a DOS attack.

This is the same as tcp47.patch

checked by Robert Garrett & Joerg Sonnenberger

20 years agoThe slab allocator has been in for while now. Change the printf for invalid
Joerg Sonnenberger [Tue, 2 Mar 2004 16:04:20 +0000 (16:04 +0000)]
The slab allocator has been in for while now. Change the printf for invalid
malloc flags into a panic to allow easier tracing of any remaining incorrect
uses.

20 years agoWe have /etc/rc.subr, don't add the dependency
Joerg Sonnenberger [Tue, 2 Mar 2004 15:03:00 +0000 (15:03 +0000)]
We have /etc/rc.subr, don't add the dependency

20 years agoCorrect a filename typo, there is no such thing as machine/pcpu.h,
Hiten Pandya [Tue, 2 Mar 2004 06:06:44 +0000 (06:06 +0000)]
Correct a filename typo, there is no such thing as machine/pcpu.h,
it is machine/globaldata.h.

20 years agoUse MALLOC_DEFINE.
Eirik Nygaard [Mon, 1 Mar 2004 20:45:57 +0000 (20:45 +0000)]
Use MALLOC_DEFINE.

Obtained from: FreeBSD

20 years agoUse M_WAITOK instead of M_WAIT to get memory.
Joerg Sonnenberger [Mon, 1 Mar 2004 17:27:17 +0000 (17:27 +0000)]
Use M_WAITOK instead of M_WAIT to get memory.

20 years agoMake subr_bus.c more consistent with regard to style(9) and itself.
Joerg Sonnenberger [Mon, 1 Mar 2004 16:57:44 +0000 (16:57 +0000)]
Make subr_bus.c more consistent with regard to style(9) and itself.

- adjust the 4 space indentation in the oldest parts
- use return(value) form
- move returns into the default case of certain switch statements
- make some pointer checks explicit against NULL
- reorder device_probe_and_attach to simplify the if's
- remove unnecessary return; at the end of functions

20 years agoAdjust indentation, use uint32_t and line up comments.
Joerg Sonnenberger [Mon, 1 Mar 2004 11:50:59 +0000 (11:50 +0000)]
Adjust indentation, use uint32_t and line up comments.

20 years agoNewtoken commit. Change the token implementation as follows: (1) Obtaining
Matthew Dillon [Mon, 1 Mar 2004 06:33:24 +0000 (06:33 +0000)]
Newtoken commit.  Change the token implementation as follows:  (1) Obtaining
a token no longer enters a critical section.  (2) tokens can be held through
schedular switches and blocking conditions and are effectively released and
reacquired on resume.  Thus tokens serialize access only while the thread
is actually running.  Serialization is not broken by preemptive interrupts.
That is, interrupt threads which preempt do no release the preempted thread's
tokens.  (3) Unlike spl's, tokens will interlock w/ interrupt threads on
the same or on a different cpu.

The vnode interlock code has been rewritten and the API has changed.  The
mountlist vnode scanning code has been consolidated and all known races have
been fixed.  The vnode interlock is now a pool token.

The code that frees unreferenced vnodes whos last VM page has been freed has
been moved out of the low level vm_page_free() code and moved to the
periodic filesystem sycer code in vfs_msycn().

The SMP startup code and the IPI code has been cleaned up considerably.
Certain early token interactions on AP cpus have been moved to the BSP.

The LWKT rwlock API has been cleaned up and turned on.

Major testing by: David Rhodus

20 years agoMerge FreeBSD rev. 1.8:
Joerg Sonnenberger [Sun, 29 Feb 2004 17:18:32 +0000 (17:18 +0000)]
Merge FreeBSD rev. 1.8:
Simplify the KOBJOPLOOKUP macro for the non-debug case so that gcc's
heuristics do not overestimate the code size quite so much.

20 years agoDe-K&R-ify function prototyps and remove register keyword.
Joerg Sonnenberger [Sun, 29 Feb 2004 16:55:28 +0000 (16:55 +0000)]
De-K&R-ify function prototyps and remove register keyword.

Submitted by Chris Pressey <cpressey@catseye.mine.nu>

20 years agoAdd bfe(4) support from FreeBSD.
Joerg Sonnenberger [Fri, 27 Feb 2004 11:56:12 +0000 (11:56 +0000)]
Add bfe(4) support from FreeBSD.
Initial code submitted by Peter Avalos <pavalos@theshell.com>.

Changes to the FreeBSD version:
- make the code consistent w.r.t. style(9)
- remove some unused entries from bfe_softc
- use the PCI IDs from pcidevs.h
- use BUS_DMA_WAITOK since the allocation is done in bfe_attach before
  the interrupt is registered and sleeping is therefore safe
- fix some warnings in the code about signed/unsigned comparisions

20 years agoThere are historically two families of fixed size integers, u_intX_t and
Joerg Sonnenberger [Fri, 27 Feb 2004 11:27:39 +0000 (11:27 +0000)]
There are historically two families of fixed size integers, u_intX_t and
uintX_t. Since the former is BSD specific, while the later is defined for
POSIX anyway, prefer the second form.

20 years agoCosmetic changes.
Jeffrey Hsu [Fri, 27 Feb 2004 09:40:36 +0000 (09:40 +0000)]
Cosmetic changes.

20 years agoUse ifp->xname instead of if_name(ifp)
Joerg Sonnenberger [Thu, 26 Feb 2004 14:25:29 +0000 (14:25 +0000)]
Use ifp->xname instead of if_name(ifp)

20 years agoAdd missing return from last commit
Joerg Sonnenberger [Thu, 26 Feb 2004 14:07:21 +0000 (14:07 +0000)]
Add missing return from last commit

20 years agoRemove unused and undocumented strhash files.
Joerg Sonnenberger [Thu, 26 Feb 2004 14:06:13 +0000 (14:06 +0000)]
Remove unused and undocumented strhash files.

Suggested by Chris Pressey <cpressey@catseye.mine.nu>

20 years agoRemove parameter names, adjust white spaces in prototyps and remove
Joerg Sonnenberger [Thu, 26 Feb 2004 13:58:26 +0000 (13:58 +0000)]
Remove parameter names, adjust white spaces in prototyps and remove
extern.

Based on patch submitted by Chris Pressey <cpressey@catseye.mine.nu>

20 years agoRemove the entry for pccard and allow src/include/Makefile to properly
Joerg Sonnenberger [Thu, 26 Feb 2004 13:06:19 +0000 (13:06 +0000)]
Remove the entry for pccard and allow src/include/Makefile to properly
create it as the symlink to bus/pccard.

Noticed by YONETANI Tomokazu <qhwt+dragonfly-submit@les.ath.cx>

20 years agoUpdate FILES section
Eirik Nygaard [Wed, 25 Feb 2004 20:44:30 +0000 (20:44 +0000)]
Update FILES section

20 years agoRemove unused settings
Eirik Nygaard [Wed, 25 Feb 2004 18:58:46 +0000 (18:58 +0000)]
Remove unused settings

20 years agoRemove parameter names.
Joerg Sonnenberger [Wed, 25 Feb 2004 17:38:51 +0000 (17:38 +0000)]
Remove parameter names.

Submitted by Chris Pressey <cpressey@catseye.mine.nu>

20 years agoDon't use parameter names for kernel prototyps
Joerg Sonnenberger [Wed, 25 Feb 2004 17:35:29 +0000 (17:35 +0000)]
Don't use parameter names for kernel prototyps

20 years agoCleanup emujoy_pci_probe
Joerg Sonnenberger [Wed, 25 Feb 2004 16:30:21 +0000 (16:30 +0000)]
Cleanup emujoy_pci_probe

20 years agoAdjust mixer script to depend on mixer_enable="YES" and default to NO.
Joerg Sonnenberger [Wed, 25 Feb 2004 16:16:49 +0000 (16:16 +0000)]
Adjust mixer script to depend on mixer_enable="YES" and default to NO.

20 years agoFix use after free / double free bugs. Return an error in error conditions.
Joerg Sonnenberger [Wed, 25 Feb 2004 15:46:54 +0000 (15:46 +0000)]
Fix use after free / double free bugs. Return an error in error conditions.

Submitted by YONETANI Tomokazu <qhwt+dragonfly-submit@les.ath.cx>

20 years agoStyle(9) cleanup. Remove K&R style prototyps and use __BEGIN_DECLS/i
Joerg Sonnenberger [Wed, 25 Feb 2004 15:12:54 +0000 (15:12 +0000)]
Style(9) cleanup. Remove K&R style prototyps and use __BEGIN_DECLS/i
__END_DECLS.

Based on patch submitted by Chris Pressey <cpressey@catseye.mine.nu>.

20 years agoRemove mixerctl script from NetBSD and add a replacing mixer script.
Joerg Sonnenberger [Wed, 25 Feb 2004 12:08:29 +0000 (12:08 +0000)]
Remove mixerctl script from NetBSD and add a replacing mixer script.

Script submitted ibotty <bsd@ibotty.net>

Extended to automatically create mixer.conf on stop.

20 years agoedquota(8) should honour MAXLOGNAME.
Joerg Sonnenberger [Wed, 25 Feb 2004 11:28:58 +0000 (11:28 +0000)]
edquota(8) should honour MAXLOGNAME.

Obtained from:  FreeBSD
PR:             misc/62944

Patch submitted by Chris Pressey <cpressey@catseye.mine.nu>

20 years agoRelax a KASSERT condition to allow for a valid corner case where
Jeffrey Hsu [Wed, 25 Feb 2004 08:46:28 +0000 (08:46 +0000)]
Relax a KASSERT condition to allow for a valid corner case where
the FIN on the last segment consumes an extra sequence number.

Spurious panic reported by Mike Silbersack <silby@silby.com>.

20 years ago#ifdef0 pst_shutdown, it is not used
Joerg Sonnenberger [Tue, 24 Feb 2004 19:46:03 +0000 (19:46 +0000)]
#ifdef0  pst_shutdown, it is not used

20 years agoConditionalize filll_io and filll, they are only used with VGA_NO_MODE_CHANGE
Joerg Sonnenberger [Tue, 24 Feb 2004 19:42:19 +0000 (19:42 +0000)]
Conditionalize filll_io and filll, they are only used with VGA_NO_MODE_CHANGE

20 years agoFix spurious warning about ANSI trigraphs
Joerg Sonnenberger [Tue, 24 Feb 2004 19:37:43 +0000 (19:37 +0000)]
Fix spurious warning about ANSI trigraphs

20 years agoFix format string
Joerg Sonnenberger [Tue, 24 Feb 2004 19:35:30 +0000 (19:35 +0000)]
Fix format string

20 years agoFix argument order for snprintf, the size is the second argument
Joerg Sonnenberger [Tue, 24 Feb 2004 19:27:25 +0000 (19:27 +0000)]
Fix argument order for snprintf, the size is the second argument

20 years agoFix format string
Joerg Sonnenberger [Tue, 24 Feb 2004 19:25:13 +0000 (19:25 +0000)]
Fix format string

20 years agoRemove unused static declarations
Joerg Sonnenberger [Tue, 24 Feb 2004 19:23:37 +0000 (19:23 +0000)]
Remove unused static declarations

20 years agoAdd prototype for bootpc_init
Joerg Sonnenberger [Tue, 24 Feb 2004 19:22:38 +0000 (19:22 +0000)]
Add prototype for bootpc_init

20 years agoRemove unused static variable
Joerg Sonnenberger [Tue, 24 Feb 2004 19:17:08 +0000 (19:17 +0000)]
Remove unused static variable

20 years agoFix a typo and include <sys/random.h>
Joerg Sonnenberger [Tue, 24 Feb 2004 19:00:36 +0000 (19:00 +0000)]
Fix a typo and include <sys/random.h>

20 years agoFix some warnings
Joerg Sonnenberger [Tue, 24 Feb 2004 18:44:20 +0000 (18:44 +0000)]
Fix some warnings

20 years agoUse ovbcopy instead of bcopy to match prototyp
Joerg Sonnenberger [Tue, 24 Feb 2004 18:41:57 +0000 (18:41 +0000)]
Use ovbcopy instead of bcopy to match prototyp

20 years agoHide ISA compatibility layer under COMPAT_OLDISA
Joerg Sonnenberger [Tue, 24 Feb 2004 18:11:16 +0000 (18:11 +0000)]
Hide ISA compatibility layer under COMPAT_OLDISA

20 years agoUse -fformat-extensions when building kernel with GCC2.
Joerg Sonnenberger [Tue, 24 Feb 2004 18:07:11 +0000 (18:07 +0000)]
Use -fformat-extensions when building kernel with GCC2.

20 years agoAdd support for the kernel printf conversion specifiers %b, %D and %ry.
Joerg Sonnenberger [Tue, 24 Feb 2004 18:04:20 +0000 (18:04 +0000)]
Add support for the kernel printf conversion specifiers %b, %D and %ry.
Adjust the warning about %c only yielding 2 digits.

Patch based on FreeBSD's modification for the in-tree c-format.c

20 years agoSplit off the PCI-PCI bridge and the PCI-ISA bridge code from
Joerg Sonnenberger [Tue, 24 Feb 2004 15:21:25 +0000 (15:21 +0000)]
Split off the PCI-PCI bridge and the PCI-ISA bridge code from
pcisupport.c. This moves just code around and is non-functional.

20 years agoDFports cleanup part(1)
Joerg Sonnenberger [Tue, 24 Feb 2004 13:05:14 +0000 (13:05 +0000)]
DFports cleanup part(1)

This removes the redefinition of PORTSDIR to /usr/dfports. We use the normal
/usr/ports and have a second variable DFPORTSDIR for DragonFly override ports.

Also fix the warning about an undefined command when invocing make for an
overriden port without specifying a target.

20 years agoAdd missing make_dev
Joerg Sonnenberger [Tue, 24 Feb 2004 11:52:31 +0000 (11:52 +0000)]
Add missing make_dev

20 years agoMake nexus understand the new INTR_ flags, mainly INTR_ENTROPY.
Matthew Dillon [Mon, 23 Feb 2004 21:23:42 +0000 (21:23 +0000)]
Make nexus understand the new INTR_ flags, mainly INTR_ENTROPY.
Fixes the: mpt, aac, amr, mlx, and twe drivers.

Reported-by: David Rhodus <drhodus@machdep.com>
20 years agoFix comment to show the munlockall function, and not the mlockall one.
Eirik Nygaard [Mon, 23 Feb 2004 11:54:03 +0000 (11:54 +0000)]
Fix comment to show the munlockall function, and not the mlockall one.

20 years agoCertain port Makefiles expect variables like ARCH or HAVE_GNOME to be set
Joerg Sonnenberger [Sun, 22 Feb 2004 14:28:50 +0000 (14:28 +0000)]
Certain port Makefiles expect variables like ARCH or HAVE_GNOME to be set
and use them in .if's. This adds a default value for those currently use
to fix parsing the main Makefile if bsd.port.pre.mk is used.

20 years agoFix compilation with -fno-common
Joerg Sonnenberger [Sun, 22 Feb 2004 12:11:00 +0000 (12:11 +0000)]
Fix compilation with -fno-common

20 years agoRemove static resource_disabled(), the function is now supplied by
Matthew Dillon [Sun, 22 Feb 2004 07:27:56 +0000 (07:27 +0000)]
Remove static resource_disabled(), the function is now supplied by
kern/subr_bus.c.

20 years agoINTR_TYPE_AV is used by FreeBSD 5 code and was defined to INTR_TYPE_TTY
Joerg Sonnenberger [Sat, 21 Feb 2004 19:12:39 +0000 (19:12 +0000)]
INTR_TYPE_AV is used by FreeBSD 5 code and was defined to INTR_TYPE_TTY
before. Keep this behaviour for the nexus interrupt handling and don't
panic.

20 years agoINTR_EXCL moved to sys/bus.h, add #include.
Matthew Dillon [Sat, 21 Feb 2004 17:35:35 +0000 (17:35 +0000)]
INTR_EXCL moved to sys/bus.h, add #include.

Reported-by: David Rhodus <drhodus@machdep.com>
20 years agoBring in additional stuff from FreeBSD-5, fixing some issues (fwohci not
Matthew Dillon [Sat, 21 Feb 2004 17:05:52 +0000 (17:05 +0000)]
Bring in additional stuff from FreeBSD-5, fixing some issues (fwohci not
being able to map memory, and other issues).

20 years agoAdd supfile to fetch only dfports
Joerg Sonnenberger [Sat, 21 Feb 2004 14:22:39 +0000 (14:22 +0000)]
Add supfile to fetch only dfports

20 years agoInclude the required machine/bus.h if we do not already have it.
Matthew Dillon [Sat, 21 Feb 2004 09:17:10 +0000 (09:17 +0000)]
Include the required machine/bus.h if we do not already have it.

20 years agoFix a bug in the last commit. 4.x improperly tries to add the children
Matthew Dillon [Sat, 21 Feb 2004 09:16:27 +0000 (09:16 +0000)]
Fix a bug in the last commit.  4.x improperly tries to add the children
of a PCI bus during the probe phase.  This doesn't mix well with 5.x's
bus code which adds the children in the attach phase.  Clean up
pci_probe().  The code, unfortunately, is still quite fragile.

Cleanup pci_read_device().

Bring in pcib_*() routines from 5.x into pcisupport.c.  Add support for
bridges which do not support particular PCI mapping types (from FreeBSD 5.x).

Fix a bug in the pcib_route_interrupt() method.

20 years agoBring in acpica-unix-20031203. As with other contrib imports, this import
Matthew Dillon [Sat, 21 Feb 2004 06:58:11 +0000 (06:58 +0000)]
Bring in acpica-unix-20031203.  As with other contrib imports, this import
represents an exact copy of the vendor distribution plus a README.DRAGONFLY
file.  The related build infrastructure is /usr/src/sys/dev/acpica5 and
/usr/src/sys/i386/acpica5.

20 years agoBring in the FreeBSD-5 ACPICA code as a module. Note: not hooked up yet,
Matthew Dillon [Sat, 21 Feb 2004 06:48:09 +0000 (06:48 +0000)]
Bring in the FreeBSD-5 ACPICA code as a module.  Note: not hooked up yet,
still under development.  Also note that the original ACPICA code is being
left intact.

20 years agoSynchronize a bunch of things from FreeBSD-5 in preparation for the new
Matthew Dillon [Sat, 21 Feb 2004 06:41:41 +0000 (06:41 +0000)]
Synchronize a bunch of things from FreeBSD-5 in preparation for the new
ACPICA driver support.

* Bring in a lot of new bus and pci DEV_METHODs from FreeBSD-5
* split apic.h into apicreg.h and apicio.h
* rename INTR_TYPE_FAST -> INTR_FAST and move the #define
* rename INTR_TYPE_EXCL -> INTR_EXCL and move the #define
* rename some PCIR_ registers and add additional macros from FreeBSD-5
* note: new pcib bus call, host_pcib_get_busno() imported.
* kern/subr_power.c no longer optional.

Other changes:

* machine/smp.h machine smp/smptests.h can now be #included unconditionally,
  and some APIC_IO vs SMP separation has been done as well.
* gd_acpi_id and gd_apic_id added to machine/globaldata.h prep for new
  ACPI code.

Despite all the changes, the generated code should be virtually the same.
These were mostly additions which the pre-existing code does not (yet) use.

20 years agoSynchronize a bunch of things from FreeBSD-5 in preparation for the new
Matthew Dillon [Sat, 21 Feb 2004 06:37:08 +0000 (06:37 +0000)]
Synchronize a bunch of things from FreeBSD-5 in preparation for the new
ACPICA driver support.

* Bring in a lot of new bus and pci DEV_METHODs from FreeBSD-5
* split apic.h into apicreg.h and apicio.h
* rename INTR_TYPE_FAST -> INTR_FAST and move the #define
* rename INTR_TYPE_EXCL -> INTR_EXCL and move the #define
* rename some PCIR_ registers and add additional macros from FreeBSD-5
* note: new pcib bus call, host_pcib_get_busno() imported.
* kern/subr_power.c no longer optional.

Other changes:

* machine/smp.h machine smp/smptests.h can now be #included unconditionally,
  and some APIC_IO vs SMP separation has been done as well.
* gd_acpi_id and gd_apic_id added to machine/globaldata.h prep for new
  ACPI code.

Despite all the changes, the generated code should be virtually the same.
These were mostly additions which the pre-existing code does not (yet) use.

20 years ago* Fix placement of return value.
David Rhodus [Fri, 20 Feb 2004 22:40:58 +0000 (22:40 +0000)]
* Fix placement of return value.

20 years ago* Return if array is out of bounds in icu_setup function.
David Rhodus [Fri, 20 Feb 2004 22:01:20 +0000 (22:01 +0000)]
* Return if array is out of bounds in icu_setup function.

Ref: FreeBSD PR 30857

20 years agoImplement a pipe KVM cache primarily to reduce unnecessary TLB IPIs between
Matthew Dillon [Fri, 20 Feb 2004 17:11:08 +0000 (17:11 +0000)]
Implement a pipe KVM cache primarily to reduce unnecessary TLB IPIs between
cpcus on MP systems due to continuous KVM allocations.

20 years agoM_NOWAIT work stage 1/999: Fix some boot-time misuses of M_NOWAIT -> M_WAITOK
Matthew Dillon [Fri, 20 Feb 2004 17:10:14 +0000 (17:10 +0000)]
M_NOWAIT work stage 1/999:  Fix some boot-time misuses of M_NOWAIT -> M_WAITOK
inherited from FBsd 4.x and 5.x.

20 years agoRCNG, shutdown ppp connections nicely when told to.
Matthew Dillon [Thu, 19 Feb 2004 21:32:15 +0000 (21:32 +0000)]
RCNG, shutdown ppp connections nicely when told to.

Submitted-by: Peter Kadau <peter.kadau@tuebingen.mpg.de> (on 15 Dec 2003)
20 years agoAdd generated pcidevs files. Fix a small typo in devlist2h.awk.
Joerg Sonnenberger [Thu, 19 Feb 2004 20:47:57 +0000 (20:47 +0000)]
Add generated pcidevs files. Fix a small typo in devlist2h.awk.

20 years agoPCCARD has a central device database in bus/pccard/pccarddevs, add one
Joerg Sonnenberger [Thu, 19 Feb 2004 20:46:15 +0000 (20:46 +0000)]
PCCARD has a central device database in bus/pccard/pccarddevs, add one
for PCI as well. This allows us to centralize the definitions of PCI IDs
and removes the need for numerical magic constants all over the place.
Another advantage is that it allows us to display proper strings even
for devices w/o driver.

Imported from NetBSD current.

20 years agoRemove some unneeded #include
Joerg Sonnenberger [Thu, 19 Feb 2004 19:44:06 +0000 (19:44 +0000)]
Remove some unneeded #include

20 years agoAdd PCCARD match function to ata. Code taken from FreeBSD.
Joerg Sonnenberger [Thu, 19 Feb 2004 15:51:46 +0000 (15:51 +0000)]
Add PCCARD match function to ata. Code taken from FreeBSD.

20 years agoAdd PCCARD match routines sio and the disk drivers.
Joerg Sonnenberger [Thu, 19 Feb 2004 15:48:26 +0000 (15:48 +0000)]
Add PCCARD match routines sio and the disk drivers.

Partly taken from FreeBSD.

20 years agoRemove duplicate line for if_ray
Joerg Sonnenberger [Thu, 19 Feb 2004 15:05:26 +0000 (15:05 +0000)]
Remove duplicate line for if_ray

20 years agoAdd proper match routines for PCCARD nics.
Joerg Sonnenberger [Thu, 19 Feb 2004 14:31:13 +0000 (14:31 +0000)]
Add proper match routines for PCCARD nics.

IDs and match routines taken from FreeBSD.

20 years agoFix typo.
Joerg Sonnenberger [Wed, 18 Feb 2004 16:31:37 +0000 (16:31 +0000)]
Fix typo.

Reported by YONETANI Tomokazu. <qhwt+dragonfly-submit@les.ath.cx>

20 years agopmap_zero_page expects an address, not a page number
Joerg Sonnenberger [Wed, 18 Feb 2004 16:28:21 +0000 (16:28 +0000)]
pmap_zero_page expects an address, not a page number

20 years ago* Remove ufs_disksubr.c from kernel build files.
David Rhodus [Wed, 18 Feb 2004 15:41:56 +0000 (15:41 +0000)]
* Remove ufs_disksubr.c from kernel build files.

20 years agoMerge vfs/ufs/ufs_disksubr.c into kern/subr_disk.c. The procedures in
Matthew Dillon [Wed, 18 Feb 2004 06:59:16 +0000 (06:59 +0000)]
Merge vfs/ufs/ufs_disksubr.c into kern/subr_disk.c.  The procedures in
ufs_disksubr.c are used globally and not ufs-specific.

20 years agoATAng stage 6: Comment-only. Many thanks to David Rhodus for generating
Matthew Dillon [Wed, 18 Feb 2004 04:32:40 +0000 (04:32 +0000)]
ATAng stage 6: Comment-only.  Many thanks to David Rhodus for generating
a base patch set from FreeBSD-4 for all the ATANG integration work.

20 years agoAdd experimental (as in hacked) support for the Silicon Image SATA
Matthew Dillon [Wed, 18 Feb 2004 04:12:00 +0000 (04:12 +0000)]
Add experimental (as in hacked) support for the Silicon Image SATA
controller 3512.  run it like the SiI 0680 ATA133 controller for now.

It works operating as a non-raid ata device on an FN85 Shuttle (AMD64)
motherboard.  The controller is theoretically a raid controller there is
no current support for it.