+/* $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>
-/* $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
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);
-/* $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 $ */
/*-
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;
-/* $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 $ */
/*-
add #16, r12
ptn_error:
- /* Not found NetBSD partition */
+ /* no OpenBSD partition found */
mova ERR_PTN, r0
error:
bsr message_crlf