summaryrefslogtreecommitdiff
path: root/sys/dev/pci
AgeCommit message (Collapse)Author
2007-01-28Fix a number of issues with vesabios discovered by miod@Gordon Willem Klok
1. Add bounds checking to vga_pci_mmap, fixing a potential security issue. Limit the amount of memory to what the vbe info structure says the card card has. This should be nicely refined to limit to the amount of memory needed by the active resolution and depth but this will do for the time being. 2. Fix several places in vesafb.c where the return of kvm86_bios_addpage() isnt being checked. Also ensure that if vesafb_get_mode_info() fails that it cleans up after itself by releasing the page it added. 3. Correct the range checks in vesafb_putcmap and vesafb_getcmap, harmonize code with similar code found else where. ok miod@
2007-01-27Enable transmit TCP/UDP checksum offload.Kenneth R Westerback
From Brad, tested by Brad, biorn@ and Johan M:son Lindman.
2007-01-27convert to our locks to rwlocks.David Gwynne
2007-01-26Workaround for an issue with em(4) interfaces on Lenovo X60/T60 laptops whereTobias Weingartner
the interface will fail to initialize with an EEPROM error if the interface does not have a link upon boot. Tested by mk@ and janek@ From Jack Vogel@Intel via brad
2007-01-26As per PCI specs, disable an adapter's transaction response whileMarc Aurele La France
sizing its BARs. tested niallo@, tsi@, ian@, mk@, sturm@, kettenis@, krw@, beck@, drahn@ ok beck@, kettenis@, drahn@
2007-01-21Fix typo. From brad@Mark Kettenis
2007-01-21Remove bogus check for old firmware.Ryan Thomas McBride
Identical fixes from myself and brad@, also reported by chefren@pi.net.
2007-01-20move the interrupt establishment till after everything in the softc isDavid Gwynne
set up and allocated (which happens in a mountroothook). this prevents an early call to the interrupt handler from causing a null deref when trying to look into the unallocated regions. found by mcbride when ciss and bnx were sharing an interrupt. mounting root caused interrupts before the bnx was properly set up. "commit your fix" mcbride@
2007-01-19bnx_init() takes a pointer to sc, not ifp.Ryan Thomas McBride
2007-01-19Workarounds for DMA HW errata on pci express chips. Based on FreeBSDKenneth R Westerback
changes but with the more conservative (i.e. specific) chip matching logic of Linux's tg3. No change except to pci express chips. From Brad. Tested by brad & thib@ (BCM5750) and pedro la peu (BCM5752).
2007-01-18Don't reinitialize card at every media change.Kenneth R Westerback
From Brad, tested by Brad, wilfried@ and Johan M:son Lindman. ok wilfried@
2007-01-17Remove some textual sk heritage warts by renaming some functions andKenneth R Westerback
eliminating a one line called once function by inserting its code inline. No functional change. From Brad.
2007-01-15Report flow control status.Mark Kettenis
From brad@
2007-01-13Correctly count outbound packets.Mark Kettenis
From brad@
2007-01-12Keep the wsscreen_descr in the softc, to allow sti of different textMiod Vallat
resolutions to attach without disturbing each other.
2007-01-11Add a platform specific sti_pci_is_console() to decide if a given pci stiMiod Vallat
device is the system console; the interface currently passes the pci attachment args and the sti region information, and will hopefully turn to be flexible enough. This allows sti@pci to be used as a console device on hppa, finally. ok mickey@
2007-01-11Add callbacks to enable and disable the sti rom, so that it is only mappedMiod Vallat
when we need to access it; and change the rom parser to walk all the rom images and pick the first one sporting code for the processor we run on, instead of picking the first. This allows dual-sti@pci setups to work. ok mickey@, dual-head test martin@
2007-01-11Allow sti_attach_common() to return an error code, and do not fall intoMiod Vallat
sti_end_attach() if an error has occured. ok mickey@
2007-01-10Flow control support for bge(4)/brgphy(4). From brad@ based on code fromMark Kettenis
NetBSD.
2007-01-10change firmware byte order to be same on all architecturesTheo de Raadt
THIS MEANS YOU NEED TO UPDATE YOUR FIRMWARE FILE BEFORE BOOTING WITH A NEW KERNEL tested by marco, biorn
2007-01-09regenMark Kettenis
2007-01-09Spell Ebus as EBus like Sun does. Rename USIII EBus to RIO Ebus.Mark Kettenis
2007-01-08No need to re-init on every media change.Mark Kettenis
2007-01-08Add support for HW TCP/IP checksum offload for adapters that support it.Damien Bergamini
Tested by many (IP/UDP/TCP): Jason McIntyre <jmc@> Chris Kuethe <chris.kuethe AT gmail.com> Alf Schlichting <a.schlichting AT lemarit.com> Rodolfo Gouveia <rgouveia AT cosmico.net> Peter Stromberg <wilfried@> Has been in snaps for weeks too with noone complaining so far.
2007-01-08Add support for Leadtek Winfast TV 2000 XP, from Tim LesliePedro Martelletto
Okay robert@
2007-01-06regenPedro Martelletto
2007-01-06Add Leadtek WinFast TV 2000 XP, from Tim LesliePedro Martelletto
2007-01-06make microcode file byte-order independent so that the file is the sameTheo de Raadt
on all architectures, and have the driver cope with this as well tested by ian YOU MUST UPDATE YOUR MICROCODE FILE OR THE DRIVER WILL NOT BE HAPPY
2007-01-05For Yukon-based cards, pass MIIF_DOPAUSE to mii_attach().Mark Kettenis
From brad@
2007-01-05macros for the bits in the ports CMD register. free %b fmt string for itDavid Gwynne
while im here.
2007-01-04use the right variable when finding a ports register window, not one thatDavid Gwynne
contains random garbage on the stack.
2007-01-04stash the dva for each command in the ccb, and program the hardware withDavid Gwynne
the dva of the rfis and command list.
2007-01-04fix up some port regs so their names are more in line with what is in theDavid Gwynne
spec.
2007-01-04allocate the dmamem that each port will need, and hopefully point ourDavid Gwynne
structs at all the right bits of it. the dma addresses arent taken care of yet, just the kva ones.
2007-01-04use ISSET instead of &, cos it looks cleanerDavid Gwynne
2007-01-03In sk_marv_miibus_writereg, wait for busy flag to clear instead ofMark Kettenis
continuing when busy flag set.
2007-01-03M_DUP_PKTHDR() cleanup. On static mbufs M_DUP_PKTHDR() will leak mbuf tags.Claudio Jeker
See similar commit to dev/usb/if_rum.c for more info. With this commit all drivers have been switched away from the incorrect M_DUP_PKTHDR() usage. OK mglocker@
2007-01-03also bail if sc_chipc is NULL; spotted by miodTheo de Raadt
2007-01-03mbg(4) cards with ASIC take the internal timestamp at the very moment theMarc Balmer
first command byte is written to the card over the pci bus. the driver has to capture this moment to get a precise timedelta. so make sure the code fragment that takes the internal timestamp and sends the command byte can not be interrupted. this function is called with a low frequency (currently 0.1 Hz). ok claudio, mglocker
2007-01-03Don't say 'Marvell' twice for each sk/msk device in dmesg. No functionalKenneth R Westerback
change. from brad@ ok mglocker@
2007-01-03Don't wrap line before printing MAC address.Marcus Glocker
2007-01-02do not permit agp_ioctl if the methods are invalid; ok miodTheo de Raadt
2007-01-02Use the value returned by pci_findproduct() as the timedelta sensor descriptionMarc Balmer
instead of using static strings. ok deraadt
2007-01-02Provide a new function, pci_findproduct(), which is analog to pci_findvendor().Marc Balmer
Use these two functions in pci_devinfo() to remove some duplicated code and make it easier to read. Remove two now unused variables. This shrinks the size of the resulting object code. Drivers (or other kernel code) can now get at the PCI vendor and/or product strings using pci_findvendor() and pci_findproduct(). ok claudio, deraadt, mglocker
2007-01-01regen.Marc Balmer
2007-01-01Add a new Intel host bridge chipsetMarc Balmer
from brad@
2006-12-30Use the same PCI product name strings we have in pcidevs_data.h for theMarc Balmer
timedelta sensor desc field and not the full description produced by pci_devinfo() (which gets truncated in this case). There is no need to have the PCi vendor string in the description as this is apparent from the driver name already. problem noticed by deraadt.
2006-12-30Enable jumbo frames (except on the Yukon-2 FE).Mark Kettenis
From brad@
2006-12-30Pass MIIF_FORCEANEG to mii_attack() until we stop doing unnecessary PHYMark Kettenis
hardware resets.
2006-12-30In agp_generic_alloc_memory(), make sure the age_mem structure freshlyMiod Vallat
malloc'ed is completely bzeroed before use. ok deraadt@