summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Fix a gcc-3.1+ warning.peter2002-03-192-0/+5
| | | | | | | | | | | warning: deprecated use of label at end of compound statement ie: you cannot do this anymore: switch(foo) { .... default: }
* Regen; post SMC id's and also pick up a previously forgotten regen(?).peter2002-03-192-2/+49
|
* Add another SMC device ID and the hub ID that it went with.peter2002-03-191-0/+3
|
* Add the ia64 bus space tag for the IO ports (!).peter2002-03-192-0/+8
| | | | Add a #else and #error so that this doesn't go unnoticed again.
* Initialize variables before use. This was needed to pass -Werror.jeff2002-03-191-0/+4
| | | | Reviewed by: jake
* The previous commit missed fixing 2 old printf format errors andbde2002-03-191-3/+3
| | | | introduced a format printf error.
* Fix printf warning caused by recent changes in bio_pblkno's type.gallatin2002-03-191-1/+2
|
* Fixed printf format errors in previous commit. %llu is no more suitablebde2002-03-181-2/+4
| | | | | | | | | | | | than %u for printing signed 64-bit types. It fails on different machines, and has the wrong signdness. Fixed old printf format error on the same line. %u is not suitable for printing 32-bit types on all machines. "Fixed" format printf error in previous commit. This file is not formatted in KNF. Partially restore bug for bug compatibility: indent the printf args too much, but don't format them for 160-column terminals.
* Fixed printf format errors in previous commit. %llu is no more suitablebde2002-03-181-2/+3
| | | | | | | | than %u for printing signed 64-bit types. It fails on different machines, and has the wrong signdness. Fixed old printf format error on the same line. %u is not suitable for printing 32-bit types on all machines.
* Formats that print the block number need to be changed from %u toimp2002-03-182-4/+4
| | | | %llu due to recent changes in bio_pblkno's type.
* Add a USB comm driver.joe2002-03-185-0/+3025
| | | | Ported from NetBSD by: akiyama
* Cleanup the chipset setup a bit.sos2002-03-181-6/+12
| | | | Add some (for all I know unneeded) setup code for the rosb4.
* Add support for the ServerWorks CSB5 chipssos2002-03-182-5/+60
|
* Regen for 1.28 of pccarddevsimp2002-03-171-1/+7
|
* Add support for the home Wireless Network airway wireless pcmcia card.imp2002-03-171-0/+4
| | | | | I cannot find where I got these patches, but I think it was from the bsd-nomads mailing list. Please contact me if you posted them there.
* Work around a PLX9050 bug that causes system lockup in certain systems,bde2002-03-171-3/+4
| | | | | | | | | depending on the MMIO addresses allocated to the board. PR: 30965, 20845 (maybe) Submitted by: Daniela Squassoni <daniela@cyclades.com> Tested by: Arjan Knepper <arjan@jak.nl> Scott Klement <klemscot@klements.com>
* Extend CONS_GETINFO ioctl to provide information about size of the currentlysobomax2002-03-161-0/+1
| | | | | | displayed font. MFC after: 2 weeks
* o Rework the identify routine a little, merging it with NetBSD's wi.imp2002-03-163-50/+45
| | | | | | | | | | | | | | | | | o Add exerpimental support for identifying lucent cards. All of mine come back with ID of 1, but NetBSD committed code for 5. So accept both. o rename wi_prism2_ver to wi_firmware_ver so that we could, if necessary, do special things for lucent cards too. o Bring in a small part of the changes from airtools: The wi_cmd function now takes two additional arguments. I didn't bring in their ioctls yet. o eliminate the use of LE16TOH, and remove its define. o Print the firmware as if there were 100 versions instead of 10. This means that 6.1 and 6.10 aren't confusing to people. We now print 6.01 in the former case. # A good junior hacker project would be to merge the NetBSD, FreeBSD, and # OpenBSD drivers into one source base.
* Add more functionality to the CDIOCREADSUBCHANNEL ioctl.sos2002-03-162-36/+30
| | | | PR: 26644
* Fix 64bit arch problems.sos2002-03-162-5/+6
|
* Remove useless splXXX set.sos2002-03-161-3/+0
|
* Merge from NetBSD:joe2002-03-164-11/+26
| | | | | | | | | | | | | | | | | ohcivar.h (1.22), uhcivar.h (1.29): ============================================================ date: 2000/04/25 09:20:55; author: augustss; Move the size of the mapped bus_space region into the bus independent softc. ============================================================ ohci.c (1.88), uhci.c (1.112): ============================================================ date: 2000/04/25 14:28:13; author: augustss; Insert (very conservative!) bus_space_barrier() calls at all register accesses. The bus_space(9) man page says you've gotta have them... ============================================================
* Bump some $NetBSD$ idents for patches that have already been previouslyjoe2002-03-162-2/+2
| | | | ported.
* Huge merge from NetBSD:joe2002-03-168-293/+368
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | usbdi.c (1.61): =================================================================== revision 1.61 date: 2000/01/31 20:13:07; author: augustss; lines: +20 -4 Change the way the HC done method is invoked a little. =================================================================== usbdi.c (1.65): =================================================================== revision 1.65 date: 2000/03/08 15:34:10; author: augustss; lines: +4 -2 Get the status right when a polled transfer times out. =================================================================== ohci.c (1.79), uhci.c (1.89), uhcivar.h (1.24), usb_port.h (1.22), usbdivar.h (1.48): =================================================================== date: 2000/03/23 07:01:46; author: thorpej; New callout mechanism with two major improvements over the old timeout()/untimeout() API: - Clients supply callout handle storage, thus eliminating problems of resource allocation. - Insertion and removal of callouts is constant time, important as this facility is used quite a lot in the kernel. The old timeout()/untimeout() API has been removed from the kernel. =================================================================== uhci.c (1.80), usbdi.c (1.66): =================================================================== date: 2000/03/23 18:59:10; author: thorpej; Shake out some bugs from the callout changes. =================================================================== ohci.c (1.80), uhci.c (1.91), uhcivar.h (1.25), usb_port.h (1.23), usbdi.c (1.67), usbdivar.h (1.49): =================================================================== date: 2000/03/24 22:03:30; author: augustss; Some cleanup and renaming of the callouts used in USB drivers. =================================================================== uhci.c (1.92), uhcivar.h (1.26): =================================================================== date: 2000/03/24 22:57:58; author: augustss; Two major changes: Make each xfer have its own intr_info. This is necessary if we want to queue multiple xfers on an endpoint. This should get rid of the (mostly harmless) DIAGNOSTICs about intr_infos (not) being done. Change (again!) how xfers are aborted. Aborting a TD is a nightmare on the braindead UHCI controller. (Unless you stop the HC, thereby losing isoc traffic.) Hopefully I got it right this time. =================================================================== usbdivar.h (1.50): =================================================================== revision 1.50 date: 2000/03/25 00:10:19; author: augustss; lines: +4 -2 GC an unsued field and add some DIAGNOSTIC in xfer. =================================================================== ums.c: Use the callout functions instead of the timeout ones. uhci.c (1.93): =================================================================== revision 1.93 date: 2000/03/25 00:11:21; author: augustss; lines: +26 -1 Add more DIAGNOSTIC when aborting isoc. =================================================================== uhci.c (1.94), usbdivar.h (1.51): =================================================================== date: 2000/03/25 07:13:05; author: augustss; More DIAGNOSTIC. Initialize a callout handle I forgot. =================================================================== uhci.c (1.95): =================================================================== revision 1.95 date: 2000/03/25 07:23:12; author: augustss; Exp; lines: +24 -7 Improve uhci_dump_ii(). =================================================================== ohci.c (1.81), uhci.c (1.96), uhcivar.h (1.27), usb_subr.c (1.68), usbdi.c (1.68), usbdivar.h (1.52): =================================================================== date: 2000/03/25 18:02:33; author: augustss; Rename and move around callout handles to make it more sane. Add some DIAGNOSTIC. Fix buglet in isoc abort on UHCI. =================================================================== uhci.c (1.98): =================================================================== revision 1.98 date: 2000/03/27 07:39:48; author: augustss; lines: +12 -4 Make it compile without DIAGNOSTIC. =================================================================== uhci.c (1.99): =================================================================== revision 1.99 date: 2000/03/27 08:01:09; author: augustss; lines: +1 -5 Remove some debug nonsense. =================================================================== uhci.c (1.100): =================================================================== revision 1.100 date: 2000/03/27 09:41:36; author: augustss; lines: +13 -3 Don't mess with QH in bulk abort for the moment. =================================================================== uhci.c (1.102): =================================================================== revision 1.102 date: 2000/03/27 22:42:57; author: augustss; lines: +66 -26 Be a little more careful when aborting. Preallocate some TDs for large buffers. =================================================================== uhci.c (1.103): =================================================================== date: 2000/03/28 09:47:10; author: augustss; lines: +11 -1 Another patch for xfer abort... XXX The current xfer queueing and aborting semantics should really XXX be changed. It cannot be implemented in a sane way on UHCI. XXX One day when I have lots of time I'll redesign it... =================================================================== uhci.c (1.104): Correct a debug message. uhci.c (1.105): Be more defensive in a DIAGNOSTIC test. uhci.c (1.106): =================================================================== revision 1.106 date: 2000/03/29 01:49:13; author: augustss; lines: +14 -309 *SIGH* Revert back to the old method of aborting xfers. I had tested the new stuff for two months now, but as soon as I commited it the problems started to appear. Murphy, no doubt... =================================================================== usb_subr.c (1.70), usbdi.c (1.71), usbdivar.h (1.53): =================================================================== revision 1.70 date: 2000/03/29 01:45:20; author: augustss; lines: +2 -1 Do not accept new xfers for queuing while a pipe is aborting. ===================================================================
* Add device ID for Xircom modem. Also add work around from gwk@sgi.comimp2002-03-162-3/+10
| | | | | | | | to put the device into 8 bit mode a second time. This appears to have no ill effects on other devices, and appears to be necessary for the xircom modem. Submitted by: gwk@sgi.com, many others that found his patch in the archives.
* Support for LG GM82C700, an AIC6360 clone.luoqi2002-03-153-11/+39
|
* Introduce the new 64-bit size disk block, daddr64_t. Changemckusick2002-03-156-14/+14
| | | | | | | | | | | | the bio and buffer structures to have daddr64_t bio_pblkno, b_blkno, and b_lblkno fields which allows access to disks larger than a Terabyte in size. This change also requires that the VOP_BMAP vnode operation accept and return daddr64_t blocks. This delta should not affect system operation in any way. It merely sets up the necessary interfaces to allow the development of disk drivers that work with these larger disk block addresses. It also allows for the development of UFS2 which will use 64-bit block addresses.
* Update to the RAID1 rebuild code.sos2002-03-152-21/+37
| | | | | | Run rebuild as a background process. Sponsored by: Advanis
* Revert most of the recent PCI merge. This has proven to be tooimp2002-03-152-126/+971
| | | | | unstable for the coming DP1 release. Instead, I'll develop that on the IMP_CB_MERGE branch until it is more stable.
* Unbreak the probing of some CDROM drives.sos2002-03-141-3/+3
|
* Only allow super user to perform the Linux compatible ioctls since someambrisko2002-03-141-0/+4
| | | | | | of the things they do, shouldn't be done by normal users. MFC after: 2 days
* Fixes to make select/poll mpsafe.alfred2002-03-147-10/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: selwakeup required calling pfind which would cause lock order reversals with the allproc_lock and the per-process filedesc lock. Solution: Instead of recording the pid of the select()'ing process into the selinfo structure, actually record a pointer to the thread. To avoid dereferencing a bad address all the selinfo structures that are in use by a thread are kept in a list hung off the thread (protected by sellock). When a selwakeup occurs the selinfo is removed from that threads list, it is also removed on the way out of select or poll where the thread will traverse its list removing all the selinfos from its own list. Problem: Previously the PROC_LOCK was used to provide the mutual exclusion needed to ensure proper locking, this couldn't work because there was a single condvar used for select and poll and condvars can only be used with a single mutex. Solution: Introduce a global mutex 'sellock' which is used to provide mutual exclusion when recording events to wait on as well as performing notification when an event occurs. Interesting note: schedlock is required to manipulate the per-thread TDF_SELECT flag, however if given its own field it would not need schedlock, also because TDF_SELECT is only manipulated under sellock one doesn't actually use schedlock for syncronization, only to protect against corruption. Proc locks are no longer used in select/poll. Portions contributed by: davidc
* Add 5th parameter to pci_read_device specifying the size of the objectimp2002-03-132-6/+6
| | | | to create.
* Cleanup the recent cardbus cleanups. This fixes some of the panicsimp2002-03-132-50/+31
| | | | | that I introduced with -v. However, other problems still remain (including the loss of interrupts).
* Only i386 has wbinvd().dfr2002-03-121-0/+2
|
* Do not concatenate __func__ with strings, because it is not a string.peter2002-03-121-2/+2
| | | | Later gcc's blow up on this.
* Do not do string concatenation with __func__ (which is not a string)peter2002-03-121-1/+1
|
* Recent acpica imports have changed the lengths from UINT32 to ACPI_SIZE,peter2002-03-121-3/+3
| | | | which is 64 bit on ia64. Fix it.
* Add support for 3Com Airconnect PCI cards.brooks2002-03-111-0/+1
| | | | MFC after: 3 days
* Add new support for locking an ATA channel and use that throughoutsos2002-03-118-49/+70
| | | | | | the ATA/ATAPI driver. This solves the concurrency problem with the new GEOM code, and also cuts a good deal of the patch size in the upcoming MFC.
* On FreeBSD make usb_proc_t the same as d_thred_t always.imp2002-03-111-2/+2
|
* Be more specific about when block major numbers disappeared fromjoe2002-03-119-9/+9
| | | | the cdev switch.
* Due to changes in the handling of the #line directive by GCC(cpp) 3.1,obrien2002-03-111-1/+1
| | | | we must now explicitly list the source directory with -I.
* Make the diagnostics printfs less ugly.dd2002-03-111-4/+6
|
* Use the pci_enable_* functions instead of manually fiddling with thetmm2002-03-112-12/+8
| | | | | | command register. Pointed out by: msmith
* Silence a warning when compile without atapi devices.sos2002-03-101-3/+4
|
* Do not call a synthesizer with a sequencer lock held.tanimura2002-03-101-2/+12
|
* Add SONY VAIO psm controller ISA-PnP ID.takawata2002-03-101-0/+1
|
* Fix one genuine bug and a potential one:luigi2002-03-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | -#if defined(__FreeBSD__) && __FreeBSD_version__ >= 500023 +#if defined(__FreeBSD__) && __FreeBSD_version >= 500023 is a genuine bug -- __FreeBSD_version__ does not exist. The other one: -#if (__FreeBSD__ < 5) +#if (__FreeBSD_version < 500000) pops out when you cross-compile the code: __FreeBSD__ is a compiler predefine, __FreeBSD_version is defined in <sys/param.h> . Given that in this case (and all others in sys/dev/usb and sys/i4b) the goal is to adapt to a different kernel interface, and not to a compiler feature, I believe the correct form is the second one (in the best case the two are synonyms so the change does not break anything anyways).
* Set the busmaster enable bit in the PCI command register, as the firmwaretmm2002-03-091-0/+9
| | | | | of sparc64 machines will not do this for us if the interface is not used for booting over the network.
OpenPOWER on IntegriCloud