summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand/libsa/biosdev.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-07-18 00:30:16 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-07-18 00:30:16 +0000
commit4212b4f2b46a9c9f9dd6d5f58eedef78a4f59c08 (patch)
treeefe8afaa5500db5e4645e7baf9f46ccf84f1e7d5 /sys/arch/i386/stand/libsa/biosdev.c
parent76bfd2afbfb6c818fb1f870f4e577d9aaa82b7ae (diff)
proper includes
const allocate sapace to pass bios regs to/from call
Diffstat (limited to 'sys/arch/i386/stand/libsa/biosdev.c')
-rw-r--r--sys/arch/i386/stand/libsa/biosdev.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/arch/i386/stand/libsa/biosdev.c b/sys/arch/i386/stand/libsa/biosdev.c
index 75251e61928..45cbe01402b 100644
--- a/sys/arch/i386/stand/libsa/biosdev.c
+++ b/sys/arch/i386/stand/libsa/biosdev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: biosdev.c,v 1.17 1997/05/31 15:34:56 mickey Exp $ */
+/* $OpenBSD: biosdev.c,v 1.18 1997/07/18 00:30:15 mickey Exp $ */
/*
* Copyright (c) 1996 Michael Shalayeff
@@ -35,11 +35,14 @@
#include <sys/param.h>
#include <sys/reboot.h>
#include <sys/disklabel.h>
-#include <libsa.h>
+#include <machine/biosvar.h>
+#include "libsa.h"
#include "biosdev.h"
extern int debug;
+struct BIOS_regs BIOS_regs;
+
struct biosdisk {
u_int dinfo;
struct {
@@ -262,7 +265,7 @@ const struct bd_error {
{ 0xE0, EIO , "status register error" },
{ 0xFF, EIO , "sense operation failed" }
};
-int bd_nents = NENTS(bd_errors);
+const int bd_nents = NENTS(bd_errors);
int
biosstrategy(void *devdata, int rw,