summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Add a overhaul of the soundchip initialization for the MSP34xx chipsetsalex2003-08-126-1/+1339
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | found only many tv-cards. We currently use more ore less evil hacks (slow_msp_audio sysctl) to configure the various variants of these chips in order to have stereo autodetection work. Nevertheless, this doesn't always work even though it _should_, according to the specs. This is, for example, the case for some popular Hauppauge models sold sold in Germany. However, the Linux driver always worked for me and others. Looking at the sourcecode you will find that the linux-driver uses a very much enhanced approach to program the various msp34xx chipset variants, which is also found in the specs for these chips. This is a port of the Linux MSP34xx code, written by Gerd Knorr <kraxel@bytesex.org>, who agreed to re-release his code under a BSD license for this port. A new config option "BKTR_NEW_MSP34XX_DRIVER" is added, which is required to enable the new driver. Otherwise the old code is used. The msp34xx.c file is diff-reduced to the linux-driver to make later modifications easier, thus it doesn't follow style(9) in most cases. Approved by: roger (committing this, no time to test/review), keichii (code review)
* Fix the busdma support in twe to support EINPROGRESS and enable it forps2003-08-124-111/+249
| | | | use with PAE kernels.
* Add support for the Broadcom BCM5901 and BCM5901 rev A2 chips.wpaul2003-08-123-5/+31
| | | | | | | | These are 10/100 only NICs found on the IBM Thinkpad R40E and G40. These seem to be based on the BCM5705 MAC but with a PHY that doesn't support 1000Mbps modes. Submitted by: Igor Sviridov <sia@nest.org>
* Style cleanups to match the rest of this directory. For acpi_battery.c,njl2003-08-114-878/+800
| | | | remove unused includes.
* bus_dmamap_create() is no longer optional for non-static dma mappings. Thanksscottl2003-08-111-0/+14
| | | | to ru@ for testing this.
* Don't provide mutexes for static busdma allocations.scottl2003-08-111-19/+22
|
* Add or correct range checking of signal numbers in system calls andnectar2003-08-101-1/+1
| | | | | | | | | ioctls. In the particular case of ptrace(), this commit more-or-less reverts revision 1.53 of sys_process.c, which appears to have been erroneous. Reviewed by: iedowse, jhb
* The BCM5704 ASIC has a smaller mbuf space than the 5700/1/2/3. Failurewpaul2003-08-101-2/+10
| | | | | | to configure this correctly yields many watchdog timeouts even on lightly loaded machines. This is a common complaint from users with Dell 1750 servers with built-in dual 5704 NICs.
* Switch from legacy to native mode for ICH4 and ICH5.orion2003-08-102-21/+22
| | | | | | | Submitted by: Shin-ichi YOSHIMOTO <yosimoto@waishi.jp> Test by: Markko Merzin <markko@short.cut.ee> PR: kern/53242 MFC after: 5 days
* Don't hardcode unit numer '0'.ticso2003-08-103-3/+3
| | | | We can have multiple instances.
* MF p4:imp2003-08-101-1/+1
| | | | Minor style(9) nit.
* Some bridges, like o2 micro and maybe ricoh, have some issues betweenimp2003-08-101-10/+47
| | | | | | | | | | | | | | | the time the card is inserted and the time that the card is configured. This can lead to interrupt storms. The O2Micro suggested workaround is to route the card function interrupt to IRQ1. It appears from my testing that this is an acceptable workaround for most chipsets (there's still some issue with the ricoh chipset). Also, only look at the NOT_A_CARD bit when the bridge tells us there's a card present. At least one test caused this to be true after the card was removed, but the author couldn't recreate it with the workaround in place. The change is more conservative than the previous code, but still has the work around that wasn't present in the older code.
* Silence unwanted 'gigabit link up' messages: do not treat thewpaul2003-08-101-1/+2
| | | | | | | | BGE_MACSTAT_MI_COMPLETE bit in the MAC status register as a link change indicator. We turn this bit on now because some of the newer chips need it, but it usually just means that reading/writing an MII/GMII register has completed, not that a link change has occured.
* Don't provide a mutex in the S/G list dma tag since it will never be defered.scottl2003-08-091-7/+9
| | | | Fix some nearby style.
* Add code to cope more with strange conditions after careful study ofimp2003-08-091-14/+42
| | | | | | | | | | | | | | | | | | | | | | the standard. 1) When the bridge tells us that we have a card that isn't recognized, we use the force register to force the CV_TEST to run. This test causes the bridge to re-evaluate the card. Once this re-evaluation process happens, we get a new interrupt that may say it is ready to process. We try this up to 20 times. Tests have shown that this appears to correctly reset the 'Unknown card type' problem that I saw on my Sony PCG-505TS. 2) Take a page from OLDCARD and always read the CSC register in the ISR. Some TI (and it seems maybe Ricoh) chipsets require this to behave properly. This work around appears to work due to some power management protocols that were improperly implemented. Maybe it can be removed when this driver supports the full PME# protocol described in the standards. 3) Minor additional debug printf when debugging is enabled. 4) Minor additional commentary for things that are obvious only after study. # I'm committing this from my Sony PCG-505TS using shared PCI interrupts # and NEWCARD, but there are some issues with the Ricoh bridge still, but # at least now I can boot with the card inserted and have it work.
* CBB_SOCKET_STAT_ is too long. Change it to CBB_STATE_. Also, makeimp2003-08-092-31/+44
| | | | | | some minor changes to more closely match the bit names used in the 7.0 version of the PCMCIA standard. Also add bits from the FORCE register.
* When allocating memory, align it to the minimum alignment required forimp2003-08-092-0/+5
| | | | cardbus bridges if the alignment requirements were less restrictive.
* Add comments about some alignment that looks a little strange.imp2003-08-091-2/+9
|
* Minor fixes to a couple of comments.imp2003-08-091-2/+2
|
* Call bus_dmamap_create() to create the per-SRB buffer maps. Note that nonescottl2003-08-091-0/+12
| | | | | of the SRB resources are freed when the driver unloads; maybe that will be tackled another day.
* Add the PCI Id of the Intersil prism3 (mini-PCI) WLAN chip. The Vaiomarcel2003-08-081-0/+1
| | | | | | | | | | PCG-505BX (for example) has one of those: wi0: <Intersil Prism3> mem 0xf8000000-0xf8000fff at device 2.0 on pci2 wi0: 802.11 address: 00:02:8a:94:d8:73 wi0: using RF:PRISM3(Mini-PCI) wi0: Intersil Firmware: Primary (1.1.1), Station (1.5.6) wi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
* Initialize bp->bio_driver1 in idad_strategy().mdodd2003-08-081-0/+1
| | | | | | | | Removed by accident in 1.38. This fixes the trap 12 everyone was seeing in ida_construct_qcb(). PR: kern/53245
* Default to 5 seconds before sleeping to give some machines time to stabilize.njl2003-08-081-1/+6
| | | | This doesn't break anything on my laptop and some claim it helps them.
* Add MELCO LPC3_CTX. This is the same as Buffalo card of the same nameimp2003-08-071-0/+1
| | | | | | with different vendor id. Submitted by: Shizuka Kudo-san
* Sync to 1.62 of pccarddevsimp2003-08-071-5/+9
|
* MELCO has a similar product to Buffalo LPC3-CLX: named the same andimp2003-08-071-2/+4
| | | | | | | has the same product id, but different vendor id. It also appears that the MELCO's id should be 0x18a instead of 0x8a01. Fix this. Submitted by: Shizuka Kudo-san
* Consistently use the BSD u_int and u_short instead of the SYSV uint andjhb2003-08-0714-99/+99
| | | | | | | ushort. In most of these files, there was a mixture of both styles and this change just makes them self-consistent. Requested by: bde (kern_ktrace.c)
* Make open channels persist across ifconfig down and up. All channelsharti2003-08-073-21/+40
| | | | | that are not currently closing when the interface is configured down will be brough up as soon as the interface is configured up.
* Make the driver preserve open connections accross ifconfig downharti2003-08-074-26/+57
| | | | | | | and up commands. When configuring the interface down only the connections that are currently closing are deleted from the connection table. When the interface is configured up, all connections that are in the table are re-opened.
* When configuring the interface down and up again try to re-open allharti2003-08-072-33/+77
| | | | | | connections that have been open (and were not closing) when the interface was stopped. This makes the behaviour of fatm(4) more like the behaviour of en(4).
* We donot need `\n' for panic().non2003-08-071-1/+1
|
* Don't use pessimal (u_short) types for i/o ports. This is mainly forbde2003-08-061-1/+1
| | | | | | | | | | completenss. The pessimization is tiny compared with i/o port slowness except on very old machines, but code that used signed short types for i/o ports was unpessimized long ago, and the macro that detected it recently started working for u_short types too. Use of bus space should have made this moot long ago. Not tested at runtime by: bde
* Don't use pessimal (u_short) types for i/o ports. This is mainly forbde2003-08-061-1/+1
| | | | | | | | | | completenss. The pessimization is tiny compared with i/o port slowness except on very old machines, but code that used signed short types for i/o ports was unpessimized long ago, and the macro that detected it recently started working for u_short types too. Use of bus space should have made this moot long ago. Not tested at runtime by: bde
* Remove the 6-10 byte translation from UFI and ATAPI command sets. It isnjl2003-08-061-61/+0
| | | | | | no longer needed now that we have PIM_NO_6_BYTE. Requested by: jhb
* Remove the ATMIOCENA and ATMIOCDIS ioctl. Everyting has been convertedharti2003-08-065-168/+22
| | | | | to use the new OPENVCC and CLOSEVCC calls that allow the sepcification of traffic parameters for the connections.
* Make the driver honor the ATMIO_FLAG_ASYNC that requestsharti2003-08-064-9/+6
| | | | asynchronuous open/close operations.
* Honor the ATMIO_FLAG_ASYNC for asynchronuous open/close of VCs.harti2003-08-064-10/+11
|
* Honor the new ATMIO_FLAG_ASYNC for asynchronuous open/close operationsharti2003-08-061-4/+6
| | | | on a VC.
* Honor the new ATMIO_FLAG_ASYNC that requests asynchronuous open/closeharti2003-08-061-1/+1
| | | | operations on VCs.
* When sending check that the channel is really open. Get the informationharti2003-08-061-7/+9
| | | | | whether we use AAL5 or not from the aal field of the channel parameters instead of the flag in the pseudo header. This flag will go away soon.
* Print an array index that is computed as ptrdiff_t with %tu.harti2003-08-061-2/+2
|
* Change the format type to unbreak LINT on 64-bit platforms.obrien2003-08-061-2/+2
|
* Don't use pessimal (u_short) types for i/o ports. This is mainly forbde2003-08-051-2/+2
| | | | | | | | | | completenss. The pessimization is tiny compared with i/o port slowness except on very old machines, but code that used signed short types for i/o ports was unpessimized long ago, and the macro that detected it recently started working for u_short types too. Use of bus space should have made this moot long ago. Not tested at runtime by: bde
* Properly support the 3ware generic API.ps2003-08-057-96/+190
| | | | | | | | | | | - Build SGL's for ATA_PASSTHROUGH commands - Fallback to using the sgl_offset when the opcode is unknown for building SGL's/ - Add ioctl calls for adding and removing units. - Define previously undefined AEN's - Allocate memory for the ioctl payload in multiples of 512bytes. MFC after: 1 week
* Implement per-VC statistics.harti2003-08-051-1/+8
|
* Implement the ATMIOCOPENVCC and ATMIOCCLOSEVCC ioctls(). This was theharti2003-08-053-37/+86
| | | | last driver that did not know about those.
* Use the generic getvccs function from net/if_atmsubr.c and removeharti2003-08-051-54/+4
| | | | the home-grown version.
* Arrghhh. Remove debugging printf's that slipped in in the pre-previousharti2003-08-051-11/+1
| | | | commit.
* Use __FBSDID() as per style(9).harti2003-08-051-2/+2
|
* Make the en(4) driver more like the other ATM drivers. This is theharti2003-08-053-247/+348
| | | | | | | preparation for supporting the OPENVCC and CLOSEVCC ioctls which are needed for ng_atm. This required some re-organisation of the code (mostly converting array indexes to pointers). This also gives us an array of open vccs that will help in using the generic GETVCCS handler.
OpenPOWER on IntegriCloud