summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* - switch adapter and port lock over to using sx so that resourceskmacy2007-06-174-85/+205
| | | | | | | | | | | | | | | can be allocated atomically - add debug macros for printing lock initialization / teardown - add buffers to port_info and adapter to allow each lock to have a unique name - destroy mutexes initialized by cxgb_offload_init - remove recursive calls to ADAPTER_LOCK - move callout_drain calls so that they don't occur with the lock held - ensure that only as many qsets as are needed are initialized and destroyed MFC after: 3 days Sponsored by: Chelsio Inc.
* Initialize mouse resolution to zero if converting frommjacob2007-06-171-0/+2
| | | | OLD to NEW.
* Check for pte being NULL in return from pmap_pte_pde- unlikely ormjacob2007-06-171-0/+6
| | | | | even impossible, but it's better ot have a panic and a quiesced gcc4.2.
* Initialize lastaddr to zero to make gcc4.2 happy.mjacob2007-06-171-1/+1
|
* Don't declare inline a function which isn't.mjacob2007-06-171-1/+1
|
* Make sure object is NULL- there is a possible case where you couldmjacob2007-06-171-1/+2
| | | | | fall through to it being used w/o being set. Put a break in the default case.
* Initialize reqpage to zero.mjacob2007-06-171-1/+1
|
* gcc4.2 somehow doesn't believe that finaldst can stay stable betweenmjacob2007-06-171-3/+3
| | | | | | where it's initialized and where it's checked twice such that the origingal destination address is saved. Make it happier and trim things down a bit.
* Make gcc4.2 happy and zero save_ip for the unlikely (blackhole != 0)mjacob2007-06-171-0/+2
| | | | codepath.
* - For sctp_input/sctp6_input add announcment when a packet arrives (debug)rrs2007-06-174-8/+10
| | | | | | | | | | - re-factor the packet drop in sctp_output a bit more, we don't need the trim after all, but the size calc is now corrected. - When a assoc is in the COOKIE-ECHO/COOKIE-WAIT state and the user closes, it should not matter if data is queued, the assoc should be purged. - In error leg a missing free_chunk when iph comes in NULL (should not happen but just in case).
* Replace incorrect local OFFSET_OF macro with the correct and genericmjacob2007-06-172-6/+1
| | | | offsetof macro.
* Simplification to quiet a gcc4.2 warning. Just by setting match.s_addrmjacob2007-06-171-14/+9
| | | | | | | to nonzero you fulfill the same function as the variable 'cmp'. so you might as well zero match and test against it later. Reviewed by: timeout on review request
* - Make better use of the global chosen, memory and mmu handles insteadmarius2007-06-178-333/+96
| | | | | | | | | | | | | | | | | | | | | | | | | of obtaining them over and over again and pretending we could do anything useful without them (for chosen this includes adding a declaration and initializing it in OF_init()). - In OF_init() if obtaining the memory or mmu handle fails just call OF_exit() instead of panic() as the loader hasn't initialized the console at these early stages yet and trying to print out something causes a hang. With OF_exit() one at least has a change to get back to the OFW boot monitor and debug the problem. - Fix OF_call_method() on 64-bit machines (this is a merge of sys/dev/ofw/openfirm.c rev 1.6). - Replace OF_alloc_phys(), OF_claim_virt(), OF_map_phys() and OF_release_phys() in the MI part of the loader with wrappers around OF_call_method() in the sparc64. Beside the fact that they duplicate OF_call_method() the formers should never have been in the MI part of the loader as contrary to the OFW spec they use two-cell physical addresses. - Remove unused functions which are also MD dupes of OF_call_method(). - In sys/boot/sparc64/loader/main.c add __func__ to panic strings as different functions use otherwise identical panic strings and make some of the panic strings a tad more user-friendly instead of just mentioning the name of the function that returned an unexpected result.
OpenPOWER on IntegriCloud