freebsd-dev/sys/powerpc/conf/dpaa/DPAA
Justin Hibbits 0aeed3e993 Add support for the Freescale dTSEC DPAA-based ethernet controller.
Freescale's QorIQ line includes a new ethernet controller, based on their
Datapath Acceleration Architecture (DPAA).  This uses a combination of a Frame
manager, Buffer manager, and Queue manager to improve performance across all
interfaces by being able to pass data directly between hardware acceleration
interfaces.

As part of this import, Freescale's Netcomm Software (ncsw) driver is imported.
This was an attempt by Freescale to create an OS-agnostic sub-driver for
managing the hardware, using shims to interface to the OS-specific APIs.  This
work was abandoned, and Freescale's primary work is in the Linux driver (dual
BSD/GPL license).  Hence, this was imported directly to sys/contrib, rather than
going through the vendor area.  Going forward, FreeBSD-specific changes may be
made to the ncsw code, diverging from the upstream in potentially incompatible
ways.  An alternative could be to import the Linux driver itself, using the
linuxKPI layer, as that would maintain parity with the vendor-maintained driver.
However, the Linux driver has not been evaluated for reliability yet, and may
have issues with the import, whereas the ncsw-based driver in this commit was
completed by Semihalf 4 years ago, and is very stable.

Other SoC modules based on DPAA, which could be added in the future:
* Security and Encryption engine (SEC4.x, SEC5.x)
* RAID engine

Additional work to be done:
* Implement polling mode
* Test vlan support
* Add support for the Pattern Matching Engine, which can do regular expression
  matching on packets.

This driver has been tested on the P5020 QorIQ SoC.  Others listed in the
dtsec(4) manual page are expected to work as the same DPAA engine is included in
all.

Obtained from:	Semihalf
Relnotes:	Yes
Sponsored by:	Alex Perez/Inertial Computing
2016-02-29 03:38:00 +00:00

102 lines
2.4 KiB
Plaintext

#
# Common kernel config for Freescale QorIQ DPAA development boards like the
# P2041RDB, P3041DS and P5020DS.
#
# This is not standalone kernel config. Use it only for including
# purposes.
#
# $FreeBSD$
cpu BOOKE
cpu BOOKE_E500
machine powerpc powerpc
#makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols
makeoptions WERROR="-Werror -Wno-format -Wno-redundant-decls"
makeoptions NO_MODULES=yes
# Platform support
options QORIQ_DPAA #Freescale SoC family
options SMP #Symmetric Multi Processing
#options SCHED_4BSD #4BSD scheduler
options INET #InterNETworking
options INET6 #IPv6 communications protocols
options FFS #Berkeley Fast Filesystem
options NFSCL #New Network Filesystem Client
options SOFTUPDATES #Enable FFS soft updates support
options PROCFS #Process filesystem (requires PSEUDOFS)
options PSEUDOFS #Pseudo-filesystem framework
options GEOM_PART_GPT #GUID Partition Tables.
options GEOM_LABEL
options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!]
options SYSVSHM #SYSV-style shared memory
options SYSVMSG #SYSV-style message queues
options SYSVSEM #SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions
options NO_SWAPPING
options KDB #Enable the kernel debugger
options DDB #Support DDB
options GDB
options ALT_BREAK_TO_DEBUGGER
options BREAK_TO_DEBUGGER
options DIAGNOSTIC
options INVARIANTS #Enable calls of extra sanity checking
options INVARIANT_SUPPORT #Extra sanity checks of internal structures, required by INVARIANTS
options KTR
options KTR_COMPILE=0xffffffff
options KTR_MASK=KTR_PMAP
options KTR_ENTRIES=8192
options WITNESS #Enable checks to detect deadlocks and cycles
#options WITNESS_KDB
# RamFS Root
#options GEOM_UZIP
#options MD_ROOT
#options MD_ROOT_SIZE=10240
# Netbooting
options BOOTP
options BOOTP_NFSROOT
options BOOTP_NFSV3
options BOOTP_WIRED_TO=dtsec3
options NFS_ROOT
# Block devices
device mmc
device mmcsd
device sdhci
# Network devices
device miibus # MII bus support
device em
# I2C support
device iicbus
device iic
device uart
device ehci
device usb
device scbus
device da
device umass
device pty
device cfi
device pci
# Pseudo devices
device ether # Ethernet support
device loop # Network loopback
device random # Entropy device
device bpf # Berkeley packet filter
device md # Memory "disks"