summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_lii.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move setting of reception of broadcast packets from lii_init() intosthen2010-09-191-4/+9
| | | | | lii_iff() to be consistent with age/alc and other drivers. No functional change. From Brad, tested by oga@.
* Add DVACT_QUIECE support. This is called before splhigh() and beforederaadt2010-08-311-2/+5
| | | | | | | | DVACT_SUSPEND, therefore DVACT_QUIECE can do standard sleeping operations to get ready. Discussed quite a while back with kettenis and jakemsr, oga suddenly needed it as well and wrote half of it, so it was time to finish it. proofread by miod.
* remove the unused if_init callback in struct ifnetjsg2010-08-271-2/+1
| | | | ok deraadt@ henning@ claudio@
* ca_activate function brings eeepc701 network back after resume.deraadt2010-07-261-2/+27
| | | | tested by oga
* When initialising the chip actually set the hardware MAC address, thusjsing2010-02-081-1/+8
| | | | allowing the MAC address to be changed/set via ifconfig.
* Use nitems.jsing2010-02-031-2/+2
|
* Bring multicast/promisc handling in line with other network drives.jsing2009-11-241-14/+12
| | | | From Brad.
* Remove erroneous spaces.jsing2009-04-121-3/+3
| | | | From brad
* make various strings ("can't map mem space" and similar) more consistentsthen2009-03-291-8/+8
| | | | | | | between instances, saving space in the kernel. feedback from many (some incorporated, some left for future work). ok deraadt, kettenis, "why not" miod.
* Eliminate the redundant bits of code for MTU and multicast handlingbrad2008-11-281-10/+4
| | | | | | | | | | | | | | from the individual drivers now that ether_ioctl() handles this. Shrinks the i386 kernels by.. RAMDISK - 2176 bytes RAMDISKB - 1504 bytes RAMDISKC - 736 bytes Tested by naddy@/okan@/sthen@/brad@/todd@/jmc@ and lots of users. Build tested on almost all archs by todd@/brad@ ok naddy@
* If we fail to read the MAC address from the eeprom, fallback to readingjsing2008-10-071-11/+8
| | | | | | | | the MAC address registers. In most cases these already have the correct MAC address. This should address PR5743. Thanks to Rodolfo Gouveia for testing earlier diffs. ok dlg@
* First step towards cleaning up the Ethernet driver ioctl handling.brad2008-10-021-10/+4
| | | | | | | | | | | | | | | | | | | | Move calling ether_ioctl() from the top of the ioctl function, which at the moment does absolutely nothing, to the default switch case. Thus allowing drivers to define their own ioctl handlers and then falling back on ether_ioctl(). The only functional change this results in at the moment is having all Ethernet drivers returning the proper errno of ENOTTY instead of EINVAL/ENXIO when encountering unknown ioctl's. Shrinks the i386 kernels by.. RAMDISK - 1024 bytes RAMDISKB - 1120 bytes RAMDISKC - 832 bytes Tested by martin@/jsing@/todd@/brad@ Build tested on almost all archs by todd@/brad@ ok jsing@
* Convert timeout_add() calls using multiples of hz to timeout_add_sec()blambert2008-09-101-3/+3
| | | | | | | Really just the low-hanging fruit of (hopefully) forthcoming timeout conversions. ok art@, krw@
* Finish the rest... ATL2 -> LIIbrad2008-09-011-75/+75
| | | | ok jsing@
* Remove clause 3 from NetBSD license.jsing2008-07-171-4/+1
| | | | ok deraadt@
* Teach lii(4) how to clean up after itself.jsing2008-06-301-25/+30
| | | | ok dlg@
* Rename access macros so that they match the driver name.jsing2008-06-101-77/+77
| | | | ok dlg@
* Add multicast support to lii(4), with suggestions/changes from brad@.jsing2008-05-201-22/+53
| | | | ok brad@ dlg@
* - Use pci_matchbyid().brad2008-05-151-19/+12
| | | | | | - Simplify the use of pci_mapreg_map(). ok jsing@
* The driver is called lii, not atl2. Change function and variable names tojsing2008-05-131-116/+116
| | | | | | match. go go go dlg@
* Ensure that we wrap around to the start of the TXD buffer when incrementingjsing2008-04-031-2/+2
| | | | | | the TXD pointer beyond the end. Fixes PR5786.
* Add code to configure the vendor specific opcodes of the SPI Flash.jsing2008-03-301-2/+53
| | | | | | From NetBSD. ok dlg@
* Enable setting of interrupt timers.jsing2008-03-301-3/+1
| | | | ok dlg@
* Pad the RXD buffer so that packets are aligned on a 128-byte boundary. Thisjsing2008-03-301-6/+11
| | | | | | | | | | prevents the chip from hard locking the machine when receiving packets. Diff committed from an ASUS EeePC using lii(4). From NetBSD. ok dlg@
* even better attach message locationderaadt2008-01-051-4/+4
|
* print info in attach before if_attachderaadt2008-01-051-5/+3
|
* read the hardware mac address into the drivers ac_enaddr thing rather thandlg2008-01-041-4/+3
| | | | a useless buffer. should hook the mac address up.
* we have pci_vpd_read now. get rid of the (bad) comment that left it outdlg2008-01-041-3/+2
| | | | pointed out by deraadt@
* use OpenBSD rcs id'sjasper2007-12-311-1/+1
|
* lii(4) is a driver for the atheros l2 ethernet chip as found on the asusdlg2007-12-311-0/+1087
eeepc. unfortunately it doesnt work, but its going into the tree so it can be worked on. if anyone wants to have a go at it, please do. this driver was written by Quentin Garnier for NetBSD