From 77daf56af9591a9c07c989b51b7511c07d8f3e47 Mon Sep 17 00:00:00 2001 From: wpaul Date: Tue, 10 Aug 1999 17:15:20 +0000 Subject: 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. --- sys/pci/if_vrreg.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/pci/if_vrreg.h') 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. -- cgit v1.1