summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Use __LP64__ to check for the 64-bit pointer type, and fix -Wundef.ru2005-12-041-4/+2
|
* Eliminate unneeded preallocation at initialization.alc2005-12-032-2/+0
| | | | Reviewed by: tegge
* Use a simpler way to reach the <machine> include dir, which shouldru2005-12-031-2/+1
| | | | also work on pc98.
* Force any hardwire-routed interrupts to level trigger and active lowjhb2005-12-031-2/+4
| | | | | | | | | | polarity. Some machines route PCI IRQs to an ISA IRQ but fail to include an interrupt override entry to set the polarity and trigger of the given ISA IRQ in their MADT table. PR: usb/74989 Reported by: Julien Gabel jpeg at thilelli dot net MFC after: 1 week
* - Move the declaration of struct upa_ranges and the UPA_RANGE_* macrosmarius2005-12-035-54/+36
| | | | | | | | | | | | from sys/sparc64/include/ofw_upa.h to sys/sparc64/pci/ofw_pci.h and rename them to struct ofw_pci_ranges and OFW_PCI_RANGE_* respectively. This ranges struct only applies to host-PCI bridges but no to other bridges found on UPA. At the same time it applies to all host-PCI bridges regardless of whether the interconnection bus is Fireplane/ Safari, JBus or UPA. - While here rename the PCI_CS_* macros in sys/sparc64/pci/ofw_pci.h to OFW_PCI_CS_* in order to be consistent and change this header to use uintXX_t instead of u_intXX_t.
* Eliminate unneeded preallocation at initialization.alc2005-12-031-2/+0
| | | | Reviewed by: tegge
* - Adhere style(9) (don't use function calls in initializers).marius2005-12-031-3/+5
| | | | - Use FBSDID.
* Remove unused sc_node from softc.marius2005-12-031-2/+0
|
* - Adhere style(9) (don't use function calls in initializers, use uintXX_tmarius2005-12-035-29/+40
| | | | | instead of u_intXX_t). - Use FBSDID.
* - Register the PCI bus error interrupt handler according to which half ofmarius2005-12-031-26/+36
| | | | | | | | | | | | | | | | | | the bridge (PCI bus A or B) we are attaching to rather than registering both handlers at once when attaching to the first half we encounter. This is a bit cleaner as it corresponds to which PCI bus error interrupt actually is assigned to the respective half by the OFW and allows to collapse both PCI bus error interrupt handlers into one function easily. - Use the actual RID of the respective interrupt resource as index into sc_irq_res and also use it when allocating the resource. For now this is a bit cleaner and will be mandatory later on. - According to OpenSolaris the spare hardware interrupt is used as the over-temperature interrupt in systems with Psycho bridges. Unlike as with the SBus-based workstations I didn't manage to trigger it when covering the fan outlets of an U60 but better be safe than sorry and register a handler anyway. MFC after: 1 month
* - Improve the comment regarding the workaround for the E250 interrupt mapmarius2005-12-032-17/+31
| | | | | | | | | bug by explaining what the problem is and how the workaround works. - Fix some cosmetics nits, mainly properly terminate sentences in comments, which I missed when backporting the style changes to psycho(4) in psycho.c rev. 1.54 due to lack of corresponding code. - The "USIIe version of the Sabre bridge" actually is termed "Hummingbird"; name it as such in comments and messages.
* Add "rdonly" to global_opts, and parse it in vfs_donmount().rodrigc2005-12-031-0/+4
| | | | Requested by: rwatson
* Convert to use the recently introduced set of ofw_bus_gen_get_*() formarius2005-12-032-93/+40
| | | | | | providing the ofw_bus KOBJ interface. Tested by: grehan
* Add option P1003_1B_MQUEUE.davidxu2005-12-031-0/+1
|
* - Add "rw" mount option to global_opts.rodrigc2005-12-031-0/+10
| | | | | - In vfs_donmount(), parse "ro", "noro", and "rw", in order to set or unset the MNT_RDONLY filesystem flag.
* Merge DRM CVS as of 2005-12-02, adding i915 DRM support thanks to Alexey Popov,anholt2005-12-037-5/+18
| | | | and a new r300 PCI ID.
* Make cleaner diffs by munging the $FreeBSD$s from the FreeBSD CVS sources backanholt2005-12-031-1/+15
| | | | into the new sources.
* Add support for i915 GMCH AGP. This diff is a combination of work by myselfanholt2005-12-024-62/+320
| | | | | | | | | | | and some fixes from Motomichi Matsuzaki. Testing involved many people, but the final, successful testing was from rwatson who endured several rounds of "it crashes at XYZ stage" "oh, please correct this typo and try again." The Linux driver, and to a small extent the limited specs, were both used as a reference for how to program the chipset. PR: kern/80396 Submitted by: Martin Mersberger
* Register definitions for the ancient via6522. This 20+ year-old chipgrehan2005-12-021-0/+105
| | | | | still exists as a cell in the Macio asic on Apples, and is used to communicate through the shift register with the external PMU microcontroller.
* Introduce startup scripts from the local_startup directories todougb2005-12-021-1/+1
| | | | | | | | | | | | | | | | the base rcorder. This is accomplished by running rcorder twice, first to get all the disks mounted (through mountcritremote), then again to include the local_startup directories. This dramatically changes the behavior of rc.d/localpkg, as all "local" scripts that have the new rc.d semantics are now run in the base rcorder, so only scripts that have not been converted yet will run in rc.d/localpkg. Make a similar change in rc.shutdown, and add some functions in rc.subr to support these changes. Bump __FreeBSD_version to reflect this change.
* Change pmap_enter_quick() to use the vm_prot_t parameter introduced inalc2005-12-021-3/+4
| | | | | | | | | | | | | | | revision 1.179 to correctly set/clear execute permission on the mapping it creates. Thus, mmap(2)ing a memory resident file will not result in the file being mapped with execute permission when execute permission was not requested. Eliminate an unneeded Instruction Memory Barrier (IMB) in pmap_enter_quick(). Since there was no previous (instruction) mapping for the given virtual address prior to pmap_enter_quick(), there can be no instructions from the given virtual address in the pipeline that need flushing. MFC after: 1 week
* Add option P1003_1B_MQUEUE for POSIX message queue.davidxu2005-12-021-0/+2
|
* 1. Cleanup including.davidxu2005-12-021-5/+4
| | | | 2. Set configuration value for CTL_P1003_1B_MESSAGE_PASSING.
* Add a missing newline to a printf.jhb2005-12-021-1/+1
| | | | MFC after: 1 week
* Update the ICH7 support so it deals better with chips without AHCI.sos2005-12-024-84/+115
| | | | | | | | | Update Intel MatrixRAID support to be able to pick up RAID0+1 (RAID10) and RAID5 arrays without panic'ing. This has the side effect of now also supporting multiple volumes on MatrixRAID's now I have the metadata better understood.. HW sponsored by: Mullet Scandinavia AB
* Restore the enabling of debugging by default by the DRM_DEBUG kernel option.anholt2005-12-021-0/+4
| | | | | | | It remains controlled by hw.dri.*.debug no matter what. PR: kern/85479 Submitted by: Oliver Fromme <olli@secnetix.de>
* On the 82571 and newer chipset the ICR register is meaningful onlyglebius2005-12-021-1/+4
| | | | | | if the E1000_ICR_INT_ASSERTED bit is set. Submitted by: Jack Vogel
* 1. Check if message priority is less than MQ_PRIO_MAX.davidxu2005-12-021-3/+4
| | | | | 2. Use getnanotime instead of getnanouptime. 3. Don't free message in _mqueue_send, mqueue_send will free it.
* Define MQ_PRIO_MAX, it seems it is the only placedavidxu2005-12-021-0/+4
| | | | the definition will be shared by kernel and userland.
* messqge queue has been implemented, set _POSIX_MESSAGE_PASSING to 200112L.davidxu2005-12-021-1/+1
|
* We've already implemented all TMO functions, set _POSIX_TIMEOUTS to 200112L.davidxu2005-12-021-1/+1
|
* Fix the misalignment bugs differently than was done in the previousmarcel2005-12-022-23/+33
| | | | | | | | | commit. Copy the ethernet address into a local buffer, which we know is sufficiently aligned for the width of the memory accesses that we do. This also eliminates all suspicious and potentionally harmful casts. In collaboration with: ru
* Fix the type of "eaddr" to guarantee the required alignment.ru2005-12-012-16/+16
| | | | Suggested by: marcel
* 1. Set timer configuration values for sysconf().davidxu2005-12-011-2/+15
| | | | | 2. Set overrun limit to INT_MAX, report ERANGE error if overrun will be greater than INT_MAX.
* Add kernel module loading option for snd_atiixp(4).ariff2005-12-011-0/+1
|
* set signal queue values for sysconf().davidxu2005-12-011-0/+4
|
* Avoid using signal 127 and 128 as RT signals, these two signals confusedavidxu2005-11-301-1/+1
| | | | wait4 interfaces, see PR: kern/19402.
* It is unclear who is wrong and who is right, but when operating onsobomax2005-11-301-0/+10
| | | | | | | | | | | | | | | plain file bsdlabel(8) always writes label at a fixed offset from its beginning (512 bytes), regardless of the sector size. At the same time, bsdlabel geom class expects label to be available at the very beginning of the second sector. As a result, images prepared in userland for media with sector size different from 512 bytes (i.e. 2k for cdroms) are not recognized by the tasting mechanism. Solve the problem by always looking for the label at 512-byte offset if we can't find it at the beginning of the second sector and sector size is not 512 bytes.
* Don't pass error value pointer to g_read_data(9) at all if we don'tsobomax2005-11-3013-25/+24
| | | | | | have any use of it. Suggested by: pjd
* fix dynamic changes in short slottime for 11g sta mode: set thesam2005-11-301-1/+1
| | | | | | | slot time based on the rcvd capabilities, not the existing ones Obtained from: atheros MFC after: 1 week
* Check for g_read_data(9) errors properly:sobomax2005-11-3017-26/+26
| | | | | | | | | | o The only indication of error condition is NULL value returned by the function; o value pointed to by error argument is undefined in the case when operation completes successfully. Discussed with: phk
* Kill leading whilespace.sobomax2005-11-301-1/+1
|
* Teach this to create the "machine" and ${MACHINE_ARCH} (for pc98ru2005-11-301-4/+27
| | | | | | | | | only now) symbolic links in the kernel compile directory, rather than relying on config(8) to do this. (The changes to config(8) will be committed separately.) This is aimed towards making the config(8) as lightweight as possible. Idea by: bde (all bugs are mine)
* Byte copy IF_LLADDR() on stack to align it to be safe for typecasts.ru2005-11-304-42/+40
| | | | Tested by: jhb
* Remove superfluous bzero()'ing of the softc.marius2005-11-303-3/+0
|
* Remove superfluous inclusion of upa.h.marius2005-11-303-3/+0
|
* If bus_dmamap_load() failed, we free the mbuf. We also need to clearglebius2005-11-301-2/+6
| | | | the pointer, to avoid double free on next bge_stop().
* MFi386: revision 1.1215 (add savagedrm).nyan2005-11-301-0/+1
|
* Last step to make mq_notify conform to POSIX standard, If the processdavidxu2005-11-305-107/+237
| | | | | has successfully attached a notification request to the message queue via a queue descriptor, file closing should remove the attachment.
* Add codec ID for Avance Logic ALC203yongari2005-11-301-0/+1
|
OpenPOWER on IntegriCloud