Subject: Enabling opencrypto on all PCI-capable platforms
To: None <tech-kern@netbsd.org>
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
List: tech-kern
Date: 12/31/2003 09:10:06
I think this should enable opencrypto and the PCI crypto accelerators
on all our PCI-capable platforms.  Comments?

(NB, I havent cross-compiled these, the laptop I'm using is underpowered.)




Index: arch/alpha/conf/GENERIC
===================================================================
RCS file: /cvsroot/src/sys/arch/alpha/conf/GENERIC,v
retrieving revision 1.238
diff -u -r1.238 GENERIC
--- arch/alpha/conf/GENERIC	14 Dec 2003 01:32:01 -0000	1.238
+++ arch/alpha/conf/GENERIC	31 Dec 2003 17:07:00 -0000
@@ -267,6 +267,11 @@
 agp*	at	irongate?
 
 # PCI devices
+
+# PCI cryptographic devices
+hifn*	at pci? dev ? function ?	# Hifn 7755/7811/795x
+ubsec*	at pci? dev ? function ?	# Broadcom 5501/5601/580x/582x
+
 adv*	at	pci? dev ? function ?		# AdvanSys SCSI
 adw*	at	pci? dev ? function ?		# AdvanSys Wide SCSI
 #options 	SCSI_ADW_WDTR_DISABLE		# 	disable WDTR
@@ -561,6 +566,8 @@
 wskbd*		at	pckbd?
 wsmouse*	at	pms?
 
+pseudo-device 	crypto			# opencrypto framework
+
 pseudo-device	bpfilter	16
 pseudo-device	ccd		4
 #pseudo-device	cgd		4	# cryptographic disk devices
Index: arch/amd64/conf/GENERIC
===================================================================
RCS file: /cvsroot/src/sys/arch/amd64/conf/GENERIC,v
retrieving revision 1.20
diff -u -r1.20 GENERIC
--- arch/amd64/conf/GENERIC	14 Dec 2003 01:32:01 -0000	1.20
+++ arch/amd64/conf/GENERIC	31 Dec 2003 17:07:00 -0000
@@ -289,6 +289,12 @@
 pcppi0		at isa?
 sysbeep0	at pcppi?
 
+# Cryptographic Devices
+
+# PCI cryptographic devices
+hifn*	at pci? dev ? function ?	# Hifn 7755/7811/795x
+ubsec*	at pci? dev ? function ?	# Broadcom 5501/5601/580x/582x
+
 # Serial Devices
 
 # PCI serial interfaces
@@ -737,6 +743,8 @@
 
 # Pseudo-Devices
 
+pseudo-device 	crypto			# opencrypto framework
+
 # disk/mass storage pseudo-devices
 pseudo-device	ccd		4	# concatenated/striped disk devices
 #pseudo-device	cgd		4	# cryptographic disk devices
Index: arch/arc/conf/GENERIC
===================================================================
RCS file: /cvsroot/src/sys/arch/arc/conf/GENERIC,v
retrieving revision 1.97
diff -u -r1.97 GENERIC
--- arch/arc/conf/GENERIC	14 Dec 2003 01:32:01 -0000	1.97
+++ arch/arc/conf/GENERIC	31 Dec 2003 17:07:01 -0000
@@ -268,6 +268,10 @@
 necpb*		at mainbus0	# NEC RISCstation PCI host bridge.
 pci*		at necpb?
 
+# PCI cryptographic devices
+hifn*	at pci? dev ? function ?	# Hifn 7755/7811/795x
+ubsec*	at pci? dev ? function ?	# Broadcom 5501/5601/580x/582x
+
 #vga*	 	at pci? dev ? function ?
 tga*		at pci? dev ? function ?	# DEC ZLXp-E[123] Graphics
 
@@ -370,6 +374,8 @@
 
 #### Pseudo devices
 
+pseudo-device 	crypto			# opencrypto framework
+
 # disk/mass storage pseudo-devices
 pseudo-device	ccd		4	# concatenated/striped disk devices
 #pseudo-device	cgd		4	# cryptographic disk devices
Index: arch/bebox/conf/GENERIC
===================================================================
RCS file: /cvsroot/src/sys/arch/bebox/conf/GENERIC,v
retrieving revision 1.66
diff -u -r1.66 GENERIC
--- arch/bebox/conf/GENERIC	18 Oct 2003 08:30:12 -0000	1.66
+++ arch/bebox/conf/GENERIC	31 Dec 2003 17:07:01 -0000
@@ -87,6 +87,7 @@
 
 config		netbsd	root on ? type ?
 
+pseudo-device 	crypto			# opencrypto framework
 #pseudo-device	cgd		4	# cryptographic disk devices
 pseudo-device	vnd		4
 pseudo-device	loop
@@ -166,6 +167,12 @@
 wskbd*		at pckbd? console ?
 #wsmouse*	at pms? mux 0
 
+# Cryptographic Devices
+
+# PCI cryptographic devices
+hifn*	at pci? dev ? function ?	# Hifn 7755/7811/795x
+ubsec*	at pci? dev ? function ?	# Broadcom 5501/5601/580x/582x
+
 #siop*	at pci? dev ? function ?	# NCR 538XX SCSI controllers
 #scsibus* at siop?
 #esiop*	at pci? dev ? function ?	# NCR 53875 and newer SCSI controllers
Index: arch/cats/conf/GENERIC
===================================================================
RCS file: /cvsroot/src/sys/arch/cats/conf/GENERIC,v
retrieving revision 1.59
diff -u -r1.59 GENERIC
--- arch/cats/conf/GENERIC	14 Dec 2003 01:32:01 -0000	1.59
+++ arch/cats/conf/GENERIC	31 Dec 2003 17:07:01 -0000
@@ -210,6 +210,13 @@
 # XXX 'puc's aren't really bridges, but there's no better place for them here
 #puc*	at pci? dev ? function ?	# PCI "universal" comm. cards
 
+# Cryptographic Devices
+
+# PCI cryptographic devices
+hifn*	at pci? dev ? function ?	# Hifn 7755/7811/795x
+ubsec*	at pci? dev ? function ?	# Broadcom 5501/5601/580x/582x
+
+
 # PCI serial interfaces
 #com*	at puc? port ?			# 16x50s on "universal" comm boards
 #cy*	at pci? dev ? function ?	# Cyclades Cyclom-Y serial boards
@@ -517,6 +524,8 @@
 
 # Pseudo-Devices
 
+pseudo-device 	crypto			# opencrypto framework
+
 # disk/mass storage pseudo-devices
 pseudo-device	ccd		2	# concatenated/striped disk devices
 #pseudo-device	cgd		2	# cryptographic disk devices
Index: arch/cobalt/conf/GENERIC
===================================================================
RCS file: /cvsroot/src/sys/arch/cobalt/conf/GENERIC,v
retrieving revision 1.53
diff -u -r1.53 GENERIC
--- arch/cobalt/conf/GENERIC	14 Dec 2003 01:32:01 -0000	1.53
+++ arch/cobalt/conf/GENERIC	31 Dec 2003 17:07:01 -0000
@@ -141,6 +141,12 @@
 pchb* 		at pci? dev ? function ?
 pcib* 		at pci? dev ? function ?
 
+# Cryptographic Devices
+
+# PCI cryptographic devices
+hifn*	at pci? dev ? function ?	# Hifn 7755/7811/795x
+ubsec*	at pci? dev ? function ?	# Broadcom 5501/5601/580x/582x
+
 # PCI serial/parallel interfaces
 #puc* 		at pci? dev ? function ? 	# PCI "universal" comm. cards
 #com* 		at puc? port ?
@@ -259,6 +265,8 @@
 
 # Pseudo-devices
 
+pseudo-device 	crypto				# opencrypto framework
+
 # Disk/mass storage pseudo-devices
 #pseudo-device	ccd		4		# concatenated disk devices
 #pseudo-device	cgd		4		# cryptographic disk devices
Index: arch/hp700/conf/GENERIC
===================================================================
RCS file: /cvsroot/src/sys/arch/hp700/conf/GENERIC,v
retrieving revision 1.17
diff -u -r1.17 GENERIC
--- arch/hp700/conf/GENERIC	18 Nov 2003 04:04:42 -0000	1.17
+++ arch/hp700/conf/GENERIC	31 Dec 2003 17:07:01 -0000
@@ -247,6 +247,12 @@
 #wsmouse*	at pms? mux 0
 #wsmouse*	at hms? mux 0
 
+# Cryptographic Devices
+
+# PCI cryptographic devices
+hifn*	at pci? dev ? function ?	# Hifn 7755/7811/795x
+ubsec*	at pci? dev ? function ?	# Broadcom 5501/5601/580x/582x
+
 # Serial Devices
 
 # GSC serial interfaces
@@ -517,6 +523,8 @@
 
 # Pseudo-Devices
 
+pseudo-device 	crypto			# opencrypto framework
+
 # disk/mass storage pseudo-devices
 pseudo-device	ccd		4	# concatenated/striped disk devices
 #pseudo-device	cgd		4	# cryptographic disk devices
Index: arch/macppc/conf/GENERIC
===================================================================
RCS file: /cvsroot/src/sys/arch/macppc/conf/GENERIC,v
retrieving revision 1.170
diff -u -r1.170 GENERIC
--- arch/macppc/conf/GENERIC	27 Dec 2003 02:19:34 -0000	1.170
+++ arch/macppc/conf/GENERIC	31 Dec 2003 17:07:02 -0000
@@ -325,6 +325,13 @@
 wskbd0	at akbd? console ?
 wsmouse0 at ams?
 
+# Cryptographic Devices
+
+# PCI cryptographic devices
+hifn*	at pci? dev ? function ?	# Hifn 7755/7811/795x
+ubsec*	at pci? dev ? function ?	# Broadcom 5501/5601/580x/582x
+
+
 scsibus* at adv?
 scsibus* at adw?
 scsibus* at ahc?
@@ -444,6 +451,7 @@
 midi*	at eap?			# 137[01] MIDI port
 #midi*	at mpu?			# MPU 401
 
+pseudo-device 	crypto			# opencrypto framework
 pseudo-device	vnd		4	# disk-like interface to files
 pseudo-device	ccd		4	# concatenated/striped disk devices
 #pseudo-device	cgd		4	# cryptographic disk devices
Index: arch/netwinder/conf/GENERIC
===================================================================
RCS file: /cvsroot/src/sys/arch/netwinder/conf/GENERIC,v
retrieving revision 1.42
diff -u -r1.42 GENERIC
--- arch/netwinder/conf/GENERIC	13 Dec 2003 23:26:04 -0000	1.42
+++ arch/netwinder/conf/GENERIC	31 Dec 2003 17:07:02 -0000
@@ -243,6 +243,12 @@
 wsdisplay*	at igsfb? console ?
 
 
+# Cryptographic Devices
+
+# PCI cryptographic devices
+hifn*	at pci? dev ? function ?	# Hifn 7755/7811/795x
+ubsec*	at pci? dev ? function ?	# Broadcom 5501/5601/580x/582x
+
 # ISA Devices
 com0		at isa? port 0x3f8 irq 4
 lpt0		at isa? port 0x378 irq 7
@@ -261,6 +267,8 @@
 
 # Pseudo-Devices
 
+pseudo-device 	crypto		# opencrypto framework
+
 # disk/mass storage pseudo-devices
 #pseudo-device	md		1	# memory disk device (ramdisk)
 pseudo-device	vnd		4	# disk-like interface to files
Index: arch/prep/conf/GENERIC
===================================================================
RCS file: /cvsroot/src/sys/arch/prep/conf/GENERIC,v
retrieving revision 1.71
diff -u -r1.71 GENERIC
--- arch/prep/conf/GENERIC	19 Oct 2003 22:00:01 -0000	1.71
+++ arch/prep/conf/GENERIC	31 Dec 2003 17:07:02 -0000
@@ -217,6 +217,13 @@
 mkclock0 at isa? port 0x74		# mk48t18 and compatible
 
 
+# Cryptographic Devices
+
+# PCI cryptographic devices
+hifn*	at pci? dev ? function ?	# Hifn 7755/7811/795x
+ubsec*	at pci? dev ? function ?	# Broadcom 5501/5601/580x/582x
+
+
 # Serial Devices
 
 # ISA serial interfaces
@@ -465,6 +472,8 @@
 
 # Pseudo-Devices
 
+pseudo-device 	crypto		# opencrypto framework
+
 # disk/mass storage pseudo-devices
 pseudo-device	ccd		4	# concatenated/striped disk devices
 #pseudo-device	cgd		4	# cryptographic disk devices