Warner Losh
538565c4a5
Use BUS_PROBE_DEFAULT for pci probe return value
2005-03-05 18:30:12 +00:00
Warner Losh
098ca2bda9
Start each of the license/copyright comments with /*-, minor shuffle of lines
2005-01-06 01:43:34 +00:00
Poul-Henning Kamp
186f2b9e04
Add missing <sys/module.h> includes currently relying on nested include
...
in <sys/kernel.h>
2004-06-03 06:10:02 +00:00
Nate Lawson
5f96beb9e0
Convert callers to the new bus_alloc_resource_any(9) API.
...
Submitted by: Mark Santcroos <marks@ripe.net>
Reviewed by: imp, dfr, bde
2004-03-17 17:50:55 +00:00
Peter Grehan
aa1985722c
Add new Apple GEM PCI id.
2004-02-02 01:11:39 +00:00
David E. O'Brien
4609c9a528
Properly initialize all members of the sentinel entry.
2003-12-26 05:36:08 +00:00
Marcel Moolenaar
11a91bffe5
Preparatory commit to allow prototypes in ofw_machdep.h to contain
...
both newbus types and OFW types. This involves either including
<machine/bus.h> or <dev/ofw/openfirm.h>.
Reviewed by: jake, jmg, tmm
2003-09-02 20:24:42 +00:00
David E. O'Brien
aad970f1fe
Use __FBSDID().
...
Also some minor style cleanups.
2003-08-24 17:55:58 +00:00
Thomas Moestl
5905e65b56
Some gem and hme hardware bogusly has the intpin register hardwired to
...
0; detect this case and correct it. While being there, clean up nearby
comments.
2003-07-01 14:11:04 +00:00
Matthew N. Dodd
533294b956
- Don't call pci_enable_io() in drivers (unless needed for resume).
...
- Don't test memory/port status and emit an error message; the PCI
bus code will do this now.
2003-04-16 03:16:57 +00:00
Matthew N. Dodd
f246e4a17f
- Express hard dependencies on bus (pci, isa, pccard) and
...
network layer (ether).
- Don't abuse module names to facilitate ifconfig module loading;
such abuse isn't really needed. (And if we do need type information
associated with a module then we should make it explicit and not
use hacks.)
2003-04-15 06:37:30 +00:00
Thomas Moestl
3437dbef6d
Free resources when failing to set up the interrupt.
2003-01-21 17:28:36 +00:00
Thomas Moestl
cbbdf2367e
Add detach, shutdown, suspend and resume methods. The latter two are
...
not really tested, but are derived from the original NetBSD version.
2003-01-08 20:12:45 +00:00
Benno Rice
336cca9e5f
Incorporate changes made to the NetBSD version of this driver.
...
- Remove some obsolete code (NetBSD gem.c r1.12)
- Clean up how the local MAC address is programmed (NetBSD gem.c r1.13)
- Make the driver work on PowerMacs with gigabit interfaces
(NetBSD gem.c r1.14 and r1.15, gemreg.h r1.3 and r1.4, gemvar.h r1.6 and 1.7)
- Suppress RX_MAC interrutps regarding the FRAME_COUNT register.
(NetBSD gem.c r1.16 and r1.17)
- Fix receiver lockups. (NetBSD gem.c r1.18, gemvar.h r1.8)
- Distinguish between Apple and Sun variants (NetBSD if_gem_pci.c r1.9)
Reviewed by: tmm
Obtained from: NetBSD
2002-07-10 10:24:23 +00:00
Alfred Perlstein
e51a25f850
Remove __P.
2002-03-20 02:08:01 +00:00
Thomas Moestl
49921f1e25
Use the pci_enable_* functions instead of manually fiddling with the
...
command register.
Pointed out by: msmith
2002-03-11 02:37:19 +00:00
Thomas Moestl
e64a9d374a
Set the busmaster enable bit in the PCI command register, as the firmware
...
of sparc64 machines will not do this for us if the interface is not used
for booting over the network.
2002-03-09 21:52:31 +00:00
Thomas Moestl
42c1b001f7
Add a driver for the Sun GEM (Gigabit) and ERI (100 Mb/s) PCI ethernet
...
adaptors, ported from NetBSD.
2002-02-27 17:41:06 +00:00