721ce839c7
* Make Yarrow an optional kernel component -- enabled by "YARROW_RNG" option. The files sha2.c, hash.c, randomdev_soft.c and yarrow.c comprise yarrow. * random(4) device doesn't really depend on rijndael-*. Yarrow, however, does. * Add random_adaptors.[ch] which is basically a store of random_adaptor's. random_adaptor is basically an adapter that plugs in to random(4). random_adaptor can only be plugged in to random(4) very early in bootup. Unplugging random_adaptor from random(4) is not supported, and is probably a bad idea anyway, due to potential loss of entropy pools. We currently have 3 random_adaptors: + yarrow + rdrand (ivy.c) + nehemeiah * Remove platform dependent logic from probe.c, and move it into corresponding registration routines of each random_adaptor provider. probe.c doesn't do anything other than picking a specific random_adaptor from a list of registered ones. * If the kernel doesn't have any random_adaptor adapters present then the creation of /dev/random is postponed until next random_adaptor is kldload'ed. * Fix randomdev_soft.c to refer to its own random_adaptor, instead of a system wide one. Submitted by: arthurmesh@gmail.com, obrien Obtained from: Juniper Networks Reviewed by: obrien
91 lines
2.8 KiB
Plaintext
91 lines
2.8 KiB
Plaintext
#
|
|
# XBOX -- kernel for an XBOX
|
|
#
|
|
# $FreeBSD$
|
|
cpu I686_CPU # Celeron
|
|
ident XBOX
|
|
|
|
makeoptions MODULES_OVERRIDE=""
|
|
|
|
options KDB
|
|
options DDB
|
|
|
|
options XBOX # kernel is for XBOX
|
|
device xboxfb # frame buffer support (REQUIRED!)
|
|
device sc # syscons
|
|
device fb
|
|
|
|
# no support yet for root device name fetching
|
|
options ROOTDEVNAME=\"ufs:ada0s1a\"
|
|
#options ROOTDEVNAME=\"cd9660:acd0\"
|
|
|
|
options SCHED_4BSD # 4BSD scheduler
|
|
options INET # InterNETworking
|
|
options INET6 # IPv6 communications protocols
|
|
options FFS # Berkeley Fast Filesystem
|
|
options SOFTUPDATES # Enable FFS soft updates support
|
|
#options UFS_ACL # Support for access control lists
|
|
#options UFS_DIRHASH # Improve performance on big directories
|
|
#options MD_ROOT # MD is a potential root device
|
|
options NFSCL # New Network Filesystem Client
|
|
#options NFSD # New Network Filesystem Server
|
|
#options NFSLOCKD # Network Lock Manager
|
|
#options NFS_ROOT # NFS usable as /, requires NFSCL
|
|
#options MSDOSFS # MSDOS Filesystem
|
|
options CD9660 # ISO 9660 Filesystem
|
|
#options PROCFS # Process filesystem (requires PSEUDOFS)
|
|
#options PSEUDOFS # Pseudo-filesystem framework
|
|
#options COMPAT_FREEBSD4 # Compatible with FreeBSD4
|
|
#options KTRACE # ktrace(1) support
|
|
#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 KBD_INSTALL_CDEV # install a CDEV entry in /dev
|
|
# Xbox has a non-standard default timer frequency
|
|
options TIMER_FREQ=1125000 # Gives ~733.34MHz CPU
|
|
|
|
#device apic # I/O APIC
|
|
|
|
device pci
|
|
|
|
# ATA and ATAPI devices
|
|
device ata
|
|
options ATA_STATIC_ID # Static device numbering
|
|
|
|
# ATA/SCSI peripherals
|
|
device scbus # SCSI bus (required for ATA/SCSI)
|
|
device cd # CD
|
|
device da # Direct Access (disks)
|
|
device pass # Passthrough device (direct ATA/SCSI access)
|
|
|
|
# Pseudo devices.
|
|
device loop # Network loopback
|
|
device random # Entropy device
|
|
options YARROW_RNG # Yarrow software RNG
|
|
device ether # Ethernet support
|
|
#device tun # Packet tunnel.
|
|
#device md # Memory "disks"
|
|
#device gif # IPv6 and IPv4 tunneling
|
|
#device faith # IPv6-to-IPv4 relaying (translation)
|
|
|
|
# The `bpf' device enables the Berkeley Packet Filter.
|
|
# Be aware of the administrative consequences of enabling this!
|
|
# Note that 'bpf' is required for DHCP.
|
|
device bpf # Berkeley packet filter
|
|
|
|
# USB support
|
|
options USB_DEBUG # enable debug msgs
|
|
#device uhci # UHCI PCI->USB interface
|
|
device ohci # OHCI PCI->USB interface
|
|
device usb # USB Bus (required)
|
|
device ukbd # Keyboard
|
|
device umass # Disks/Mass storage - Requires scbus and da
|
|
|
|
device miibus
|
|
|
|
device sound
|
|
device snd_ich # nForce audio
|
|
|
|
device nfe # nVidia nForce MCP on-board Ethernet Networking
|