Revision b03c720211ea5ec027ad85f1e147e3d8122429ba authored by Pyun YongHyeon on 14 January 2010, 21:54:20 UTC, committed by Pyun YongHyeon on 14 January 2010, 21:54:20 UTC
  Add bus_dma(9) and endianness support to ste(4).
   o Sorted includes and added missing header files.
   o Added basic endianness support. In theory ste(4) should work on
     any architectures.
   o Remove the use of contigmalloc(9), contigfree(9) and vtophys(9).
   o Added 8 byte alignment limitation of TX/RX descriptor.
   o Added 1 byte alignment requirement for TX/RX buffers.
   o ste(4) controllers does not support DAC. Limit DMA address space
     to be within 32bit address.
   o Added spare DMA map to gracefully recover from DMA map failure.
   o Removed dead code for checking STE_RXSTAT_DMADONE bit. The bit
     was already checked in each iteration of loop so it can't be true.
   o Added second argument count to ste_rxeof(). It is used to limit
     number of iterations done in RX handler. ATM polling is the only
     consumer.
   o Removed ste_rxeoc() which was added to address RX stuck issue
     (cvs rev 1.66). Unlike TX descriptors, ST201 supports chaining
     descriptors to form a ring for RX descriptors. If RX descriptor
     chaining is not supported it's possible for controller to stop
     receiving incoming frames once controller pass the end of RX
     descriptor which in turn requires driver post new RX
     descriptors to receive more frames. For TX descriptors which
     does not support chaning, we exactly do manual chaining in
     driver by concatenating new descriptors to the end of previous
     TX chain.
     Maybe the workaround was borrowed from other drivers that does
     not support RX descriptor chaining, which is not valid for ST201
     controllers. I still have no idea how this address RX stuck
     issue and I can't reproduce the RX stuck issue on DFE-550TX
     controller.
   o Removed hw.ste_rxsyncs sysctl as the workaround was removed.
   o TX/RX side bus_dmamap_load_mbuf_sg(9) support.
   o Reimplemented optimized ste_encap().
   o Simplified TX logic of ste_start_locked().
   o Added comments for TFD/RFD requirements.
   o Increased number of RX descriptors to 128 from 64. 128 gave much
     better performance than 64 under high network loads.
1 parent d982c88
Raw File
termcap.small
# Copyright (c) 1980, 1985, 1989 The Regents of the University of California.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
#    must display the following acknowledgement:
#	This product includes software developed by the University of
#	California, Berkeley and its contributors.
# 4. Neither the name of the University nor the names of its contributors
#    may be used to endorse or promote products derived from this software
#    without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
#	@(#)termcap.src	5.88 (Berkeley) 4/30/91
# $FreeBSD$
#
# for syscons
# common entry without semigraphics
cons25w|ansiw|ansi80x25-raw:\
	:am:bs:NP:ms:pt:AX:eo:bw:ut:km:\
	:co#80:li#25:pa#64:Co#8:it#8:\
	:al=\E[L:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:\
	:dc=\E[P:dl=\E[M:do=\E[B:bt=\E[Z:ho=\E[H:ic=\E[@:cb=\E[1K:\
	:nd=\E[C:rs=\Ec:so=\E[7m:se=\E[27m:up=\E[A:cr=^M:ta=^I:\
	:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:sc=\E7:rc=\E8:\
	:k1=\E[M:k2=\E[N:k3=\E[O:k4=\E[P:k5=\E[Q:k6=\E[R:k7=\E[S:k8=\E[T:\
	:k9=\E[U:k;=\E[V:F1=\E[W:F2=\E[X:K2=\E[E:nw=\E[E:ec=\E[%dX:\
	:kb=^H:kh=\E[H:ku=\E[A:kd=\E[B:kl=\E[D:kr=\E[C:le=^H:sf=\E[S:sr=\E[T:\
	:kN=\E[G:kP=\E[I:@7=\E[F:kI=\E[L:kD=\177:kB=\E[Z:\
	:IC=\E[%d@:DC=\E[%dP:SF=\E[%dS:SR=\E[%dT:AL=\E[%dL:DL=\E[%dM:\
	:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:cv=\E[%i%dd:ch=\E[%i%d`:\
	:mb=\E[5m:md=\E[1m:mr=\E[7m:me=\E[m:bl=^G:\
	:ve=\E[=S:vi=\E[=1S:vs=\E[=2S:
# CP437 FreeBSD console with ACS support
cons25|ansis|ansi80x25:\
	:ac=l\332m\300k\277j\331u\264t\303v\301w\302q\304x\263n\305`^Da\260f\370g\361~\371.^Y-^Xh\261i^U0\333y\363z\362:\
	:tc=cons25w:
cons25-m|ansis-mono|ansi80x25-mono:\
	:pa@:Co@:AF@:AB@:AX@:op@:us=\E[4m:ue=\E[24m:tc=cons25:
cons30|ansi80x30:\
	:li#30:tc=cons25:
cons30-m|ansi80x30-mono:\
	:li#30:tc=cons25-m:
cons43|ansi80x43:\
	:li#43:tc=cons25:
cons43-m|ansi80x43-mono:\
	:li#43:tc=cons25-m:
cons50|ansil|ansi80x50:\
	:li#50:tc=cons25:
cons50-m|ansil-mono|ansi80x50-mono:\
	:li#50:tc=cons25-m:
cons60|ansi80x60:\
	:li#60:tc=cons25:
cons60-m|ansi80x60-mono:\
	:li#60:tc=cons25-m:
# Syscons console with 132 characters (VESA modes)
cons25-w|ansi132x25:\
	:co#132:tc=cons25:
cons30-w|ansi132x30:\
	:co#132:tc=cons30:
cons43-w|ansi132x43:\
	:co#132:tc=cons43:
cons50-w|ansil-w|ansi132x50:\
	:co#132:tc=cons50:
cons60-w|ansi132x60:\
	:co#132:tc=cons60:
# KOI8-R/KOI8-U FreeBSD console with ACS support
cons25r|cons25u|pc3r|ibmpc3r|cons25-koi8:\
	:ac=q\200x\201m\204v\211j\205t\206n\212u\207l\202w\210k\203y\230z\231f\234~\225a\220h\2210\215:\
	:tc=cons25w:
cons25r-m|cons25u-m|pc3r-m|ibmpc3r-mono|cons25-koi8-mono:\
	:pa@:Co@:AF@:AB@:AX@:op@:us=\E[4m:ue=\E[24m:tc=cons25r:
cons30r|cons30u|cons30-koi8:\
	:li#30:tc=cons25r:
cons30r-m|cons30u-m|cons30-koi8-mono:\
	:li#30:tc=cons25r-m:
cons43r|cons43u|cons43-koi8:\
	:li#43:tc=cons25r:
cons43r-m|cons43u-m|cons43-koi8-mono:\
	:li#43:tc=cons25r-m:
cons50r|cons50u|cons50-koi8:\
	:li#50:tc=cons25r:
cons50r-m|cons50u-m|cons50-koi8-mono:\
	:li#50:tc=cons25r-m:
cons60r|cons60u|cons60-koi8:\
	:li#60:tc=cons25r:
cons60r-m|cons60u-m|cons60-koi8-mono:\
	:li#60:tc=cons25r-m:
# Syscons console with 90 characters (VGA modes)
# KOI8-R/KOI8-U FreeBSD console with ACS support.
cons25r-v|cons25u-v|pc3r-v|ibmpc3r-vga|cons25-koi8-vga:\
	:co#90:tc=cons25r:
cons25r-mv|cons25u-mv|pc3r-mv|ibmpc3r-monovga|cons25-koi8-monovga:\
	:co#90:tc=cons25r-m:
cons30r-v|cons30u-v|cons30-koi8-vga:\
	:co#90:tc=cons30r:
cons30r-mv|cons30u-mv|cons30-koi8-monovga:\
	:co#90:tc=cons30r-m:
cons43r-v|cons43u-v|cons43-koi8-vga:\
	:co#90:tc=cons43r:
cons43r-mv|cons43u-mv|cons43-koi8-monovga:\
	:co#90:tc=cons43r-m:
cons50r-v|cons50u-v|cons50-koi8-vga:\
	:co#90:tc=cons50r:
cons50r-mv|cons50u-mv|cons50-koi8-monovga:\
	:co#90:tc=cons50r-m:
cons60r-v|cons60u-v|cons60-koi8-vga:\
	:co#90:tc=cons60r:
cons60r-mv|cons60u-mv|cons60-koi8-monovga:\
	:co#90:tc=cons60r-m:
# ISO 8859-2 FreeBSD console with ACS support
cons25l2|cons25-iso8859-2:\
	:ac=f\260i\247:\
	:tc=cons25w:
cons25l2-m|cons25-iso8859-2-mono:\
	:pa@:Co@:AF@:AB@:AX@:op@:us=\E[4m:ue=\E[24m:tc=cons25l2:
cons30l2|cons30-iso8859-2:\
	:li#30:tc=cons25l2:
cons30l2-m|cons30-iso8859-2-mono:\
	:li#30:tc=cons25l2-m:
cons43l2|cons43-iso8859-2:\
	:li#43:tc=cons25l2:
cons43l2-m|cons43-iso8859-2-mono:\
	:li#43:tc=cons25l2-m:
cons50l2|cons50-iso8859-2:\
	:li#50:tc=cons25l2:
cons50l2-m|cons50-iso8859-2-mono:\
	:li#50:tc=cons25l2-m:
cons60l2|cons60-iso8859-2:\
	:li#60:tc=cons25l2:
cons60l2-m|cons60-iso8859-2-mono:\
	:li#60:tc=cons25l2-m:
# ISO 8859-1 FreeBSD console with ACS support
cons25l1|cons25-iso8859-1:\
	:ac=f\260g\261}\243+\253,\273i\247:\
	:tc=cons25w:
cons25l1-m|cons25-iso8859-1-mono:\
	:pa@:Co@:AF@:AB@:AX@:op@:us=\E[4m:ue=\E[24m:tc=cons25l1:
cons30l1|cons30-iso8859-1:\
	:li#30:tc=cons25l1:
cons30l1-m|cons30-iso8859-1-mono:\
	:li#30:tc=cons25l1-m:
cons43l1|cons43-iso8859-1:\
	:li#43:tc=cons25l1:
cons43l1-m|cons43-iso8859-1-mono:\
	:li#43:tc=cons25l1-m:
cons50l1|cons50-iso8859-1:\
	:li#50:tc=cons25l1:
cons50l1-m|cons50-iso8859-1-mono:\
	:li#50:tc=cons25l1-m:
cons60l1|cons60-iso8859-1:\
	:li#60:tc=cons25l1:
cons60l1-m|cons60-iso8859-1-mono:\
	:li#60:tc=cons25l1-m:
# 132x25 ISO 8859-1 FreeBSD console
cons25l1-w|:cons25w-iso8859-1:\
	:co#132:tc=cons25l1:
cons30l1-w|cons30w-iso8859-1:\
	:co#132:tc=cons30l1:
cons43l1-w|cons43w-iso8859-1:\
	:co#132:tc=cons43l1:
cons50l1-w|cons50w-iso8859-1:\
	:co#132:tc=cons50l1:
cons60l1-w|cons60w-iso8859-1:\
	:co#132:tc=cons60l1:
# ISO 8859-7 FreeBSD console with ACS support
cons25l7|cons25-iso8859-7:\
	:ac=f\260g\261{\360}\243+\253,\273i\247:\
	:tc=cons25w:
cons25l7-m|cons25-iso8859-7-mono:\
	:pa@:Co@:AF@:AB@:AX@:op@:us=\E[4m:ue=\E[24m:tc=cons25l7:
cons30l7|cons30-iso8859-7:\
	:li#30:tc=cons25l7:
cons30l7-m|cons30-iso8859-7-mono:\
	:li#30:tc=cons25l7-m:
cons43l7|cons43-iso8859-7:\
	:li#43:tc=cons25l7:
cons43l7-m|cons43-iso8859-7-mono:\
	:li#43:tc=cons25l7-m:
cons50l7|cons50-iso8859-7:\
	:li#50:tc=cons25l7:
cons50l7-m|cons50-iso8859-7-mono:\
	:li#50:tc=cons25l7-m:
cons60l7|cons60-iso8859-7:\
	:li#60:tc=cons25l7:
cons60l7-m|cons60-iso8859-7-mono:\
	:li#60:tc=cons25l7-m:
#
dosansi|ANSI.SYS standard crt:\
	:am:bs:ce=\E[K:cl=\E[2J:cm=\E[%i%d;%dH:co#80:\
	:do=\E[B:li#25:mi:nd=\E[C:\
	:se=\E[m:so=\E[7m:up=\E[A:us=\E[4m:ue=\E[m:\
	:md=\E[1m:mr=\E[7m:mb=\E[5m:me=\E[m:\
	:kh=\EG:kb=^h:ku=\EH:kd=\EP:kl=\EK:kr=\EM:\
	:k1=\E;:k2=\E<:k3=\E=:k4=\E>:k5=\E?:\
	:k6=\E@:k7=\EA:k8=\EB:k9=\EC:k0=\ED:

# The following is a version of the ibm-pc entry distributed with PC/IX,
# (Interactive Systems' System 3 for the Big Blue), modified by Richard
# McIntosh at UCB/CSM.  The :pt: and :uc: have been removed from the original,
# (the former is untrue, and the latter failed under UCB/man); standout and
# underline modes have been added.  Note: this entry describes the "native"
# capabilities of the PC monochrome display, without ANY emulation; most
# communications packages (but NOT PC/IX connect) do some kind of emulation.
pc|ibmpc|ibm pc PC/IX:\
	:li#24:co#80:am:bs:bw:eo:\
	:cd=\E[J:ce=\E[K:cl=\Ec:cm=\E[%i%2;%2H:do=\E[B:ho=\E[;H:\
	:nd=\E[C:up=\E[A:so=\E[7m:se=\E[0m:us=\E[4m:ue=\E[0m:
pc3|ibmpc3|IBM PC 386BSD Console:\
	:Co#8:\
	:DO=\E[%dB:\
	:F1=\E[W:\
	:F2=\E[X:\
	:K1=\E[H:\
	:K2=\E[I:\
	:K3=\E[E:\
	:K4=\E[F:\
	:K5=\E[G:\
	:LE=\E[%dD:\
	:RI=\E[%dC:\
	:AB=\E[1;%dx:\
	:AF=\E[2;%dx:\
	:UP=\E[%dA:\
	:ac=l\332m\300k\277j\331u\264t\303v\301w\302q\304x\263n\305`^Da\260f\370g\361~\371.^Y-^Xh\261i^U0\333y\363z\362:\
	:am:\
	:bl=^G:\
	:bs:\
	:cb=\E[1K:\
	:cd=\E[J:\
	:ce=\E[K:\
	:cl=\E[H\E[J:\
	:cm=\E[%i%d;%dH:\
	:co#80:\
	:cr=^M:\
	:do=\E[B:\
	:ho=\E[H:\
	:is=\E[m:\
	:it#8:\
	:k;=\E[V:\
	:k1=\E[M:\
	:k2=\E[N:\
	:k3=\E[O:\
	:k4=\E[P:\
	:k5=\E[Q:\
	:k6=\E[R:\
	:k7=\E[S:\
	:k8=\E[T:\
	:k9=\E[U:\
	:kD=\177:\
	:@7=\E[F:\
	:kN=\E[G:\
	:kP=\E[I:\
	:kb=\177:\
	:kd=\E[B:\
	:kh=\E[H:\
	:kl=\E[D:\
	:kr=\E[C:\
	:ku=\E[A:\
	:le=^H:\
	:li#25:\
	:ms:\
	:nd=\E[C:\
	:op=\E[x:\
	:pa#64:\
	:rs=\E[m:\
	:se=\E[m:\
	:sf=\E[S:\
	:so=\E[7;1r\E[7m:\
	:sr=\E[T:\
	:ta=^I:\
	:te=\E[m:\
	:ti=\E[m:\
	:up=\E[A:\
	:ut:

# $XFree86: xc/programs/xterm/termcap,v 3.28 2001/01/17 23:46:39 dawes Exp $
#
xterm-xfree86|XFree86 xterm:\
	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\
	:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:\
	:k9=\E[20~:k;=\E[21~:F1=\E[23~:F2=\E[24~:\
	:@7=\EOF:@8=\EOM:kI=\E[2~:\
	:kh=\EOH:kP=\E[5~:kN=\E[6~:\
	:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:Km=\E[M:tc=xterm-basic:
#
# This chunk is used for building the VT220/Sun/PC keyboard variants.
xterm-basic|xterm common (XFree86):\
	:li#24:co#80:am:kn#12:km:mi:ms:xn:AX:bl=^G:\
	:is=\E[!p\E[?3;4l\E[4l\E>:rs=\E[!p\E[?3;4l\E[4l\E>:le=^H:\
	:AL=\E[%dL:DL=\E[%dM:DC=\E[%dP:al=\E[L:dc=\E[P:dl=\E[M:\
	:UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:\
	:ho=\E[H:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cs=\E[%i%d;%dr:\
	:im=\E[4h:ei=\E[4l:ks=\E[?1h\E=:ke=\E[?1l\E>:kD=\E[3~:kb=^H:\
	:sf=\n:sr=\EM:st=\EH:ct=\E[3g:sc=\E7:rc=\E8:\
	:eA=\E(B\E)0:as=\E(0:ae=\E(B:ml=\El:mu=\Em:up=\E[A:nd=\E[C:\
	:md=\E[1m:me=\E[m:mr=\E[7m:so=\E[7m:se=\E[27m:us=\E[4m:ue=\E[24m:\
	:ti=\E[?1049h:te=\E[?1049l:vi=\E[?25l:ve=\E[?25h:\
	:ut:Co#8:pa#64:op=\E[39;49m:AB=\E[4%dm:AF=\E[3%dm:\
#
# This is the only entry which you should have to customize, since "xterm"
# is widely used for a variety of incompatible terminal emulations including
# color_xterm and rxvt.
xterm|xterm-color|X11 terminal emulator:\
	:ti@:te@:tc=xterm-xfree86:
back to top