aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Keep up with minor changes to NetBSD. Consider a variable empty whenWarner Losh2003-09-071-1/+1
| | | | | | | | | not define. Obtained From: NetBSD (rev 1.18; sjg) Notes: svn path=/head/; revision=119818
* Mdoc Review:Hiten Pandya2003-09-061-3/+5
| | | | | | | | | | | * Remove extraneous .Pp in SYNOPSIS * Remove hard sentence break * Add the AUTHORS section Notes: svn path=/head/; revision=119817
* Hook-up the uart(4) driver to the build. For a detailed descriptionMarcel Moolenaar2003-09-0610-2/+33
| | | | | | | | | | | | | | | | | | of what uart(4) is and/or is not see the initial commit log of one of the files in sys/dev/uart (or see share/man/man4/uart.4). Note that currently pc98 shares the MD file with i386. This needs to change when pc98 support is fleshed-out to properly support the various UARTs. A good example is sparc64 in this respect. We build uart(4) as a module on all platforms. This may break the ppc port. That depends on whether they do actually build modules. To use uart(4) on alpha, one must use the NO_SIO option. Notes: svn path=/head/; revision=119816
* The uart(4) driver is an universal driver for various UART hardware.Marcel Moolenaar2003-09-0625-0/+6017
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It improves on sio(4) in the following areas: o Fully newbusified to allow for memory mapped I/O. This is a must for ia64 and sparc64, o Machine dependent code to take full advantage of machine and firm- ware specific ways to define serial consoles and/or debug ports. o Hardware abstraction layer to allow the driver to be used with various UARTs, such as the well-known ns8250 family of UARTs, the Siemens sab82532 or the Zilog Z8530. This is especially important for pc98 and sparc64 where it's common to have different UARTs, o The notion of system devices to unkludge low-level consoles and remote gdb ports and provides the mechanics necessary to support the keyboard on sparc64 (which is UART based). o The notion of a kernel interface so that a UART can be tied to something other than the well-known TTY interface. This is needed on sparc64 to present the user with a device and ioctl handling suitable for a keyboard, but also allows us to cleanly hide an UART when used as a debug port. Following is a list of features and bugs/flaws specific to the ns8250 family of UARTs as compared to their support in sio(4): o The uart(4) driver determines the FIFO size and automaticly takes advantages of larger FIFOs and/or additional features. Note that since I don't have sufficient access to 16[679]5x UARTs, hardware flow control has not been enabled. This is almost trivial to do, provided one can test. The downside of this is that broken UARTs are more likely to not work correctly with uart(4). The need for tunables or knobs may be large enough to warrant their creation. o The uart(4) driver does not share the same bumpy history as sio(4) and will therefore not provide the necessary hooks, tweaks, quirks or work-arounds to deal with once common hardware. To that extend, uart(4) supports a subset of the UARTs that sio(4) supports. The question before us is whether the subset is sufficient for current hardware. o There is no support for multiport UARTs in uart(4). The decision behind this is that uart(4) deals with one EIA RS232-C interface. Packaging of multiple interfaces in a single chip or on a single expansion board is beyond the scope of uart(4) and is now mostly left for puc(4) to deal with. Lack of hardware made it impossible to actually implement such a dependency other than is present for the dual channel SAB82532 and Z8350 SCCs. The current list of missing features is: o No configuration capabilities. A set of tunables and sysctls is being worked out. There are likely not going to be any or much compile-time knobs. Such configuration does not fit well with current hardware. o No support for the PPS API. This is partly dependent on the ability to configure uart(4) and partly dependent on having sufficient information to implement it properly. As usual, the manpage is present but lacks the attention the software has gotten. Notes: svn path=/head/; revision=119815
* Enhance puc(4) to support uart(4). This includes:Marcel Moolenaar2003-09-067-77/+336
| | | | | | | | | | | | | | | | | | | | | | | | | | | | o Introduce PUC_PORT_TYPE_UART so that we can attach to uart(4), o Introduce port sub-types (eg PUC_PORT_UART_NS8250, PUC_PORT_UART_Z8530) to handle different hardware and determine resource sizes. o Introduce two new IVARs: PUC_IVAR_SUBTYPE and PUC_IVAR_REGSHFT. Both are used by uart(4) to get sufficient information to talk to the HW. o Introduce PUC_FLAGS_ALTRES to tell puc(4) to try memory mapped I/O if I/O port space cannot be allocated, or vice versa. o Have ports of type PUC_PORT_TYPE_COM attach to uart(1) if attaching to sio(4) fails (due to not having the sio driver). o Put struct puc_device_description in struct puc_softc instead of having a pointer to a device description in the softc. This allows us to create device descriptions on the fly without having to use malloc() or otherwise have them staticly defined. o Move puc_find_description() from puc.c to puc_pci.c as it's specific to PCI. o Add EBUS and SBUS frontends for use on sparc64. Note that the P in puc stands for PCI, so we kinda mess things up here. It's too soon to worry about it though. We'll know what to do about it in time. NOTE: This commit changes the behaviour of puc(4) to not quieten the device probe and attach for child devices. The uart(4) driver provides additional device description that is valuable to have. Notes: svn path=/head/; revision=119814
* add fast swi taskqueue spinlock to the order_list so witness doesn't complainSam Leffler2003-09-061-0/+1
| | | | | | | Submitted by: Tor Egge <Tor.Egge@cvsup.no.freebsd.org> Notes: svn path=/head/; revision=119813
* correct fast swi taskqueue spinlock name to be different from the sleep lockSam Leffler2003-09-061-1/+1
| | | | | | | Submitted by: Tor Egge <Tor.Egge@cvsup.no.freebsd.org> Notes: svn path=/head/; revision=119812
* Giant is no longer required by pipe_destroy_write_buffer(). ReduceAlan Cox2003-09-061-9/+7
| | | | | | | unnecessary white space from pipe_destroy_write_buffer(). Notes: svn path=/head/; revision=119811
* Trim the twe(4) device list; the twe(4) manual page is more up-to-date.Simon L. B. Nielsen2003-09-062-26/+0
| | | | Notes: svn path=/head/; revision=119810
* Bzero the right number of bytes.Poul-Henning Kamp2003-09-061-1/+1
| | | | | | | Found by: Juergen Buchmueller <pullmoll@stop1984.com> Notes: svn path=/head/; revision=119809
* Baud rate capability is `br', not `ba'.Hiten Pandya2003-09-061-1/+1
| | | | | | | | PR: docs/56426 Submitted by: FUJISHIMA Satsuki <sf@FreeBSD.ORG> Notes: svn path=/head/; revision=119808
* New release notes: PIM support, amd-6.0.9, GNU Readline 4.3, GNU SortBruce A. Mah2003-09-062-0/+32
| | | | | | | 2.1, ISC DHCP client 3.0.1rc12. Notes: svn path=/head/; revision=119806
* Trim isp(4), vx(4), and stg(4) device lists.Bruce A. Mah2003-09-062-150/+2
| | | | Notes: svn path=/head/; revision=119805
* Catch up isp.4 manpage with hardware notes.Bruce A. Mah2003-09-061-0/+4
| | | | | | | | PR: 55558 Submitted by: Lukas Ertl <l.ertl@univie.ac.at> Notes: svn path=/head/; revision=119803
* Remove hard sentence breaks.Hiten Pandya2003-09-061-9/+10
| | | | Notes: svn path=/head/; revision=119802
* Add stg(4) manpage and hook up to the section 4 manpage build.Bruce A. Mah2003-09-062-0/+71
| | | | | | | | PR: 55605 Submitted by: Bob Bishop <rb@gid.co.uk> Notes: svn path=/head/; revision=119801
* Trim the device lists for tl(4), aue(4), and kue(4) after recentBruce A. Mah2003-09-062-312/+10
| | | | | | | | manpage catchup updates. The nearby axe(4) and rue(4) lists appear to be in sync with the manpages so trim those too. Notes: svn path=/head/; revision=119800
* #include <string.h> for prototypes for strcpy() and strlen().Tim J. Robbins2003-09-061-0/+2
| | | | | | | Submitted by: Stefan Farfeleder Notes: svn path=/head/; revision=119799
* Make indentation uniform.Doug Rabson2003-09-061-16/+16
| | | | Notes: svn path=/head/; revision=119798
* No need for a separate nfpm driver now - amdpm handles both.Doug Rabson2003-09-061-1/+0
| | | | Notes: svn path=/head/; revision=119797
* When recording resources for the amdpm driver, only describe the portsDoug Rabson2003-09-061-101/+36
| | | | | | | | | | | | | | | we actually use. Originally, the code reserved 0x8000 to 0x80ff inclusive which on my hardware conflicts with the acpi timer. This broke the amdpm driver since it was actually given ports 0x800c to 0x810b (which should not have happened, IMHO). This also allows us to considerably simplify the handling of the nForce smb driver, removing the need for a separate nfpm driver. With this, SMB accesses appear to work on my Tyan Tiger MP board. Your mileage may vary. In particular, the nForce changes have not been tested. Notes: svn path=/head/; revision=119796
* Removed another spurious semicolon forgotten in the previous commit.Jens Schweikhardt2003-09-061-1/+1
| | | | Notes: svn path=/head/; revision=119795
* Removed two spurious semicolons after function definitions.Jens Schweikhardt2003-09-061-5/+5
| | | | | | | | | | | Removed three spurious tabs on lines by themselves. PR: bin/56492 Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> MFC after: 6 weeks Notes: svn path=/head/; revision=119794
* Load the kernel at a 64M instead of 5M. The advantage of this is thatMarcel Moolenaar2003-09-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | we can switch to 64M-sized identity mappings and not having to map the first 64M. This is especially important because the first 1M contains the VGA frame buffer and is otherwise a legacy memory range. Best to make as little assumptions about it as possible. Switching to 64M-sized mappings is important to avoid creating overlapping translations, which have the side-effect of triggering machine checks. This is currently what's preventing us to boot on an Intel Tiger 4. Note that since we currently use 256M-sized identity mappings, we would reduce the size of the mappings and consequently increase the TLB pressure. The performance implications of this are minimal if measurable at all because identify mappings are not our primary means for memory management. Also note that there's no guarantee that physical memory exists at 64M. Then again, we didn't had the guarantee when we were loading at 5M. We'll deal with this when it's a problem. Discussed with: arun@ Notes: svn path=/head/; revision=119793
* Add locking.Sam Leffler2003-09-061-135/+237
| | | | | | | | | | | Special thanks to Pavlin Radoslavov <pavlin@icir.org> for testing and fixing numerous problems. Sponsored by: FreeBSD Foundation Reviewed by: Pavlin Radoslavov <pavlin@icir.org> Notes: svn path=/head/; revision=119792
* Finish the deorbital burn of the i386-only a.out toolchain.David E. O'Brien2003-09-0610-936/+0
| | | | Notes: svn path=/head/; revision=119791
* Add small piece of code to support pthread_rwlock_timedrdlock andDavid Xu2003-09-064-16/+94
| | | | | | | pthread_rwlock_timedrwlock. Notes: svn path=/head/; revision=119790
* "fast swi" taskqueue support. This is a taskqueue that uses spinlocksSam Leffler2003-09-053-3/+131
| | | | | | | | | making it useful for dispatching swi tasks from fast interrupt handlers. Sponsered by: FreeBSD Foundation Notes: svn path=/head/; revision=119789
* Print a message at boot for interrupt handlers created with INTR_MPSAFESam Leffler2003-09-051-4/+14
| | | | | | | | | and/or INTR_FAST. This belongs elsehwere and perhaps under bootverbose; I'm committing it for now as it's uesful to know which drivers have been converted and which have not. Notes: svn path=/head/; revision=119788
* Fix a place where I forgot to change the code that checks whetherMarcel Moolenaar2003-09-054-21/+9
| | | | | | | | | | | | | | | | | | | | we return to kernel or userland. This triggered a panic in a KSE application when TDF_USTATCLOCK was set in the case userland was interrupted, but we never called ast() on our way out. As such, we called ast() at some other time. Unfortunately, TDF_USTATCLOCK handling assumes running in the interrupt thread. This was not the case anymore. To avoid making the same mistake later, interrupt() now returns to its caller whether we interrupted userland or not. This avoids that we have to duplicate the check in assembly, where it's bound to fall off the scope. Now we simply check the return value and call ast() if appropriate. Run into this: davidxu Notes: svn path=/head/; revision=119787
* change timeout to be MPSAFESam Leffler2003-09-052-5/+5
| | | | | | | Sponsored by: FreeBSD Foundation Notes: svn path=/head/; revision=119786
* change timer to MPSAFESam Leffler2003-09-052-5/+5
| | | | | | | Sponsored by: FreeBSD Foundation Notes: svn path=/head/; revision=119785
* o add experimental radiotap capture formatSam Leffler2003-09-055-13/+125
| | | | | | | | | o add netbsd logic to convert rssi to device-independent values Obtained from: NetBSD (rssi conversion code) Notes: svn path=/head/; revision=119784
* Add support for the experimental radiotap capture format. With thisSam Leffler2003-09-053-11/+112
| | | | | | | we no longer need the debugging code to dump packets. Notes: svn path=/head/; revision=119783
* Experimental bpf capture format for 802.11 devices. The link layerSam Leffler2003-09-051-0/+185
| | | | | | | | | | | type belongs in net/bpf.h but we keep it here for the moment. P: Submittep by: Obtained from: David Young <dyoung@pobox.com> Notes: svn path=/head/; revision=119782
* Log involuntary context switches correctly.Peter Wemm2003-09-051-2/+2
| | | | Notes: svn path=/head/; revision=119781
* Add locking. We use a single lock to guard the global vlan list and alsoSam Leffler2003-09-051-17/+47
| | | | | | | | | | | to protect the vlan state in each ifnet (e.g. vlan count). The latter is probably better handled through an ifnet-centric means but since changes are infrequent shouldn't matter for now. Sponsored by: FreeBSD Foundation Notes: svn path=/head/; revision=119780
* Oops. sizeof(long) = 8, not 4. Get the fxsave buffer inside mcontextPeter Wemm2003-09-051-2/+2
| | | | | | | | the right size. I'm planning on *possibly* stealing the two 'spare' variables on either side for botched alignment correction. Notes: svn path=/head/; revision=119779
* The caller is expected to set up PIC register corectly beforeAlexander Kabaev2003-09-052-0/+4
| | | | | | | | jumping to .cerror. This means .cerror has to be present in the same module with its consumers, or bad things will happen. Notes: svn path=/head/; revision=119777
* #include <runetype.h> directly for the definition of _CACHED_RUNES, neededTim J. Robbins2003-09-051-0/+1
| | | | | | | | | by ldef.h, rather than relying on GCC-specific pollution from <ctype.h>. Noticed by: Stefan Farfeleder Notes: svn path=/head/; revision=119776
* Clarify that the second argument to accept() may be a null pointer ifPeter Pentchev2003-09-051-1/+7
| | | | | | | | | | | | no peer address information is desired. PR: 56044 Submitted by: Felix Opatz <felix@zotteljedi.de> and Bernd Luevelsmeyer <bdluevel@heitec.net> MFC after: 1 month Notes: svn path=/head/; revision=119775
* Change /dev/rsa0 and /dev/rwt0 references to sa0 and wt0.Peter Pentchev2003-09-053-9/+9
| | | | | | | | | PR: 55925 Submitted by: Michael L. Squires <mikes@siralan.org> MFC after: 1 month Notes: svn path=/head/; revision=119774
* Mark the isa compat shims for BURN_BRIDGES for 6.0Peter Wemm2003-09-052-0/+12
| | | | Notes: svn path=/head/; revision=119773
* Clean up some antique stuff. We do not support Weitek FPUs etc, and neverPeter Wemm2003-09-052-20/+0
| | | | | | | did. Notes: svn path=/head/; revision=119772
* Catch up with the hardware notes: list the supported cards.Peter Pentchev2003-09-051-4/+32
| | | | | | | | | PR: 55645 Submitted by: Lukas Ertl <l.ertl@univie.ac.at> MFC after: 1 month Notes: svn path=/head/; revision=119771
* Catch up with the hardware notes: list the supported cards.Peter Pentchev2003-09-051-4/+39
| | | | | | | | | PR: 55643 Submitted by: Lukas Ertl <l.ertl@univie.ac.at> MFC after: 1 month Notes: svn path=/head/; revision=119770
* Catch up with the hardware notes: list the supported Compaq controllers.Peter Pentchev2003-09-051-1/+3
| | | | | | | | PR: 55641 Submitted by: Lukas Ertl <l.ertl@univie.ac.at> Notes: svn path=/head/; revision=119769
* Document the SC_NO_SUSPEND_VTYSWITCH kernel config option.Peter Pentchev2003-09-051-0/+7
| | | | | | | | PR: 55562 Submitted by: Lukas Ertl <l.ertl@univie.ac.at> Notes: svn path=/head/; revision=119768
* o Fix a typo in rev. 1.196: ifconfig 9 -> ifconfig 8.Maxim Konovalov2003-09-051-1/+1
| | | | | | | | PR: docs/56488 Submitted by: Yoshihiko Sarumaru <mistral@imasy.or.jp> Notes: svn path=/head/; revision=119767
* Remove now unused BOOTP tags related to NFS swap device.Poul-Henning Kamp2003-09-051-3/+0
| | | | Notes: svn path=/head/; revision=119766