Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rework gem_start to check that there's enough space in the ring before | 2015-11-28 | 1 | -6/+5 | |
| | | | | | | | | | | | | | | | | | dequeueing a packet, then drop the packet if it can't be sent, rather than using two phase dequeue then commit. Adjust sc_tx_cnt using atomic operations, take the kernel lock before calling gem_start or gem_init from the interrupt handler, and use an interrupt barrier when taking the interface down. With all this done, we can mark the interrupt handler for pci (but not sbus) attached gem(4) as mpsafe. mpi@ wrote this initially, I fixed bugs to keep sparc64 happy and kept it up to date with ifq changes. ok mpi@ dlg@ | ||||
* | You only need <net/if_dl.h> if you're using LLADDR() or a sockaddr_dl. | 2015-11-24 | 1 | -2/+1 | |
| | |||||
* | Remove some includes include-what-you-use claims don't | 2015-03-14 | 1 | -2/+1 | |
| | | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@ | ||||
* | unifdef INET | 2014-12-22 | 1 | -3/+1 | |
| | |||||
* | Use <sys/endian.h> instead of <machine/endian.h> | 2014-12-19 | 1 | -3/+2 | |
| | | | | ok dlg@ mpi@ bcook@ millert@ miod@ | ||||
* | Remove uneeded <net/bpf.h> include which was never used as it | 2012-10-16 | 1 | -5/+1 | |
| | | | | was protected by #if NBPFILTER > 0 and "bpfilter.h" wasn't included. | ||||
* | Simplify the gem(4) variant detection code a bit. | 2012-09-30 | 1 | -14/+11 | |
| | | | | ok haesbaert@ | ||||
* | use nitems(); no binary change for drivers that are compiled on amd64. | 2011-04-03 | 1 | -2/+2 | |
| | | | | ok claudio@ | ||||
* | Add detach support to a few more drivers, and in others do the neccessary | 2009-10-15 | 1 | -7/+28 | |
| | | | | | | 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 | ||||
* | Use pci_mapreg_map() to map ROM. | 2009-07-23 | 1 | -12/+7 | |
| | |||||
* | make various strings ("can't map mem space" and similar) more consistent | 2009-03-29 | 1 | -2/+2 | |
| | | | | | | | between instances, saving space in the kernel. feedback from many (some incorporated, some left for future work). ok deraadt, kettenis, "why not" miod. | ||||
* | Cleanup phy selection code, simplifying the code considerably. Attach only | 2007-04-19 | 1 | -8/+8 | |
| | | | | | | one phy on Sun ERI; gets rid of the duplicate phy on the blade1k. tested by many, ok drahn@ | ||||
* | betetr yet, just nuke sc_enaddr all together, just fill in arpcom and | 2006-12-21 | 1 | -5/+5 | |
| | | | | everybody is happy | ||||
* | ANSI | 2006-11-25 | 1 | -8/+3 | |
| | |||||
* | Split the GEM registers into two halfs and provide a bus_space_handle_t | 2006-11-25 | 1 | -3/+10 | |
| | | | | | | for each. While there, fix a typo in gem_bitwait(). From martin@NetBSD | ||||
* | Fix last commit. | 2006-10-15 | 1 | -2/+3 | |
| | |||||
* | Get MAC address from VPD, just like we already do for hme(4). | 2006-10-15 | 1 | -7/+104 | |
| | | | | ok brad@ | ||||
* | recognize the Intrepid 2 GMAC | 2006-04-10 | 1 | -1/+4 | |
| | |||||
* | - unmap resources allocated by pci_mapreg_map() on failure to attach | 2005-11-02 | 1 | -13/+15 | |
| | | | | | - fixup PCI interrupt string printing and surrounding code to be more consistent with other drivers | ||||
* | Start using the unused sc_variant to identify the GMAC vendor and chipset | 2005-10-17 | 1 | -1/+16 | |
| | | | | | | | model to the MI part of the driver. On Apple systems only attach the PHY to location 0, unless using a K2 GMAC, then use location 1. Tested by drahn@ and kettenis@ | ||||
* | update names. | 2005-10-01 | 1 | -5/+5 | |
| | |||||
* | Add support for K2 GMAC. | 2005-09-30 | 1 | -1/+2 | |
| | |||||
* | Add support for Shasta GMAC. | 2005-09-29 | 1 | -1/+2 | |
| | | | | ok drahn@ | ||||
* | remove whitespace | 2005-08-01 | 1 | -7/+7 | |
| | |||||
* | sparc -> sparc64 | 2005-04-22 | 1 | -3/+3 | |
| | |||||
* | take 2 times less room in dmesg, prettier too | 2004-06-20 | 1 | -14/+9 | |
| | | | | | allocate interrupts early on (before PHY attachment, etc) just like all other drivers do to allow the above; ok mcbride | ||||
* | no vtophys(), don't need uvm_extern.h anymore. | 2003-12-29 | 1 | -3/+1 | |
| | | | | | | tested on alpha, i386, macppc and sparc64. ok millert@ mickey@ | ||||
* | Grrr, missed this in the pci id match | 2002-11-20 | 1 | -1/+2 | |
| | |||||
* | Add a simplistic table driven lookup routine and use it where appropriate. | 2002-11-19 | 1 | -15/+10 | |
| | |||||
* | Recognize additional gem pci id, from NetBSD. | 2002-07-26 | 1 | -2/+3 | |
| | |||||
* | Try 'local-mac-address' before myetheraddr(). This allows us to correctly | 2002-03-15 | 1 | -10/+8 | |
| | | | | | get the mac address on the second ethernet of a Netra T1 AC200; tested by Joey Coleman <joeycoleman@acm.org> | ||||
* | First round of __P removal in sys | 2002-03-14 | 1 | -4/+4 | |
| | |||||
* | Revert to previous (non hacked =) version now that the iommu is handled | 2002-02-22 | 1 | -5/+14 | |
| | | | | correctly and it doesn't crash | ||||
* | Re-port the NetBSD driver, but rewrite tx logic to use static buffers (and | 2002-01-28 | 1 | -14/+5 | |
| | | | | copies). This makes the Blade100 gem stable for me. | ||||
* | $OpenBSD$ | 2001-12-14 | 1 | -0/+1 | |
| | |||||
* | changes to work with 32bit platforms and get ethernet address on powerpc. | 2001-12-13 | 1 | -0/+3 | |
| | | | | Inspired by NetBSD. | ||||
* | Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary. | 2001-11-06 | 1 | -1/+0 | |
| | | | | (Look ma, I might have broken the tree) | ||||
* | Pretty the printout (don't know if it's right, but it does the job). | 2001-09-29 | 1 | -0/+1 | |
| | |||||
* | Driver for Sun GEM ethernet. Not ready yet. | 2001-09-21 | 1 | -0/+193 | |
From NetBSD |