aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Dont set "address setup timing" on newer VIA chips.Søren Schmidt2004-07-171-1/+2
| | | | | | | closes PR: 69180 Notes: svn path=/head/; revision=132291
* Rename the sound device drivers.Yoshihiro Takahashi2004-07-172-12/+14
| | | | Notes: svn path=/head/; revision=132287
* Merged from the following changes.Yoshihiro Takahashi2004-07-176-60/+88
| | | | | | | | | - sys/dev/fdc/fdc.c revision 1.281 - sys/dev/fdc/fdcvar.h revision 1.3 - sys/dev/fdc/fdc_isa.c revision 1.7 Notes: svn path=/head/; revision=132286
* Correct typo.Yoshihiro Takahashi2004-07-171-1/+1
| | | | Notes: svn path=/head/; revision=132285
* Remove duplicate include.Yoshihiro Takahashi2004-07-171-1/+0
| | | | Notes: svn path=/head/; revision=132284
* Add some PCI IDs for OHCI chips.Hidetoshi Shimokawa2004-07-172-0/+30
| | | | | | | Obtained from: DragonFly BSD Notes: svn path=/head/; revision=132283
* Resurrect kld support. Support ADDR16_HA/LA relocations, and syncPeter Grehan2004-07-171-43/+45
| | | | | | | | the icache on module load. Requires "-mlongcall" support, in gcc >= 3.3 but needs a bugfix to support gcc arith builtins. Notes: svn path=/head/; revision=132282
* Define semantic of M_SKIP_FIREWALL more precisely, i.e. also pass associatedMax Laier2004-07-173-22/+34
| | | | | | | | | | | icmp_error() packets. While here retire PACKET_TAG_PF_GENERATED (which served the same purpose) and use M_SKIP_FIREWALL in pf as well. This should speed up things a bit as we get rid of the tag allocations. Discussed with: juli Notes: svn path=/head/; revision=132280
* MFamd64 revision 1.478Alan Cox2004-07-171-6/+5
| | | | | | | Simplify pmap_remove_pages(), eliminating unnecessary indirection. Notes: svn path=/head/; revision=132276
* Make M_SKIP_FIREWALL a global (and semantic) flag, preventing anything fromJuli Mallett2004-07-172-14/+2
| | | | | | | | | | | | | | using M_PROTO6 and possibly shooting someone's foot, as well as allowing the firewall to be used in multiple passes, or with a packet classifier frontend, that may need to explicitly allow a certain packet. Presently this is handled in the ipfw_chk code as before, though I have run with it moved to upper layers, and possibly it should apply to ipfilter and pf as well, though this has not been investigated. Discussed with: luigi, rwatson Notes: svn path=/head/; revision=132274
* Be consistant with probeWarner Losh2004-07-161-2/+1
| | | | Notes: svn path=/head/; revision=132271
* Ignore more strange return values of the test_aux_port() function,Maxime Henrion2004-07-162-12/+20
| | | | | | | | | | | | | because some notebooks (apparently Compaq, Toshiba and Acer ones) erroneously return 2 or 3 there. PR: kern/61482, kern/54188 Submitted by: Ulf Lilleengen <lulf@kerneled.org>, Victor Balada Diaz <victor@alf.dyndns.ws> MFC after: 3 days Notes: svn path=/head/; revision=132270
* Fix the build. pcm is no more.Paul Saab2004-07-161-4/+0
| | | | Notes: svn path=/head/; revision=132269
* Remove dead or unused code, such as spl calls.Alan Cox2004-07-161-25/+0
| | | | Notes: svn path=/head/; revision=132267
* - Move TDF_OWEPREEMPT, TDF_OWEUPC, and TDF_USTATCLOCK over to td_pflagsJohn Baldwin2004-07-169-24/+31
| | | | | | | | | | | | since they are only accessed by curthread and thus do not need any locking. - Move pr_addr and pr_ticks out of struct uprof (which is per-process) and directly into struct thread as td_profil_addr and td_profil_ticks as these variables are really per-thread. (They are used to defer an addupc_intr() that was too "hard" until ast()). Notes: svn path=/head/; revision=132266
* Whitespace fix.John Baldwin2004-07-161-1/+1
| | | | Notes: svn path=/head/; revision=132265
* Improve readability a bit by changing some code at the end of a functionJohn Baldwin2004-07-161-6/+2
| | | | | | | | | | | | | | | | | | | that did: if (foo) return else blah to just do the simpler if (!foo) blah instead. Notes: svn path=/head/; revision=132264
* /usr/libexec/ld-elf.so.1 -> /libexec/ld-elf32.so.1David E. O'Brien2004-07-161-1/+1
| | | | Notes: svn path=/head/; revision=132263
* Use ACPI_ALL_NOTIFY instead of registering handlers separately.Nate Lawson2004-07-162-8/+4
| | | | Notes: svn path=/head/; revision=132261
* Fix the alpha (and others) module build by only building fdc_acpi.c onNate Lawson2004-07-161-7/+9
| | | | | | | | i386 and amd64. The only other ACPI machine (ia64) doesn't support floppy drives. Tested by: make MACHINE={pc98,i386,amd64,alpha,sparc64} Notes: svn path=/head/; revision=132260
* when IN6P_AUTOFLOWLABEL is set, the flowlabel is not set onHajimu UMEMOTO2004-07-161-2/+10
| | | | | | | | | | | outgoing tcp connections. Reported by: Orla McGann <orly@cnri.dit.ie> Reviewed by: Orla McGann <orly@cnri.dit.ie> Obtained from: KAME Notes: svn path=/head/; revision=132259
* According to POSIX sys/socket.h must define CMSG_NXTHDR but most notHartmut Brandt2004-07-161-1/+1
| | | | | | | | | | | define NULL. This means we cannot use NULL in the definition of CMSG_NXTHDR. So replace NULL with 0. PR: kern/60309 Submitted by: Jeff King <peff-freebsd@peff.net> Notes: svn path=/head/; revision=132258
* Fix acpi_video loading. When we started cleaning up the duplicate handlesNate Lawson2004-07-161-5/+4
| | | | | | | | | | | | | | | | | | left around after the PCI probe, acpi_video stopped attaching because while it was an acpi child device, it really is a PCI device. Fix this by making it a PCI child. * Remove non-handle ivars accesses since child busses only implement acpi_get_handle(). * Access the acpi softc directly through the devclass instead of through the implied parent. * Clean up a potential panic on unload by freeing the sysctl context before storing NULL in the OID. Found by: marks Notes: svn path=/head/; revision=132256
* Add a SUSER_RUID flag to suser_cred. This flag indicates that we want toColin Percival2004-07-162-3/+3
| | | | | | | | | | check if the *real* user is the superuser (vs. the normal behaviour, which checks the effective user). Reviewed by: rwatson Notes: svn path=/head/; revision=132255
* Sync the example of MODULES_OVERRIDE with the renamed sound drivers.Seigo Tanimura2004-07-161-1/+1
| | | | | | | Pointed out by: Christoph Mallon <christoph.mallon@gmx.de> Notes: svn path=/head/; revision=132250
* Rename snd_pcm as sound.Seigo Tanimura2004-07-161-1/+1
| | | | Notes: svn path=/head/; revision=132248
* Rename the sound device drivers:Seigo Tanimura2004-07-1636-156/+181
| | | | | | | | | | | | | | | | | - `sound' The generic sound driver, always required. - `snd_*' Device-dependent drivers, named after the sound module names. Configure accordingly to your hardware. In addition, rename the `snd_pcm' module to `sound' in order to sync with the driver names. Suggested by: cg Notes: svn path=/head/; revision=132236
* Remove unused fields from the pmap.Alan Cox2004-07-162-4/+0
| | | | Notes: svn path=/head/; revision=132235
* Rename Biba and MLS _single label elements to _effective, which moreRobert Watson2004-07-164-353/+353
| | | | | | | | | | | | accurately represents the intention of the 'single' label element in Biba and MLS labels. It also approximates the use of 'effective' in traditional UNIX credentials, and avoids confusion with 'singlelabel' in the context of file systems. Inspired by: trhodes Notes: svn path=/head/; revision=132232
* When entering soclose(), assert that SS_NOFDREF is not already set.Robert Watson2004-07-161-0/+2
| | | | Notes: svn path=/head/; revision=132230
* Use qsort_r() instead of qsort() when sorting links by latencyGleb Smirnoff2004-07-161-20/+5
| | | | | | | | | | This helps us to remove a global variable and a mutex protecting it. Reviewed by: rwatson Approved by: julian (mentor) Notes: svn path=/head/; revision=132229
* Copy qsort_r(3) from libc to libkern.Gleb Smirnoff2004-07-154-24/+52
| | | | | | | | Reviewed by: phk Approved by: julian (mentor) Notes: svn path=/head/; revision=132228
* fix array index out of bounds in rpc->rc_srtt[], rpc->rc_sdrtt[]Jim Rees2004-07-151-3/+3
| | | | | | | | Noticed by: tedu Approved by: alfred Notes: svn path=/head/; revision=132227
* Preparation commit for the tty cleanups that will follow in the nearPoul-Henning Kamp2004-07-1532-49/+49
| | | | | | | | | | | | future: rename ttyopen() -> tty_open() and ttyclose() -> tty_close(). We need the ttyopen() and ttyclose() for the new generic cdevsw functions for tty devices in order to have consistent naming. Notes: svn path=/head/; revision=132226
* MFNetBSD.Lukas Ertl2004-07-151-6/+6
| | | | | | | | | | | | | | rev. 1.67, author: mycroft Fix a byte order error. rev. 1.68, author: mycroft Adjust some silliness that was causing us to do extra work for "frame list rollover" interrupts, which we pretty much ignore. Obtained from: NetBSD Notes: svn path=/head/; revision=132222
* Push down the acquisition and release of the page queues lock intoAlan Cox2004-07-1511-21/+42
| | | | | | | | | pmap_protect() and pmap_remove(). In general, they require the lock in order to modify a page's pv list or flags. In some cases, however, pmap_protect() can avoid acquiring the lock. Notes: svn path=/head/; revision=132220
* Add fdc_acpi to module build, bump WARNS to 2.Nate Lawson2004-07-151-2/+5
| | | | Notes: svn path=/head/; revision=132218
* Hook up fdc_acpi for the kernel build.Nate Lawson2004-07-152-0/+2
| | | | Notes: svn path=/head/; revision=132217
* Clean up resources properly if attach fails. Always reset ISA drives onNate Lawson2004-07-152-15/+31
| | | | | | | probe. Notes: svn path=/head/; revision=132216
* Re-work for fdc_acpi. Expose fdc_add_child() and move the staticNate Lawson2004-07-152-27/+36
| | | | | | | | | | | | hints-based probe to fdc_hints_probe(). Also: * Fix some resource leaks when attach fails. * Remove the FDC_ATTACHED flag. It was supposed to prevent multiple unloads but this is not necessary. Notes: svn path=/head/; revision=132215
* Add an ACPI floppy drive attachment that probes via the _FDE and _FDINate Lawson2004-07-151-0/+260
| | | | | | | | | | methods. It also now handles ordinary floppy drive probing for drives attached to ACPI. Reviewed by: imp Notes: svn path=/head/; revision=132214
* Fix a typo in a comment.John Baldwin2004-07-151-1/+1
| | | | Notes: svn path=/head/; revision=132213
* Update the interface for child drivers. Add acpi_scan_children, whichNate Lawson2004-07-152-21/+146
| | | | | | | | | | allows a bus to re-enumerate its child handles and optionally replace them with new children, arranged to the bus's liking. (The current device space is flat with all devices immediately under acpi0). Add comments for each interface. Notes: svn path=/head/; revision=132212
* Move the fdc_alloc_resources function into the bus front end.Yoshihiro Takahashi2004-07-154-412/+166
| | | | Notes: svn path=/head/; revision=132210
* Do a pass over all modules in the kernel and make them return EOPNOTSUPPPoul-Henning Kamp2004-07-1559-20/+101
| | | | | | | | | | | for unknown events. A number of modules return EINVAL in this instance, and I have left those alone for now and instead taught MOD_QUIESCE to accept this as "didn't do anything". Notes: svn path=/head/; revision=132199
* Cleanup shutdown output.Alfred Perlstein2004-07-152-7/+4
| | | | Notes: svn path=/head/; revision=132197
* A couple of grammar fixes in the bktr options section.Peter Pentchev2004-07-151-4/+4
| | | | | | | | | PR: 66828 (mostly) Submitted by: Michel Lavondes <fox@vader.aacc.cc.md.us> MFC after: 2 weeks Notes: svn path=/head/; revision=132196
* Tidy up system shutdown.Alfred Perlstein2004-07-152-6/+24
| | | | Notes: svn path=/head/; revision=132177
* type prgregset_t really should be an array. this is odd, however, otherDavid Xu2004-07-151-1/+1
| | | | | | | | | systems defined interfaces in thread_db.h use prgregset_t but not prgregset_t * to be a output parameter, this is the only way to maintain source code compatible with them. Notes: svn path=/head/; revision=132175
* Disable SIGIO for now, leave a comment as to why it's busted and hardAlfred Perlstein2004-07-151-0/+20
| | | | | | | to fix. Notes: svn path=/head/; revision=132174