]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoCook CFLAGS by the modern recipe:
Yaroslav Tykhiy [Thu, 27 Jul 2006 12:05:05 +0000 (12:05 +0000)]
Cook CFLAGS by the modern recipe:
- use WARNS;
- respect MK_INET6_SUPPORT.

18 years agoFix what looks like a typo: MODULE_DEPEND() takes module names,
Yaroslav Tykhiy [Thu, 27 Jul 2006 11:52:12 +0000 (11:52 +0000)]
Fix what looks like a typo: MODULE_DEPEND() takes module names,
not KLD file names; and GELI module's name is g_eli, not geom_eli.

Approved by: pjd (silence)
MFC after: 5 days

18 years agoDefine BYTE_MSF if we're compiling a big endian kernel, so that DDB can
Olivier Houchard [Thu, 27 Jul 2006 11:41:37 +0000 (11:41 +0000)]
Define BYTE_MSF if we're compiling a big endian kernel, so that DDB can
correctly disassemble instructions on big endian.

18 years agoFixing compilation bustage: net/if_bridgevar.h depends on net/bridgestp.h.
Tai-hwa Liang [Thu, 27 Jul 2006 06:15:37 +0000 (06:15 +0000)]
Fixing compilation bustage: net/if_bridgevar.h depends on net/bridgestp.h.

18 years agoAdd device ID for second generation D-Link DGE-530T.
Pyun YongHyeon [Thu, 27 Jul 2006 05:06:43 +0000 (05:06 +0000)]
Add device ID for second generation D-Link DGE-530T.

PR: kern/99903

18 years agoRespect MK_INET6_SUPPORT.
Yaroslav Tykhiy [Thu, 27 Jul 2006 04:54:03 +0000 (04:54 +0000)]
Respect MK_INET6_SUPPORT.

18 years agoFix cpp logic in arena_malloc() to adjust size when assertions are enabled,
Jason Evans [Thu, 27 Jul 2006 04:00:12 +0000 (04:00 +0000)]
Fix cpp logic in arena_malloc() to adjust size when assertions are enabled,
even if stats gathering is disabled. [1]

Remove 'size' parameter from several functions that do not use it.

Reported by: [1] ache

18 years agoFixing compilation bustage: net/if_bridgevar.h depends on net/bridgestp.h.
Tai-hwa Liang [Thu, 27 Jul 2006 03:50:38 +0000 (03:50 +0000)]
Fixing compilation bustage: net/if_bridgevar.h depends on net/bridgestp.h.

18 years agoPrepending an mbuf after loading a DMA map results in unexpected
Pyun YongHyeon [Thu, 27 Jul 2006 00:43:34 +0000 (00:43 +0000)]
Prepending an mbuf after loading a DMA map results in unexpected
result. So, modify mbuf chains before loading a DMA map.

18 years agoNuke invalid use of BUS_DMA_ALLOCNOW.
Pyun YongHyeon [Thu, 27 Jul 2006 00:29:44 +0000 (00:29 +0000)]
Nuke invalid use of BUS_DMA_ALLOCNOW.

18 years agoMake sure to use the same DMA map in DMA map load/unload operations
Pyun YongHyeon [Thu, 27 Jul 2006 00:26:20 +0000 (00:26 +0000)]
Make sure to use the same DMA map in DMA map load/unload operations
by remembering a map used in bus_dmamap_load_mbuf_sg(9). I have
no idea how it could ever worked before.
This fixes a warning generated by a diagnostic check in sun4v
iommu driver.

Reported by: jb
Tested by: jb(sun4v)

18 years agoProperly propagate overrun conditions to the TTY layer.
Marcel Moolenaar [Thu, 27 Jul 2006 00:07:10 +0000 (00:07 +0000)]
Properly propagate overrun conditions to the TTY layer.

MFC after: 3 days

18 years agobridgestp is now a seperate module.
Andrew Thompson [Wed, 26 Jul 2006 22:15:15 +0000 (22:15 +0000)]
bridgestp is now a seperate module.

18 years agoHook bridgestp up to the build.
Andrew Thompson [Wed, 26 Jul 2006 22:10:10 +0000 (22:10 +0000)]
Hook bridgestp up to the build.

18 years agoAdd bridgestp as a seperate module.
Andrew Thompson [Wed, 26 Jul 2006 22:07:39 +0000 (22:07 +0000)]
Add bridgestp as a seperate module.

18 years agoRemove stp variables that are already initialised in bstp_attach().
Andrew Thompson [Wed, 26 Jul 2006 20:56:02 +0000 (20:56 +0000)]
Remove stp variables that are already initialised in bstp_attach().

18 years agoAdd Memory Corp 512MB CF Flash.
Simon L. B. Nielsen [Wed, 26 Jul 2006 20:35:52 +0000 (20:35 +0000)]
Add Memory Corp 512MB CF Flash.

MFC after: 3 days

18 years agoRemove zs(4). It has been replaced by scc(4) & uart(4).
Marcel Moolenaar [Wed, 26 Jul 2006 19:44:42 +0000 (19:44 +0000)]
Remove zs(4). It has been replaced by scc(4) & uart(4).

18 years agoReplace sio_iobus.c with uart_iobus.c.
Marcel Moolenaar [Wed, 26 Jul 2006 19:43:02 +0000 (19:43 +0000)]
Replace sio_iobus.c with uart_iobus.c.

18 years agoTurn this into an uart(4) bus attachment.
Marcel Moolenaar [Wed, 26 Jul 2006 19:39:55 +0000 (19:39 +0000)]
Turn this into an uart(4) bus attachment.

18 years agoRepocopy from: src/sys/powerpc/psim/sio_iobus.c
Marcel Moolenaar [Wed, 26 Jul 2006 19:29:11 +0000 (19:29 +0000)]
Repocopy from: src/sys/powerpc/psim/sio_iobus.c
 to: src/sys/powerpc/psim/uart_iobus.c

Meister: simon@

18 years agoRemove call to soisdisconnected() in uipc_detach(), since it will already
Robert Watson [Wed, 26 Jul 2006 19:16:34 +0000 (19:16 +0000)]
Remove call to soisdisconnected() in uipc_detach(), since it will already
have been invoked by uipc_close() or uipc_abort(), and the socket is in a
state of being torn down by the time we get to this point, so kqueue
state frobbed by soisdisconnected() is not available, so frobbing it will
result in a panic.

Reported by: Munehiro Matsuda <haro at h4 dot dion dot ne dot jp>

18 years agoo Remove device zs
Marcel Moolenaar [Wed, 26 Jul 2006 17:35:40 +0000 (17:35 +0000)]
o  Remove device zs
o  Remove nodevice uart
o  Reorder

18 years agoo Enable -Werror
Marcel Moolenaar [Wed, 26 Jul 2006 17:34:05 +0000 (17:34 +0000)]
o  Enable -Werror
o  Remove commented-out sio(4)
o  Remove zs(4)
o  Add scc(4)
o  Add uart(4)

18 years agoOn PowerPC the clock for the BRG comes from RTxC, not PCLK. Add a
Marcel Moolenaar [Wed, 26 Jul 2006 17:29:37 +0000 (17:29 +0000)]
On PowerPC the clock for the BRG comes from RTxC, not PCLK. Add a
quick hack to deal with this. We may need to formalize this better
and have this information come from the bus attachments.

18 years agoImplement UART_IOCTL_BAUD for the Z8530. This allows a serial console
Marcel Moolenaar [Wed, 26 Jul 2006 17:21:59 +0000 (17:21 +0000)]
Implement UART_IOCTL_BAUD for the Z8530. This allows a serial console
on PowerPC use the current setting of the hardware and not second
guess what the OFW does on various machines.

18 years agoImplement uart_cpu_eqres() and uart_cpu_getdev(). This allows
Marcel Moolenaar [Wed, 26 Jul 2006 17:17:23 +0000 (17:17 +0000)]
Implement uart_cpu_eqres() and uart_cpu_getdev(). This allows
FreeBSD to use a serial console, as per the OFW settings.

18 years agoo Move the prototype of mem_valid() from ofw_machdep.h to md_var.h.
Marcel Moolenaar [Wed, 26 Jul 2006 17:12:54 +0000 (17:12 +0000)]
o  Move the prototype of mem_valid() from ofw_machdep.h to md_var.h.
   This avoids that mem.c has to include ofw_machdep.h, including
   all OFW related headers.
o  Provide a stub for OF_decode_addr(), which is used by low-level
   console drivers to obtain a tag and handle given a OFW phandle.
   This is different from sparc64, where a fake bus tag needs to be
   created explicitly.

18 years agoInclude needed clock.h.
Marcel Moolenaar [Wed, 26 Jul 2006 17:06:39 +0000 (17:06 +0000)]
Include needed clock.h.

18 years agoForward declare struct trapframe.
Marcel Moolenaar [Wed, 26 Jul 2006 17:05:11 +0000 (17:05 +0000)]
Forward declare struct trapframe.

18 years agoRemove stale comment about arm
Warner Losh [Wed, 26 Jul 2006 16:56:56 +0000 (16:56 +0000)]
Remove stale comment about arm

18 years agoAdd an entry for enigma(1)/crypt(1) change on 64-bit architectures.
Jung-uk Kim [Wed, 26 Jul 2006 16:31:10 +0000 (16:31 +0000)]
Add an entry for enigma(1)/crypt(1) change on 64-bit architectures.

18 years agoAdd snd_emu10kx_load
Andrey A. Chernov [Wed, 26 Jul 2006 12:59:42 +0000 (12:59 +0000)]
Add snd_emu10kx_load

18 years agoForced commit due to missing log on the last revision.
Andrew Thompson [Wed, 26 Jul 2006 10:45:38 +0000 (10:45 +0000)]
Forced commit due to missing log on the last revision.

Split the spanning tree state into its own structures and provide a simple API
to perform functions such as adding and deleting ports. This is just a
mechanical change and the STP operation remains the same. The bridgestp code
now has no knowledge of if_bridge.

This makes the code easier to read and can now also support other bridges such
as ng_bridge.

18 years ago/tmp/cvsuusTrc
Andrew Thompson [Wed, 26 Jul 2006 10:43:02 +0000 (10:43 +0000)]
/tmp/cvsuusTrc

18 years agoRemove variables that are overridden by ether_ifattach(). This clears up any
Andrew Thompson [Wed, 26 Jul 2006 09:41:04 +0000 (09:41 +0000)]
Remove variables that are overridden by ether_ifattach(). This clears up any
confusion especially as *if_output was pointed to a different function.

18 years agoMake sure that the sc pointer gets initialized. No functional change
Xin LI [Wed, 26 Jul 2006 08:58:00 +0000 (08:58 +0000)]
Make sure that the sc pointer gets initialized.  No functional change
should happen with this change.

18 years agoRespect MK_INET6_SUPPORT.
Yaroslav Tykhiy [Wed, 26 Jul 2006 08:36:46 +0000 (08:36 +0000)]
Respect MK_INET6_SUPPORT.

18 years agoFix build w/o INET6.
Yaroslav Tykhiy [Wed, 26 Jul 2006 08:35:46 +0000 (08:35 +0000)]
Fix build w/o INET6.

Submitted by: Andre Albsmeier <Andre.Albsmeier siemens com>

18 years agoBack out rev. 1.63. It was a poor idea because
Yaroslav Tykhiy [Wed, 26 Jul 2006 08:03:24 +0000 (08:03 +0000)]
Back out rev. 1.63.  It was a poor idea because
test(1) is built in sh(1) and it always evaluates
both sides of -a or -o, unlike && or || in sh(1).

Requested by: dougb

18 years agoIncrease the number of CPUs to 32 to suit sun4v.
John Birrell [Wed, 26 Jul 2006 07:46:32 +0000 (07:46 +0000)]
Increase the number of CPUs to 32 to suit sun4v.

Reviewed by: rwatson@

18 years agoMake it easier to find that we have test(1) built-in in sh(1).
Yaroslav Tykhiy [Wed, 26 Jul 2006 06:48:18 +0000 (06:48 +0000)]
Make it easier to find that we have test(1) built-in in sh(1).

MFC after: 3 days

18 years agoadd missing \n's
Sam Leffler [Wed, 26 Jul 2006 04:09:04 +0000 (04:09 +0000)]
add missing \n's

Submitted by: avatar@
MFC after: 1 week

18 years agocheck tim is present in the beacon before defer'ing the mcast buffer bit;
Sam Leffler [Wed, 26 Jul 2006 03:48:41 +0000 (03:48 +0000)]
check tim is present in the beacon before defer'ing the mcast buffer bit;
insures we don't do this when operating in adhoc mode

Submitted by: avatar@
MFC after: 1 week

18 years agosupport for 802.11 packet injection via bpf
Sam Leffler [Wed, 26 Jul 2006 03:30:50 +0000 (03:30 +0000)]
support for 802.11 packet injection via bpf

Reviewed by: arch@
MFC after: 1 month

18 years agoadd support for 802.11 packet injection via bpf
Sam Leffler [Wed, 26 Jul 2006 03:15:16 +0000 (03:15 +0000)]
add support for 802.11 packet injection via bpf

Together with: Andrea Bittau <a.bittau@cs.ucl.ac.uk>
Reviewed by: arch@
MFC after: 1 month

18 years agoFix braino: The cl_range field should not hold the shifted I/O
Marcel Moolenaar [Wed, 26 Jul 2006 03:10:01 +0000 (03:10 +0000)]
Fix braino: The cl_range field should not hold the shifted I/O
space range per channel, but rather the unshifted range. The
shifting depends on the bus. The hardcoded shift was specific
to the SBus on sparc64. The shifted range is now determined at
run-time. This fixes the mac-io attachment.

18 years agoset default beacon miss threshold to 10 beacons
Sam Leffler [Wed, 26 Jul 2006 03:09:32 +0000 (03:09 +0000)]
set default beacon miss threshold to 10 beacons

Submitted by: Henrik Brix Andersen <henrik@brixandersen.dk>
MFC after: 2 weeks

18 years agoadd beacon miss threshold control
Sam Leffler [Wed, 26 Jul 2006 03:08:45 +0000 (03:08 +0000)]
add beacon miss threshold control

Submitted by: Henrik Brix Andersen <henrik@brixandersen.dk>
MFC after: 2 weeks

18 years agoadd IEEE80211_IOC_BMISSTHRESHOLD for managing the beacon miss
Sam Leffler [Wed, 26 Jul 2006 03:07:36 +0000 (03:07 +0000)]
add IEEE80211_IOC_BMISSTHRESHOLD for managing the beacon miss
threshold

Submitted by: Henrik Brix Andersen <henrik@brixandersen.dk>
MFC after: 2 weeks

18 years agoo move min/max beacon interval and dtim period to public location
Sam Leffler [Wed, 26 Jul 2006 03:05:34 +0000 (03:05 +0000)]
o move min/max beacon interval and dtim period to public location
o add min/max beacon miss threshold settings
o delete IEEE80211_SWBMISS_THRESHOLD, it was never used

MFC after: 2 weeks

18 years agoUse virtual_avail instead of freemempos as the starting point of the available
Olivier Houchard [Tue, 25 Jul 2006 23:07:35 +0000 (23:07 +0000)]
Use virtual_avail instead of freemempos as the starting point of the available
physical memory, as the vm uses the memory between freemempos and
virtual_avail.

MFC After: 3 days

18 years agoRev. 1.44 of this file didn't introduce a right solution,
Yaroslav Tykhiy [Tue, 25 Jul 2006 22:39:57 +0000 (22:39 +0000)]
Rev. 1.44 of this file didn't introduce a right solution,
but we don't seem to have one yet, so just add an XXX comment on
passing rux_runtime to bintime2timeval() wrongly.

Spotted by: gcc(1) (warning)

18 years agoFix 32-bit integer math on 64-bit processor. Just use int32_t(!) instead
Jung-uk Kim [Tue, 25 Jul 2006 22:20:05 +0000 (22:20 +0000)]
Fix 32-bit integer math on 64-bit processor.  Just use int32_t(!) instead
of incorrect and machine-dependent integer math.  Now we can encrypt a file
on an i386 and decrypt it on an amd64, and vice versa.

Submitted by: Andrew Heybey < ath at niksun dot com >

18 years agoMFC noted: minidumps.
Bruce A. Mah [Tue, 25 Jul 2006 21:48:28 +0000 (21:48 +0000)]
MFC noted: minidumps.

18 years agoNew release notes: acpi_thermal(4) temperature overrides, interface
Bruce A. Mah [Tue, 25 Jul 2006 21:30:58 +0000 (21:30 +0000)]
New release notes:  acpi_thermal(4) temperature overrides, interface
groups, mount(8) late/-l, FILE 4.17.

Modified release notes: Improved padlock(4) crypto support (+MFC),
OpenBSM 1.0alpha7.

18 years agoRemove redundant check committed by accident.
Pawel Jakub Dawidek [Tue, 25 Jul 2006 20:00:55 +0000 (20:00 +0000)]
Remove redundant check committed by accident.

18 years agoAvoid memory allocations when the given address is already 16 bytes aligned.
Pawel Jakub Dawidek [Tue, 25 Jul 2006 19:32:58 +0000 (19:32 +0000)]
Avoid memory allocations when the given address is already 16 bytes aligned.
Such an address can be used directly in padlock's AES.
This improves speed of geli(8) significantly:

# sysctl kern.geom.zero.clear=0
# geli onetime -s 4096 gzero
# dd if=/dev/gzero.eli of=/dev/null bs=1m count=1000

Before: 113MB/s
After: 203MB/s

BTW. If sector size is set to 128kB, I can read at 276MB/s :)

18 years agoModify PADLOCK_ALIGN() macro, so when the given address is already 16 bytes
Pawel Jakub Dawidek [Tue, 25 Jul 2006 19:06:54 +0000 (19:06 +0000)]
Modify PADLOCK_ALIGN() macro, so when the given address is already 16 bytes
aligned, it will be used directly, not 'address + 16'.

18 years agoStyle fixes.
Pawel Jakub Dawidek [Tue, 25 Jul 2006 19:04:26 +0000 (19:04 +0000)]
Style fixes.

18 years agoDe-uglify messages from the ipfw script.
Yaroslav Tykhiy [Tue, 25 Jul 2006 17:28:18 +0000 (17:28 +0000)]
De-uglify messages from the ipfw script.

18 years agoUse more rc.subr(8) features.
Yaroslav Tykhiy [Tue, 25 Jul 2006 17:25:44 +0000 (17:25 +0000)]
Use more rc.subr(8) features.
Skip useless work when ${natd_interface} is unset.
Double quote user-supplied vars unless there is a reason not to.

18 years agoAvoid extra runs of test(1) by using its built-in logical operations.
Yaroslav Tykhiy [Tue, 25 Jul 2006 17:20:22 +0000 (17:20 +0000)]
Avoid extra runs of test(1) by using its built-in logical operations.

18 years agoDon't load geom_md.ko if there is no need to.
Pawel Jakub Dawidek [Tue, 25 Jul 2006 17:19:00 +0000 (17:19 +0000)]
Don't load geom_md.ko if there is no need to.

18 years agoSync comments around _doit with the code.
Yaroslav Tykhiy [Tue, 25 Jul 2006 17:16:48 +0000 (17:16 +0000)]
Sync comments around _doit with the code.

18 years agoWe notify of failures with err or warn.
Yaroslav Tykhiy [Tue, 25 Jul 2006 17:14:38 +0000 (17:14 +0000)]
We notify of failures with err or warn.
Messages should end in full stop unless
that can lead to confusion.

18 years agoAdd diagnostics to load_kld().
Yaroslav Tykhiy [Tue, 25 Jul 2006 17:10:35 +0000 (17:10 +0000)]
Add diagnostics to load_kld().

18 years agoNew release notes: snd_emu10kx(4), nfe(4), stge(4), enc(4) (+MFC),
Bruce A. Mah [Tue, 25 Jul 2006 16:01:46 +0000 (16:01 +0000)]
New release notes:  snd_emu10kx(4), nfe(4), stge(4), enc(4) (+MFC),
sysinstall(8) title (+MFC).

18 years agoIn udf_find_partmaps(), when we find a type 1 partition map, we have to
Yaroslav Tykhiy [Tue, 25 Jul 2006 14:15:50 +0000 (14:15 +0000)]
In udf_find_partmaps(), when we find a type 1 partition map, we have to
skip the actual type 1 length (6 bytes). With this change, it is now possible
to correctly spot the VAT partition map in certain discs.

Submitted by: Pedro Martelletto <pedro@ambientworks.net>

18 years agoo Add NetBSD 3.0.1 and DragonFlyBSD 1.6.0.
Maxim Konovalov [Tue, 25 Jul 2006 13:31:00 +0000 (13:31 +0000)]
o Add NetBSD 3.0.1 and DragonFlyBSD 1.6.0.

18 years ago1. Don't override underscore version of aio_suspend(), system(),
David Xu [Tue, 25 Jul 2006 12:50:05 +0000 (12:50 +0000)]
1. Don't override underscore version of aio_suspend(), system(),
   wait(), waitpid() and usleep(), they are internal versions and
   should not be cancellation points.
2. Make wait3() as a cancellation point.
3. Move raise() and pause() into file thr_sig.c.
4. Add functions _sigsuspend, _sigwait, _sigtimedwait and _sigwaitinfo,
   remove SIGCANCEL bit in wait-set for those functions, the signal is
   used internally to implement thread cancellation.

18 years agoSpecify correct argument range for tag/untag keywords.
Oleg Bulyzhin [Tue, 25 Jul 2006 11:07:31 +0000 (11:07 +0000)]
Specify correct argument range for tag/untag keywords.

Approved by: glebius (mentor)

18 years agosingular -> plural and a typo fix.
Christian Brueffer [Tue, 25 Jul 2006 05:20:06 +0000 (05:20 +0000)]
singular -> plural and a typo fix.

18 years agoAutogenerate hardware notes for stge(4).
Christian Brueffer [Tue, 25 Jul 2006 05:13:53 +0000 (05:13 +0000)]
Autogenerate hardware notes for stge(4).

18 years agoFix printing of negative decimal values in Kelvin to Celsius conversion.
Nate Lawson [Tue, 25 Jul 2006 02:28:43 +0000 (02:28 +0000)]
Fix printing of negative decimal values in Kelvin to Celsius conversion.

MFC after: 3 days

18 years agoAdd support for overriding the values for _CRT, _HOT, and _PSV via sysctl.
Nate Lawson [Tue, 25 Jul 2006 02:27:38 +0000 (02:27 +0000)]
Add support for overriding the values for _CRT, _HOT, and _PSV via sysctl.
Prevent casual modification by requiring hw.acpi.thermal.user_override to
be set first.  Fix printing of negative temperatures in the K->C conversion.
Document the remaining thermal sysctls.

MFC after: 3 days

18 years agoAdd uipc_sockbuf.c to standard files list; accidentally missed in earlier
Robert Watson [Tue, 25 Jul 2006 02:15:28 +0000 (02:15 +0000)]
Add uipc_sockbuf.c to standard files list; accidentally missed in earlier
commit.

Spotted by: tinderbox

18 years agoCleanup.
Kevin Lo [Tue, 25 Jul 2006 01:08:41 +0000 (01:08 +0000)]
Cleanup.
Approved by: cognet

18 years agoAdd stge(4) to the list of drivers supported by GENERIC kernel.
Pyun YongHyeon [Tue, 25 Jul 2006 01:06:32 +0000 (01:06 +0000)]
Add stge(4) to the list of drivers supported by GENERIC kernel.

18 years agoAdd stge(4) to the list of supported network interface.
Pyun YongHyeon [Tue, 25 Jul 2006 01:03:55 +0000 (01:03 +0000)]
Add stge(4) to the list of supported network interface.

18 years agoAdd an entry for the stge(4) module.
Pyun YongHyeon [Tue, 25 Jul 2006 01:02:22 +0000 (01:02 +0000)]
Add an entry for the stge(4) module.
While I'm here remove a stale wx(4) entry which was removed 4 years,
9 months ago.

18 years agobus_alloc_resource_any is actually defined in the
Matt Jacob [Tue, 25 Jul 2006 01:01:09 +0000 (01:01 +0000)]
bus_alloc_resource_any is actually defined in the
RELENG_4 branch, so there's no need to have a compilation
difference here any more.

18 years agoWhen probing to attach the CAM functionality, check against
Matt Jacob [Tue, 25 Jul 2006 00:59:54 +0000 (00:59 +0000)]
When probing to attach the CAM functionality, check against
desired role configuration instead of existing role. This gets
us out of the mess where we configured a role of NONE (or were
LAN only, for example), but didn't continue to attach the CAM
module (because we had neither initiator nor target role
set). Unfortunately, the code that rewrites NVRAM to match
actual to desired role only works if the CAM module attaches.

MFC after: 2 weeks

18 years agoAdd stge(4) to the list of device drivers use the miibus interface.
Pyun YongHyeon [Tue, 25 Jul 2006 00:59:39 +0000 (00:59 +0000)]
Add stge(4) to the list of device drivers use the miibus interface.

18 years agoAdd stge(4) to the list of drivers supporting ALTQ.
Pyun YongHyeon [Tue, 25 Jul 2006 00:58:00 +0000 (00:58 +0000)]
Add stge(4) to the list of drivers supporting ALTQ.

18 years agoAdd stge(4) to the list of devices supporting full VLAN processing
Pyun YongHyeon [Tue, 25 Jul 2006 00:56:47 +0000 (00:56 +0000)]
Add stge(4) to the list of devices supporting full VLAN processing
in the hardware.

18 years agoAdd stge(4) to the list of devices supporting polling.
Pyun YongHyeon [Tue, 25 Jul 2006 00:54:58 +0000 (00:54 +0000)]
Add stge(4) to the list of devices supporting polling.

18 years agoHook up state(4) to the build.
Pyun YongHyeon [Tue, 25 Jul 2006 00:53:14 +0000 (00:53 +0000)]
Hook up state(4) to the build.

18 years agoAdd a man page for stge(4).
Pyun YongHyeon [Tue, 25 Jul 2006 00:51:38 +0000 (00:51 +0000)]
Add a man page for stge(4).

18 years agoHook up stge(4) to the build.
Pyun YongHyeon [Tue, 25 Jul 2006 00:45:55 +0000 (00:45 +0000)]
Hook up stge(4) to the build.

18 years agoAdd stge(4), a driver for Sundance/Tamarack TC9021 Gigabit Ethernet
Pyun YongHyeon [Tue, 25 Jul 2006 00:37:09 +0000 (00:37 +0000)]
Add stge(4), a driver for Sundance/Tamarack TC9021 Gigabit Ethernet
controller ported from NetBSD. It supports the following Gigabit
Ethernet adapters.
o Antares Microsystems Gigabit Ethernet
o ASUS NX1101 Gigabit Ethernet
o D-Link DL-4000 Gigabit Ethernet
o IC Plus IP1000A Gigabit Ethernet
o Sundance ST-2021 Gigabit Ethernet
o Sundance ST-2023 Gigabit Ethernet
o Sundance TC9021 Gigabit Ethernet
o Tamarack TC9021 Gigabit Ethernet
The IP1000A Gigabit Ethernet is also found on some motherboards
(LOM) from ABIT.

Unlike NetBSD stge(4) it does not require promiscuous mode operation
to revice packet and it supports all hardware features(TCP/UDP/IP
checksum offload, VLAN tag stripping/insertion features and JUMBO
frame) and polling(4).
Due to lack of hardware, hardwares that have TBI trantransceivers
were not tested at all.

Special thanks to wpaul who provided valauble datasheet for the
controller and helped to debug jumbo frame related issues. Whitout
his datasheet I would have spent many hours to debug this chip.

Tested on: i386, sparc64

18 years agoRevert previous commit. Spinlocks hold interrupts disabled, so
Marcel Moolenaar [Tue, 25 Jul 2006 00:23:54 +0000 (00:23 +0000)]
Revert previous commit. Spinlocks hold interrupts disabled, so
preemption is not possible.

Pointed out by: jhb@

18 years agoConnect gentbi, ip1000phy to the build.
Pyun YongHyeon [Tue, 25 Jul 2006 00:20:11 +0000 (00:20 +0000)]
Connect gentbi, ip1000phy to the build.

18 years agoAdd ip1000 PHY driver for IC Plus IP1000A integrated PHY.
Pyun YongHyeon [Tue, 25 Jul 2006 00:16:09 +0000 (00:16 +0000)]
Add ip1000 PHY driver for IC Plus IP1000A integrated PHY.

18 years agoAdd IC Plus IP1000A integrated PHY id.
Pyun YongHyeon [Tue, 25 Jul 2006 00:14:00 +0000 (00:14 +0000)]
Add IC Plus IP1000A integrated PHY id.

18 years agoAdd gentbi, a generic TBI(teb-bit interface) PHY driver ported
Pyun YongHyeon [Tue, 25 Jul 2006 00:08:32 +0000 (00:08 +0000)]
Add gentbi, a generic TBI(teb-bit interface) PHY driver ported
from NetBSD.

18 years agoIf we have multiple interrupt resources, like for Z8530 clones on the
Marcel Moolenaar [Mon, 24 Jul 2006 22:25:16 +0000 (22:25 +0000)]
If we have multiple interrupt resources, like for Z8530 clones on the
mac-io bus, we cannot setup FAST interrupt handlers. This because we
use spinlocks to protect the hardware and all interrupt resources are
assigned the same interrupt handler. When the interrupt handler is
invoked for interrupt X, it could be preempted for interrupt Y while
it was holding the lock (where X and Y are the interrupt resources
corresponding a single instance of this driver). This is a deadlock.
By only using a MPSAFE handler in that case we prevent preemption.

18 years agoOnly use -mno-apcs-frame if DDB is not in the kernel, as it prevent the
Olivier Houchard [Mon, 24 Jul 2006 22:09:47 +0000 (22:09 +0000)]
Only use -mno-apcs-frame if DDB is not in the kernel, as it prevent the
backtraces from working.

MFC After: 3 days

18 years agoAdd a few more devices to the supported list. Specifically, the PHAROS and
Warner Losh [Mon, 24 Jul 2006 19:47:00 +0000 (19:47 +0000)]
Add a few more devices to the supported list.  Specifically, the PHAROS and
the silly dongly I just bought at Radio Shack.

18 years agoRemove non-socket buffer routines from uipc_sockbuf.c, and socket buffer
Robert Watson [Mon, 24 Jul 2006 16:21:31 +0000 (16:21 +0000)]
Remove non-socket buffer routines from uipc_sockbuf.c, and socket buffer
specific routines from uipc_socket2.c following repo-copy.  We might
rethink the location of one or two at some point, but the division was
relatively clean.  uipc_sockbuf.c is now the home of routines that
manipulate socket buffers.