summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_dc_pci.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Partially revert previous mallocarray conversions that containdhill2017-04-111-2/+2
| | | | | | | | | constants. The consensus is that if both operands are constant, we don't need mallocarray. Reminded by tedu@ ok deraadt@
* Convert some malloc(9) to mallocarray(9)dhill2017-04-091-3/+3
| | | | ok deraadt@
* You only need <net/if_dl.h> if you're using LLADDR() or a sockaddr_dl.mpi2015-11-241-2/+1
|
* The only network driver needing <net/if_types.h> is upl(4) for IFT_OTHER.mpi2015-11-241-2/+1
|
* Remove some includes include-what-you-use claims don'tjsg2015-03-141-2/+1
| | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
* unifdef INETtedu2014-12-221-3/+1
|
* Fewer <netinet/in_systm.h>mpi2014-07-221-3/+1
|
* Most network drivers include netinet/in_var.h, but apparently theybluhm2013-08-071-2/+1
| | | | | don't have to. Just remove these include lines. Compiled on amd64 i386 sparc64; OK henning@ mikeb@
* Convert a number of old private copies of code which predatesderaadt2012-10-181-46/+2
| | | | | | | | pci_set_powerstate() to using it instead. Many of these chunks of code had bugs in them, especially missing delay() calls. Some of them were doing things our PCI subsystem is now responsible for handling. If you have any of the affected devices, please keep an eye out for regressions. ok kettenis
* Move the dc_pci_activate function to dc.c, and mangle it up with some ofderaadt2010-08-271-25/+2
| | | | | the gunk in dc_powerhook. Then make dc_powerhook just call it ok kettenis
* ca_activate function for suspend/resume; tested by mlarkin on aderaadt2010-08-051-2/+26
| | | | | Davicom DM9102. (bit of noise on suspend or resume, but that can be dealt with later)
* Add detach support to a few more drivers, and in others do the neccessaryderaadt2009-10-151-8/+3
| | | | | | operations in the detach function in the right order. Also ensure that the interrupt handlers not trust registers that go away. read over very carefully by dms, tested by me
* Using information gleamed from the FreeBSD driver, change the MAC addressderaadt2009-06-261-4/+20
| | | | | | reading to use the eeprom instead of CIS, and then the Xircom Cardbus cards can work in the expresscard adaptor, as pci devices. ok jsg
* make dc at pci detachable; untested.jsg2009-06-021-8/+36
|
* Add more CardBus ids to PCI attachments to cope withjsg2009-06-021-1/+10
| | | | | things like the crazy ExpressCard->CardBus adapters which make CardBus devices show as PCI devices.
* ANSI function declarations.brad2008-09-111-10/+6
|
* Remove the redundant local variable 'revision' from the PCI attach function.brad2008-09-111-11/+9
| | | | The softc field dc_revision contains the PCI revision. No functional change.
* print the comma before the MAC address string in dc_attach() instead of thebrad2007-11-261-2/+2
| | | | | | | PCI front end attach function. This corrects the dmesg output for CardBus adapters and ensures proper dmesg output if an error occurs in dc_attach(). ok dlg@
* Stop making de win over dc on alpha, and include both dc and de on allmiod2007-08-011-10/+1
| | | | | | | | | installation media now - it fits. THIS MEANS YOU NEED TO RENAME /etc/hostname.de0 TO /etc/hostname.dc0 BEFORE BOOTING A NEW KERNEL. ok deraadt@
* ``it's'' -> ``its'' when the grammar gods require this change.miod2007-04-101-2/+2
|
* Add missing break in attach code.jsg2007-02-131-1/+2
| | | | ok tom@ claudio@ henning@
* update for the new ADMtek PCI ids.brad2006-07-201-4/+6
|
* attach to the ADMtek 983B chipset as well.brad2006-07-181-1/+3
|
* add sys/timeout.hbrad2006-06-171-1/+2
|
* - remove spl from attachbrad2005-11-061-13/+18
| | | | - de-allocate resources on failure to attach
* do not set PCI_COMMAND_MASTER_ENABLE explicitly as it's already set in pcisubmatch(); kettenis@ testing; brad@ okmickey2005-08-091-10/+4
|
* simplify man! no need to outline pci_mapreg_map() anymore just use itmickey2005-03-261-25/+8
|
* - recognize Microsoft PCI and CardBus adaptersbrad2005-01-161-12/+8
| | | | | | | | | - recognize Hawking CardBus adapter - simplify 3Com switch case and fold in with ADMtek case - use 64-bit multicast hash for all instances of ADMtek 983 chipset Hawking CardBus adapter reported by Alec Berryman <alec at thened dot net> Microsoft adapters from FreeBSD dc(4) driver
* get EEPROM width on all cards except for the original PNICbrad2005-01-161-12/+8
| | | | | | or XIRCOM cards. Based on the FreeBSD dc(4) driver.
* rev 1.63brad2005-01-141-1/+2
| | | | | | | | Avoid an unnecessary copy of a packet if it is already in a single mbuf. Introduce an additional device flag for those NICs which require the transmit buffers to be aligned to 32-bit boundaries. From FreeBSD
* rev 1.125brad2005-01-081-3/+5
| | | | | | | | | | | | | | | Don't read the MAC address from a copy of the EEPROM in the softc that has been recorded earlier and overwrite it again later by reading it directly from the EEPROM again. Read the MAC address from the PAR0/PAR1 registers instead, which are autoloaded on reboot. From FreeBSD Thanks to David Snyder <dasnyderx at yahoo dot com> for testing on a AN983 based card which used to come up with a MAC address of ff:ff:ff:ff:ff:ff.
* Use ETHER_MIN_LEN/ETHER_MAX_DIX_LENbrad2004-09-281-2/+2
|
* kill hppa quirk that is not neededmickey2004-08-041-6/+2
|
* do not force into io space on hppa as it's much slowermickey2004-06-281-1/+3
|
* a 3com tulip, wow; christoph.scheurer@ch.tum.dederaadt2003-10-211-1/+13
|
* use PCI_PMCSR instead of some magic value.fgsch2003-10-071-3/+3
| | | | ok krw@ henning@
* fix the dc_cacheline to 16 on hppamickey2003-09-291-2/+6
|
* AN983 needs 64BIT_HASH too, fixes multicasthenning2003-08-161-1/+2
| | | | From: jared r r spiegel <jrrs@gateway.nodeless.net>
* it's better w/ a comma between irq and addressmickey2003-06-261-2/+2
|
* fix up the media handling for the intel based MACs. Also hack around ajason2003-05-171-1/+5
| | | | | bug in the Momenco firmware on the Leopard-V, which now has one port working.
* - remove last vestige of "old autoconf": dc_unit is dead, long live dv_xnamejason2003-04-291-7/+4
| | | | | - remove a bunch of #if 0 stuff (most of which referred to dc_unit, grr) - delay a bzero until necessary
* Davicom DM9009 supporthenning2003-04-191-2/+4
| | | | tested by Lucas Reddinger <lucas at wlwdesigns.com>
* add support for intel 21145henning2002-10-201-1/+11
| | | | | | | | | | | | | This chip is some strange abnormal 21143 variant. It really only works with 10 MBit/s halfduplex only and autonegotiation is totally broken in hardware. Should also have a HomePNA phy, but we don't support that. for now requires and explicit "media 10BaseT". if anybody has such a chip please mail me. nick@ is the only one who has the hardware and did an incredible amount of testing. Thanks for all the help, Nick! some hints and ok jason@
* unbreak sparc64 kernel builds after the arpcom change.art2002-06-091-3/+3
|
* add support for Conexant LANfinity RS7112; based on patch from Maurice Nonnekes <maurice@amaze.nl> based on FreeBSD (only minor surgery necessary)jason2002-04-181-1/+13
|
* move prototypes of dc_eeprom_width, dc_read_srom, and dc_parse_21143_srom to dcreg.h and out of the bus specific driversjason2002-04-161-5/+1
|
* Don't have dc and de return the same match value in any case.nate2002-04-011-2/+15
| | | | | | | | Comment the reasoning for the various return values in dc_pci_match. dc is preferred over de on all archs except for alpha where de is used. The main reason dc is not preferred on alpha is that it doesn't fit on the floppy, so RAMDISK and GENERIC would have different drivers for the same device which is rather confusing.
* On sparc64, try local-mac-address before falling back to myetheraddr()jason2002-03-221-2/+9
|
* First round of __P removal in sysmillert2002-03-141-8/+8
|
* remove unused #includenate2002-03-061-3/+1
|