summaryrefslogtreecommitdiffstats
path: root/sys/dev
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@
* 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
* 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
* 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.
* Fix some debugging code that crept in accidentally.scottl2007-06-181-3/+3
|
* minor style(9) polishingimp2007-06-181-7/+4
| | | | # but we need a usb_match function, if we don't already have one...
* 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.
* 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
* 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-1745-48/+61
| | | | | | | 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
|
* - 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.
* Also mark writecombine as enabled when PAT is used to enablegallatin2007-06-171-2/+2
| | | | it rather than MTRRs.
* only register a ithread handler if the card requests an ithreadimp2007-06-161-3/+2
| | | | handler.
* - In gem_bitwait() check that the bit clears/was set in the contentmarius2007-06-161-2/+2
| | | | | | | | of the register rather than in the offset describing the register. - In gem_reset_rx() let gem_bitwait() check for the Rx reset bit rather than the Tx reset bit to clear. Obtained from: OpenBSD (same/similar bugs being fixed)
* Export mc146818_def_{read,write}() so the front-end can make usemarius2007-06-162-4/+6
| | | | of them if needed.
* In OF_init() check the return value of OF_getprop().marius2007-06-161-1/+2
| | | | | Found with: Coverity Prevent(tm) CID: 679
* - Restore the machine independency of sys/dev/ofw/openfirm.{c,h} bymarius2007-06-162-62/+0
| | | | | | | moving OF_set_mmfsa_traptable() (SUNW,set-trap-table with the two arguments used here is specific to sun4v) to MD code. - In sys/dev/ofw/openfirm.h remove prototypes for unimplemented functions and unused Solaris compatibility macros.
* Move the gallant 12 x 22 font data from a .h to a .c so it doesn't needmarius2007-06-164-6202/+30
| | | | | | | to be compiled into every driver making use of it. Use a const instance of struct gfb_font for this as the font isn't intended to be changed at run-time and in order to accompany the font data with height and width info.
* Sync the styles of sys/boot/ofw/libofw/openfirm.c andmarius2007-06-161-272/+263
| | | | | sys/dev/ofw/openfirm.c with themselves, with each-other and with style(9).
* - Define data of struct gfb_font a const as it's only used to supply fontmarius2007-06-162-2/+2
| | | | | | | | | | | data and remove the array size from the definition as f.e. the gallant 12 x 22 font data is 256 * 44 in size, exceeding the previously hard- coded size. - Declare the bold8x16 instance of struct gfb_font as const as it's not intended to be changed at run-time as a whole either. - Use __FBSDID in xboxfb.c Tested by: rink
* Use signed int, since all the samples are in that form.ariff2007-06-161-4/+4
| | | | | This will help future implementation of soft amplifier with variable/relative 0db.
* Per request (to core) by the person refered to in the comment.wilko2007-06-161-2/+0
|
* Last (again ?!?) major commit for RELENG_7, featuring total Giantariff2007-06-1616-1220/+2010
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | eradication in/from userland path, countless locking fixes, etc. - General sleep call through msleep(9) has been converted to condvar(9) with better consistencies. - Heavily guard every possible "slow path" entries (open(), close(), few ioctl()s, sysctls), but once it entering "fast path" (io, interrupt started), they are free to fly on their own. - Rearrange locking sequences, resulting better concurrency and serialization. Large part doesn't even need locking at all, and will be removed in future. Less clutter, except in few places due to lock ordering. - Anonymous mixer object creation/deletion to simplify mixer handling beyond typical mixer ioctls. Submitted by: chibis (with modifications) - Add few mix_[get|set|..] functions to avoid calling mixer_ioctl() directly using cryptic arguments. - Locking fixes to avoid possible deadlock with (still under Giant) USB. - Better simplex/duplex device handling. - Recover mmap() functionality for recording, which has been lost since 2.2.x - 3.x (the introduction of newpcm). Full-duplex mmap still doesn't work (due to VM/page design), but people still can mmap both by opening each direction separately. mmaped playback is guarantee to work either way. - New sysctl: "hw.snd.compat_linux_mmap" to allow PROT_EXEC page mapping, due to recent changes in linux compatibility layer which require it. All linux applications that using sound + mmap() (mostly games) require this to be enabled. Disabled by default. - Other goodies.. too many, that will increase releng7 shareholder value and make users of releng6 (and below) cry ;) * This commit should be atomic. If anything goes wrong (not counting problem originated from elsewhere), I will not hesitate to revert everything back within 12 hours. This substantial changes itself not a rocket science and the process has begun for almost 2 years, and lots of incremental changes are already in place during that period of time. * Some issues does occur in snd_emu10kx (note the 'x') due to various internal locking issues and it is currently being worked on by chibis. Tested by: chibis (Yuriy Tsibizov), joel, Alexandre Vieira, many innocent souls...
* Disable TSO support.yongari2007-06-161-2/+2
| | | | | | | Without bus_dma clean up and increment of number of Tx descriptors it's hard to guarantee correct Tx operation in TSO case. The TSO support would be enabled again when I get more feeback from re(4) patch posted to current.
* - Migrated IPMI fix from RELENG_6.davidch2007-06-162-206/+363
| | | | - Added additional debug code.
* - Lock sbp_write_cmd() and ORB_POINTER_ACTIVE flag.simokawa2007-06-161-11/+41
| | | | | | | - Remove unnecessary timestamps. - Return CAM_RESRC_UNAVAIL for ORB shortage. - Fix a lock problem when doorbell is used. - Fix a potential bug for unordered execution.
* Fix build warningskmacy2007-06-152-2/+5
| | | | Submitted by: mjacob@
* Convert magic to a uintptr_t. This should get rid of some warnings onnjl2007-06-154-8/+8
| | | | gcc4.
* correct some limits on interrupt proccessing so thatgallatin2007-06-141-7/+2
| | | | fast forwarding back out the same mxge interface works nicely.
* Expand callout compatibility macros in the main usb bridges.imp2007-06-148-57/+49
|
* Move PWR_* from usb_port.h to usb.himp2007-06-142-3/+8
|
* Move malloc definitions to usb.h.imp2007-06-142-19/+4
| | | | | | | Also, remove usb_malloc_type: it was unused. Remove METHODS_NONE: it was unused. Move include of opt_usb.h from usb_port.h to usb.h, since usb_port.h is going away (there will be a usb_compat.h for out-of-tree drivers that want it).
OpenPOWER on IntegriCloud