diff --git a/sys/arch/mac68k/dev/serreg.h b/sys/arch/mac68k/dev/serreg.h index 2c9ba58888bb..a8e22a45aea0 100644 --- a/sys/arch/mac68k/dev/serreg.h +++ b/sys/arch/mac68k/dev/serreg.h @@ -30,7 +30,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: serreg.h,v 1.2 1993/11/29 00:33:00 briggs Exp $ + * $Id: serreg.h,v 1.3 1994/06/26 12:56:26 briggs Exp $ * * Mac II serial device interface * @@ -40,8 +40,8 @@ */ /* Gleaned from MacOS */ -extern volatile unsigned char *sccA; - +extern volatile unsigned char *sccA; +extern int sccClkConst; #define SER_W0_RSTESINTS 0x10 /* Reset ext/status interrupts */ #define SER_W0_ENBRXRDY 0x20 /* Enable interrupt on next receive */ @@ -98,7 +98,7 @@ extern volatile unsigned char *sccA; #define SER_R1_CRCERR 0x40 #define SER_R1_ENDOFFRAME 0x80 -#define SERBRD(x) (115200 / (x) - 2) +#define SERBRD(x) (sccClkConst / (x) - 2) #define SCCCNTL(unit) (sccA[2 - ((unit) << 1)]) #define SCCRDWR(unit) (sccA[6 - ((unit) << 1)])