dragonfly.git
16 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

16 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.

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

16 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)

16 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

16 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>

16 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>

16 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>

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

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

16 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>

16 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

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

16 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.

16 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>

16 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>.

16 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.

16 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>

16 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>.

16 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

16 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

16 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

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

16 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

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

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

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

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

16 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>

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

16 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

16 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

16 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.

16 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

16 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.

16 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.

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

16 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>
16 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.

16 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.

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

16 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.

16 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.

16 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>
16 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).

16 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

16 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.

16 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.

16 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.

16 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.

16 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.

16 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.

16 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.

16 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

16 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.

16 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.

16 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)
16 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.

16 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.

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

16 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.

16 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.

16 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

16 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.

16 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>

16 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

16 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.

16 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.

16 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.

16 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.

16 years agoATAng stage 5: sync chipset changes and bug fixes. busdma is not synched yet.
Matthew Dillon [Wed, 18 Feb 2004 04:08:49 +0000 (04:08 +0000)]
ATAng stage 5: sync chipset changes and bug fixes.  busdma is not synched yet.

16 years agoATAng stage 5: sync additional function API changes from FBsd-4. We now
Matthew Dillon [Wed, 18 Feb 2004 02:47:38 +0000 (02:47 +0000)]
ATAng stage 5: sync additional function API changes from FBsd-4.  We now
have everything except the dma chipset changes and the busdma changes.
Note that we retain our MPIPE code as it is far superior to what is in 4.x and
5.x.

16 years agoATAng stage 4: sync additional atang from 4.x, all non-operational changes
Matthew Dillon [Wed, 18 Feb 2004 02:01:37 +0000 (02:01 +0000)]
ATAng stage 4: sync additional atang from 4.x, all non-operational changes
except for one offset calculation.  pushdown API.

16 years agoATAng stage 3: sync additional atang from 4.x, mostly non-opertional changes,
Matthew Dillon [Wed, 18 Feb 2004 01:35:59 +0000 (01:35 +0000)]
ATAng stage 3: sync additional atang from 4.x, mostly non-opertional changes,
changes in procedure args, etc.

16 years agoATAng stage 2: sync part of the ata_dma*() API. No operational changes.
Matthew Dillon [Wed, 18 Feb 2004 00:50:00 +0000 (00:50 +0000)]
ATAng stage 2: sync part of the ata_dma*() API.  No operational changes.

16 years agoATAng stage 1: synch ad_attach() and atapi_attach(), including a fix for
Matthew Dillon [Wed, 18 Feb 2004 00:37:08 +0000 (00:37 +0000)]
ATAng stage 1: synch ad_attach() and atapi_attach(), including a fix for
a recursive lock issue.

16 years ago(followup) remove lockid.
Matthew Dillon [Tue, 17 Feb 2004 19:39:38 +0000 (19:39 +0000)]
(followup) remove lockid.

16 years agoIntroduce an MI cpu synchronization API, redo the SMP AP startup code,
Matthew Dillon [Tue, 17 Feb 2004 19:38:54 +0000 (19:38 +0000)]
Introduce an MI cpu synchronization API, redo the SMP AP startup code,
and start cleaning up deprecated IPI and clock code.  Add a MMU/TLB page
table invalidation API (pmap_inval.c) which properly synchronizes page
table changes with other cpus in SMP environments.

    * removed (unused) gd_cpu_lockid
    * remove confusing invltlb() and friends, normalize use of cpu_invltlb()
      and smp_invltlb().
    * redo the SMP AP startup code to make the system work better in
      situations where all APs do not startup.
    * add memory barrier API, cpu_mb1() and cpu_mb2().
    * remove (obsolete, no longer used) old IPI hard and stat clock forwarding
      code.
    * add a cpu synchronization API which is capable of handling multiple
      simultanious requests without deadlocking or livelocking.
    * major changes to the PMAP code to use the new invalidation API.
    * remove (unused) all_procs_ipi() and self_ipi().
    * only use all_but_self_ipi() if it is known that all AP's started up,
      otherwise use a mask.
    * remove (obsolete, no longer usde) BETTER_CLOCK code
    * remove (obsolete, no longer used) Xcpucheckstate IPI code

Testing-by: David Rhodus and others
16 years agoInstall getopt_long.3
Joerg Sonnenberger [Tue, 17 Feb 2004 17:04:57 +0000 (17:04 +0000)]
Install getopt_long.3

16 years agoUndo part of the last commit. Part of a different patch set leaked into it
Matthew Dillon [Mon, 16 Feb 2004 21:08:24 +0000 (21:08 +0000)]
Undo part of the last commit.  Part of a different patch set leaked into it
which is not ready to be committedy et.

16 years agoRemove duplicate declarations for -fno-common
Matthew Dillon [Mon, 16 Feb 2004 20:48:35 +0000 (20:48 +0000)]
Remove duplicate declarations for -fno-common

16 years agoRemove duplicate declarations for -fno-common
Matthew Dillon [Mon, 16 Feb 2004 20:37:20 +0000 (20:37 +0000)]
Remove duplicate declarations for -fno-common

16 years agoRemove common declaration for -fno-common
Matthew Dillon [Mon, 16 Feb 2004 20:13:26 +0000 (20:13 +0000)]
Remove common declaration for -fno-common

16 years agoCompile the kernel with -fno-common to guarentee that we do not accidently
Matthew Dillon [Mon, 16 Feb 2004 19:57:39 +0000 (19:57 +0000)]
Compile the kernel with -fno-common to guarentee that we do not accidently
put non-extern'd variable declarations in header files.  Our module loader
no longer deals with commons so duplicate declarations can cause kldloaded
modules to fail, and its sloppy programming anyway.

16 years agoRemove common variable to get ready for -fno-common.
Matthew Dillon [Mon, 16 Feb 2004 19:56:26 +0000 (19:56 +0000)]
Remove common variable to get ready for -fno-common.

16 years agoAdd a dependant include.
Matthew Dillon [Mon, 16 Feb 2004 19:49:28 +0000 (19:49 +0000)]
Add a dependant include.

16 years agoRemove duplicate bioops declaration in preparation for -fno-common
Matthew Dillon [Mon, 16 Feb 2004 19:48:51 +0000 (19:48 +0000)]
Remove duplicate bioops declaration in preparation for -fno-common

16 years agoRemove duplicate declarations in preparation for adding -fno-common to
Matthew Dillon [Mon, 16 Feb 2004 19:43:28 +0000 (19:43 +0000)]
Remove duplicate declarations in preparation for adding -fno-common to
the kernel compile.

16 years agobuftimetoken must be declared in a .c file.
Matthew Dillon [Mon, 16 Feb 2004 19:37:48 +0000 (19:37 +0000)]
buftimetoken must be declared in a .c file.

16 years agoAdd BUS_DMA_ZERO flag to bus_dmamem_alloc.
Joerg Sonnenberger [Mon, 16 Feb 2004 19:35:53 +0000 (19:35 +0000)]
Add BUS_DMA_ZERO flag to bus_dmamem_alloc.

Add support for M_ZERO to contigmalloc inspired by rev. 1.21 and 1.23 of by
mux to FreeBSD's vm_contig.c

16 years agoMake buftimetoken an extern so it is not declared as a common variable.
Matthew Dillon [Mon, 16 Feb 2004 19:09:31 +0000 (19:09 +0000)]
Make buftimetoken an extern so it is not declared as a common variable.
Modules were compiling up with their own local copy of buftimetoken rather
then linking against the kernel's buftimetoken, causing modules to crash.

Reported-by: Adam K Kirchhoff <adamk@voicenet.com>
16 years agoAdd pci_get_ether and pci_set_ether for FreeBSD 5 compatibility
Joerg Sonnenberger [Mon, 16 Feb 2004 18:51:01 +0000 (18:51 +0000)]
Add pci_get_ether and pci_set_ether for FreeBSD 5 compatibility

16 years agoAdd PCIR_BAR and PCIR_BARS for FreeBSD 5 compatibility
Joerg Sonnenberger [Mon, 16 Feb 2004 18:49:55 +0000 (18:49 +0000)]
Add PCIR_BAR and PCIR_BARS for FreeBSD 5 compatibility

16 years agoAdd device_is_attached to allow a driver to check wether a given device
Joerg Sonnenberger [Mon, 16 Feb 2004 18:48:03 +0000 (18:48 +0000)]
Add device_is_attached to allow a driver to check wether a given device
was or was not succesfully attached to the device tree.

16 years agoInstall new .mk files (/usr/src/share/mk) as part of the upgrade_etc target.
Matthew Dillon [Mon, 16 Feb 2004 05:14:03 +0000 (05:14 +0000)]
Install new .mk files (/usr/src/share/mk) as part of the upgrade_etc target.

16 years agoCleanup and augment the cpu synchronization API a bit. Embed the maxcount
Matthew Dillon [Sun, 15 Feb 2004 05:15:27 +0000 (05:15 +0000)]
Cleanup and augment the cpu synchronization API a bit.  Embed the maxcount
in the structure rather then returning it and requiring it to be passed
again, and document the procedures a bit more.

16 years agoSplit the IPIQ messaging out of lwkt_thread.c and move it to its own file,
Matthew Dillon [Sun, 15 Feb 2004 02:14:42 +0000 (02:14 +0000)]
Split the IPIQ messaging out of lwkt_thread.c and move it to its own file,
lwkt_ipiq.c.

Add a MI synchronous cpu rendezvous API lwkt_cpusync_*().  This API allows the
kernel to synchronize an operation across any number of cpus.  Multiple cpus
can initiate synchronization operations simultaniously without creating a
deadlock.  The API utilizes the IPI messaging core and guarentees that
other synchronization and IPI messaging operations will continue to work
during any given synchronization op.  The API is a spin-blocking API, meaning
that it will not switch threads and can be used by mainline code, interrupts,
and other sensitive code.

This API is intended to replace smp_rendezvous(), Xcpustop, and other
hardwired IPI ops.  It will also be used to fix our TLB shootdown code.

As of this commit the API has not yet been connected to anything and has
been tested only a little.

16 years agoatomic_*_*_nonlocked() inlines are not MP locked. Remove the MPLOCKED
Matthew Dillon [Sat, 14 Feb 2004 22:26:43 +0000 (22:26 +0000)]
atomic_*_*_nonlocked() inlines are not MP locked.  Remove the MPLOCKED
prefix for these ops.

16 years agoRemove old in_cksum.c and in_cksum.h (they were moved to netinet and sys
Matthew Dillon [Sat, 14 Feb 2004 21:13:54 +0000 (21:13 +0000)]
Remove old in_cksum.c and in_cksum.h (they were moved to netinet and sys
respectively).

16 years agoMove <machine/in_cksum.h> to <sys/in_cksum.h>. This file is now platform
Matthew Dillon [Sat, 14 Feb 2004 21:15:34 +0000 (21:15 +0000)]
Move <machine/in_cksum.h> to <sys/in_cksum.h>.  This file is now platform
independant.  If we want to add extreme machine specialization later on
then sys/in_cksum.h will #include machine/in_cksum.h.

Move i386/i386/in_cksum.c to netinet/in_cksum.c.  Note that netinet/in_cksum.c
already existed but was not used by the build system at all.  The move
overwrites it.  The new in_cksum.c is a portable, complete rewrite which
references core assembly (procedure call) to do 32-bit-aligned work.  See
also i386/i386/in_cksum2.s.