summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Driver for Apple Keywest I2C controllers found in MacIO ASICs. Used forNathan Whitehorn2009-01-153-0/+393
| | | | | | | | | | | power and thermal control, as well as GPIOs on Xserves and controlling sound codecs for Apple built-in audio. Submitted by: Marco Trillo Obtained from: NetBSD Notes: svn path=/head/; revision=187262
* Import an Open Firmware I2C bus module. This attaches firmware device treeNathan Whitehorn2009-01-153-0/+186
| | | | | | | | | | | indicated I2C devices, and provides an ofw_bus interface for driver probing. This should be MI, but is currently provided only on PowerPC due to lack of sparc64 hardware with an I2C controller. Discussed on: freebsd-arch Notes: svn path=/head/; revision=187261
* When building up the command-line for the DTrace ctfmerge and ctfconvertCraig Rodrigues2009-01-151-2/+2
| | | | | | | | | | | | | | utilities, add the ${DEBUG} variable from the kernel config. Otherwise, if we build a kernel with WITH_CTF=1 set, ctfmerge will not have the -g flag set. In this case, the cc has -g specified, so the .o files will have debug information generated, but since ctfmerge does not have -g set, it will strip out the ELF sections containing the DWARF debugging info, leading to a kernel without debugging symbols. Reviewed by: jb Notes: svn path=/head/; revision=187260
* Name the items in the xfer arrays so they can be identified throughout theAndrew Thompson2009-01-1540-666/+868
| | | | | | | code. Notes: svn path=/head/; revision=187259
* simple scripts to demonstrate tdma setupSam Leffler2009-01-142-0/+39
| | | | Notes: svn path=/head/; revision=187255
* use correct interface name when setting flags; fixes ifconfig ... create ... upSam Leffler2009-01-141-2/+2
| | | | | | | Noticed by: Chris Anderson Notes: svn path=/head/; revision=187253
* o Code cleanup, remove unused fields of idtpci_softcOleksandr Tymoshenko2009-01-141-7/+0
| | | | Notes: svn path=/head/; revision=187252
* o Simplify code: trade 15 lines of case for one multiplicationOleksandr Tymoshenko2009-01-141-15/+1
| | | | Notes: svn path=/head/; revision=187251
* Reword some entries for NTFS and DOS.Luigi Rizzo2009-01-141-2/+4
| | | | | | | | | Add entries for DELL and ASUS recovery partitions. MFC after: 3 days Notes: svn path=/head/; revision=187248
* Add missing 'break' statement.Edward Tomasz Napierala2009-01-141-0/+1
| | | | | | | | | | | Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Found with: Coverity Prevent(tm) CID: 3667 Notes: svn path=/head/; revision=187247
* Another change from Christoph:Luigi Rizzo2009-01-141-110/+101
| | | | | | | | | | | | | replace the table of partition with a simpler and faster array of strings. The change in the array is done mechanically, using vi commands. Most entries in the table are probably 15+ years old and largely outdated, so the next step is to remove stale entries with more current values. Submitted by: Christoph Mallon, with small changes from me MFC after: 3 days Notes: svn path=/head/; revision=187246
* Fix use after free.Edward Tomasz Napierala2009-01-141-1/+1
| | | | | | | | | | | Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Found with: Coverity Prevent(tm) CID: 3712 Notes: svn path=/head/; revision=187245
* Remove unused variable.Edward Tomasz Napierala2009-01-141-2/+0
| | | | | | | | | | | Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Found with: Coverity Prevent(tm) CID: 3665 Notes: svn path=/head/; revision=187244
* Add missing 'break' statement.Edward Tomasz Napierala2009-01-141-0/+1
| | | | | | | | | | | Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Found with: Coverity Prevent(tm) CID: 3927 Notes: svn path=/head/; revision=187243
* more changes from Christoph:Luigi Rizzo2009-01-141-15/+14
| | | | | | | | | | | pass a pointer instead of an index to print_part() so it does not depend on a static variable. Submitted by: Christoph Mallon MFC after: 3 days Notes: svn path=/head/; revision=187241
* remove unused argument to print_s0()Luigi Rizzo2009-01-141-11/+8
| | | | | | | | Submitted by: Christoph Mallon MFC after: 3 days Notes: svn path=/head/; revision=187239
* o Make debug output conditionalOleksandr Tymoshenko2009-01-141-6/+12
| | | | Notes: svn path=/head/; revision=187238
* o NO_DMA is no longer required as bug with PIIX4 emulation has been fixed in ↵Oleksandr Tymoshenko2009-01-141-2/+0
| | | | | | | GXEmul Notes: svn path=/head/; revision=187237
* o Move $FreeBSD$ from comment to __FBSDID macroOleksandr Tymoshenko2009-01-141-1/+5
| | | | | | | | o Be a bit more verbose about CPU type during boot process (print manufacturer, chip info, MMU and cache parameters) Notes: svn path=/head/; revision=187236
* It seems that there are at least three issues with IPC_RMID operationKonstantin Belousov2009-01-141-152/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on SysV semaphores. The squeeze of the semaphore array in the kern_semctl() modifies sem_base for the semaphores with sem_base greater then sem_base of the removed semaphore, as well as the values of the semaphores, without locking their mutex. This can lead to (killable) hangs or unexpected behaviour of the processes performing any sem operations while other process does IPC_RMID. The semexit_myhook() eventhandler unlocks SEMUNDO_LOCK() while accessing *suptr. This allows for IPC_RMID for the sem id to be performed in parallel with undo hook referenced by the current undo structure. This leads to the panic("semexit - semid not allocated") [1]. The semaphore creation is protected by Giant, while IPC_RMID is done while only semaphore mutex is held. This seems to result in invalid values for semtot, causing random ENOSPC error returns [2]. Redo the locking of the semaphores lifetime cycle. Delegate the sem_mtx to the sole purpose of protecting semget() and semctl(IPC_RMID). Introduce new sem_undo_mtx to protect SEM_UNDO handling. Remove the Giant remnants from the code. Note that mac_sysvsem_check_semget() and mac_sysvsem_create() are now called while sem_mtx is held, as well as mac_sysvsem_cleanup() [3]. When semaphore is removed, acquire semaphore locks for all semaphores with sem_base that is going to be changed by squeeze of the sema array. The lock order is not important there, because the region is protected by sem_mtx. Organize both used and free sem_undo structures into the lists, protected by sem_undo_mtx. In semexit_myhook(), remove sem_undo structure that is being processed, from used list, without putting it onto the free to prevent modifications by other threads. This allows for sem_undo_lock to be dropped to acquire individial semaphore locks without violating lock order. Since IPC_RMID may no longer find this sem_undo, do tolerate references to unallocated semaphores in undo structure, and check sequential number to not undo unrelated semaphore with the same id. While there, convert functions definitions to ANSI C and fix small style(9) glitches. Reported by: Omer Faruk Sen <omerfsen gmail com> [1], pho [2] Reviewed by: rwatson [3] Tested by: pho MFC after: 1 month Notes: svn path=/head/; revision=187223
* Disable interrupts, if they were enabled, before doing swapgs.Konstantin Belousov2009-01-141-0/+1
| | | | | | | | | | | Otherwise, interrupt may happen while we run with kernel CS and usermode gsbase. Reviewed by: jeff MFC after: 1 week Notes: svn path=/head/; revision=187221
* Update copyright, P4 version number as audit_bsm_token.c reflects changesRobert Watson2009-01-141-2/+2
| | | | | | | | | | | in bsm_token.c through #86 from OpenBSM. MFC after: 1 month Sponsored by: Apple, Inc. Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=187215
* Merge OpenBSM alpha 5 from OpenBSM vendor branch to head, bothRobert Watson2009-01-14106-904/+2881
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | contrib/openbsm (svn merge) and src/sys/{bsm,security/audit} (manual merge). Hook up bsm_domain.c and bsm_socket_type.c to the libbsm build along with man pages, add audit_bsm_domain.c and audit_bsm_socket_type.c to the kernel environment. OpenBSM history for imported revisions below for reference. MFC after: 1 month Sponsored by: Apple Inc. Obtained from: TrustedBSD Project OpenBSM 1.1 alpha 5 - Stub libauditd(3) man page added. - All BSM error number constants with BSM_ERRNO_. - Interfaces to convert between local and BSM socket types and protocol families have been added: au_bsm_to_domain(3), au_bsm_to_socket_type(3), au_domain_to_bsm(3), and au_socket_type_to_bsm(3), along with definitions of constants in audit_domain.h and audit_socket_type.h. This improves interoperability by converting local constant spaces, which vary by OS, to and from Solaris constants (where available) or OpenBSM constants for protocol domains not present in Solaris (a fair number). These routines should be used when generating and interpreting extended socket tokens. - Fix build warnings with full gcc warnings enabled on most supported platforms. - Don't compile error strings into bsm_errno.c when building it in the kernel environment. - When started by launchd, use the label com.apple.auditd rather than org.trustedbsd.auditd. Notes: svn path=/head/; revision=187214
| * Vendor import of OpenBSM 1.1 alpha5, which incorporates the followingvendor/openbsm/1.1-ALPHA-5Robert Watson2009-01-1193-496/+1665
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | changes since the last imported OpenBSM release: OpenBSM 1.1 alpha 5 - Stub libauditd(3) man page added. - All BSM error number constants with BSM_ERRNO_. - Interfaces to convert between local and BSM socket types and protocol families have been added: au_bsm_to_domain(3), au_bsm_to_socket_type(3), au_domain_to_bsm(3), and au_socket_type_to_bsm(3), along with definitions of constants in audit_domain.h and audit_socket_type.h. This improves interoperability by converting local constant spaces, which vary by OS, to and from Solaris constants (where available) or OpenBSM constants for protocol domains not present in Solaris (a fair number). These routines should be used when generating and interpreting extended socket tokens. - Fix build warnings with full gcc warnings enabled on most supported platforms. - Don't compile error strings into bsm_errno.c when building it in the kernel environment. - When started by launchd, use the label com.apple.auditd rather than org.trustedbsd.auditd. Obtained from: TrustedBSD Project Sponsored by: Apple Inc. Notes: svn path=/vendor/openbsm/dist/; revision=187063 svn path=/vendor/openbsm/1.1-ALPHA-5/; revision=187064; tag=vendor/openbsm/1.1-ALPHA-5
* | Fix typo to install 400.status-pkg, again.Hajimu UMEMOTO2009-01-141-1/+1
| | | | | | | | Notes: svn path=/head/; revision=187210
* | Remove local jumbo locator and switch to UMA backed page allocatorPyun YongHyeon2009-01-142-302/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for jumbo frame. o Nuke unneeded jlist lock which was used to protect jumbo buffer management in local allocator. o Added a new tunable hw.mskc.jumbo_disable to disable jumbo frame support for the driver. The tunable could be set for systems that do not need to use jumbo frames and it would save (9K * number of Rx descriptors) bytes kernel memory. o Jumbo buffer allocation failure is no longer critical error for the operation of msk(4). If msk(4) encounter the allocation failure it just disables jumbo frame support and continues to work without your intervention. Using local allocator had several drawbacks such as requirement of large amount of continuous kernel memory and fixed (small) number of available buffers. The need for large continuous memory resulted in failure of loading driver with kldload on running systems. Also small number of buffer used in local allocator showed poor performance for some applications. Notes: svn path=/head/; revision=187208
* | Correct frame length argument of in_cksum_skip. While I'm herePyun YongHyeon2009-01-141-5/+2
| | | | | | | | | | | | | | | | | | | | remove intermediate variable csum. Reported by: Kim Culhan < w8hdkim <> gmail DOT com > Tested by: Kim Culhan < w8hdkim <> gmail DOT com > Notes: svn path=/head/; revision=187207
* | o note need for options AH_SUPPORT_5416Sam Leffler2009-01-131-6/+26
| | | | | | | | | | | | | | | | o mention 5416-class parts o mention tdma support Notes: svn path=/head/; revision=187205
* | Remove intermediate variable busaddr and have bus_* operate directly onXin LI2009-01-131-13/+6
| | | | | | | | | | | | | | | | | | | | softc members upon initialization. Reviewed by: davidch MFC after: 1 month Notes: svn path=/head/; revision=187204
* | Some small fixes submitted by Christoph Mallon, specifically:Luigi Rizzo2009-01-131-17/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + Remove a dead field of a struct. It serves no purpose anymore. + Remove a \n at the end of the format string of err(); the err() function already adds a \n ; + remove many unnecessary casts which obfuscate the code. This file has a huge number of indentation bugs, but I'd rather fix them when/if we happen to modify the relevant parts of the code. Submitted by: Christoph Mallon MFC after: 3 days Notes: svn path=/head/; revision=187203
* | Correct spelling in comment.Alexander Motin2009-01-131-2/+2
| | | | | | | | Notes: svn path=/head/; revision=187202
* | Turn a "panic: non-decreasing id" into an error printf. This seemsEdward Tomasz Napierala2009-01-131-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | to be caused by a metadata corruption that occurs quite often after unplugging a pendrive during write activity. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Notes: svn path=/head/; revision=187199
* | remove a file which is, as far as I can tell, totally unused.Luigi Rizzo2009-01-131-101/+0
| | | | | | | | Notes: svn path=/head/; revision=187197
* | Improve AD1983 codec support:Alexander Motin2009-01-131-1/+28
| | | | | | | | | | | | | | | | - force playback via mixer to get PCM volume control, - make cleanup on recoring source selection. Notes: svn path=/head/; revision=187196
* | Extend the geom-related info and put in the NOTE section, notLuigi Rizzo2009-01-131-14/+19
| | | | | | | | | | | | | | | | | | | | in BUGS, as this is a feature. Bump the date, as it was forgotten in previous commits and the page has had significant changes recently Notes: svn path=/head/; revision=187195
* | Correct ntpd(8) cryptographic signature bypass [SA-09:04].Simon L. B. Nielsen2009-01-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Correct BIND DNSSEC incorrect checks for malformed signatures [SA-09:04]. Security: FreeBSD-SA-09:03.ntpd Security: FreeBSD-SA-09:04.bind Obtained from: ISC [SA-09:04] Approved by: so (simon) Notes: svn path=/head/; revision=187194
* | Restore the if_*var.h and if_*reg.h to their original names, they dont need toAndrew Thompson2009-01-1325-15/+15
| | | | | | | | | | | | | | be different. Notes: svn path=/head/; revision=187192
* | Hook up the u3g2 driver.Andrew Thompson2009-01-131-0/+1
| | | | | | | | | | | | | | Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=187188
* | Sync to p4 156093Andrew Thompson2009-01-132-3/+7
| | | | | | | | | | | | | | | | | | - Add quirks for Parallels These snuck in as part of a perforce IFC. Notes: svn path=/head/; revision=187186
* | Regen.Andrew Thompson2009-01-132-2/+18
| | | | | | | | Notes: svn path=/head/; revision=187185
* | MFp4: //depot/projects/usb@156092Andrew Thompson2009-01-131-0/+2
| | | | | | | | | | | | | | | | | | Make sure all claimed interfaces gets released at close. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=187184
* | MFp4: //depot/projects/usb@156055Andrew Thompson2009-01-133-4/+5
| | | | | | | | | | | | | | | | | | Compile fix for AVR-GCC Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=187183
* | MFp4: //depot/projects/usb@156005Andrew Thompson2009-01-131-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Add missing set frame data pointer call. The function call was missed when zero copy was introduced in UMASS. Reported by: WATANABE Kazuhiro. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=187182
* | MFp4: //depot/projects/usb@155990Andrew Thompson2009-01-132-0/+8
| | | | | | | | | | | | | | | | | | Add USB scanner support to USB2 config files. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=187181
* | MFp4: //depot/projects/usb@155957Andrew Thompson2009-01-136-54/+92
| | | | | | | | | | | | | | | | | | Make code more compliant with SuperSpeed USB and Wireless USB. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=187180
* | MFp4: //depot/projects/usb@155948Andrew Thompson2009-01-131-3/+0
| | | | | | | | | | | | | | | | | | | | | | Remove duplicate USB device ID's. These ID's are already present in the U3G driver. Reported by: Paul-Henning Kamp. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=187179
* | MFp4: //depot/projects/usb@155936Andrew Thompson2009-01-132-59/+52
| | | | | | | | | | | | | | | | | | | | Save an USB transfer in UHUB driver by using the builtin clear-stall mechanism. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=187178
* | MFp4: //depot/projects/usb@155923Andrew Thompson2009-01-132-2/+2
| | | | | | | | | | | | | | | | | | Fix remaining xfer->udev variable changes. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=187177
* | MFp4: //depot/projects/usb@155917Andrew Thompson2009-01-1319-93/+209
| | | | | | | | | | | | | | | | | | | | | | | | Remove dependancy towards the USB config thread in the USB serial core. Use USB process msignalling instead. Saves a little memory and hopefully makes the code more understandable. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=187176
* | MFp4: //depot/projects/usb@155906Andrew Thompson2009-01-137-26/+14
| | | | | | | | | | | | | | | | | | | | | | Remove "vbus_interrupt" method from bus methods and use a global function instead for the various drivers using it. The reason for the removal is to simplify the code. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=187175