Declare sc_regbase as volatile, so that if_sn.c works with gcc3.

XXX We should switch to MI SONIC driver.
This commit is contained in:
tsutsui 2003-12-02 13:19:06 +00:00
parent b2bf8b0f04
commit ab60f77a08

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_snvar.h,v 1.3 2000/12/03 01:42:29 matt Exp $ */
/* $NetBSD: if_snvar.h,v 1.4 2003/12/02 13:19:06 tsutsui Exp $ */
/*
* Copyright (c) 1991 Algorithmics Ltd (http://www.algor.co.uk)
@ -91,7 +91,7 @@ struct sn_softc {
#define sc_if sc_ethercom.ec_if /* network visible interface */
caddr_t sc_hwbase; /* hardware base address */
u_int16_t *sc_regbase; /* register base address */
volatile u_int16_t *sc_regbase; /* register base address */
int bitmode; /* 32 bit mode == 1, 16 == 0 */