summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2010-07-23 11:00:46 +0000
committerkib <kib@FreeBSD.org>2010-07-23 11:00:46 +0000
commita6198465870ecad0428d823988838d909c1b779b (patch)
treefe15b0b26d50bcebdbb695bd94b9843d3c224d2d /sys/modules
parentfe775469770ee94612fdad1e2fedc4f12deb6ba3 (diff)
downloadFreeBSD-src-a6198465870ecad0428d823988838d909c1b779b.zip
FreeBSD-src-a6198465870ecad0428d823988838d909c1b779b.tar.gz
Crypto(4) driver for AESNI.
The aeskeys_{amd64,i386}.S content was mostly obtained from OpenBSD, no objections to the license from core. Hardware provided by: Sentex Communications Tested by: fabient, pho (previous versions) MFC after: 1 month
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/Makefile7
-rw-r--r--sys/modules/aesni/Makefile10
2 files changed, 17 insertions, 0 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index ea0c748..191d629 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -10,6 +10,7 @@ SUBDIR= ${_3dfx} \
accf_http \
${_acpi} \
ae \
+ ${_aesni} \
age \
${_agp} \
aha \
@@ -439,6 +440,9 @@ _zfs= zfs
.if ${MACHINE} == "i386"
_aac= aac
_acpi= acpi
+.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
+_aesni= aesni
+.endif
_ahb= ahb
_amdsbwd= amdsbwd
_amdtemp= amdtemp
@@ -494,6 +498,9 @@ _snc= snc
.if ${MACHINE_ARCH} == "amd64"
_aac= aac
_acpi= acpi
+.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
+_aesni= aesni
+.endif
_agp= agp
_an= an
_amdsbwd= amdsbwd
diff --git a/sys/modules/aesni/Makefile b/sys/modules/aesni/Makefile
new file mode 100644
index 0000000..aed56b8
--- /dev/null
+++ b/sys/modules/aesni/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../crypto/aesni
+
+KMOD= aesni
+SRCS= aesni.c aesni_wrap.c
+SRCS+= aesencdec_$(MACHINE_CPUARCH).S aeskeys_$(MACHINE_CPUARCH).S
+SRCS+= device_if.h bus_if.h opt_bus.h cryptodev_if.h
+
+.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud