diff options
author | ache <ache@FreeBSD.org> | 1995-08-02 10:17:35 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-08-02 10:17:35 +0000 |
commit | 46c8945e4166bb45c4bad858f32625b082d586e6 (patch) | |
tree | 3cba057e87455d4d4bb5fd28c2dc6f40fe59f8f0 /sys/i386/isa/rcreg.h | |
parent | 3005a2c5a8183ac588dab70a3deadb1d2a6fb068 (diff) | |
download | FreeBSD-src-46c8945e4166bb45c4bad858f32625b082d586e6.zip FreeBSD-src-46c8945e4166bb45c4bad858f32625b082d586e6.tar.gz |
Allow any speed from 0..76800
Reviewed by:
Submitted by:
Obtained from:
Diffstat (limited to 'sys/i386/isa/rcreg.h')
-rw-r--r-- | sys/i386/isa/rcreg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/isa/rcreg.h b/sys/i386/isa/rcreg.h index bd92540..75015f2 100644 --- a/sys/i386/isa/rcreg.h +++ b/sys/i386/isa/rcreg.h @@ -32,8 +32,8 @@ /* Oscillator frequency - 19660.08Mhz / 2 */ #define RC_OSCFREQ 9830400 -#define RC_BRD(s) \ - ((((RC_OSCFREQ + (s) / 2) / (s)) + CD180_CTICKS/2) / CD180_CTICKS) +#define RC_BRD(s) ((s) == 0 ? 0 : \ + (((RC_OSCFREQ + (s) / 2) / (s)) + CD180_CTICKS/2) / CD180_CTICKS) #define RC_VALIDADDR(a) ( (a) == 0x220 || (a) == 0x240 || (a) == 0x250 \ || (a) == 0x260 || (a) == 0x2A0 || (a) == 0x2B0 \ |