summaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Removed unused fields.Pawel Jakub Dawidek2004-03-011-2/+0
| | | | Notes: svn path=/head/; revision=126450
* We don't need d_length field.Pawel Jakub Dawidek2004-03-011-2/+0
| | | | Notes: svn path=/head/; revision=126449
* Netgraph node type for IEEE 802.1Q VLAN tagging.Ruslan Ermilov2004-03-014-1/+527
| | | | Notes: svn path=/head/; revision=126447
* - reject incoming packets to an interface-local multicast address fromHajimu UMEMOTO2004-03-011-10/+52
| | | | | | | | | | | the wire. - added a generic scope check, and removed checks for loopback src/dst addresses. Obtained from: KAME Notes: svn path=/head/; revision=126444
* Remember to mtx_destroy mutexes.Søren Schmidt2004-03-015-3/+10
| | | | Notes: svn path=/head/; revision=126442
* Hook acpi_video up to the build.Nate Lawson2004-03-011-1/+1
| | | | Notes: svn path=/head/; revision=126431
* Add the ACPI standard video extensions driver. I've done some style cleanupNate Lawson2004-03-013-2/+963
| | | | | | | | | but a bit more reamins to be done. For now, it is usable. Submitted by: Taku YAMAMOTO <taku@cent.saitama-u.ac.jp> Notes: svn path=/head/; revision=126430
* Add the ACPI standard video extensions driver. I've done some style cleanupNate Lawson2004-03-011-0/+1
| | | | | | | | | | | | | | but a bit more reamins to be done. For now, it is usable. PR: Submitted by: Taku YAMAMOTO <taku@cent.saitama-u.ac.jp> Reviewed by: Approved by: Obtained from: MFC after: Notes: svn path=/head/; revision=126429
* Fixed some insertion sort errors for usb devcies (mainly for serial ones).Bruce Evans2004-03-011-9/+9
| | | | Notes: svn path=/head/; revision=126428
* Rename dup_sockaddr() to sodupsockaddr() for consistency with otherRobert Watson2004-03-0120-48/+48
| | | | | | | | | | | | | | | functions in kern_socket.c. Rename the "canwait" field to "mflags" and pass M_WAITOK and M_NOWAIT in from the caller context rather than "1" or "0". Correct mflags pass into mac_init_socket() from previous commit to not include M_ZERO. Submitted by: sam Notes: svn path=/head/; revision=126425
* Pich up a do {} while(0) cleanup by phk that was discarded accidentally inAlexander Kabaev2004-03-011-11/+9
| | | | | | | | | previous revision. Submitted by: alc Notes: svn path=/head/; revision=126424
* add driver for BWCT console management serialsBernd Walter2004-03-016-0/+1111
| | | | Notes: svn path=/head/; revision=126423
* Convert the other use of flags to mflags in soalloc().Scott Long2004-03-011-1/+1
| | | | Notes: svn path=/head/; revision=126422
* o Typo: Ternal -> Thermal.Maxim Konovalov2004-02-292-2/+2
| | | | Notes: svn path=/head/; revision=126412
* Modify soalloc() API so that it accepts a malloc flags argument ratherRobert Watson2004-02-294-13/+6
| | | | | | | | | | | | than a "waitok" argument. Callers now passing M_WAITOK or M_NOWAIT rather than 0 or 1. This simplifies the soalloc() logic, and also makes the waiting behavior of soalloc() more clear in the calling context. Submitted by: sam Notes: svn path=/head/; revision=126411
* Loudly announce WITNESS and DIAGNOSTIC options and warn about reducedPoul-Henning Kamp2004-02-291-0/+14
| | | | | | | performance. Notes: svn path=/head/; revision=126410
* Remove __inline keyword from functions that can't be inlined according toMax Laier2004-02-292-0/+8
| | | | | | | | | | LINT. This fixes LINT compliation for now, but needs to be revised. Changes do not affect the objects. Approved by: bms(mentor) Notes: svn path=/head/; revision=126409
* Use DEV_BSIZE byte sectors instead of PAGE_SIZE byte sectors forColin Percival2004-02-291-19/+49
| | | | | | | | | | | | | | | | swap-backed memory disks. This reduces filesystem allocation overhead and makes swap-backed memory disks compatible with broken code (dd, for example) which expects to see 512 byte sectors. The size of a swap-backed memory disk must still be a multiple of the page size. When performing page-aligned operations, this change has zero performance impact. Reviewed by: phk Approved by: rwatson (mentor) Notes: svn path=/head/; revision=126408
* Define BPFD_LOCK_ASSERT() to assert the BPF descriptor lock.Robert Watson2004-02-292-0/+5
| | | | | | | | | | | Assert the BPF descriptor lock in the MAC calls referencing live BPF descriptors. Obtained from: TrustedBSD Project Sponsored by: DARPA, McAfee Research Notes: svn path=/head/; revision=126406
* Grab Giant after MAC processing on outgoing packets being sent viaRobert Watson2004-02-291-1/+3
| | | | | | | | | | | BPF. Grab the BPF descriptor lock before entering MAC since the MAC Framework references BPF descriptor fields, including the BPF descriptor label. Submitted by: sam Notes: svn path=/head/; revision=126405
* Move boottime from <sys/kernel.h> to <sys/time.h> where it belongs.Poul-Henning Kamp2004-02-292-1/+1
| | | | Notes: svn path=/head/; revision=126401
* Remove unused FDNUMTOUNIT() macroPoul-Henning Kamp2004-02-294-8/+0
| | | | Notes: svn path=/head/; revision=126400
* Give DDB a "watchdog" command which disables all watchdogs.Poul-Henning Kamp2004-02-291-0/+21
| | | | Notes: svn path=/head/; revision=126399
* Rearrange sense_key and sense_data to get alignment right.Søren Schmidt2004-02-291-1/+1
| | | | | | | Submitted by: Marcel Notes: svn path=/head/; revision=126397
* All three of these drivers abused cv_waitq_empty in the same way by spinningScott Long2004-02-293-15/+4
| | | | | | | | | | | | on it in hopes of making sure that the waitq was empty before going on. This wasn't needed and probably never would have worked as intended. Now that cv_waitq_empty() and friends are gone, the code in these drivers that spins on it can go away too. This should unbreak LINT. Discussed with: kan Notes: svn path=/head/; revision=126396
* Bring to working PIO state.Peter Grehan2004-02-291-3/+12
| | | | | | | | | | | - use correct rid when allocating PCI mem resource - ATA taskfile registers are indeed spaced 0x10 apart just like the Macio ATA cell. Adjust offsets in ATA channel struct. Tested by: Suleiman Souhlal <ssouhlal@vt.edu> Notes: svn path=/head/; revision=126394
* uteval.c gained a warning (cast discards qualifiers from pointer targetMarcel Moolenaar2004-02-281-1/+1
| | | | | | | type) after vendor import of ACPICA 20040220. Add nowerror. Notes: svn path=/head/; revision=126391
* Call _INI on Thermal Zones as well as devices.Nate Lawson2004-02-281-0/+6
| | | | Notes: svn path=/head/; revision=126388
* Add support for the watchdog in Geode SC1100 which is used in embeddedPoul-Henning Kamp2004-02-281-0/+36
| | | | | | | systems like the Soekris NET4801 Notes: svn path=/head/; revision=126387
* Make sure to disable the watchdog if we cannot honour the timeout.Poul-Henning Kamp2004-02-281-3/+2
| | | | Notes: svn path=/head/; revision=126386
* Rename the WATCHDOG option to SW_WATCHDOG and make it use thePoul-Henning Kamp2004-02-283-38/+32
| | | | | | | | | | | | | | generic watchdoc(9) interface. Make watchdogd(8) perform as watchdog(8) as well, and make it possible to specify a check command to run, timeout and sleep periods. Update watchdog(4) to talk about the generic interface and add new watchdog(8) page. Notes: svn path=/head/; revision=126383
* Strip out new, unused file acnetbsd.hNate Lawson2004-02-281-1/+1
| | | | Notes: svn path=/head/; revision=126382
* This commit was generated by cvs2svn to compensate for changes in r126380,Nate Lawson2004-02-281-1/+1
|\ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=126381
| * Fix an off-by-one in the compiler path. Originally from iwasaki-san'sNate Lawson2004-02-281-1/+1
| | | | | | | | | | | | | | patches for the pmtools port. This change has been submitted to Intel. Notes: svn path=/vendor-sys/acpica/dist/; revision=126380
* | Local change: emulate a ReturnOp if the AML expects one but it isn'tNate Lawson2004-02-281-2/+2
| | | | | | | | | | | | | | | | present. Some buggy BIOSs do not have a ReturnOp even though it is required for a function to return a value. Notes: svn path=/head/; revision=126379
* | Local change: In the resume path, give up after waiting for a whileNate Lawson2004-02-281-32/+123
| | | | | | | | | | | | | | for WAK_STS to be set. Some BIOSs never set it. Notes: svn path=/head/; revision=126378
* | Local change: Allow access to the field if it is within the regionNate Lawson2004-02-281-5/+5
| | | | | | | | | | | | | | | | | | size rounded up to a multiple of the access byte width. This overcomes "off-by-one" programming errors in the AML often found in Toshiba laptops. Notes: svn path=/head/; revision=126377
* | Local change: Put various debugging options under ACPI_DISASSEMBLER.Nate Lawson2004-02-282-4/+4
| | | | | | | | Notes: svn path=/head/; revision=126376
* | Unchanged files from ACPICA 20040220 that are off the vendor branch.Nate Lawson2004-02-2813-27/+36
| | | | | | | | Notes: svn path=/head/; revision=126375
* | This commit was generated by cvs2svn to compensate for changes in r126372,Nate Lawson2004-02-28168-994/+1784
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=126373
| * Vendor import of ACPICA 20040220Nate Lawson2004-02-28186-1070/+1968
| | | | | | | | Notes: svn path=/vendor-sys/acpica/dist/; revision=126372
* | Add a generic watchdog facility which through a single device entryPoul-Henning Kamp2004-02-284-82/+168
| | | | | | | | | | | | | | in /dev controls all available watchdog implementations. Notes: svn path=/head/; revision=126370
* | Clean all the object files whether or not ACPI_DEBUG is specified.Nate Lawson2004-02-281-1/+1
| | | | | | | | Notes: svn path=/head/; revision=126369
* | Remove unneeded {} originally used to hold local variables for dummynetRobert Watson2004-02-281-2/+0
| | | | | | | | | | | | | | | | | | in a code block, as the variable is now gone. Submitted by: sam Notes: svn path=/head/; revision=126368
* | Create a new mutex type for virtual channels. This allows us to getDon Lewis2004-02-284-29/+24
| | | | | | | | | | | | | | | | | | | | | | rid of the MTX_DUPOK flag on channel mutexes, which allows witness to do a better job of lock order checking. Nuke snd_chnmtxcreate() since it is no longer needed. Tested by: matk Notes: svn path=/head/; revision=126367
* | Lock channels only as necessary in dsp_ioctl(), and only lock oneDon Lewis2004-02-281-65/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | channel at a time unless it is actually necessary to lock both. This avoids problems with lock order reversal and malloc() calls with a mutex held when lower level code unlocks a channel, calls malloc(), and relocks the channel. This also avoids the cost of some unnecessary locking and unlocking. Tested by: matk Notes: svn path=/head/; revision=126366
* | Switch from using mutexes to using semaphores to protect against earlyScott Long2004-02-285-52/+65
| | | | | | | | | | | | | | | | | | | | completion of synchronous commands. Also switch to a per-array bioq as it appears to improve performance. Submitted by: mbr, imp.ch (bioq change) Notes: svn path=/head/; revision=126364
* | Issue a request sense command automagically when ATAPI commands failSøren Schmidt2004-02-282-58/+86
| | | | | | | | | | | | | | with a valid sense key. Notes: svn path=/head/; revision=126356
* | Previous commit mistakenly delayed cnadd() as well as make_dev().Ken Smith2004-02-281-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Testing on cluster ref machine with just delaying make_dev() seems to work, and results in printf() output appearing sooner in boot cycle instead of going to /dev/null. Caught by: bde Pointy hat: kensmith Approved by: rwatson (mentor) Notes: svn path=/head/; revision=126352
* | Remove now unneeded arguments to tcp_twrespond() -- so and msrc. TheseRobert Watson2004-02-285-23/+7
| | | | | | | | | | | | | | | | | | were needed by the MAC Framework until inpcbs gained labels. Submitted by: sam Notes: svn path=/head/; revision=126351