summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Restore approximately FreeBDS 6.x's level of compatibility macros.imp2007-06-211-4/+74
| | | | | | | | | Older drivers that do not wish to convert to the native API (which will work with both 6.x and 7.x) can simply include <dev/usb/usb_port.h>. Drivers in the tree shouldn't these macros, unless they actually work on other OSes and are actively maintained. Approved by: re@
* s/logprintf/printf/gimp2007-06-2033-90/+90
| | | | Approved by: re@
* Use .CURDIR when referring source code. This fixes builddelphij2007-06-201-1/+1
| | | | | | | | when 'make obj' was done first. I found this when fixing a problem reported by tinderbox, but forgot to send the patchset to re@ altogether. Approved by: re (kensmith)
* Fix build problem caused by a set of typos.delphij2007-06-191-6/+6
| | | | | Reported by: tinderbox Approved by: re (mux)
* devfs_free() calls free_unr(), that may sleep.kib2007-06-191-6/+34
| | | | | | | | | | | Postpone call to devfs_free() after cdev mutex is dropped. Reuse cdp_list link for queuing devices awaiting deletion in the cdevp_free_list. Reported by: Hans Petter Selasky <hselasky c2i net> Tested by: Peter Holm Approved by: re (kensmith) MFC after: 2 weeks
* Add the witness warning for free_unr. Function could sleep, thus callerskib2007-06-191-0/+1
| | | | | | | shall not have any non-sleepable locks held. Submitted by: Hans Petter Selasky <hselasky c2i net> Approved by: re (kensmith)
* Include usb_port.h to fix build.delphij2007-06-192-0/+2
| | | | | Reported by: tinderbox Approved by: re (mux)
* Fix headphone jack sensing support for Olivetti Olibook 610-430 XPSE.ariff2007-06-181-1/+4
| | | | Tested by: Gonzalo Lionel Rodriguez
* - Two more static analisys bugs found by cisco's tool on a subsequentrrs2007-06-182-3/+5
| | | | run.
* Mark the few remaining drivers that haven't been converted as needingimp2007-06-184-0/+4
| | | | usb_port.h by explicitly including it.
* Expand usb_port macrosimp2007-06-181-6/+26
|
* Remove usb_port.h from usb.h, except for one or two useful things thatimp2007-06-182-6/+4
| | | | don't belong there (these moved into usb.h).
* Expand usb_port.h macros.imp2007-06-183-35/+78
|
* Expand usb_callout_initimp2007-06-181-1/+1
|
* Finish removal of usb_port.h macros.imp2007-06-1812-48/+143
|
* Explicitly use usb_port.h to get compat macros.imp2007-06-181-0/+1
|
* Use device_foo_t to declare kobj methodsimp2007-06-188-58/+80
| | | | Fix shutdown type to return int rather than void.
* finish removing usb_port.h macros.imp2007-06-181-14/+14
| | | | | Use device_foo_t to declare functions a little de-k&r
* Finish removing usb_port.h compat macros.imp2007-06-182-26/+71
|
* According to the default font size on sparc64 provide a 12 x 22marius2007-06-181-1/+32
| | | | | | | | mouse pointer instead of a 8 x 16 one so device drivers don't need to bring there own one there and in gfb_mouse() (ab)use the pixel_mask argument of putm() to pass along on/off info as erasing the mouse cursor image by redrawing the text underneath doesn't work as we use hardware cursors on sparc64.
* - Fixes cstatic issues found by cisco sa tool (missing frees and suchrrs2007-06-186-5/+23
| | | | | on error legs) - align sctp_sockstore to 64 bit boundary ..
* - Move ofw_pci_alloc_busno() to the ofw_pci KOBJ interface,marius2007-06-187-99/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | allowing the driver for the host-PCI-bridge to indicate that reenumeration of the PCI busses isn't supported by returning -1 instead of a valid PCI bus number. This is needed in order support both Tomatillo, which don't support reenumeration and thus are apparently intended to be used for independently numbered PCI domains only, and Psycho bridges, whose busses need to be reenumerated on at least some E450, without the #ifndef currently used for sun4v in order to support multiple independently PCI domains. The actual allocation/incrementation of the PCI bus numbers is now done in psycho(4), though it no longer establish a mapping between bus numbers and device nodes like ofw_pci_alloc_busno() did as that functionality wasn't used (but can easily brought back if really needed). The now no longer used sys/sparc64/pci/ofw_pci.c is also removed from sys/conf/files.sun4v as ofw_pci_alloc_busno() wasn't used there in the first place. - In ofw_pci_default_{adjust_busrange,intr_pending}() sanity check that the device has a parent before passing it on. - Make psycho_softcs static to sys/sparc64/pci/psycho.c as it's not used outside of that module. - In sys/sparc64/pci/ofw_pcib_subr.c remove the superfluous inclusion of opt_global.h and correct the debug output for adjusting the subordinate bus number.
* For sun4u also add PCI busses with a device unit number of -1marius2007-06-181-8/+1
| | | | | | | | | | | instead of using the PCI bus number, like it's already done for sun4v in order to deal properly with independently numbered PCI domains which can't be reenumerated (in the case of sun4u f.e. Tomatillo bridges). For machines where we need to reenumerate all PCI busses this change obviously introduces the theoretical cosmetic problem that the device number of the PCI bus no longer equals to its PCI bus number. In practice this doesn't happen as both are assigned linearly and in parallel.
* Fix some debugging code that crept in accidentally.scottl2007-06-181-3/+3
|
* o Make ipfw set more robust -- now it is possible:maxim2007-06-181-18/+60
| | | | | | | | | | | | - to show a specific set: ipfw set 3 show - to delete rules from the set: ipfw set 9 delete 100 200 300 - to flush the set: ipfw set 4 flush - to reset rules counters in the set: ipfw set 1 zero PR: kern/113388 Submitted by: Andrey V. Elsukov Approved by: re (kensmith) MFC after: 6 weeks
* Use vfs_timestamp() instead of nanotime() - make it up todelphij2007-06-181-1/+1
| | | | | the user to make decisions about how detail they wanted timestamps to have.
* Add additional logging level mask for packet_logging too.rrs2007-06-183-9/+19
|
* We only flush entries related to the given file system. Currently there arepjd2007-06-181-3/+0
| | | | | no 'invalid' cache entires - file system is responsible for keeping it that way. The comment should have been updated in rev.1.25.
* Update comment: kernel privileges are, in fact sorted by subsytem.rwatson2007-06-181-1/+1
|
* minor style(9) polishingimp2007-06-181-7/+4
| | | | # but we need a usb_match function, if we don't already have one...
* Eliminate unnecessary checks from vm_pageout_clean(): The page that isalc2007-06-181-7/+4
| | | | | | | | | | | | passed to vm_pageout_clean() cannot possibly be PG_UNMANAGED because it came from the inactive queue and PG_UNMANAGED pages are not in any page queue. Moreover, PG_UNMANAGED pages only exist in OBJT_PHYS objects, and all pages within a OBJT_PHYS object are PG_UNMANAGED. So, if the page that is passed to vm_pageout_clean() is not PG_UNMANAGED, then it cannot be from an OBJT_PHYS object and its neighbors from the same object cannot themselves be PG_UNMANAGED. Reviewed by: tegge
* MFp4: fix two locking problems:delphij2007-06-182-0/+7
| | | | | | | | | - Hold TMPFS_LOCK while updating tm_pages_used. - Hold vm page while doing uiomove. This will hopefully fix all known panics. Submitted by: Howard Su
* - The packet log needs to copy all of the buffer not to the end.rrs2007-06-171-2/+3
|
* Have gpart synthesize a disk geometry if the underlying providermarcel2007-06-173-55/+189
| | | | | | | don't have it. Some partitioning schemes, as well as file systems, operate on the geometry and without it such schemes (e.g. MBR) and file systems (e.g. FAT) can't be created. This is useful for memory disks.
* Silence some gcc 4 warnings. It is expected that the bpf_movein() routinecsjp2007-06-171-0/+2
| | | | | | will intialize the the header length and re-initialize the mbuf pointer to reference the mbuf that is allocated after moving user supplied packet data in.
* Back out last change to inpcb_free. Turns out we needrrs2007-06-171-3/+14
| | | | | | | to hold off freeing if there is data pending ... someone might do send/close. Which means we want the data to go and then close it after startup. Added comments to the code as well to note that this is done for a reason.
* Spelling nit due to my lamenglishness.ariff2007-06-171-1/+1
| | | | Noticed by: brueffer
* Remove USBGETSOFTC, USB_ATTACH_START, USB_DETACH_START andimp2007-06-177-27/+69
| | | | USB_DECLARE_DRIVER_INIT from the usb network drivers.
* Remove unused softc.marius2007-06-171-6/+2
|
* Expand USB_MATCH_STARTimp2007-06-1729-29/+29
|
* Add sysctl/tunable "hw.snd.default_auto", which is useful (especiallyariff2007-06-171-1/+6
| | | | | for non-root users) to automatically assign default unit to a newly attach device like USB audio.
* Reassign default unit to a valid unit, be it during attach or detach.ariff2007-06-172-3/+8
| | | | | | | If nothing is available, set to something that is purely ridiculous so the next valid attach will notice it. Tested by: chibis
* Fix a compile error from the last change.scottl2007-06-171-1/+1
|
* Remove USB_DO_ATTACHimp2007-06-171-3/+0
|
* Expand USB_DO_ATTACH inline.imp2007-06-171-12/+8
| | | | | | | | | | Remove device_t dv, since it is no longer needed. Add sizeof(device_t) to replace sizeof dv. Change device_detach(dev) to device_detach(dev->subdevs[i]) since the type of dev isn't right! Not sure when this was introduced, but it likely would lead to a crash on disconnect. MFC After: 1 week
* Use bus_dma to get a page in the first 4 GB. Since the physical addressnjl2007-06-171-17/+70
| | | | | | | | of the magic string is passed in a 32-bit register, we can't use high memory in the PAE case. This also eliminates a use of vtophys(). Tested by: Jeff Shimbo <jts767 / gmail.com> MFC after: 1 week
* Flush remaining malloc() cleanups (M_NOWAIT -> M_WAITOK).ariff2007-06-1727-128/+29
|
* Prepare for future integration between CAM and newbus. xpt_bus_registerscottl2007-06-1749-53/+68
| | | | | | | now takes a device_t to be the parent of the bus that is being created. Most SIMs have been updated with a reasonable argument, but a few exceptions just pass NULL for now. This argument isn't used yet and the newbus integration likely won't be ready until after 7.0-RELEASE.
* Initialize key to zero.mjacob2007-06-171-1/+1
|
* Try a cheap way to get around gcc4.2 believing that user argumentsmjacob2007-06-171-3/+6
| | | | to system calls can change across intervening functions.
OpenPOWER on IntegriCloud