aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* INclude <sys/mutex.h>'s prerequisite <sys/lock.h> instead of depending onBruce Evans2002-10-061-0/+1
| | | | | | | namespace pollution 2 layers deep in <sys/eventhandler.h>. Notes: svn path=/head/; revision=104547
* Make this work under GEOM.Matthew N. Dodd2002-10-063-184/+43
| | | | Notes: svn path=/head/; revision=104545
* NB: This commit does *NOT* make GEOM the default in FreeBSDPoul-Henning Kamp2002-10-052-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NB: But it will enable it in all kernels not having options "NO_GEOM" Put the GEOM related options into the intended order. Add "options NO_GEOM" to all kernel configs apart from NOTES. In some order of controlled fashion, the NO_GEOM options will be removed, architecture by architecture in the coming days. There are currently three known issues which may force people to need the NO_GEOM option: boot0cfg/fdisk: Tries to update the MBR while it is being used to control slices. GEOM does not allow this as a direct operation. SCSI floppy drives: Appearantly the scsi-da driver return "EBUSY" if no media is inserted. This is wrong, it should return ENXIO. PC98: It is unclear if GEOM correctly recognizes all variants of PC98 disklabels. (Help Wanted! I have neither docs nor HW) These issues are all being worked. Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=104519
* Get Vinum up and running with GEOM:Robert Watson2002-10-051-86/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | (1) Use namei() and devfs to discover devices rather than a hard-coded MAKEDEV implementation. Once rootfs is in place, this will allow Vinum to be used for the root file system partition. (2) Pass FREAD to device opens so that GEOM will return sector size rather than an error on attempts to read label data. (3) Avoid clobbering return values from close_drive() and masking this failure, resulting in a later divide by zero due to not having updated the Vinum-cached sector size. (4) Ignore failures from DIOCWLABEL as that appears not to be required in the GEOM environment. We've done testing in simple Vinum environments, but those with more complex environments might want to give this a spin in DP2 and make sure everything is up to speed. Fixes in collaboration with: iedowse Reviewed by: grog Notes: svn path=/head/; revision=104501
* Refinement on previous fix for mutex destruction: make sure we don'tRobert Watson2002-10-051-4/+3
| | | | | | | | | release the mutex multiple times for multi-plex volumes. Following further consultation with: grog Notes: svn path=/head/; revision=104500
* Remove a panic on vinum module unload: make sure to destroy all mutexesRobert Watson2002-10-051-1/+4
| | | | | | | | | | | before freeing so that WITNESS doesn't dereference mutex data pointers and page fault. It's now possible to unload vinum.ko with a GENERIC kernel on 5.0-CURRENT without panic. Debugged/fixed with the aid of: jake, grog Notes: svn path=/head/; revision=104499
* Make sure that ACPI PCI driver probe routine call pci_cfgregopen()Mitsuru IWASAKI2002-10-052-0/+6
| | | | | | | | | before start accessing PCI config space. Reviewed by: jhb Notes: svn path=/head/; revision=104496
* Oops, forgot to add main file for my previous commit :-)Mitsuru IWASAKI2002-10-051-0/+1077
| | | | Notes: svn path=/head/; revision=104495
* Add code for ACPI PCI link object manipulation.Mitsuru IWASAKI2002-10-054-2/+32
| | | | | | | | | | | | This allocate the best IRQ to boot-disable devices (have IRQ 0). Allocated IRQ will be used for PCI interrupt routing when ACPI is enabled. Note that verbose messaging enabled for the time being so that people can easily notice the strange behavior if it happened. Notes: svn path=/head/; revision=104494
* Crypto device driver for Broadcom-based cards. Known to work with 582x-basedSam Leffler2002-10-043-0/+2984
| | | | | | | | | cards. Supposed to work with several others. Obtained from: openbsd Notes: svn path=/head/; revision=104478
* Crypto device driver for hifn-based cards. Tested with 7951-, and 7811-basedSam Leffler2002-10-043-0/+3458
| | | | | | | | | cards. Claimed to support many others. Obtained from: openbsd Notes: svn path=/head/; revision=104477
* Remove duplicate make_dev() calls.Matthew N. Dodd2002-10-041-4/+0
| | | | Notes: svn path=/head/; revision=104448
* newbus & bus_space the mcd(4) driver.Matthew N. Dodd2002-10-044-451/+701
| | | | Notes: svn path=/head/; revision=104445
* Minor style(9) changes.Matthew N. Dodd2002-10-041-9/+16
| | | | Notes: svn path=/head/; revision=104441
* Remove duplicate calls to make_dev().Matthew N. Dodd2002-10-041-4/+0
| | | | Notes: svn path=/head/; revision=104440
* Oops, missed this one. Fix a printf format error on 64 bit systemsPeter Wemm2002-10-041-2/+2
| | | | | | | where sizes are long instead of int. Notes: svn path=/head/; revision=104432
* Fix printf format errors on 64 bit systems where sizes are longPeter Wemm2002-10-041-2/+4
| | | | | | | instead of just int. Notes: svn path=/head/; revision=104431
* Display the name of the acpi node that we do not find the pci interruptPeter Wemm2002-10-041-2/+3
| | | | | | | routing table for. Notes: svn path=/head/; revision=104430
* Static'ify a variable.Alfred Perlstein2002-10-031-1/+1
| | | | | | | Submitted by: Matt Emmerton <matt@gsicomp.on.ca> Notes: svn path=/head/; revision=104401
* Correct an indentation.Eric Anholt2002-10-031-1/+1
| | | | | | | Noticed by: phk Notes: svn path=/head/; revision=104397
* In an SMP environment post-Giant it is no longer safe to blindlyDon Lewis2002-10-031-1/+1
| | | | | | | | | | | | dereference the struct sigio pointer without any locking. Change fgetown() to take a reference to the pointer instead of a copy of the pointer and call SIGIO_LOCK() before copying the pointer and dereferencing it. Reviewed by: rwatson Notes: svn path=/head/; revision=104393
* Fix rare and probably inconsequential memory leak.Poul-Henning Kamp2002-10-021-1/+3
| | | | | | | Spotted by: FlexeLint Notes: svn path=/head/; revision=104389
* Fix a probably rare and inconsequential memory leak.Poul-Henning Kamp2002-10-021-1/+3
| | | | | | | Spotted by: FlexeLint Notes: svn path=/head/; revision=104386
* Fix mis-indentation.Poul-Henning Kamp2002-10-022-10/+10
| | | | | | | Spotted by: FlexeLint Notes: svn path=/head/; revision=104363
* Some kernel threads try to do significant work, and the default KSTACK_PAGESScott Long2002-10-0210-11/+11
| | | | | | | | | | | | | | | | doesn't give them enough stack to do much before blowing away the pcb. This adds MI and MD code to allow the allocation of an alternate kstack who's size can be speficied when calling kthread_create. Passing the value 0 prevents the alternate kstack from being created. Note that the ia64 MD code is missing for now, and PowerPC was only partially written due to the pmap.c being incomplete there. Though this patch does not modify anything to make use of the alternate kstack, acpi and usb are good candidates. Reviewed by: jake, peter, jhb Notes: svn path=/head/; revision=104354
* Use more standard variable names for modevent functions.Matthew N. Dodd2002-10-022-4/+4
| | | | Notes: svn path=/head/; revision=104345
* Create/destroy memory zones on module load/unload, not on deviceMatthew N. Dodd2002-10-022-15/+48
| | | | | | | attach/detach. Notes: svn path=/head/; revision=104344
* Fix a typo in BGE_BIGENDIAN_INIT.Jake Burkholder2002-10-011-2/+2
| | | | Notes: svn path=/head/; revision=104325
* Add a field to struct cmn_unit to hold a pointer to the driver's softc.Matthew N. Dodd2002-10-015-0/+6
| | | | Notes: svn path=/head/; revision=104323
* Misc cleanups.Søren Schmidt2002-10-013-15/+17
| | | | | | | Pointed out by: phk/flexelint Notes: svn path=/head/; revision=104299
* Add yet another Promise PCI id.Søren Schmidt2002-10-013-0/+4
| | | | Notes: svn path=/head/; revision=104298
* Removed the only PCI_DEBUG ifdef in the kernel. PCI_DEBUG was not aBruce Evans2002-10-011-2/+0
| | | | | | | | | | supported option and it disabled a whole 2 lines of bootverbose messages. I wanted to see 1 of the messages (about the latency timers). This is a wrong place to decode pci configurations, but the code is already here and handles more details than pciconf(8). Notes: svn path=/head/; revision=104287
* The bus number is unsigned, it cannot be less than zero.Poul-Henning Kamp2002-10-011-3/+0
| | | | | | | Found by: FlexeLint Notes: svn path=/head/; revision=104279
* Use if_printf(ifp, "foo") instead of printf("xe%d: foo", ifp->it_unit).Brooks Davis2002-10-011-2/+2
| | | | Notes: svn path=/head/; revision=104260
* Use if_printf(ifp, "blah") instead of printf("vx%d: blah", ifp->if_unit).Brooks Davis2002-10-011-2/+2
| | | | Notes: svn path=/head/; revision=104259
* Use if_printf(ifp, "blah") instead of printf("sr%d: blah", ifp->if_unit).Brooks Davis2002-10-011-4/+4
| | | | Notes: svn path=/head/; revision=104258
* Use if_printf(ifp, "blah") instead of printf("sn%d: blah", ifp->if_unit).Brooks Davis2002-10-011-8/+7
| | | | Notes: svn path=/head/; revision=104257
* Use if_printf() instead of printf() to print "sbni#: blah".Brooks Davis2002-10-011-4/+3
| | | | Notes: svn path=/head/; revision=104256
* Use if_printf(ifp, "blah") instead of printf("fe%d: blah", ifp->if_unit).Brooks Davis2002-10-011-7/+7
| | | | | | | | | | A number of functions in this driver still use the unit number in their printouts because they pass the unit directly as a function argument instead of passing a softc or struct ifnet pointer. This should be resolved at a future date. Notes: svn path=/head/; revision=104254
* Use if_printf() instead of printf() to print "ed#: blah".Brooks Davis2002-10-011-3/+2
| | | | Notes: svn path=/head/; revision=104253
* Use if_printf(ifp, "blah") instead ofBrooks Davis2002-10-011-23/+18
| | | | | | | printf(CS_NAME"%d: blah", ifp->if_unit); Notes: svn path=/head/; revision=104252
* Use if_printf(ifp, "blah") instead ofBrooks Davis2002-10-011-32/+29
| | | | | | | printf("%s%d: blah", ifp->if_name, ifp->if_unit); Notes: svn path=/head/; revision=104251
* Use if_printf(ifp, "blah") instead of printf("ar%d: blah", ifp->if_unit).Brooks Davis2002-10-011-4/+4
| | | | Notes: svn path=/head/; revision=104249
* Remove a left over '&' from the conversion to using ourJustin T. Gibbs2002-09-301-2/+2
| | | | | | | | | softc referenced seeprom store. MFC after: 1 day Notes: svn path=/head/; revision=104231
* Gremlins ate my comment!Josef Karthauser2002-09-301-1/+1
| | | | | | | Submitted by: Clive Lin <clive@tongi.org> Notes: svn path=/head/; revision=104229
* In rev 1.51 of usb_port.h I switched over to using the USB_USE_SOFTINTRJosef Karthauser2002-09-305-0/+21
| | | | | | | | | | | | | | | | | | code path to fix a bug in the non USB_USE_SOFTINTR path that caused the usb bus to hang and generally misbehave when devices were unplugged. In the process though it also reduced the throughput of usb devices because of a less than optimal implementation under FreeBSD. This commit fixes the non USB_USE_SOFTINTR code in uhci and ohci so that it works again, and switches back to using this code path. The uhci code has been tested, but the ohci code hasn't. It's essentially the same anyway and so I don't envisage any difficulties. Code for uhci submitted by: Maksim Yevmenkin <myevmenk@exodus.net> Notes: svn path=/head/; revision=104221
* Add support for DIOCGMEDIASIZE and DIOCGSECTORSIZE.Poul-Henning Kamp2002-09-301-40/+9
| | | | | | | | | Remove all traces of disklabel. Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=104211
* If GEOM is in the kernel, take these three out. I have no way ofPoul-Henning Kamp2002-09-302-0/+6
| | | | | | | | | | | testing any modifications to them, they shouldn't even bother with disklabels in the first place and they are just plain obsolete old hardware which should be axed entirely before 5.0-R IMO. Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=104210
* Prefix private BIO commands with "FD" so people get a hint that theyPoul-Henning Kamp2002-09-301-11/+11
| | | | | | | | | are in fact private. Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=104209
* HARP driver for the IDT77201/211 NICStAR ATM Adapter (Including Fore LE155).Matthew N. Dodd2002-09-305-0/+4699
| | | | | | | Obtained from: Richard Hodges <rh@matriplex.com> Notes: svn path=/head/; revision=104173