aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Merge SA-05:06.iir, SA-05:07.ldt and SA-05:08.kmem.Maxim Konovalov2005-05-121-2/+2
| | | | | | | Approved by: so (cperciva) Notes: svn path=/releng/4.9/; revision=146151
* MFS: rev. 1.35.2.35:Max Khon2003-10-261-6/+6
| | | | | | | | | Fix setting PIO mode timings on AcerLabs Aladdin IV/V chipsets. Approved by: re Notes: svn path=/releng/4.9/; revision=121581
* This commit was manufactured by cvs2svn to create branch 'RELENG_4_9'.cvs2svn2003-10-229-1983/+0
| | | | Notes: svn path=/releng/4.9/; revision=121369
* MFC: Add support for the Intel ICH5 SATA controller in both legacy andJohn Baldwin2003-10-222-0/+14
| | | | | | | | | | enhanced mode. Submitted by: Dan Strick <strick@covad.net> Approved by: re (murray) Notes: svn path=/stable/4/; revision=121339
* Fix problems with slowdowns and hangs with the DRM on -stable. The conditionEric Anholt2003-10-191-4/+6
| | | | | | | | | | | | checks for sleeping waiting for IRQs were not wrapped in spldrm(). PR: kern/57334 Submitted by: Shobaki sam. <progen@free.fr> Approved by: re (murray) Obtained from: DRI CVS (Keith Whitwell) Notes: svn path=/stable/4/; revision=121254
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2003-10-191-0/+308
| | | | Notes: svn path=/stable/4/; revision=121233
* MFC: Add support for SK-9521 V2.0 and 3COM 3C940.Wilko Bulte2003-10-145-52/+130
| | | | | | | | | Based on: Nathan L. Binkert's patch for OpenBSD Patch submitted by and thanks to: Jung-uk Kim <jkim@niksun.com> Approved by: re (jhb, murray) Notes: svn path=/stable/4/; revision=121088
* MFC 7955/7956 symmetric crypto supportSam Leffler2003-10-083-41/+159
| | | | | | | | | Note performance is currently suboptimal. Approved by: re (murray) Notes: svn path=/stable/4/; revision=120917
* MFC 1.2:Sam Leffler2003-10-061-2/+4
| | | | | | | | | | | o add missing {}'s that to safe_dmamap_uniform that caused extraneous copies for partly-aligned operations through /dev/crypto (unlikely) o add missing case in iov code that never showed up because of the above bug Approved by: re (murray) Notes: svn path=/stable/4/; revision=120858
* Driver names for DRIVER_MODULE in current are 'ed' and 'ep', but inWarner Losh2003-10-068-8/+8
| | | | | | | | | | | -stable they need to be 'if_ed' and 'if_ep'. ifconfig should be modified, but this is a lower risk change this late in the release cycle. Approved by: re@ Notes: svn path=/stable/4/; revision=120840
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2003-10-011-0/+168
| | | | Notes: svn path=/stable/4/; revision=120634
* Fix a function prototype error.Luoqi Chen2003-10-011-1/+2
| | | | | | | Approved by: re@ Notes: svn path=/stable/4/; revision=120619
* MFC rev 1.55Paul Saab2003-09-261-1/+1
| | | | | | | | | | By not setting No_CRC in the Mode Control Register, we must also reduce the size of the packet by 4 bytes to remove the ethernet crc. Approved by: re Notes: svn path=/stable/4/; revision=120479
* MFC:Scott Long2003-09-262-2/+6
| | | | | | | | | | | | | | | | | | | | | | aic79xx_pci.c: aic7xxx_pci.c: When performing our register test, be careful to avoid resetting the chip when pausing the controller. The test reads the HCNTRL register and then writes it back with the PAUSE bit explicitly set. If the last write to the controller before our probe is to reset it, the CHIPRST bit will still be set, so we must mask it off before the PAUSE operation. On some chip versions, we cannot access registers for a few 100us after a reset, so this inadvertant reset was causing PCI errors to occur on the read to check for paused status. Approved by: re (murray) Notes: svn path=/stable/4/; revision=120476
* MFC: rev 1.54, Do not set the No_CRC bit in the Mode Control Register.Paul Saab2003-09-231-2/+1
| | | | Notes: svn path=/stable/4/; revision=120368
* MFC rev. 1.22:Thomas Quinot2003-09-181-2/+5
| | | | | | | | | | (atapi_action, case XPT_PATH_INQ): Handle properly the case of CAM_TARGET_WILDCARD (target_id_t is an unsigned integer type). Approved by: re (murray) Notes: svn path=/stable/4/; revision=120211
* Fix a typo from the last commit.Scott Long2003-09-171-1/+1
| | | | | | | Submitted by: Sergey N. Voronkov <serg@tmn.ru> Notes: svn path=/stable/4/; revision=120158
* MFC rev 1.78 and 1.69 to fix a pontential adapter deadlock and potentialScott Long2003-09-171-9/+17
| | | | | | | | | panic. Approved by: re (murray) Notes: svn path=/stable/4/; revision=120149
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2003-09-091-0/+512
| | | | Notes: svn path=/stable/4/; revision=119918
* Fix incorrect structure initialization introduced in 1.2.2.14.Pierre Beyssac2003-09-071-1/+0
| | | | | | | | | | PR: kern/56467 Submitted by: nabe@nabechan.org Approved by: re Pointy-hat-to: pb Notes: svn path=/stable/4/; revision=119865
* Fixed panics that will occur during attempts to rescan ATA disk devicesDavid Greenman2003-09-055-18/+20
| | | | | | | | | | | | | | | (which occur after disk errors). The panic is due to attempts to acquire the ATA channel lock multiple times (at different levels), with the second attempt trying to sleep in an interrupt context. The fix is to indicate to the other levels that we already have the lock. The problem has been fixed in -current a different way and isn't portable to -stable. Reviewed by: sos@freebsd.org Approved by: re@freebsd.org Notes: svn path=/stable/4/; revision=119778
* MFC: ata driver bus dma code.Luoqi Chen2003-09-0511-295/+479
| | | | | | | | Eyeballed by: sos Approved by: re Notes: svn path=/stable/4/; revision=119756
* MFC:Prafulla Deuskar2003-09-035-968/+1875
| | | | | | | | | | | | | | Add support for new devices. Bug Fixes: - Allow users to use LAA - Remember promiscuous mode settings while bridging - Allow gratuitous arp's to be sent PR: 52966/54488 Approved by: re (murray) Notes: svn path=/stable/4/; revision=119721
* RegenJosef Karthauser2003-09-022-5/+75
| | | | Notes: svn path=/stable/4/; revision=119678
* MFC: Add support for the following Palm devices:Josef Karthauser2003-09-022-1/+19
| | | | | | | | | | | | | | Handspring Treo Palm I705 Palm M130 Palm Tungsten T Palm Tungsten Z Palm Zire Sony Clie NX60 Sony Clie S360 Notes: svn path=/stable/4/; revision=119677
* Remove the include of <pci.h> from here.Scott Long2003-09-011-2/+0
| | | | | | | Submitted by: david@catwhisker.org Notes: svn path=/stable/4/; revision=119657
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2003-08-311-0/+316
| | | | Notes: svn path=/stable/4/; revision=119620
* MFC two device ids (ICH4 and ICH5).Nate Lawson2003-08-311-2/+9
| | | | | | | Approved by: re (murray) Notes: svn path=/stable/4/; revision=119617
* More vm_offset_t -> vm_paddr_t conversions in kernel dump related code.Luoqi Chen2003-08-314-7/+7
| | | | | | | | | | | This is functionally a no-op. If you have 4G or more memory, most likely you will still have problem with dumping since PCI device windows are not currently excluded. Approved by: re Notes: svn path=/stable/4/; revision=119598
* MFC 1.23: Add support for the newer Moxa PCI 8-port, 16550-compatiblePierre Beyssac2003-08-281-0/+17
| | | | | | | | | | | | | based CP-168U board. It initializes and attaches in the same way as the older (but higher performance) C168H. The only difference is the board ID, which is 0x1681. PR: kern/53548 Submitted by: regnauld@catpipe.net Approved by: re Notes: svn path=/stable/4/; revision=119535
* almost-MFC: Søren and I have made a minimal 4.x variant of the bits inStephen McKay2003-08-262-4/+10
| | | | | | | | | | | | current (ata-chipset.c:1.32) that properly support the SiI 0680 chip. Prior to this, heavy load on both channels at once would cause command timeouts and sometimes data corruption. Submitted by: sos Approved by: re (murray) and sos Notes: svn path=/stable/4/; revision=119487
* MFC i-Bead mp3 player quirks: usbdevs:1.135, umass.c:1.90Nate Lawson2003-08-254-2/+20
| | | | Notes: svn path=/stable/4/; revision=119458
* MFC: Fix ATAPI/USB/Firewire CDROM drive handling in cd(4) and hopefullyKenneth D. Merry2003-08-241-30/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix a number of related problems along the way. Files/revisions merged: scsi_cd.c: 1.72, 1.77, 1.80 scsi_all.c: 1.39 (partial) scsi_all.h: 1.22 scsi_cd.h: 1.7 scsi_da.c: 1.139 atapi-cam.c: 1.13 not merged: umass.c rev 1.76 (doesn't apply to -stable) Because of the differences between -current and -stable, some of these changes are not identical to the ones in -current. Most notably, cd(4) in -stable uses the slice code, whereas cd(4) in -current has no disklabel support at all. So there is extra code in the -stable version of these patches to handle that. - Automatically detect CDROM drives that can't handle 6 byte mode sense and mode select, and adjust our command size accordingly. We have to handle this in the cd(4) driver (where the buffers are allocated), since the parameter list length is different for the 6 and 10 byte mode sense commands. - Remove MODE_SENSE and MODE_SELECT translation in ATAPICAM, since there's no way for that to work properly. - Merge support for sending a path inquiry CCB to see if the SIM has set the PIM_NO_6_BYTE flag. (scsi_cd.c rev 1.80) - Add a quirk entry for CDROM drives that just hang when they get a 6 byte mode sense or mode select. The reason for the quirk must be documented in a PR, and all quirks must be approved by ken@FreeBSD.org. This is to make sure that we fully understand why each quirk is needed. In most cases, the PIM_NO_6_BYTE flag set by the SIM driver should eliminate the need for a quirk. - Change the way the da(4) handles the no_6_byte sysctl. There is now a per-drive sysctl to set the minimum command size for that particular disk. (Since you could have multiple disks with multiple requirements in one system.) - Loader tunable support for all the sysctls in the da(4) and cd(4) drivers. - Add a CDIOCCLOSE ioctl for cd(4) (bde pointed this out a long time ago). - Add a media validation routine (cdcheckmedia()) to the cd(4) driver, to fix some problems bde pointed out a long time ago. For -stable, open() will still fail if there is no media in the drive. This is because of issues with the slice code handling media changing underneath it. If bde and I can get those issues worked out, there is basic code in this set of patches to handle allowing the CDIOCCLOSE and CDIOCEJECT ioctls without media in the drive. - The media validation routine also reads the table of contents off the drive. We use the table of contents to implement the CDIOCPLAYTRACKS ioctl using the PLAY AUDIO MSF command. The PLAY AUDIO TRACK INDEX command that we previously used was deprecated after SCSI-2. It works in every SCSI CDROM I've tried, but doesn't seem to work on ATAPI CDROM drives. We still use the play audio track index command if we don't have a valid TOC, but I suppose it'll fail anyway in that case. - Add _len() versions of scsi_mode_sense() and scsi_mode_select() so that we can specify the minimum command length. Approved by: re Notes: svn path=/stable/4/; revision=119386
* MFC: FreeBSD OSPM ACPI driver. Note that this driver does not includeJohn Baldwin2003-08-2212-1319/+1272
| | | | | | | | | | | | support for PCI interrupt routing or enumeration of ISA bridges or Host to PCI bridges. While functional on some machines, this driver should be considered experimental and should be tested prior to being deployed in a production environment. Sponsored by: The Weather Channel Notes: svn path=/stable/4/; revision=119325
* MFC: Implement CBR traffic shaping for the Fore adapters. This is controledHartmut Brandt2003-08-225-1/+262
| | | | | | | | | | | by the sysctl hw.fore.hfaN.shape, which can be set to 0 (don't shape), 1 (shape at most one channel) and 2 (try to shape all channels). This works only with firmware version > 4, which is the default now. Submitted by: Vincent Jardin <vjardin@wanadoo.fr> Notes: svn path=/stable/4/; revision=119302
* For some reason the hfa driver behaves differently between current andHartmut Brandt2003-08-222-2/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stable when loaded with 4.X.Y firmware. This difference manifests itself in the card returning receive buffer chains that start with a large buffer under certain circumstances. This uncovered an inherent bug in the mbuf handling of the atm stack: the driver prefixes 8 bytes to the mbuf that contain a function address to dispatch this buffer to and a cookie for this function. When the driver finds, that it has no space at the head of the mbuf chain, it allocates a new packet header mbuf and prepends it to the chain and moves the header to the new mbuf. atm_intr() strips the additional 8 bytes from the mbuf chain and, if it finds the first mbuf to become empty, removes that mbuf from the chain, but does not care to move the header to the next mbuf. Here the packet header is lost. Work around: 1. Allocate all large buffers for the Fore card with a packet header. 2. When prefixing the new mbuf to the chain, don't move the packet header, but initialize it with the correct values. This results in an mbuf chain with two packet headers. When atm_intr strips the first mbuf, everything is ok. It would probably be better to fix the problem instead of working around it, but this could break other drivers (hea and proatm). Notes: svn path=/stable/4/; revision=119297
* Sync with -current:Hidetoshi Shimokawa2003-08-226-22/+56
| | | | | | | | | | - Allow access to phy registers via ioctl(2)(fwdev). - Drop too short packets(if_fwe). - Fill reserved fields of transmitting packet hear with zero(fwohci). - Include order bit in sdev->type(sbp) Notes: svn path=/stable/4/; revision=119292
* MFC rev 1.133: Fix a panic on boot if FAST_IPSEC and crypto supportNate Lawson2003-08-221-4/+3
| | | | | | | | | are enabled. Original fix by iedowse@. PR: kern/49110 Notes: svn path=/stable/4/; revision=119286
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2003-08-221-0/+390
| | | | Notes: svn path=/stable/4/; revision=119282
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2003-08-206-0/+3728
| | | | Notes: svn path=/stable/4/; revision=119189
* MFC fore_aali.h:1.4, fore_command.c:1.15, fore_init.c:1.14,Hartmut Brandt2003-08-205-4/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | fore_intr.c:1.10, fore_var.h:1.8: Make the driver to work with firmware version 4.1.12 (other 4.X.Y should also do it). Three problems have been encountered: 1. The initialisation command does not work in interrupt mode. Whether this is a firmware bug or a feature is not clear. The original Fore drivers execute the initialize command always in polling mode, so it appears that this behaviour is expected. When we detect a 4.X.Y firmware do busy wait on the command status. 2. The command code of the GET_PROM has changed. This is an unofficial command anyway. What was GET_PROM in 3.X.Y is CLEAR_STATS in 4.X.Y (although unimplemented in the firmware). We need to use the correct code depending on the firmware. 3. The 4.X.Y can set the error flag in command status without also setting the completion flag (as the documentation says). Check both variants. An additional field in the per-card structure fu_ft4 is TRUE when we have detected a 4.X.Y firmware. Otherwise it is false. The behaviour of the driver when using 3.X.Y should be identical to the previous behaviour . This change will enable traffic shaping of CBR channels. Notes: svn path=/stable/4/; revision=119174
* Synchronize with HEAD revision 1.42.Orion Hodson2003-08-191-88/+207
| | | | Notes: svn path=/stable/4/; revision=119103
* MFC 1.190: better device description strings.John Polstra2003-08-181-23/+41
| | | | Notes: svn path=/stable/4/; revision=119086
* MFC revision 1.32: ICH4 and ICH5 to operation in non-legacy mode.Orion Hodson2003-08-181-42/+56
| | | | | | | | | MFC revision 1.31: ICH5 support. MFC revision 1.30: Device name string sanitizations. Notes: svn path=/stable/4/; revision=119078
* MFC revision 1.3: Switch from legacy to native mode for ICH4 and ICH5.Orion Hodson2003-08-181-0/+3
| | | | Notes: svn path=/stable/4/; revision=119077
* Sync with -current:Hidetoshi Shimokawa2003-08-189-279/+395
| | | | | | | | | | - Improve DMA channel allocation - Some workarounds to detect memory map failure. - Change device name convention. - Disable T_RBC faking (sbp) Notes: svn path=/stable/4/; revision=119062
* MFC: BGE_HCC_TX_MAX_COAL_BDS_INT is at offset 0x3C24, not 0x3C34Paul Saab2003-08-171-1/+1
| | | | Notes: svn path=/stable/4/; revision=119048
* MFC: revision 1.15Josef Karthauser2003-08-141-1/+11
| | | | | | | | Install a bandaid that allows us to synchronise, but at the expense of speed. Notes: svn path=/stable/4/; revision=118891
* MFC: Support for the 3ware APIPaul Saab2003-08-107-95/+190
| | | | Notes: svn path=/stable/4/; revision=118736
* MFC: properly set mbuf space size for the BCM5704 NICs to fix watchdogBill Paul2003-08-101-3/+12
| | | | | | | | | | timeouts on Dell 1750 servers, and fix spurious 'gigabit link up' messages due to not ignoring the 'MI_COMPLETE' bit in the MAC status register. (I'm MFCing these fairly quickly since they're fixes for pretty serious/annoying bugs.) Notes: svn path=/stable/4/; revision=118734