summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add a resource_disabled() helper function that returns true (non-zero) ifjhb2003-07-022-0/+15
| | | | | a specified resource has been disabled via a non-zero 'disabled' hint and false otherwise.
* Set unlock_mutex to 1 after locked mutex.davidxu2003-07-022-4/+8
| | | | | Use THR_CONDQ_CLEAR not THR_COND_SET in cond_queue_deq, current cond_queue_deq is not used.
* Make the bus_dma_tag_create use NULL for the lock arguments. We areharti2003-07-021-5/+6
| | | | | | | | | | | | careful to call all map_load calls with BUS_DMA_NOWAIT because we really don't want some PDUs to wait while others go out - ATM guarantees the ordering of cells and also of PDUs (within one VC, that is). With BUS_DMA_NOWAIT bus_dmamap_load should never return EINPROGRESS. Make the tag used for transmission buffers one larger than the maximum AAL5 PDU (65535). This is needed, because all PDU sizes need to be round up to multiple of four for the card and PDUs that are just below the maximum size will be rounded up to 65536
* Make libc/${MACHINE_ARCH} include directory not required by Alpha.ru2003-07-022-2/+2
| | | | | Submitted by: bde Tested by: beast
* Fix typo.davidxu2003-07-022-2/+2
|
* The .s files were repo-copied to .S files.ru2003-07-028-4687/+7
| | | | | Approved by: marcel Repocopied by: joe
* Revert non-style part of the recent two deltas that dealt withru2003-07-022-10/+2
| | | | | using as(1) to compile plain assembler source files; bsd.lib.mk has been fixed (in revision 1.147).
* Revert to using as(1) to compile plain assembler source files.ru2003-07-021-9/+2
| | | | | | | | All .s files that need cpp(1) processing (see gcc(1) manpage's DESCRIPTION section) have been repo-copied to .S files. This is mostly to bring bsd.lib.mk in agreement with sys.mk. Desired by: obrien
* sys/ia64/ia64/pal.s has been repocopied to pal.S.ru2003-07-021-1/+1
| | | | | Approved by: marcel Repocopied by: joe
* Allow VPI/VCI 0/0 to be opened. This will be used by the IDT77252 driverharti2003-07-021-9/+22
| | | | | | to provide a "receive all cells" mode that can be used for monitoring. Check only the relevant MTU size when NOTX or NORX flags are set.
* pal_stub.s has been repo-copied to pal_stub.S.ru2003-07-022-66/+1
| | | | | Approved by: marcel Repocopied by: joe
* Update the SATA support code to work more correctly withsos2003-07-023-57/+121
| | | | | | | | | | real SATA disks now that I can test it. Add support for the SiI 3112 SATA chip using memory mapped I/O. Update the support for the SiI 0680 to use the memio interface as well. Sponsored by: David Leimbach <leimy2k@mac.com> (3112 based controller) Sponsored by: FreeBSD Systems (www.FreeBSDsystems.com) (SATA disks)
* This commit was generated by cvs2svn to compensate for changes in r117153,ru2003-07-021-0/+6
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * From ChangeLog:ru2003-07-021-0/+6
| | | | | | | | | | | | | | | | | | : 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org> : * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'. This fixes warnings in some legacy roff documents. Prodded by: bde
* | Change idle sleep indentifier to "-" for nfsiodphk2003-07-021-1/+1
| |
* | Change idle state sleep identifier to "-" for nfsd.phk2003-07-021-1/+1
| |
* | Only dump 512 bytes of debugging.phk2003-07-021-1/+2
| | | | | | | | Always wait for things to settle before returning.
* | Change the sleep identifier to "-" where random normally sleeps.phk2003-07-021-1/+1
| |
* | typo fix in comment.phk2003-07-021-1/+1
| |
* | When size is 1 should just null terminate the string. The dummy variablejkh2003-07-021-3/+5
| | | | | | | | | | | | | | | | | | is made an array of two, to explicitly avoid stack corruption due to null-terminating (which is doesn't actually happen due to stack alignment padding). Submitted by: Ed Moy <emoy@apple.com> Obtained from: Apple Computer, Inc.
* | Begin making libthr async signal safe.mtm2003-07-021-2/+22
| | | | | | | | | | | | | | | | Create a private, single underscore, version of pthread_mutex_unlock for libc. pthread_mutex_lock already has one. These versions are different from the ones that applications will link against because they block all signals from the time a call to lock the mutex is made until it is successfully unlocked.
* | libc/${MACHINE_ARCH} include directory is required by Alpha,kan2003-07-021-1/+1
| | | | | | | | add it to CFLAGS.
* | Fix a few style(9) nits.mux2003-07-021-13/+9
| |
* | The use of SYSINIT requires the inclusion of <sys/kernel.h>marcel2003-07-021-0/+1
| |
* | Allow SA process unblocks a thread blocked in condition variable.davidxu2003-07-021-2/+8
| | | | | | | | Reviewed by: deischen
* | Switch the logic on the /rescue bits from NO_RESCUE to RESCUE, at leastgordon2003-07-011-1/+1
| | | | | | | | until there is a fix for cross building available.
* | Make this even closer to other busdma backends.mux2003-07-011-12/+26
| |
* | Oops, add back a free() call that I mistakenly removed inmux2003-07-011-0/+1
| | | | | | | | my last commit.
* | Make the sysctlbyname stuff look like the 2-level MIB stuff. Thisjmallett2003-07-011-0/+1
| | | | | | | | | | | | | | | | means actually setting 'len', for example. Which will make uname -i work on some systems where it did not. Anywhere where it did work, it was a matter of coincidence. Submitted by: redpixel on EFnet.
* | Sync more things with other backends.mux2003-07-012-24/+18
| |
* | Sync with i386's busdma backend. This fixes a few bugs and addsmux2003-07-011-33/+48
| | | | | | | | support for the BUS_DMA_NOWAIT flag in bus_dmamap_load().
* | Sync bounce pages support with the alpha backend. More precisely:mux2003-07-011-39/+55
| | | | | | | | | | | | | | | | | | | | | | o use a mutex to protect the bounce pages structure. o use a SYSINIT function to initialize the bounce pages structures and thus avoid a race condition in alloc_bounce_pages(). o add support for the BUS_DMA_NOWAIT flag in bus_dmamap_load(). o remove obsolete splhigh()/splx() calls. o remove printf() about incorrect locking in busdma_swi() and sync busdma_swi() with the one of the alpha backend. o use __FBSDID.
* | Add a new mount flag MNT_BYFSID that can be used to unmount a fileiedowse2003-07-014-99/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | system by specifying the file system ID instead of a path. Use this by default in umount(8). This avoids the need to perform any vnode operations to look up the mount point, so it makes it possible to unmount a file system whose root vnode cannot be looked up (e.g. due to a dead NFS server, or a file system that has become detached from the hierarchy because an underlying file system was unmounted). It also provides an unambiguous way to specify which file system is to be unmunted. Since the ability to unmount using a path name is retained only for compatibility, that case now just uses a simple string comparison of the supplied path against f_mntonname of each mounted file system. Discussed on: freebsd-arch mdoc help from: ru
* | bfd_elf32_i386_freebsd_vec is the only 32-bit vector we really need.obrien2003-07-011-1/+1
| | | | | | | | ar and nm aren't very smart when faced with multiple applicable vectors.
* | Add elf_i386_fbsd emulation.obrien2003-07-011-0/+14
| | | | | | | | Obtained from: p4
* | Honor the boundary of the busdma tag when allocating bounce pages.mux2003-07-013-3/+3
| | | | | | | | | | This was fixed in revision 1.5 of alpha/alpha/busdma_machdep.c and was never fixed in other busdma backends using bounce pages.
* | Make swi_vm be INTR_MPSAFE. On all platforms, it is only used to activatescottl2003-07-011-1/+1
| | | | | | | | | | busdma_swi(). Now that busdma_swi() uses driver-provided locking, this should be safe.
* | Do not attempt to reque a thread on a mutex queue. It may be thatmtm2003-07-011-1/+1
| | | | | | | | | | | | | | | | | | a thread receives a spurious wakeup from sigtimedwait(), so make sure that the call to the queueing code is called only once before entering the loop (not in the loop). This should fix some fatal errors people are seeing with messages stating the thread is already on the mutex queue. These errors may still be triggered from signal handlers; however, since that part of the code is not locked down yet.
* | Mega busdma API commit.scottl2003-07-01116-162/+878
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add two new arguments to bus_dma_tag_create(): lockfunc and lockfuncarg. Lockfunc allows a driver to provide a function for managing its locking semantics while using busdma. At the moment, this is used for the asynchronous busdma_swi and callback mechanism. Two lockfunc implementations are provided: busdma_lock_mutex() performs standard mutex operations on the mutex that is specified from lockfuncarg. dftl_lock() is a panic implementation and is defaulted to when NULL, NULL are passed to bus_dma_tag_create(). The only time that NULL, NULL should ever be used is when the driver ensures that bus_dmamap_load() will not be deferred. Drivers that do not provide their own locking can pass busdma_lock_mutex,&Giant args in order to preserve the former behaviour. sparc64 and powerpc do not provide real busdma_swi functions, so this is largely a noop on those platforms. The busdma_swi on is64 is not properly locked yet, so warnings will be emitted on this platform when busdma callback deferrals happen. If anyone gets panics or warnings from dflt_lock() being called, please let me know right away. Reviewed by: tmm, gibbs
* | Unbreak "make checkdpadd".ru2003-07-012-2/+2
| |
* | Improve expression evaluation debugging output, tidy up the handling offanf2003-07-011-22/+23
| | | | | | | | EOF, and improve the commentary about backslash-newline handling.
* | o strmode(3) returns void not 0.maxim2003-07-011-5/+0
| | | | | | | | | | | | PR: docs/53488 Submitted by: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua> MFC after: 1 week
* | There's no reason to keep separate AINC knob anymore.ru2003-07-013-17/+8
| | | | | | | | | | | | | | | | The only real use of it (lib/libc/Makefile) has been fixed, and if necessary, the contents of AINC should be added to CFLAGS. Explained by: bde
* | Add a commented-out entry for OFW_NEWPCI to GENERIC and NOTES, alongtmm2003-07-012-1/+17
| | | | | | | | | | | | | | | | with a comment describing it's advantages and the implication of changing it. While being there, fix a typo in NOTES. The option is not enabled in NOTES for now since large portions of code are conditional on it being disabled, too.
* | Axe AINC.ru2003-07-016-7/+2
| | | | | | | | Submitted by: bde
* | Add the new sparc64 OFW PCI framework, conditional on options OFW_NEWPCItmm2003-07-0119-372/+1160
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for now. It introduces a OFW PCI bus driver and a generic OFW PCI-PCI bridge driver. By utilizing these, the PCI handling is much more elegant now. The advantages of the new approach are: - Device enumeration should hopefully be more like on Solaris now, so unit numbers should match what's printed on the box more closely. - Real interrupt routing is implemented now, so cardbus bridges etc. have at least a chance to work. - The quirk tables are gone and have been replaced by (hopefully sufficient) heuristics. - Much cleaner code. There was also a report that previously bogus interrupt assignments are fixed now, which can be attributed to the new heuristics. A pitfall, and the reason why this is not the default yet, is that it changes device enumeration, as mentioned above, which can make it necessary to change the system configuration if more than one unit of a device type is present (on a system with two hme cars, for example, it is possible that hme0 becomes hme1 and vice versa after enabling the option). Systems with multiple disk controllers may need to be booted into single user (and require manual specification of the root file system on boot) to adjust the fstab. Nevertheless, I would like to encourage users to use this option, so that it can be made the default soon. In detail, the changes are: - Introduce an OFW PCI bus driver; it inherits most methods from the generic PCI bus driver, but uses the firmware for enumeration, performs additional initialization for devices and firmware-specific interrupt routing. It also implements an OFW-specific method to allow child devices to get their firmware nodes. - Introduce an OFW PCI-PCI bridge driver; again, it inherits most of the generic PCI-PCI bridge driver; it has it's own method for interrupt routing, as well as some sparc64-specific methods (one to get the node again, and one to adjust the bridge bus range, since we need to reenumerate all PCI buses). - Convert the apb driver to the new way of handling things. - Provide a common framework for OFW bridge drivers, used be the two drivers above. - Provide a small common framework for interrupt routing (for all bridge types). - Convert the psycho driver to the new framework; this gets rid of a bunch of old kludges in pci_read_config(), and the whole preinitialization (ofw_pci_init()). - Convert the ISA MD part and the EBus driver to the new way interrupts and nodes are handled. - Introduce types for firmware interrupt properties. - Rename the old sparcbus_if to ofw_pci_if by repo copy (it is only required for PCI), and move it to a more correct location (new support methodsx were also added, and an old one was deprecated). - Fix a bunch of minor bugs, perform some cleanups. In some cases, I introduced some minor code duplication to keep the new code clean, in hopes that the old code will be unifdef'ed soon. Reviewed in part by: imp Tested by: jake, Marius Strobl <marius@alchemy.franken.de>, Sergey Mokryshev <mokr@mokr.net>, Chris Jackman <cjackNOSPAM@klatsch.org> Info on u30 firmware provided by: kris
* | Fixed build.ru2003-07-011-0/+1
| | | | | | | | Noticed by: bde
* | Add PnP PS/2 id for Dell Latitude X200.mikeh2003-07-012-0/+2
| | | | | | | | | | PR: 48516 MFC after: 2 weeks
* | Some gem and hme hardware bogusly has the intpin register hardwired totmm2003-07-012-7/+12
| | | | | | | | | | 0; detect this case and correct it. While being there, clean up nearby comments.
* | Add a new PCI interface method, assign_interrupt, to determine thetmm2003-07-015-6/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | interrupt to be used for a device. This is intended solely for internal use of PCI bus implementations, and exists so that PCI bus drivers implementing special interrupt assignment methods which require additional work at the bus level to work right can be easily derived from the generic driver (or any other one) without resorting to hacks. It will be used in the sparc64 ofw_pcibus driver, which will be committed shortly. Make use of this method in the generic implementation, and add it to the method table of bus drivers derived from the PCI one. Reviewed by: imp, -hackers
OpenPOWER on IntegriCloud