summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Add a comment explaining a code change..julian2002-02-271-2/+2
|
* Simple p_ucred -> td_ucred changes to start using the per-thread ucredjhb2002-02-277-18/+17
| | | | reference.
* Add a driver for the Sun GEM (Gigabit) and ERI (100 Mb/s) PCI ethernettmm2002-02-274-0/+2989
| | | | adaptors, ported from NetBSD.
* Add a driver for the Sun HME PCI/SBus ethernet adaptor, which is onboardtmm2002-02-275-0/+2455
| | | | | | | | in most machines of the Sun Ultra series. This is a port of the NetBSD driver which I enhanced to make use of the gather functionality and the configurable RX buffer offset to avoid copying all received/sent packet (instead, packets will be directly DMAd from mbuf chains and into mbuf clusters now).
* Add the following functions/macros to support byte order conversions andtmm2002-02-275-24/+5
| | | | | | | | | | | | | | | | | | | | | | | | device drivers for bus system with other endinesses than the CPU (using interfaces compatible to NetBSD): - bwap16() and bswap32(). These have optimized implementations on some architectures; for those that don't, there exist generic implementations. - macros to convert from a certain byte order to host byte order and vice versa, using a naming scheme like le16toh(), htole16(). These are implemented using the bswap functions. - stream bus space access functions, which do not perform a byte order conversion (while the normal access functions would if the bus endianess differs from the CPU endianess). htons(), htonl(), ntohs() and ntohl() are implemented using the new functions above for kernel usage. None of the above interfaces is currently exported to user land. Make use of the new functions in a few places where local implementations of the same functionality existed. Reviewed by: mike, bde Tested on alpha by: mike
* Fix warnings that have become fataljulian2002-02-272-3/+10
| | | | | | | | 1/ conditionalise (#if 0) function that is not used. Unused code left in place for netBSD compatibility. 2/ Recode loop to convince gcc that it does initialise a variable (use do-while instead of for() so gcc knows that we always go through at least once. Feel free to check my logic.
* Use the pci.c code wherever possible, rather than copying all the pciimp2002-02-275-1040/+220
| | | | | | | | | | | | | | code into cardbus and s/pci/cardbus. This exposes a few pci_* functions that are now static. This work is similar to work Justin posted to the mobile list about a year or two ago, which I have neglected since then. This is a subset of his current work with the multiple inheritance newbus architecutre. When completed, that will eliminate the need for pci/pci_private.h. Similar work is needed for the cardbus_cis and pccard_cis code as well.
* Remove errors in LINT (now that they are fatal)julian2002-02-271-0/+4
|
* Remove problematic PHY_WRITE so that autoneg to 10 Mbpsdanny2002-02-271-16/+1
| | | | | | | | actually works. Submitted by: Dennis <TD790@aol.com> Reviewed by: Bill Paul <wpaul@freebsd.org> MFC after: 7 days
* Set ifp->if_name to "awi" instead of device_get_name(dev) to avoidbrooks2002-02-261-1/+1
| | | | casting away a const qualifier so the awi driver compiles.
* Add a missing field to the end of array marker in the pci_ids array.brooks2002-02-261-1/+1
| | | | Submitted by: sumikawa
* Initialize a variable bogusly to avoid a gcc bug that causes a spuriousbde2002-02-262-0/+6
| | | | warning.
* Revert part of the last commit. A couple of defines were removedjoe2002-02-261-0/+4
| | | | by NetBSD because they don't use them (they've no usbd), but we do.
* In ad-hoc mode, the "associate" bit is valid to check to see if it isambrisko2002-02-261-3/+1
| | | | | | | part of an ad-hoc network. This means another station needs to be around so they can both associate. MFC after: 1 week
* Until I can figure out how to live without the volatile qualifier onimp2002-02-261-1/+1
| | | | comdefaultrate, comment out the support for machdep.conspeed for now.
* Remove an unused variable.imp2002-02-261-1/+0
|
* Fix warnings introduced in the PCI_ALLOW_UNSUPPORTED_IO_RANGE case.imp2002-02-261-6/+6
|
* If we're going to ifdef out the only reference to asr_drvinit, thenimp2002-02-261-1/+1
| | | | go ahead and ifdef out the function too.
* Add an experimental tunable: machdep.conspeed.imp2002-02-261-0/+1
| | | | # I'm not sure where to document this.
* in ulpt_reset() req.bmRequestType was unitialized, fix it.alfred2002-02-261-0/+1
|
* Merge from NetBSD:joe2002-02-262-16/+13
| | | | | | | | | | | | | usb.h (rev 1.61): date: 2002/01/01 14:23:37; author: augustss; Add a missing subclass definition. usb.h (rev 1.63) and usb_port.h (rev 1.52): date: 2002/02/25 00:46:37; author: augustss; Some portability improvement. Add define for usb.h version.
* Add a new test_counter() function which tries to determine the width ofphk2002-02-251-17/+46
| | | | | | | | | | | | | | | | | the inter-value histogram for 2000 samples. If the width is 3 or less for 10 consequtive samples, we trust the counter to be good, otherwise we use the *_safe() method. This method may be too strict, but the worst which can happen is that we take the performance hit of the *_safe() method when we should not. Make the *_safe() method more discriminating by mandating that the three samples do not span more than 15 ticks on the counter. Disable the PCI-ident based probing as a means to recognize good counters. Inspiration from: dillon and msmith
* The thermal thread needs to take Giant before it does anything with themsmith2002-02-251-0/+6
| | | | | | interpreter. Submitted by: Magnus B{ckstr|m <b@etek.chalmers.se>
* Tests by numerous people have shown that many chipsets do not properlydillon2002-02-241-1/+1
| | | | | | | | | | | latch the acpi timer, resulting in weird deltas. The problem is severe enough to adversely effect the timecounter code. Default to the 'safe' version of the get-timecount function. The probe will override it if a known-good chipset is found. This is temporary until a more complete solution is found. Reviewed by: phk
* Finish phk's previous removal of BIO_ORDERED, all code thatsos2002-02-242-5/+0
| | | | depended on ATA_FLUSHCACHE_ON is now useless.
* Add a sysctl, sysctl hw.snd.report_soft_formats, that controls whether thedes2002-02-241-1/+9
| | | | | | | | | | | AIOGCAP ioctl reports software-emulated formats. It defaults to on. People who use performance-sensitive audio software and do not want it to pick a software-emulated audio format instead of one supported by their hardware should turn it off. This unbreaks isdnphone(1) on systems with PCM-only sound cards. Approved by: cg
* Lock struct pgrp, session and sigio.tanimura2002-02-231-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | | New locks are: - pgrpsess_lock which locks the whole pgrps and sessions, - pg_mtx which protects the pgrp members, and - s_mtx which protects the session members. Please refer to sys/proc.h for the coverage of these locks. Changes on the pgrp/session interface: - pgfind() needs the pgrpsess_lock held. - The caller of enterpgrp() is responsible to allocate a new pgrp and session. - Call enterthispgrp() in order to enter an existing pgrp. - pgsignal() requires a pgrp lock held. Reviewed by: jhb, alfred Tested on: cvsup.jp.FreeBSD.org (which is a quad-CPU machine running -current)
* AcpiOsPrintf and AcpiOsVprintf now return void.msmith2002-02-231-6/+4
|
* AcpiOsCallocate is no longer required.msmith2002-02-231-11/+0
|
* Match namespace cleanup changes in ACPI CA 20020217 update.msmith2002-02-235-24/+25
|
* Add our own private defines for driver debug layers.msmith2002-02-231-7/+18
| | | | | | Obsolete the acpi_GetInto* interfaces. Fix a typo to be less appropriate.
* Match namespace cleanup changes in ACPI CA 20020217 update.msmith2002-02-231-46/+72
| | | | | | | | Use ACPI_SUCCESS/ACPI_FAILURE consistently. The AcpiGetInto* interfaces are obsoleted by ACPI_ALLOCATE_BUFFER. Convert to using a kthread rather than timeout() to avoid problems with the interpreter sleeping.
* Match namespace cleanup changes in ACPI CA 20020217 update.msmith2002-02-232-60/+68
| | | | | Use ACPI_SUCCESS/ACPI_FAILURE consistently. The AcpiGetInto* interfaces are obsoleted by ACPI_ALLOCATE_BUFFER.
* Match namespace cleanup changes in ACPI CA 20020217 update.msmith2002-02-232-38/+74
| | | | | | | Use ACPI_SUCCESS/ACPI_FAILURE consistently. The AcpiGetInto* interfaces are obsoleted by ACPI_ALLOCATE_BUFFER. Use _ADR as well as _BBN to get our bus number.
* Match namespace cleanup changes in ACPI CA 20020217 update.msmith2002-02-234-16/+16
| | | | Use ACPI_SUCCESS/ACPI_FAILURE consistently.
* Match namespace cleanup changes in ACPI CA 20020217 update.msmith2002-02-231-38/+44
| | | | | | | | Use ACPI_SUCCESS/ACPI_FAILURE consistently. The ACPI global lock acquire takes a timeout value. I'm not sure what we should do about timeouts on it; a deadlock against this lock is catastrophic.
* Match namespace cleanup changes in ACPI CA 20020217 update.msmith2002-02-231-34/+15
| | | | | | | | | | | Use ACPI_SUCCESS/ACPI_FAILURE consistently. The AcpiGetInto* interfaces are obsoleted by ACPI_ALLOCATE_BUFFER. Kill off the timeouts that used to read _BIF and _BST. These are invoked when the battery is actually read. timeout() is dangerous in combination with ACPI, as the interpreter can block. This driver still needs more work.
* Match namespace cleanup changes in ACPI CA 20020217 update.msmith2002-02-231-125/+78
| | | | | | | | | | | | | Use ACPI_SUCCESS/ACPI_FAILURE consistently. The AcpiGetInto* interfaces are obsoleted by ACPI_ALLOCATE_BUFFER. Add AcpiBatteryIsPresent helper to determine whether a battery device is inserted. Add ACPI_ALL_DRIVERS to the list of debug layers, now that we own the namespace for this. Pr:
* Allow PCI_ALLOW_UNSUPPORTED_IO_RANGE to leave broken setups broken enoughphk2002-02-221-0/+18
| | | | to work.
* GC: BIO_ORDERED going away.phk2002-02-223-25/+2
|
* Disksort will not "munge" requests, BIO_ORDERED or not, so removephk2002-02-221-4/+2
| | | | use of BIO_ORDERED.
* Reorder some of the ioctls and add a few new ones.mjacob2002-02-212-17/+37
| | | | MFC after: 1 day
* Fix a problem where a local loop disk logs out- and we get a PORT LOGGEDmjacob2002-02-211-8/+38
| | | | | | | | | | | | OUT status. We are, apparently, required to force the f/w to log back in if we want to try and talk to that disk again. This means either issuing a LOGIN LOCAL LOOP PORT mailbox command, or by issuing a LIP. I've elected to issue a LIP because this has a better chance of waking up the disk which clearly just crashed and burned. These should not occur at all. If they do, they should be darned rare. MFC after: 1 week
* Prefix structure members to protect them against clashes with eg.alfred2002-02-206-125/+125
| | | | | | | | | c++ keywords. This keeps us in sync with NetBSD because they actually committed my delta first. Ok'd by: lennard
* Cleanup of nmdm devicejulian2002-02-201-61/+100
|
* Add missing m_free() so we actually drain the send buffer in monitor mode.brooks2002-02-201-0/+2
| | | | Submitted by: Kenjiro Cho <kjc@csl.sony.co.jp>
* Check the status of the card bridge first thing, rather than last inimp2002-02-201-10/+16
| | | | | the loop. This fixes the "my card is in the laptop on boot, but doesn't attach" problem.
* Add u_int16 prodext value in CISTPL_MANF_ID. This gets a fifth byteshiba2002-02-203-0/+15
| | | | | | | when manufacturer id tuple length is 5. This change is for xe driver. This is a dirty hack. But there is no better idea. Reviewd by: imp
* Update xe driver to probe and attach in a NEWCARD kernel.shiba2002-02-203-310/+365
| | | | | | | And separate probe and attach routine for PC Card from if_xe.c to if_xe_pccard.c. Reviewed by: imp
* Release allocated memory and bus_space_handle on an error.nyan2002-02-191-3/+21
| | | | Reviewed by: jhay
OpenPOWER on IntegriCloud