hz -> Hz
This commit is contained in:
parent
23b48be61f
commit
0ff49f9f99
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ad1848.c,v 1.16 2003/01/06 13:10:28 wiz Exp $ */
|
||||
/* $NetBSD: ad1848.c,v 1.17 2003/02/21 17:14:06 tsutsui Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
@ -102,7 +102,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ad1848.c,v 1.16 2003/01/06 13:10:28 wiz Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ad1848.c,v 1.17 2003/02/21 17:14:06 tsutsui Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -1238,7 +1238,7 @@ ad1848_set_speed(sc, argp)
|
||||
{
|
||||
/*
|
||||
* The sampling speed is encoded in the least significant nible of I8.
|
||||
* The LSB selects the clock source (0=24.576 MHz, 1=16.9344 Mhz) and
|
||||
* The LSB selects the clock source (0=24.576 MHz, 1=16.9344 MHz) and
|
||||
* other three bits select the divisor (indirectly):
|
||||
*
|
||||
* The available speeds are in the following table. Keep the speeds in
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: adwlib.c,v 1.24 2001/11/15 09:48:04 lukem Exp $ */
|
||||
/* $NetBSD: adwlib.c,v 1.25 2003/02/21 17:14:06 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Low level routines for the Advanced Systems Inc. SCSI controllers chips
|
||||
@ -52,7 +52,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: adwlib.c,v 1.24 2001/11/15 09:48:04 lukem Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: adwlib.c,v 1.25 2003/02/21 17:14:06 tsutsui Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -1469,7 +1469,7 @@ AdwASC38C1600Cabling(iot, ioh, cfg)
|
||||
* Each ASC-38C1600 function has two connectors. Only an HVD device
|
||||
* can not be connected to either connector. An LVD device or SE device
|
||||
* may be connected to either connecor. If an SE device is connected,
|
||||
* then at most Ultra speed (20 Mhz) can be used on both connectors.
|
||||
* then at most Ultra speed (20 MHz) can be used on both connectors.
|
||||
*
|
||||
* If an HVD device is attached, return an error.
|
||||
*/
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: adwmcode.h,v 1.7 2001/08/29 17:25:04 briggs Exp $ */
|
||||
/* $NetBSD: adwmcode.h,v 1.8 2003/02/21 17:14:06 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Generic driver definitions and exported functions for the Advanced
|
||||
@ -126,11 +126,11 @@ struct adw_mcode {
|
||||
* 4-bit speed SDTR speed name
|
||||
* =========== ===============
|
||||
* 0000b (0x0) SDTR disabled
|
||||
* 0001b (0x1) 5 Mhz
|
||||
* 0010b (0x2) 10 Mhz
|
||||
* 0011b (0x3) 20 Mhz (Ultra)
|
||||
* 0100b (0x4) 40 Mhz (LVD/Ultra2)
|
||||
* 0101b (0x5) 80 Mhz (LVD2/Ultra3)
|
||||
* 0001b (0x1) 5 MHz
|
||||
* 0010b (0x2) 10 MHz
|
||||
* 0011b (0x3) 20 MHz (Ultra)
|
||||
* 0100b (0x4) 40 MHz (LVD/Ultra2)
|
||||
* 0101b (0x5) 80 MHz (LVD2/Ultra3)
|
||||
* 0110b (0x6) Undefined
|
||||
* ...
|
||||
* 1111b (0xF) Undefined
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: aic6360.c,v 1.78 2002/04/05 18:27:50 bouyer Exp $ */
|
||||
/* $NetBSD: aic6360.c,v 1.79 2003/02/21 17:14:06 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995, 1996 Charles M. Hannum. All rights reserved.
|
||||
@ -58,7 +58,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: aic6360.c,v 1.78 2002/04/05 18:27:50 bouyer Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: aic6360.c,v 1.79 2003/02/21 17:14:06 tsutsui Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#ifdef DDB
|
||||
@ -257,7 +257,7 @@ aicattach(struct aic_softc *sc)
|
||||
* the chip's clock input and the size and offset of the sync period
|
||||
* register.
|
||||
*
|
||||
* For a 20Mhz clock, this gives us 25, or 100nS, or 10MB/s, as a
|
||||
* For a 20MHz clock, this gives us 25, or 100nS, or 10MB/s, as a
|
||||
* maximum transfer rate, and 112.5, or 450nS, or 2.22MB/s, as a
|
||||
* minimum transfer rate.
|
||||
*/
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bt8xx.h,v 1.4 2000/12/30 16:55:24 wiz Exp $ */
|
||||
/* $NetBSD: bt8xx.h,v 1.5 2003/02/21 17:14:04 tsutsui Exp $ */
|
||||
|
||||
/* This file is merged from ioctl_meteor.h and ioctl_bt848.h from FreeBSD. */
|
||||
/* The copyright below only applies to the ioctl_meteor.h part of this file. */
|
||||
@ -120,7 +120,7 @@ struct meteor_video {
|
||||
#define METEOR_STATUS_SVP 0x0100 /* State of VRAM Port:inactive/active */
|
||||
#define METEOR_STATUS_STTC 0x0080 /* Time Constant: TV/VCR */
|
||||
#define METEOR_STATUS_HCLK 0x0040 /* Horiz PLL: locked/unlocked */
|
||||
#define METEOR_STATUS_FIDT 0x0020 /* Field detect: 50/60hz */
|
||||
#define METEOR_STATUS_FIDT 0x0020 /* Field detect: 50/60Hz */
|
||||
#define METEOR_STATUS_ALTD 0x0002 /* Line alt: no line alt/line alt */
|
||||
#define METEOR_STATUS_CODE 0x0001 /* Colour info: no colour/colour */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: hd64570.c,v 1.21 2002/03/05 04:12:57 itojun Exp $ */
|
||||
/* $NetBSD: hd64570.c,v 1.22 2003/02/21 17:14:05 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999 Christian E. Hopps
|
||||
@ -65,7 +65,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: hd64570.c,v 1.21 2002/03/05 04:12:57 itojun Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: hd64570.c,v 1.22 2003/02/21 17:14:05 tsutsui Exp $");
|
||||
|
||||
#include "bpfilter.h"
|
||||
#include "opt_inet.h"
|
||||
@ -508,7 +508,7 @@ sca_msci_get_baud_rate_values(u_int32_t hz, u_int8_t *tmcp)
|
||||
* tmc = chip / hz, but have tmc <= 256
|
||||
*/
|
||||
|
||||
/* assume system clock is 9.8304Mhz or 9830400hz */
|
||||
/* assume system clock is 9.8304MHz or 9830400Hz */
|
||||
clock = clock = 9830400 >> 1;
|
||||
|
||||
/* round down */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: i8253reg.h,v 1.5 1998/01/19 11:38:00 drochner Exp $ */
|
||||
/* $NetBSD: i8253reg.h,v 1.6 2003/02/21 17:14:07 tsutsui Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993 The Regents of the University of California.
|
||||
@ -69,7 +69,7 @@
|
||||
|
||||
/*
|
||||
* Frequency of all three count-down timers; (TIMER_FREQ/freq) is the
|
||||
* appropriate count to generate a frequency of freq hz.
|
||||
* appropriate count to generate a frequency of freq Hz.
|
||||
*/
|
||||
#ifndef TIMER_FREQ
|
||||
#define TIMER_FREQ 1193182
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mb89352.c,v 1.13 2002/05/30 21:10:36 thorpej Exp $ */
|
||||
/* $NetBSD: mb89352.c,v 1.14 2003/02/21 17:14:07 tsutsui Exp $ */
|
||||
/* NecBSD: mb89352.c,v 1.4 1998/03/14 07:31:20 kmatsuda Exp */
|
||||
|
||||
/*-
|
||||
@ -70,7 +70,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: mb89352.c,v 1.13 2002/05/30 21:10:36 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: mb89352.c,v 1.14 2003/02/21 17:14:07 tsutsui Exp $");
|
||||
|
||||
#ifdef DDB
|
||||
#define integrate
|
||||
@ -254,7 +254,7 @@ spcattach(sc)
|
||||
* the chip's clock input and the size and offset of the sync period
|
||||
* register.
|
||||
*
|
||||
* For a 20Mhz clock, this gives us 25, or 100nS, or 10MB/s, as a
|
||||
* For a 20MHz clock, this gives us 25, or 100nS, or 10MB/s, as a
|
||||
* maximum transfer rate, and 112.5, or 450nS, or 2.22MB/s, as a
|
||||
* minimum transfer rate.
|
||||
*/
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ncr53c9xreg.h,v 1.10 2001/11/21 19:14:29 wiz Exp $ */
|
||||
/* $NetBSD: ncr53c9xreg.h,v 1.11 2003/02/21 17:14:05 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Peter Galbavy. All rights reserved.
|
||||
@ -121,14 +121,14 @@
|
||||
#define NCRCFG1_BUSID 0x07 /* Bus ID */
|
||||
|
||||
#define NCR_CCF 0x09 /* WO - Clock Conversion Factor */
|
||||
/* 0 = 35.01 - 40Mhz */
|
||||
/* 0 = 35.01 - 40MHz */
|
||||
/* NEVER SET TO 1 */
|
||||
/* 2 = 10Mhz */
|
||||
/* 3 = 10.01 - 15Mhz */
|
||||
/* 4 = 15.01 - 20Mhz */
|
||||
/* 5 = 20.01 - 25Mhz */
|
||||
/* 6 = 25.01 - 30Mhz */
|
||||
/* 7 = 30.01 - 35Mhz */
|
||||
/* 2 = 10MHz */
|
||||
/* 3 = 10.01 - 15MHz */
|
||||
/* 4 = 15.01 - 20MHz */
|
||||
/* 5 = 20.01 - 25MHz */
|
||||
/* 6 = 25.01 - 30MHz */
|
||||
/* 7 = 30.01 - 35MHz */
|
||||
|
||||
#define NCR_TEST 0x0a /* WO - Test (Chip Test Only) */
|
||||
|
||||
@ -151,7 +151,7 @@
|
||||
#define NCRCFG3_QTE 0x08 /* Queue Tag Enable */
|
||||
#define NCRCFG3_CDB 0x04 /* CDB 10-bytes OK */
|
||||
#define NCRCFG3_FSCSI 0x02 /* Fast SCSI */
|
||||
#define NCRCFG3_FCLK 0x01 /* Fast Clock (>25Mhz) */
|
||||
#define NCRCFG3_FCLK 0x01 /* Fast Clock (>25MHz) */
|
||||
|
||||
/*
|
||||
* For some unknown reason, the ESP406/FAS408 looks like every
|
||||
@ -167,7 +167,7 @@
|
||||
#define NCRESPCFG3_CDB 0x20 /* CDB 10-bytes OK */
|
||||
#define NCRESPCFG3_FSCSI 0x10 /* Fast SCSI */
|
||||
#define NCRESPCFG3_SRESB 0x08 /* Save Residual Byte */
|
||||
#define NCRESPCFG3_FCLK 0x04 /* Fast Clock (>25Mhz) */
|
||||
#define NCRESPCFG3_FCLK 0x04 /* Fast Clock (>25MHz) */
|
||||
#define NCRESPCFG3_ADMA 0x02 /* Alternate DMA Mode */
|
||||
#define NCRESPCFG3_T8M 0x01 /* Threshold 8 Mode */
|
||||
|
||||
@ -177,7 +177,7 @@
|
||||
#define NCRF9XCFG3_QTE 0x40 /* Queue Tag Enable */
|
||||
#define NCRF9XCFG3_CDB 0x20 /* CDB 10-bytes OK */
|
||||
#define NCRF9XCFG3_FSCSI 0x10 /* Fast SCSI */
|
||||
#define NCRF9XCFG3_FCLK 0x08 /* Fast Clock (>25Mhz) */
|
||||
#define NCRF9XCFG3_FCLK 0x08 /* Fast Clock (>25MHz) */
|
||||
#define NCRF9XCFG3_SRESB 0x04 /* Save Residual Byte */
|
||||
#define NCRF9XCFG3_ADMA 0x02 /* Alternate DMA Mode */
|
||||
#define NCRF9XCFG3_T8M 0x01 /* Threshold 8 Mode */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rtl81x9.c,v 1.44 2003/01/15 21:55:03 bouyer Exp $ */
|
||||
/* $NetBSD: rtl81x9.c,v 1.45 2003/02/21 17:14:07 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997, 1998
|
||||
@ -70,7 +70,7 @@
|
||||
* levels.
|
||||
*
|
||||
* It's impossible given this rotten design to really achieve decent
|
||||
* performance at 100Mbps, unless you happen to have a 400Mhz PII or
|
||||
* performance at 100Mbps, unless you happen to have a 400MHz PII or
|
||||
* some equally overmuscled CPU to drive it.
|
||||
*
|
||||
* On the bright side, the 8139 does have a built-in PHY, although
|
||||
@ -86,7 +86,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: rtl81x9.c,v 1.44 2003/01/15 21:55:03 bouyer Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: rtl81x9.c,v 1.45 2003/02/21 17:14:07 tsutsui Exp $");
|
||||
|
||||
#include "bpfilter.h"
|
||||
#include "rnd.h"
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: siopreg.h,v 1.13 2002/08/29 16:43:23 bouyer Exp $ */
|
||||
/* $NetBSD: siopreg.h,v 1.14 2003/02/21 17:14:05 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Manuel Bouyer.
|
||||
@ -81,27 +81,27 @@ struct scf_period {
|
||||
};
|
||||
|
||||
static const struct scf_period scf_period[] __attribute__((__unused__)) = {
|
||||
{250, 25, 1}, /* 10.0 Mhz */
|
||||
{250, 37, 2}, /* 6.67 Mhz */
|
||||
{250, 50, 3}, /* 5.00 Mhz */
|
||||
{250, 75, 4}, /* 3.33 Mhz */
|
||||
{125, 12, 1}, /* 20.0 Mhz */
|
||||
{125, 18, 2}, /* 13.3 Mhz */
|
||||
{125, 25, 3}, /* 10.0 Mhz */
|
||||
{125, 37, 4}, /* 6.67 Mhz */
|
||||
{125, 50, 5}, /* 5.0 Mhz */
|
||||
{ 62, 10, 1}, /* 40.0 Mhz */
|
||||
{ 62, 12, 3}, /* 20.0 Mhz */
|
||||
{ 62, 18, 4}, /* 13.3 Mhz */
|
||||
{ 62, 25, 5}, /* 10.0 Mhz */
|
||||
{250, 25, 1}, /* 10.0 MHz */
|
||||
{250, 37, 2}, /* 6.67 MHz */
|
||||
{250, 50, 3}, /* 5.00 MHz */
|
||||
{250, 75, 4}, /* 3.33 MHz */
|
||||
{125, 12, 1}, /* 20.0 MHz */
|
||||
{125, 18, 2}, /* 13.3 MHz */
|
||||
{125, 25, 3}, /* 10.0 MHz */
|
||||
{125, 37, 4}, /* 6.67 MHz */
|
||||
{125, 50, 5}, /* 5.0 MHz */
|
||||
{ 62, 10, 1}, /* 40.0 MHz */
|
||||
{ 62, 12, 3}, /* 20.0 MHz */
|
||||
{ 62, 18, 4}, /* 13.3 MHz */
|
||||
{ 62, 25, 5}, /* 10.0 MHz */
|
||||
};
|
||||
|
||||
static const struct scf_period dt_scf_period[] __attribute__((__unused__)) = {
|
||||
{ 62, 9, 1}, /* 80.0 Mhz */
|
||||
{ 62, 10, 3}, /* 40.0 Mhz */
|
||||
{ 62, 12, 5}, /* 20.0 Mhz */
|
||||
{ 62, 18, 6}, /* 13.3 Mhz */
|
||||
{ 62, 25, 7}, /* 10.0 Mhz */
|
||||
{ 62, 9, 1}, /* 80.0 MHz */
|
||||
{ 62, 10, 3}, /* 40.0 MHz */
|
||||
{ 62, 12, 5}, /* 20.0 MHz */
|
||||
{ 62, 18, 6}, /* 13.3 MHz */
|
||||
{ 62, 25, 7}, /* 10.0 MHz */
|
||||
};
|
||||
|
||||
#define SIOP_SCID 0x04 /* SCSI chip ID R/W */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: siopvar_common.h,v 1.22 2002/10/23 02:32:36 christos Exp $ */
|
||||
/* $NetBSD: siopvar_common.h,v 1.23 2003/02/21 17:14:05 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Manuel Bouyer.
|
||||
@ -153,9 +153,9 @@ struct siop_common_softc {
|
||||
|
||||
/* features */
|
||||
#define SF_BUS_WIDE 0x00000001 /* wide bus */
|
||||
#define SF_BUS_ULTRA 0x00000002 /* Ultra (20Mhz) bus */
|
||||
#define SF_BUS_ULTRA2 0x00000004 /* Ultra2 (40Mhz) bus */
|
||||
#define SF_BUS_ULTRA3 0x00000008 /* Ultra3 (80Mhz) bus */
|
||||
#define SF_BUS_ULTRA 0x00000002 /* Ultra (20MHz) bus */
|
||||
#define SF_BUS_ULTRA2 0x00000004 /* Ultra2 (40MHz) bus */
|
||||
#define SF_BUS_ULTRA3 0x00000008 /* Ultra3 (80MHz) bus */
|
||||
#define SF_BUS_DIFF 0x00000010 /* differential bus */
|
||||
|
||||
#define SF_CHIP_LED0 0x00000100 /* led on GPIO0 */
|
||||
|
Loading…
Reference in New Issue
Block a user