mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Include kernel.h instead of declaring "extern int hz".
This commit is contained in:
parent
065bebee55
commit
da8ac9bcd1
2 changed files with 4 additions and 5 deletions
|
|
@ -17,7 +17,7 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* ft.c - QIC-40/80 floppy tape driver
|
||||
* $Id: ft.c,v 1.33 1997/03/24 11:23:45 bde Exp $
|
||||
* $Id: ft.c,v 1.34 1997/07/20 14:09:55 bde Exp $
|
||||
*
|
||||
* 01/19/95 ++sg
|
||||
* Cleaned up recalibrate/seek code at attach time for FreeBSD 2.x.
|
||||
|
|
@ -72,6 +72,7 @@
|
|||
#include <sys/malloc.h>
|
||||
#include <sys/buf.h>
|
||||
#include <sys/ftape.h>
|
||||
#include <sys/kernel.h>
|
||||
|
||||
#include <machine/clock.h>
|
||||
|
||||
|
|
@ -99,8 +100,6 @@ extern int ftintr __P((ftu_t ftu));
|
|||
extern int in_fdc(int); /* read fdc registers */
|
||||
extern int out_fdc(int, int); /* write fdc registers */
|
||||
|
||||
extern int hz; /* system clock rate */
|
||||
|
||||
/* Flags in isadev struct */
|
||||
#define FT_PROBE 0x1 /* allow for "dangerous" tape probes */
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
* today: Fri Jun 2 17:21:03 EST 1994
|
||||
* added 24F support ++sg
|
||||
*
|
||||
* $Id: ultra14f.c,v 1.54 1997/03/24 11:24:10 bde Exp $
|
||||
* $Id: ultra14f.c,v 1.55 1997/07/20 14:10:16 bde Exp $
|
||||
*/
|
||||
|
||||
#ifdef KERNEL /* don't laugh.. this compiles to a program too.. look */
|
||||
|
|
@ -32,6 +32,7 @@
|
|||
#include <sys/systm.h>
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/buf.h>
|
||||
#include <sys/kernel.h>
|
||||
|
||||
#include <machine/clock.h>
|
||||
|
||||
|
|
@ -70,7 +71,6 @@ typedef struct {
|
|||
#define MSCP_HASH_SHIFT 9 /* only hash on multiples of 512 */
|
||||
#define MSCP_HASH(x) ((((long int)(x))>>MSCP_HASH_SHIFT) % MSCP_HASH_SIZE)
|
||||
|
||||
extern int hz;
|
||||
#define UHA_NSEG 33 /* number of dma segments supported */
|
||||
|
||||
/************************** board definitions *******************************/
|
||||
|
|
|
|||
Loading…
Reference in a new issue