summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* SMPng locking cleanup for vr(4).bms2004-07-031-66/+58
| | | | | | | | | | | | | | | - Remove recursive locking situations. Remove the MTX_RECURSE bit. - Take the lock for any routine which is not called from within if_vr.c itself; this includes entry points called by newbus, ifnet, callout, ifmedia, and polling subsystems. - Remove spl references from the code added to miibus callbacks in rev 1.60. - Add the INTR_MPSAFE bit. - Tidy up some assignments; locks are not needed for taking the address of something at a known offset, for example. - Tested on the machine this was committed from. Tested on: UP only, !debug.mpsafenet && debug.mpsafenet Reviewed by: rwatson
* - Another whitespace pass; make locking calls more obvious.bms2004-07-031-12/+10
| | | | - Use C99 types for vr_miibus_readreg().
* Unbreak -O2 build: initialize nstatus to avoid uninitialized warning.marcel2004-07-031-1/+3
|
* style(9) compliance.bms2004-07-021-276/+164
| | | | | | | | | Put some braces around the busy-wait loop in vr_rxeoc() to make the no-op semicolon more obvious. No functional changes. Running on the machine I am committing from without problems. Reviewed by: jmallett
* Remove duplicate FreeBSD id.njl2004-07-021-2/+0
|
* Get rid of the strict aliasing error by retrieving the ECDT via a tablenjl2004-07-021-2/+3
| | | | | | header pointer and then casting it to the ecdt pointer. This fixes the -O2 build. I'm unsure what changed recently to reveal this error since this code has been unchanged for months.
* Implement SNDCTL_DSP_SETDUPLEX. This may fix sound apps which want tonetchild2004-07-021-0/+10
| | | | | | use full duplex mode. Approved by: matk
* Disable native ata support for now, too much breaksimp2004-07-021-1/+1
|
* Bring in the first chunk of altq driver modifications. This covers themlaier2004-07-025-25/+41
| | | | | | | | | | | following drivers: bfe(4), em(4), fxp(4), lnc(4), tun(4), de(4) rl(4), sis(4) and xl(4) More patches are pending on: http://peoples.freebsd.org/~mlaier/ Please take a look and tell me if "your" driver is missing, so I can fix this. Tested-by: many No-objection: -current, -net
* Add support for the VIA Apollo KT400/400A/600 AGP host bridges which usejhb2004-07-021-0/+3
| | | | | | | the VIA v3 register offsets. PR: 68545 Submitted by: Ariff Abdullah <skywizard@mybsd.org.my>
* PR kern/68474:tackerman2004-07-011-2/+2
| | | | Changed if_ipending to if_flags
* MFNetBSD.le2004-07-011-2/+3
| | | | | | | rev 1.66, author: mycroft Fix an endianness problem (EHCI_NULL was being double-swapped). Obtained from: NetBSD
* MFNetBSD.le2004-07-011-2/+5
| | | | | | | | rev. 1.68, author: mycroft Ignore a port error that happens to come in at the same time as a connect status change. Some root hubs seem to report both. Obtained from: NetBSD
* Remove duplicate FreeBSD idimp2004-07-011-3/+0
|
* While this file still needs __RMAN_RESOURCE_VISIBLE to get the size ofimp2004-07-011-6/+9
| | | | | the struct resource for a malloc, it no longer needs it for the r_ elements of struct resource with this commit.
* After re-exporting rman, et al, __RMAN_RESOURCE_VISIBLE is no longerimp2004-07-011-1/+0
| | | | | necessary for this file. It just needed the size and guts of struct rman.
* Add support to the uftdi driver for Intrepid Control Systems' vehiclebrooks2004-07-013-1/+27
| | | | | | | | | | | | | | | bus interfaces. These interfaces use the FTDI chipset with different Vendor and Product IDs. Add two additional baud rate enumerations. The vehicle bus interfaces use a baud rate of 2000000. Also add 3000000 as it is the other FTDI baud divisor special case. I've commited a slightly different patch from that provided in the PR as I changed the matching code a bit yesterday. Submitted by: Mike Durian <durian at shadetreesoftware.com> PR: kern/67357
* Fix build: the return type for t_break changed from int to void.mp2004-07-012-6/+4
|
* Trim a few things from the dmesg output and stick them under bootverbose tojhb2004-07-014-13/+19
| | | | | | | cut down on the clutter including PCI interrupt routing, MTRR, pcibios, etc. Discussed with: USENIX Cabal
* Use a separate flag when doing a kernel coredump when polling forps2004-07-012-3/+4
| | | | completion instead of abusing the interrupt enable flag.
* Product and vendor ids for SIIG US2308 USB to Serial adaptor.brooks2004-07-012-17/+41
| | | | Tested against: rwatson's laptop
* It's not very useful to set a softc refcount around blocking read/writegreen2004-07-011-11/+9
| | | | | | operations when the refcount doesn't protect the opens and closes. Fix this, and don't actually let a time out happen: now ugen(4) devices do not get freed out from under the programs with them open.
* Rework the code that waits for a response from the EC. Use an sx locknjl2004-07-011-48/+35
| | | | | | | | | | | instead of a mutex so we do not unblock it in msleep(). If we do this, another event could occur, resetting the status register since reads reset it. While I'm here, remove the backoff approach. Instead, sleep in 10 ms chunks for up to the configured timeout using either DELAY (if we aren't booted yet) or tsleep. Help from: dillon Tested by: Andrew Thompson andy AT fud.org.nz
* Define the tty methods as typedefs.phk2004-06-304-11/+7
| | | | | | Change the return type for t_break to void. Add t_ioctl (more about this later).
* Remove extra RMAN_RESOURCE_VISISBLEimp2004-06-301-1/+0
|
* puc needs to peek into struct resource too.imp2004-06-301-0/+1
|
* This needs __RMAN_RESOURCE_VISIBLEphk2004-06-301-1/+1
|
* Add missing function debug trace macros to the new powerres functions.njl2004-06-301-0/+4
| | | | Reported by: phk
* Hide struct resource and struct rman. You must defineimp2004-06-301-0/+1
| | | | | | __RMAN_RESOURCE_VISIBLE to see inside these now. Reviewed by: dfr, njl (not njr)
* Move flags into a private ivar so it can't collide with device flags.njl2004-06-306-124/+137
| | | | | | | Unify the code to disable GPEs with the enable code. Shutdown is handled the same way. ACPI now does all wake/sleep prep for child devices so now they no longer need to call external functions in the suspend/resume path. Add the flags to non-ACPI busses (i.e., pci).
* Add a method for referencing/switching power resources based on _PRW.njl2004-06-301-11/+56
| | | | | | This brings us into line with the standard, which requires power resources be enabled when wake is enabled for a given device. Move the dereferencing code into its own function, +acpi_pwr_dereference_resource().
* Disable the EC GPE in the shutdown path. This is correct but is not knownnjl2004-06-301-0/+13
| | | | to fix any bug.
* Diff reduction for style.njl2004-06-301-6/+3
|
* Remove leftover debug output.sos2004-06-301-2/+2
|
* Add new quirk code that disables problem BIOS versions. Remove old quirknjl2004-06-301-74/+19
| | | | | | | code that was never really used. Print a message when disabling ACPI via a quirk. Allow the user to override the blacklist decision by setting hint.acpi.0.disabled="0". Add missing AcpiTerminate() calls; they are needed to clean up if bailing out after AcpiInitializeSubsystem().
* Add the table quirk matching code. It matches rules defined in acpi_quirksnjl2004-06-301-0/+183
| | | | | and sets the flags. It also calls the machdep quirk code first. This allows table quirks (or whitelists) to override machdep quirks.
* Add machdep quirks functions. On i386, this disables acpi on systems withnjl2004-06-301-0/+6
| | | | BIOS dates earlier than Jan 1, 1999. Add prototypes and quirks flags.
* Add pnpinfo and location information to uhub. We also keep track ofimp2004-06-303-14/+151
| | | | | | the subdevices of uhub better now to accomplish this. Submitted by: Bernd Walter
* Remove saved_* from dc_softc. They are now no longer needed.imp2004-06-291-5/+0
| | | | Submitted by: Marius Strobl
* Update the special handling code for ATA devices to allow usage ofsos2004-06-291-54/+42
| | | | | | PCI native addressing. That means that if the HW says that using "real" addresses instead of the hardwired legacy compat ones is allowed, we will use them.
* Update for acpi_id_probe()njl2004-06-292-26/+19
|
* Staticize acpi_MatchHid() and include acpi_if.hnjl2004-06-291-1/+1
|
* Use the acpi_id_probe() method instead of acpi_MatchHid(), which is nownjl2004-06-298-66/+73
| | | | static.
* Add implementation of the ACPI methods which hands them off to ACPI-CA.njl2004-06-291-5/+58
| | | | | acpi_id_probe() returns NULL for no match or the ID string that matched if the driver should attach.
* Add acpi methods for HID/CID probing, evaluating objects, and walking thenjl2004-06-291-0/+77
| | | | | | namespace. This is to allow decoupling of attachments from ACPI where they need some functionality when ACPI is present but do not want to require ACPI to always be loaded.
* Use a default of the FADT for matching CreatorId quirks. Use XSDT to meannjl2004-06-291-6/+6
| | | | "match either RSDT or XSDT."
* Include isa/pnpvar.h and remove a duplicate copy of PNP_EISAID.njl2004-06-291-13/+2
|
* While booting, use DELAY() for waiting for the EC to respond instead ofnjl2004-06-281-6/+13
| | | | | | msleep(). Until we're finally up, msleep is a no-op. Explained by: peter
* Remove the setting of the pci config variables on power state changes.imp2004-06-285-113/+2
| | | | The bus does this now.
* Remove code to slam the config space on transition to d0.imp2004-06-281-56/+0
|
OpenPOWER on IntegriCloud