diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2022-08-24 17:35:16 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2022-08-24 17:35:16 +0000 |
commit | 9a7db5534a6003a69f54e9fcf652c4a4fa5e274f (patch) | |
tree | a3f211fb62f3ef6449b903b65b3d655508ea4a29 /sys/arch/landisk | |
parent | f91621b10b3c58472485d40829dcbd22b74757f2 (diff) |
Add prototype declarations for a bunch of functions.
Diffstat (limited to 'sys/arch/landisk')
-rw-r--r-- | sys/arch/landisk/stand/boot/getsecs.c | 7 | ||||
-rw-r--r-- | sys/arch/landisk/stand/boot/libsa.h | 9 | ||||
-rw-r--r-- | sys/arch/landisk/stand/xxboot/boot1.c | 4 | ||||
-rw-r--r-- | sys/arch/landisk/stand/xxboot/pbr.S | 4 |
4 files changed, 14 insertions, 10 deletions
diff --git a/sys/arch/landisk/stand/boot/getsecs.c b/sys/arch/landisk/stand/boot/getsecs.c index 0e236d6761d..445278e1e87 100644 --- a/sys/arch/landisk/stand/boot/getsecs.c +++ b/sys/arch/landisk/stand/boot/getsecs.c @@ -1,12 +1,9 @@ +/* $OpenBSD: getsecs.c,v 1.5 2022/08/24 17:35:15 miod Exp $ */ /* $NetBSD: getsecs.c,v 1.2 2006/09/11 13:48:57 nonaka Exp $ */ #include <sys/param.h> -#include <netinet/in.h> - -#include <lib/libsa/stand.h> -#include <lib/libsa/net.h> -#include <lib/libsa/netif.h> +#include <libsa.h> #include <sh/devreg.h> #include <arch/sh/dev/scireg.h> diff --git a/sys/arch/landisk/stand/boot/libsa.h b/sys/arch/landisk/stand/boot/libsa.h index f1b0787df57..e356858acf1 100644 --- a/sys/arch/landisk/stand/boot/libsa.h +++ b/sys/arch/landisk/stand/boot/libsa.h @@ -1,4 +1,4 @@ -/* $OpenBSD: libsa.h,v 1.8 2020/12/09 18:10:19 krw Exp $ */ +/* $OpenBSD: libsa.h,v 1.9 2022/08/24 17:35:15 miod Exp $ */ /* * Copyright (c) 2006 Michael Shalayeff @@ -39,3 +39,10 @@ void scif_cninit(struct consdev *); int scif_cngetc(dev_t); void scif_cnputc(dev_t, int); void scif_init(unsigned int); + +int tick_init(); +void delay(int); + +void devboot(dev_t, char *); +void machdep(); +void run_loadfile(uint64_t *, int); diff --git a/sys/arch/landisk/stand/xxboot/boot1.c b/sys/arch/landisk/stand/xxboot/boot1.c index b4e0c6e492b..fb671b02412 100644 --- a/sys/arch/landisk/stand/xxboot/boot1.c +++ b/sys/arch/landisk/stand/xxboot/boot1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: boot1.c,v 1.10 2021/10/24 17:49:19 deraadt Exp $ */ +/* $OpenBSD: boot1.c,v 1.11 2022/08/24 17:35:15 miod Exp $ */ /* $NetBSD: boot1.c,v 1.1 2006/09/01 21:26:19 uwe Exp $ */ /*- @@ -47,7 +47,7 @@ int raise(int sig); int blkdevstrategy(void *, int, daddr_t, size_t, void *, size_t *); int blkdevopen(struct open_file *, ...); int blkdevclose(struct open_file *); - +int readsects(int dev, uint32_t lba, void *buf, size_t size); extern struct disklabel ptn_disklabel; diff --git a/sys/arch/landisk/stand/xxboot/pbr.S b/sys/arch/landisk/stand/xxboot/pbr.S index 2729f648048..8a101f3d9e6 100644 --- a/sys/arch/landisk/stand/xxboot/pbr.S +++ b/sys/arch/landisk/stand/xxboot/pbr.S @@ -1,4 +1,4 @@ -/* $OpenBSD: pbr.S,v 1.1 2006/11/08 17:46:56 deraadt Exp $ */ +/* $OpenBSD: pbr.S,v 1.2 2022/08/24 17:35:15 miod Exp $ */ /* $NetBSD: pbr.S,v 1.1 2006/09/01 21:26:19 uwe Exp $ */ /*- @@ -116,7 +116,7 @@ next_part: add #16, r12 ptn_error: - /* Not found NetBSD partition */ + /* no OpenBSD partition found */ mova ERR_PTN, r0 error: bsr message_crlf |