cc3116a938
The last half year I've been working on a replacement TTY layer for the FreeBSD kernel. The new TTY layer was designed to improve the following: - Improved driver model: The old TTY layer has a driver model that is not abstract enough to make it friendly to use. A good example is the output path, where the device drivers directly access the output buffers. This means that an in-kernel PPP implementation must always convert network buffers into TTY buffers. If a PPP implementation would be built on top of the new TTY layer (still needs a hooks layer, though), it would allow the PPP implementation to directly hand the data to the TTY driver. - Improved hotplugging: With the old TTY layer, it isn't entirely safe to destroy TTY's from the system. This implementation has a two-step destructing design, where the driver first abandons the TTY. After all threads have left the TTY, the TTY layer calls a routine in the driver, which can be used to free resources (unit numbers, etc). The pts(4) driver also implements this feature, which means posix_openpt() will now return PTY's that are created on the fly. - Improved performance: One of the major improvements is the per-TTY mutex, which is expected to improve scalability when compared to the old Giant locking. Another change is the unbuffered copying to userspace, which is both used on TTY device nodes and PTY masters. Upgrading should be quite straightforward. Unlike previous versions, existing kernel configuration files do not need to be changed, except when they reference device drivers that are listed in UPDATING. Obtained from: //depot/projects/mpsafetty/... Approved by: philip (ex-mentor) Discussed: on the lists, at BSDCan, at the DevSummit Sponsored by: Snow B.V., the Netherlands dcons(4) fixed by: kan
109 lines
3.3 KiB
Plaintext
109 lines
3.3 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:ad0s1a\"
|
|
#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 NFSCLIENT # Network Filesystem Client
|
|
#options NFSSERVER # Network Filesystem Server
|
|
#options NFSLOCKD # Network Lock Manager
|
|
#options NFS_ROOT # NFS usable as /, requires NFSCLIENT
|
|
#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
|
|
|
|
# Bus support. Do not remove isa, even if you have no isa slots
|
|
device isa
|
|
device pci
|
|
|
|
# ATA and ATAPI devices
|
|
device ata
|
|
device atadisk # ATA disk drives
|
|
device atapicd # ATAPI CDROM drives
|
|
options ATA_STATIC_ID # Static device numbering
|
|
|
|
# SCSI peripherals
|
|
device scbus # SCSI bus (required for SCSI)
|
|
device da # Direct Access (disks)
|
|
|
|
# Floating point support - do not disable.
|
|
device npx
|
|
|
|
# Pseudo devices.
|
|
device loop # Network loopback
|
|
device mem # Memory and kernel memory devices
|
|
device io # I/O device
|
|
device random # Entropy device
|
|
device ether # Ethernet support
|
|
#device tun # Packet tunnel.
|
|
device pty # BSD-style compatibility pseudo ttys
|
|
#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
|
|
#device uhci # UHCI PCI->USB interface
|
|
device ohci # OHCI PCI->USB interface
|
|
device usb # USB Bus (required)
|
|
device ugen # Generic
|
|
device uhid # "Human Interface Devices"
|
|
device ukbd # Keyboard
|
|
device ulpt # Printer
|
|
device umass # Disks/Mass storage - Requires scbus and da
|
|
device ums # Mouse
|
|
device urio # Diamond Rio 500 MP3 player
|
|
device uscanner # Scanners
|
|
|
|
device miibus
|
|
device aue # ADMtek USB Ethernet
|
|
device axe # ASIX Electronics USB Ethernet
|
|
device cdce # Generic USB over Ethernet
|
|
device cue # CATC USB Ethernet
|
|
device kue # Kawasaki LSI USB Ethernet
|
|
device rue # RealTek RTL8150 USB Ethernet
|
|
|
|
device sound
|
|
device snd_ich # nForce audio
|
|
|
|
device nfe # nVidia nForce MCP on-board Ethernet Networking
|