diff options
author | wpaul <wpaul@FreeBSD.org> | 1999-08-10 17:15:20 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1999-08-10 17:15:20 +0000 |
commit | 77daf56af9591a9c07c989b51b7511c07d8f3e47 (patch) | |
tree | 74c38b6d7a531b029089c457f5bcf3955ea31a5f /sys/pci/if_vrreg.h | |
parent | 6b0342e396ad0a1933d3d62ee656723ffb36fb18 (diff) | |
download | FreeBSD-src-77daf56af9591a9c07c989b51b7511c07d8f3e47.zip FreeBSD-src-77daf56af9591a9c07c989b51b7511c07d8f3e47.tar.gz |
Convert the VIA Rhine driver to newbus and set it up to be compiled as
a module. Also modified the code to work on FreeBSD/alpha and added
device vr0 to the alpha GENERIC config.
While I was in the neighborhood, I noticed that I was still using
#define NFPX 1 in all of the Makefiles that I'd copied from the fxp
module. I don't really use #define Nfoo X so it didn't matter, but
I decided to customize this correctly anyway.
Diffstat (limited to 'sys/pci/if_vrreg.h')
-rw-r--r-- | sys/pci/if_vrreg.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/pci/if_vrreg.h b/sys/pci/if_vrreg.h index 2859086..e1e4ae6 100644 --- a/sys/pci/if_vrreg.h +++ b/sys/pci/if_vrreg.h @@ -29,7 +29,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: if_vrreg.h,v 1.3 1999/02/23 15:38:24 wpaul Exp $ + * $Id: if_vrreg.h,v 1.4 1999/05/06 15:32:50 wpaul Exp $ */ /* @@ -402,6 +402,9 @@ struct vr_softc { struct ifmedia ifmedia; /* media info */ bus_space_handle_t vr_bhandle; /* bus space handle */ bus_space_tag_t vr_btag; /* bus space tag */ + struct resource *vr_res; + struct resource *vr_irq; + void *vr_intrhand; struct vr_type *vr_info; /* Rhine adapter info */ struct vr_type *vr_pinfo; /* phy info */ u_int8_t vr_unit; /* interface number */ @@ -433,6 +436,7 @@ struct vr_softc { bus_space_read_1(sc->vr_btag, sc->vr_bhandle, reg) #define VR_TIMEOUT 1000 +#define ETHER_ALIGN 2 /* * General constants that are fun to know. |